rtl8723ds: Remove PLATFORM_LINUX symbol - it is the only one supported

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger
2017-10-16 23:17:59 -05:00
parent 58d8344823
commit 3c1cb50012
43 changed files with 104 additions and 647 deletions
-2
View File
@@ -25,9 +25,7 @@
#define BT_TMP_BUF_SIZE 100
#ifdef PLATFORM_LINUX
#define rsprintf snprintf
#endif
#define DCMD_Printf DBG_BT_INFO
-79
View File
@@ -1,80 +1 @@
#pragma once
#ifndef __INC_HW_IMG_H
#define __INC_HW_IMG_H
//
// 2011/03/15 MH Add for different IC HW image file selection. code size consideration.
//
#if RT_PLATFORM == PLATFORM_LINUX
#if (DEV_BUS_TYPE == RT_PCI_INTERFACE)
// For 92C
#define RTL8192CE_HWIMG_SUPPORT 1
#define RTL8192CE_TEST_HWIMG_SUPPORT 0
#define RTL8192CU_HWIMG_SUPPORT 0
#define RTL8192CU_TEST_HWIMG_SUPPORT 0
// For 92D
#define RTL8192DE_HWIMG_SUPPORT 1
#define RTL8192DE_TEST_HWIMG_SUPPORT 0
#define RTL8192DU_HWIMG_SUPPORT 0
#define RTL8192DU_TEST_HWIMG_SUPPORT 0
// For 8723
#define RTL8723E_HWIMG_SUPPORT 1
#define RTL8723U_HWIMG_SUPPORT 0
#define RTL8723S_HWIMG_SUPPORT 0
//For 88E
#define RTL8188EE_HWIMG_SUPPORT 0
#define RTL8188EU_HWIMG_SUPPORT 0
#define RTL8188ES_HWIMG_SUPPORT 0
#elif (DEV_BUS_TYPE == RT_USB_INTERFACE)
// For 92C
#define RTL8192CE_HWIMG_SUPPORT 0
#define RTL8192CE_TEST_HWIMG_SUPPORT 0
#define RTL8192CU_HWIMG_SUPPORT 1
#define RTL8192CU_TEST_HWIMG_SUPPORT 0
//For 92D
#define RTL8192DE_HWIMG_SUPPORT 0
#define RTL8192DE_TEST_HWIMG_SUPPORT 0
#define RTL8192DU_HWIMG_SUPPORT 1
#define RTL8192DU_TEST_HWIMG_SUPPORT 0
// For 8723
#define RTL8723E_HWIMG_SUPPORT 0
#define RTL8723U_HWIMG_SUPPORT 1
#define RTL8723S_HWIMG_SUPPORT 0
//For 88E
#define RTL8188EE_HWIMG_SUPPORT 0
#define RTL8188EU_HWIMG_SUPPORT 0
#define RTL8188ES_HWIMG_SUPPORT 0
#elif (DEV_BUS_TYPE == RT_SDIO_INTERFACE)
// For 92C
#define RTL8192CE_HWIMG_SUPPORT 0
#define RTL8192CE_TEST_HWIMG_SUPPORT 0
#define RTL8192CU_HWIMG_SUPPORT 1
#define RTL8192CU_TEST_HWIMG_SUPPORT 0
//For 92D
#define RTL8192DE_HWIMG_SUPPORT 0
#define RTL8192DE_TEST_HWIMG_SUPPORT 0
#define RTL8192DU_HWIMG_SUPPORT 1
#define RTL8192DU_TEST_HWIMG_SUPPORT 0
// For 8723
#define RTL8723E_HWIMG_SUPPORT 0
#define RTL8723U_HWIMG_SUPPORT 0
#define RTL8723S_HWIMG_SUPPORT 1
//For 88E
#define RTL8188EE_HWIMG_SUPPORT 0
#define RTL8188EU_HWIMG_SUPPORT 0
#define RTL8188ES_HWIMG_SUPPORT 0
#endif
#endif //__INC_HW_IMG_H
-4
View File
@@ -2334,11 +2334,7 @@ GetPSDData(
//Read PSD report, Reg8B4[15:0]
psd_report = ODM_GetBBReg(pDM_Odm,0x8B4, bMaskDWord) & 0x0000FFFF;
#if 1//(DEV_BUS_TYPE == RT_PCI_INTERFACE) && ( (RT_PLATFORM == PLATFORM_LINUX) || (RT_PLATFORM == PLATFORM_MACOSX))
psd_report = (u4Byte) (odm_ConvertTo_dB(psd_report))+(u4Byte)(initial_gain_psd-0x1c);
#else
psd_report = (int) (20*log10((double)psd_report))+(int)(initial_gain_psd-0x1c);
#endif
return psd_report;
-8
View File
@@ -492,10 +492,6 @@ typedef enum _BASEBAND_CONFIG_PHY_REG_PG_VALUE_TYPE {
/*2011/09/22 MH Copy from SD4 defined structure. We use to support PHY DM integration.*/
#if(DM_ODM_SUPPORT_TYPE & ODM_WIN)
#if (RT_PLATFORM != PLATFORM_LINUX)
typedef
#endif
struct DM_Out_Source_Dynamic_Mechanism_Structure
#else/*for AP,ADSL,CE Team*/
typedef struct DM_Out_Source_Dynamic_Mechanism_Structure
@@ -927,11 +923,7 @@ typedef struct DM_Out_Source_Dynamic_Mechanism_Structure
#if(DM_ODM_SUPPORT_TYPE & ODM_WIN)
#if (RT_PLATFORM != PLATFORM_LINUX)
} DM_ODM_T, *PDM_ODM_T; /*DM_Dynamic_Mechanism_Structure*/
#else
};
#endif
#else /*for AP,ADSL,CE Team*/
} DM_ODM_T, *PDM_ODM_T; /*DM_Dynamic_Mechanism_Structure*/
-10
View File
@@ -71,9 +71,7 @@ static void rtl8723ds_recv_tasklet(void *priv)
/* The case of can't allocate recvframe should be temporary, */
/* schedule again and hope recvframe is available next time. */
#ifdef PLATFORM_LINUX
tasklet_schedule(&precvpriv->recv_tasklet);
#endif
return;
}
@@ -207,9 +205,7 @@ static void rtl8723ds_recv_tasklet(void *priv)
/* The case of can't allocate recvframe should be temporary, */
/* schedule again and hope recvframe is available next time. */
#ifdef PLATFORM_LINUX
tasklet_schedule(&precvpriv->recv_tasklet);
#endif
return;
}
@@ -283,9 +279,7 @@ static void rtl8723ds_recv_tasklet(void *priv)
/* The case of can't allocate skb is serious and may never be recovered, */
/* once bDriverStopped is enable, this task should be stopped. */
if (!rtw_is_drv_stopped(padapter)) {
#ifdef PLATFORM_LINUX
tasklet_schedule(&precvpriv->recv_tasklet);
#endif
}
return;
@@ -426,11 +420,9 @@ s32 rtl8723ds_init_recv_priv(PADAPTER padapter)
goto initbuferror;
/* 3 2. init tasklet */
#ifdef PLATFORM_LINUX
tasklet_init(&precvpriv->recv_tasklet,
(void(*)(unsigned long))rtl8723ds_recv_tasklet,
(unsigned long)padapter);
#endif
goto exit;
@@ -474,9 +466,7 @@ void rtl8723ds_free_recv_priv(PADAPTER padapter)
precvpriv = &padapter->recvpriv;
/* 3 1. kill tasklet */
#ifdef PLATFORM_LINUX
tasklet_kill(&precvpriv->recv_tasklet);
#endif
/* 3 2. free all recv buffers */
precvbuf = (struct recv_buf *)precvpriv->precv_buf;
-2
View File
@@ -1452,9 +1452,7 @@ static void sd_rxhandler(PADAPTER padapter, struct recv_buf *precvbuf)
rtw_enqueue_recvbuf(precvbuf, ppending_queue);
/* 3 2. schedule tasklet */
#ifdef PLATFORM_LINUX
tasklet_schedule(&precvpriv->recv_tasklet);
#endif
}
void sd_int_dpc(PADAPTER padapter)