mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Remove configuration variables CONFIG_IOL_XXX and associated dead code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
927e984c73
commit
9ba4954378
16 changed files with 36 additions and 672 deletions
|
@ -63,30 +63,27 @@
|
|||
#ifdef CONFIG_SUPPORT_USB_INT
|
||||
#endif
|
||||
|
||||
#define CONFIG_IPS
|
||||
#ifdef CONFIG_IPS
|
||||
#endif
|
||||
#define SUPPORT_HW_RFOFF_DETECTED
|
||||
#define CONFIG_IPS
|
||||
#ifdef CONFIG_IPS
|
||||
#endif
|
||||
#define SUPPORT_HW_RFOFF_DETECTED
|
||||
|
||||
#define CONFIG_LPS
|
||||
#if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT)
|
||||
#define CONFIG_LPS
|
||||
#if defined(CONFIG_LPS) && defined(CONFIG_SUPPORT_USB_INT)
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_LPS_LCLK
|
||||
#define CONFIG_XMIT_THREAD_MODE
|
||||
#endif
|
||||
#ifdef CONFIG_LPS_LCLK
|
||||
#define CONFIG_XMIT_THREAD_MODE
|
||||
#endif
|
||||
|
||||
//befor link
|
||||
#define CONFIG_ANTENNA_DIVERSITY
|
||||
//befor link
|
||||
#define CONFIG_ANTENNA_DIVERSITY
|
||||
|
||||
//after link
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
#define CONFIG_HW_ANTENNA_DIVERSITY
|
||||
#endif
|
||||
|
||||
|
||||
#define CONFIG_IOL
|
||||
//after link
|
||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
#define CONFIG_HW_ANTENNA_DIVERSITY
|
||||
#endif
|
||||
|
||||
#define CONFIG_AP_MODE
|
||||
#ifdef CONFIG_AP_MODE
|
||||
|
@ -115,15 +112,6 @@
|
|||
#define CONFIG_SW_LED
|
||||
#endif // CONFIG_LED
|
||||
|
||||
#ifdef CONFIG_IOL
|
||||
#define CONFIG_IOL_NEW_GENERATION
|
||||
#define CONFIG_IOL_READ_EFUSE_MAP
|
||||
#define CONFIG_IOL_LLT
|
||||
#define CONFIG_IOL_EFUSE_PATCH
|
||||
#define CONFIG_IOL_IOREG_CFG
|
||||
#endif
|
||||
|
||||
|
||||
#define USB_INTERFERENCE_ISSUE // this should be checked in all usb interface
|
||||
#define CONFIG_GLOBAL_UI_PID
|
||||
|
||||
|
|
|
@ -183,9 +183,7 @@ struct registry_priv
|
|||
|
||||
u8 max_roaming_times; // the max number driver will try to roaming
|
||||
|
||||
#ifdef CONFIG_IOL
|
||||
u8 fw_iol; //enable iol without other concern
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_80211D
|
||||
u8 enable80211d;
|
||||
|
|
|
@ -236,9 +236,7 @@ struct hal_ops {
|
|||
u8 (*sreset_get_wifi_status)(_adapter *padapter);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IOL
|
||||
int (*IOL_exec_cmds_sync)(_adapter *padapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XMIT_THREAD_MODE
|
||||
s32 (*xmit_thread_handler)(_adapter *padapter);
|
||||
|
@ -440,9 +438,7 @@ void rtw_hal_sreset_linked_status_check (_adapter *padapter);
|
|||
u8 rtw_hal_sreset_get_wifi_status(_adapter *padapter);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IOL
|
||||
int rtw_hal_iol_cmd(ADAPTER *adapter, struct xmit_frame *xmit_frame, u32 max_wating_ms, u32 bndy_cnt);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_XMIT_THREAD_MODE
|
||||
s32 rtw_hal_xmit_thread_handler(_adapter *padapter);
|
||||
|
|
|
@ -564,8 +564,6 @@ void rtl8188e_start_thread(_adapter *padapter);
|
|||
void rtl8188e_stop_thread(_adapter *padapter);
|
||||
|
||||
void rtw_IOL_cmd_tx_pkt_buf_dump(ADAPTER *Adapter,int data_len);
|
||||
#ifdef CONFIG_IOL_EFUSE_PATCH
|
||||
s32 rtl8188e_iol_efuse_patch(PADAPTER padapter);
|
||||
#endif//CONFIG_IOL_EFUSE_PATCH
|
||||
|
||||
#endif //__RTL8188E_HAL_H__
|
||||
|
|
|
@ -33,7 +33,6 @@ int rtw_IOL_append_DELAY_MS_cmd(struct xmit_frame *xmit_frame, u16 ms);
|
|||
int rtw_IOL_append_END_cmd(struct xmit_frame *xmit_frame);
|
||||
|
||||
|
||||
#ifdef CONFIG_IOL_NEW_GENERATION
|
||||
#define IOREG_CMD_END_LEN 4
|
||||
|
||||
struct ioreg_cfg{
|
||||
|
@ -69,70 +68,4 @@ int _rtw_IOL_append_WRF_cmd(struct xmit_frame *xmit_frame, u8 rf_path, u16 addr,
|
|||
u8 rtw_IOL_cmd_boundary_handle(struct xmit_frame *pxmit_frame);
|
||||
void rtw_IOL_cmd_buf_dump(ADAPTER *Adapter,int buf_len,u8 *pbuf);
|
||||
|
||||
#ifdef CONFIG_IOL_IOREG_CFG_DBG
|
||||
struct cmd_cmp{
|
||||
u16 addr;
|
||||
u32 value;
|
||||
};
|
||||
#endif
|
||||
|
||||
#else //CONFIG_IOL_NEW_GENERATION
|
||||
|
||||
typedef struct _io_offload_cmd {
|
||||
u8 rsvd0;
|
||||
u8 cmd;
|
||||
u16 address;
|
||||
u32 value;
|
||||
} IO_OFFLOAD_CMD, IOL_CMD;
|
||||
|
||||
#define IOL_CMD_LLT 0x00
|
||||
//#define IOL_CMD_R_EFUSE 0x01
|
||||
#define IOL_CMD_WB_REG 0x02
|
||||
#define IOL_CMD_WW_REG 0x03
|
||||
#define IOL_CMD_WD_REG 0x04
|
||||
//#define IOL_CMD_W_RF 0x05
|
||||
#define IOL_CMD_DELAY_US 0x80
|
||||
#define IOL_CMD_DELAY_MS 0x81
|
||||
//#define IOL_CMD_DELAY_S 0x82
|
||||
#define IOL_CMD_END 0x83
|
||||
|
||||
/*****************************************************
|
||||
CMD Address Value
|
||||
(B1) (B2/B3:H/L addr) (B4:B7 : MSB:LSB)
|
||||
******************************************************
|
||||
IOL_CMD_LLT - B7: PGBNDY
|
||||
//IOL_CMD_R_EFUSE - -
|
||||
IOL_CMD_WB_REG 0x0~0xFFFF B7
|
||||
IOL_CMD_WW_REG 0x0~0xFFFF B6~B7
|
||||
IOL_CMD_WD_REG 0x0~0xFFFF B4~B7
|
||||
//IOL_CMD_W_RF RF Reg B5~B7
|
||||
IOL_CMD_DELAY_US - B6~B7
|
||||
IOL_CMD_DELAY_MS - B6~B7
|
||||
//IOL_CMD_DELAY_S - B6~B7
|
||||
IOL_CMD_END - -
|
||||
******************************************************/
|
||||
int _rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value);
|
||||
int _rtw_IOL_append_WW_cmd(struct xmit_frame *xmit_frame, u16 addr, u16 value);
|
||||
int _rtw_IOL_append_WD_cmd(struct xmit_frame *xmit_frame, u16 addr, u32 value);
|
||||
|
||||
|
||||
int rtw_IOL_exec_cmd_array_sync(PADAPTER adapter, u8 *IOL_cmds, u32 cmd_num, u32 max_wating_ms);
|
||||
int rtw_IOL_exec_empty_cmds_sync(ADAPTER *adapter, u32 max_wating_ms);
|
||||
|
||||
#ifdef DBG_IO
|
||||
int dbg_rtw_IOL_append_WB_cmd(struct xmit_frame *xmit_frame, u16 addr, u8 value, const char *caller, const int line);
|
||||
int dbg_rtw_IOL_append_WW_cmd(struct xmit_frame *xmit_frame, u16 addr, u16 value, const char *caller, const int line);
|
||||
int dbg_rtw_IOL_append_WD_cmd(struct xmit_frame *xmit_frame, u16 addr, u32 value, const char *caller, const int line);
|
||||
#define rtw_IOL_append_WB_cmd(xmit_frame, addr, value) dbg_rtw_IOL_append_WB_cmd((xmit_frame), (addr), (value), __func__, __LINE__)
|
||||
#define rtw_IOL_append_WW_cmd(xmit_frame, addr, value) dbg_rtw_IOL_append_WW_cmd((xmit_frame), (addr), (value), __func__, __LINE__)
|
||||
#define rtw_IOL_append_WD_cmd(xmit_frame, addr, value) dbg_rtw_IOL_append_WD_cmd((xmit_frame), (addr), (value), __func__, __LINE__)
|
||||
#else
|
||||
#define rtw_IOL_append_WB_cmd(xmit_frame, addr, value) _rtw_IOL_append_WB_cmd((xmit_frame), (addr), (value))
|
||||
#define rtw_IOL_append_WW_cmd(xmit_frame, addr, value) _rtw_IOL_append_WW_cmd((xmit_frame), (addr), (value))
|
||||
#define rtw_IOL_append_WD_cmd(xmit_frame, addr, value) _rtw_IOL_append_WD_cmd((xmit_frame), (addr), (value))
|
||||
#endif // DBG_IO
|
||||
#endif // CONFIG_IOL_NEW_GENERATION
|
||||
|
||||
|
||||
|
||||
#endif //__RTW_IOL_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue