From 5e6ddcda98df24458432805fcc4d22f37ff4d21a Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 22 Jul 2021 19:32:22 -0500 Subject: [PATCH] rtl8188eu: Flatten include/ Signed-off-by: Larry Finger --- include/Hal8188EPhyCfg.h => Hal8188EPhyCfg.h | 0 include/Hal8188EPhyReg.h => Hal8188EPhyReg.h | 0 include/Hal8188EPwrSeq.h => Hal8188EPwrSeq.h | 0 include/Hal8188FPhyCfg.h => Hal8188FPhyCfg.h | 0 include/Hal8188FPhyReg.h => Hal8188FPhyReg.h | 0 include/Hal8188FPwrSeq.h => Hal8188FPwrSeq.h | 0 include/HalPwrSeqCmd.h => HalPwrSeqCmd.h | 0 include/HalVerDef.h => HalVerDef.h | 0 Makefile | 12 +- include/autoconf.h => autoconf.h | 0 include/basic_types.h => basic_types.h | 0 include/circ_buf.h => circ_buf.h | 0 include/cmd_osdep.h => cmd_osdep.h | 0 include/custom_gpio.h => custom_gpio.h | 0 include/drv_conf.h => drv_conf.h | 0 include/drv_types.h => drv_types.h | 2 +- .../drv_types_linux.h => drv_types_linux.h | 0 include/ethernet.h => ethernet.h | 0 include/h2clbk.h => h2clbk.h | 0 include/hal_btcoex.h => hal_btcoex.h | 0 ...btcoex_wifionly.h => hal_btcoex_wifionly.h | 0 include/hal_com.h => hal_com.h | 2 +- include/hal_com_h2c.h => hal_com_h2c.h | 0 include/hal_com_led.h => hal_com_led.h | 0 include/hal_com_phycfg.h => hal_com_phycfg.h | 0 include/hal_com_reg.h => hal_com_reg.h | 0 include/hal_data.h => hal_data.h | 2 +- include/hal_ic_cfg.h => hal_ic_cfg.h | 0 include/hal_intf.h => hal_intf.h | 0 include/hal_pg.h => hal_pg.h | 0 include/hal_phy.h => hal_phy.h | 0 include/hal_phy_reg.h => hal_phy_reg.h | 0 include/hal_sdio.h => hal_sdio.h | 0 halbtcoutsrc.h | 997 ++++++++++++++++++ include/ieee80211.h => ieee80211.h | 0 include/ieee80211_ext.h => ieee80211_ext.h | 0 include/if_ether.h => if_ether.h | 0 include/linux/wireless.h | 70 -- ioctl_linux.c | 4 +- ioctl_mp.c | 2 +- include/ip.h => ip.h | 0 include/mlme_osdep.h => mlme_osdep.h | 0 include/mp_custom_oid.h => mp_custom_oid.h | 0 include/nic_spec.h => nic_spec.h | 0 include/osdep_intf.h => osdep_intf.h | 4 +- include/osdep_service.h => osdep_service.h | 0 ...p_service_linux.h => osdep_service_linux.h | 0 include/recv_osdep.h => recv_osdep.h | 0 include/rtl8188e_cmd.h => rtl8188e_cmd.h | 0 include/rtl8188e_dm.h => rtl8188e_dm.h | 0 include/rtl8188e_hal.h => rtl8188e_hal.h | 0 include/rtl8188e_led.h => rtl8188e_led.h | 0 include/rtl8188e_recv.h => rtl8188e_recv.h | 0 include/rtl8188e_rf.h => rtl8188e_rf.h | 0 include/rtl8188e_spec.h => rtl8188e_spec.h | 0 .../rtl8188e_sreset.h => rtl8188e_sreset.h | 0 include/rtl8188e_xmit.h => rtl8188e_xmit.h | 0 include/rtw_android.h => rtw_android.h | 0 include/rtw_ap.h => rtw_ap.h | 0 .../rtw_beamforming.h => rtw_beamforming.h | 0 include/rtw_br_ext.h => rtw_br_ext.h | 0 include/rtw_bt_mp.h => rtw_bt_mp.h | 0 include/rtw_btcoex.h => rtw_btcoex.h | 0 ...btcoex_wifionly.h => rtw_btcoex_wifionly.h | 0 include/rtw_cmd.h => rtw_cmd.h | 0 include/rtw_debug.h => rtw_debug.h | 0 include/rtw_eeprom.h => rtw_eeprom.h | 0 rtw_efuse.c | 2 +- include/rtw_efuse.h => rtw_efuse.h | 0 include/rtw_event.h => rtw_event.h | 0 include/rtw_ht.h => rtw_ht.h | 0 include/rtw_io.h => rtw_io.h | 0 include/rtw_ioctl.h => rtw_ioctl.h | 0 .../rtw_ioctl_query.h => rtw_ioctl_query.h | 0 include/rtw_ioctl_rtl.h => rtw_ioctl_rtl.h | 0 include/rtw_ioctl_set.h => rtw_ioctl_set.h | 0 include/rtw_iol.h => rtw_iol.h | 0 include/rtw_mcc.h => rtw_mcc.h | 0 include/rtw_mem.h => rtw_mem.h | 0 include/rtw_mi.h => rtw_mi.h | 0 include/rtw_mlme.h => rtw_mlme.h | 0 include/rtw_mlme_ext.h => rtw_mlme_ext.h | 0 rtw_mp.c | 2 +- include/rtw_mp.h => rtw_mp.h | 0 include/rtw_mp_ioctl.h => rtw_mp_ioctl.h | 0 ...rtw_mp_phy_regdef.h => rtw_mp_phy_regdef.h | 0 include/rtw_odm.h => rtw_odm.h | 2 +- include/rtw_p2p.h => rtw_p2p.h | 0 include/rtw_pwrctrl.h => rtw_pwrctrl.h | 0 include/rtw_qos.h => rtw_qos.h | 0 include/rtw_recv.h => rtw_recv.h | 0 include/rtw_rf.h => rtw_rf.h | 0 include/rtw_sdio.h => rtw_sdio.h | 0 include/rtw_security.h => rtw_security.h | 0 include/rtw_sreset.h => rtw_sreset.h | 0 include/rtw_tdls.h => rtw_tdls.h | 0 include/rtw_version.h => rtw_version.h | 0 include/rtw_vht.h => rtw_vht.h | 0 include/rtw_wapi.h => rtw_wapi.h | 0 include/rtw_wifi_regd.h => rtw_wifi_regd.h | 0 include/rtw_xmit.h => rtw_xmit.h | 0 include/sta_info.h => sta_info.h | 0 include/usb_hal.h => usb_hal.h | 0 include/usb_ops.h => usb_ops.h | 0 include/usb_ops_linux.h => usb_ops_linux.h | 0 include/usb_osintf.h => usb_osintf.h | 0 include/usb_vendor_req.h => usb_vendor_req.h | 0 include/wifi.h => wifi.h | 0 include/wlan_bssdef.h => wlan_bssdef.h | 0 include/xmit_osdep.h => xmit_osdep.h | 0 110 files changed, 1009 insertions(+), 92 deletions(-) rename include/Hal8188EPhyCfg.h => Hal8188EPhyCfg.h (100%) rename include/Hal8188EPhyReg.h => Hal8188EPhyReg.h (100%) rename include/Hal8188EPwrSeq.h => Hal8188EPwrSeq.h (100%) rename include/Hal8188FPhyCfg.h => Hal8188FPhyCfg.h (100%) rename include/Hal8188FPhyReg.h => Hal8188FPhyReg.h (100%) rename include/Hal8188FPwrSeq.h => Hal8188FPwrSeq.h (100%) rename include/HalPwrSeqCmd.h => HalPwrSeqCmd.h (100%) rename include/HalVerDef.h => HalVerDef.h (100%) rename include/autoconf.h => autoconf.h (100%) rename include/basic_types.h => basic_types.h (100%) rename include/circ_buf.h => circ_buf.h (100%) rename include/cmd_osdep.h => cmd_osdep.h (100%) rename include/custom_gpio.h => custom_gpio.h (100%) rename include/drv_conf.h => drv_conf.h (100%) rename include/drv_types.h => drv_types.h (99%) rename include/drv_types_linux.h => drv_types_linux.h (100%) rename include/ethernet.h => ethernet.h (100%) rename include/h2clbk.h => h2clbk.h (100%) rename include/hal_btcoex.h => hal_btcoex.h (100%) rename include/hal_btcoex_wifionly.h => hal_btcoex_wifionly.h (100%) rename include/hal_com.h => hal_com.h (99%) rename include/hal_com_h2c.h => hal_com_h2c.h (100%) rename include/hal_com_led.h => hal_com_led.h (100%) rename include/hal_com_phycfg.h => hal_com_phycfg.h (100%) rename include/hal_com_reg.h => hal_com_reg.h (100%) rename include/hal_data.h => hal_data.h (99%) rename include/hal_ic_cfg.h => hal_ic_cfg.h (100%) rename include/hal_intf.h => hal_intf.h (100%) rename include/hal_pg.h => hal_pg.h (100%) rename include/hal_phy.h => hal_phy.h (100%) rename include/hal_phy_reg.h => hal_phy_reg.h (100%) rename include/hal_sdio.h => hal_sdio.h (100%) create mode 100644 halbtcoutsrc.h rename include/ieee80211.h => ieee80211.h (100%) rename include/ieee80211_ext.h => ieee80211_ext.h (100%) rename include/if_ether.h => if_ether.h (100%) delete mode 100644 include/linux/wireless.h rename include/ip.h => ip.h (100%) rename include/mlme_osdep.h => mlme_osdep.h (100%) rename include/mp_custom_oid.h => mp_custom_oid.h (100%) rename include/nic_spec.h => nic_spec.h (100%) rename include/osdep_intf.h => osdep_intf.h (98%) rename include/osdep_service.h => osdep_service.h (100%) rename include/osdep_service_linux.h => osdep_service_linux.h (100%) rename include/recv_osdep.h => recv_osdep.h (100%) rename include/rtl8188e_cmd.h => rtl8188e_cmd.h (100%) rename include/rtl8188e_dm.h => rtl8188e_dm.h (100%) rename include/rtl8188e_hal.h => rtl8188e_hal.h (100%) rename include/rtl8188e_led.h => rtl8188e_led.h (100%) rename include/rtl8188e_recv.h => rtl8188e_recv.h (100%) rename include/rtl8188e_rf.h => rtl8188e_rf.h (100%) rename include/rtl8188e_spec.h => rtl8188e_spec.h (100%) rename include/rtl8188e_sreset.h => rtl8188e_sreset.h (100%) rename include/rtl8188e_xmit.h => rtl8188e_xmit.h (100%) rename include/rtw_android.h => rtw_android.h (100%) rename include/rtw_ap.h => rtw_ap.h (100%) rename include/rtw_beamforming.h => rtw_beamforming.h (100%) rename include/rtw_br_ext.h => rtw_br_ext.h (100%) rename include/rtw_bt_mp.h => rtw_bt_mp.h (100%) rename include/rtw_btcoex.h => rtw_btcoex.h (100%) rename include/rtw_btcoex_wifionly.h => rtw_btcoex_wifionly.h (100%) rename include/rtw_cmd.h => rtw_cmd.h (100%) rename include/rtw_debug.h => rtw_debug.h (100%) rename include/rtw_eeprom.h => rtw_eeprom.h (100%) rename include/rtw_efuse.h => rtw_efuse.h (100%) rename include/rtw_event.h => rtw_event.h (100%) rename include/rtw_ht.h => rtw_ht.h (100%) rename include/rtw_io.h => rtw_io.h (100%) rename include/rtw_ioctl.h => rtw_ioctl.h (100%) rename include/rtw_ioctl_query.h => rtw_ioctl_query.h (100%) rename include/rtw_ioctl_rtl.h => rtw_ioctl_rtl.h (100%) rename include/rtw_ioctl_set.h => rtw_ioctl_set.h (100%) rename include/rtw_iol.h => rtw_iol.h (100%) rename include/rtw_mcc.h => rtw_mcc.h (100%) rename include/rtw_mem.h => rtw_mem.h (100%) rename include/rtw_mi.h => rtw_mi.h (100%) rename include/rtw_mlme.h => rtw_mlme.h (100%) rename include/rtw_mlme_ext.h => rtw_mlme_ext.h (100%) rename include/rtw_mp.h => rtw_mp.h (100%) rename include/rtw_mp_ioctl.h => rtw_mp_ioctl.h (100%) rename include/rtw_mp_phy_regdef.h => rtw_mp_phy_regdef.h (100%) rename include/rtw_odm.h => rtw_odm.h (98%) rename include/rtw_p2p.h => rtw_p2p.h (100%) rename include/rtw_pwrctrl.h => rtw_pwrctrl.h (100%) rename include/rtw_qos.h => rtw_qos.h (100%) rename include/rtw_recv.h => rtw_recv.h (100%) rename include/rtw_rf.h => rtw_rf.h (100%) rename include/rtw_sdio.h => rtw_sdio.h (100%) rename include/rtw_security.h => rtw_security.h (100%) rename include/rtw_sreset.h => rtw_sreset.h (100%) rename include/rtw_tdls.h => rtw_tdls.h (100%) rename include/rtw_version.h => rtw_version.h (100%) rename include/rtw_vht.h => rtw_vht.h (100%) rename include/rtw_wapi.h => rtw_wapi.h (100%) rename include/rtw_wifi_regd.h => rtw_wifi_regd.h (100%) rename include/rtw_xmit.h => rtw_xmit.h (100%) rename include/sta_info.h => sta_info.h (100%) rename include/usb_hal.h => usb_hal.h (100%) rename include/usb_ops.h => usb_ops.h (100%) rename include/usb_ops_linux.h => usb_ops_linux.h (100%) rename include/usb_osintf.h => usb_osintf.h (100%) rename include/usb_vendor_req.h => usb_vendor_req.h (100%) rename include/wifi.h => wifi.h (100%) rename include/wlan_bssdef.h => wlan_bssdef.h (100%) rename include/xmit_osdep.h => xmit_osdep.h (100%) diff --git a/include/Hal8188EPhyCfg.h b/Hal8188EPhyCfg.h similarity index 100% rename from include/Hal8188EPhyCfg.h rename to Hal8188EPhyCfg.h diff --git a/include/Hal8188EPhyReg.h b/Hal8188EPhyReg.h similarity index 100% rename from include/Hal8188EPhyReg.h rename to Hal8188EPhyReg.h diff --git a/include/Hal8188EPwrSeq.h b/Hal8188EPwrSeq.h similarity index 100% rename from include/Hal8188EPwrSeq.h rename to Hal8188EPwrSeq.h diff --git a/include/Hal8188FPhyCfg.h b/Hal8188FPhyCfg.h similarity index 100% rename from include/Hal8188FPhyCfg.h rename to Hal8188FPhyCfg.h diff --git a/include/Hal8188FPhyReg.h b/Hal8188FPhyReg.h similarity index 100% rename from include/Hal8188FPhyReg.h rename to Hal8188FPhyReg.h diff --git a/include/Hal8188FPwrSeq.h b/Hal8188FPwrSeq.h similarity index 100% rename from include/Hal8188FPwrSeq.h rename to Hal8188FPwrSeq.h diff --git a/include/HalPwrSeqCmd.h b/HalPwrSeqCmd.h similarity index 100% rename from include/HalPwrSeqCmd.h rename to HalPwrSeqCmd.h diff --git a/include/HalVerDef.h b/HalVerDef.h similarity index 100% rename from include/HalVerDef.h rename to HalVerDef.h diff --git a/Makefile b/Makefile index 31b2cf8..fda5027 100755 --- a/Makefile +++ b/Makefile @@ -20,8 +20,7 @@ ifeq ($(GCC_VER_49),1) EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later endif -EXTRA_CFLAGS += -I$(src)/include -EXTRA_CFLAGS += -I$(src)/hal +EXTRA_CFLAGS += -I$(src) #EXTRA_LDFLAGS += --strip-debug @@ -176,15 +175,6 @@ _OUTSRC_FILES += halhwimg8188e_mac.o\ hal8188erateadaptive.o\ phydm_rtl8188e.o -########### AUTO_CFG ################################# - -ifeq ($(CONFIG_AUTOCFG_CP), y) - -ifeq ($(CONFIG_MULTIDRV), y) -$(shell cp $(TopDIR)/autoconf_multidrv_$(HCI_NAME)_linux.h $(TopDIR)/include/autoconf.h) -endif - -endif ########### END OF PATH ################################# diff --git a/include/autoconf.h b/autoconf.h similarity index 100% rename from include/autoconf.h rename to autoconf.h diff --git a/include/basic_types.h b/basic_types.h similarity index 100% rename from include/basic_types.h rename to basic_types.h diff --git a/include/circ_buf.h b/circ_buf.h similarity index 100% rename from include/circ_buf.h rename to circ_buf.h diff --git a/include/cmd_osdep.h b/cmd_osdep.h similarity index 100% rename from include/cmd_osdep.h rename to cmd_osdep.h diff --git a/include/custom_gpio.h b/custom_gpio.h similarity index 100% rename from include/custom_gpio.h rename to custom_gpio.h diff --git a/include/drv_conf.h b/drv_conf.h similarity index 100% rename from include/drv_conf.h rename to drv_conf.h diff --git a/include/drv_types.h b/drv_types.h similarity index 99% rename from include/drv_types.h rename to drv_types.h index 535f76e..06e3c2b 100644 --- a/include/drv_types.h +++ b/drv_types.h @@ -62,7 +62,7 @@ typedef struct _ADAPTER _adapter, ADAPTER, *PADAPTER; #include #include #include -#include "../hal_dm.h" +#include "hal_dm.h" #include #include #include diff --git a/include/drv_types_linux.h b/drv_types_linux.h similarity index 100% rename from include/drv_types_linux.h rename to drv_types_linux.h diff --git a/include/ethernet.h b/ethernet.h similarity index 100% rename from include/ethernet.h rename to ethernet.h diff --git a/include/h2clbk.h b/h2clbk.h similarity index 100% rename from include/h2clbk.h rename to h2clbk.h diff --git a/include/hal_btcoex.h b/hal_btcoex.h similarity index 100% rename from include/hal_btcoex.h rename to hal_btcoex.h diff --git a/include/hal_btcoex_wifionly.h b/hal_btcoex_wifionly.h similarity index 100% rename from include/hal_btcoex_wifionly.h rename to hal_btcoex_wifionly.h diff --git a/include/hal_com.h b/hal_com.h similarity index 99% rename from include/hal_com.h rename to hal_com.h index 0ff68f2..f43157e 100644 --- a/include/hal_com.h +++ b/hal_com.h @@ -10,7 +10,7 @@ #include "hal_phy_reg.h" #include "hal_com_reg.h" #include "hal_com_phycfg.h" -#include "../hal_com_c2h.h" +#include "hal_com_c2h.h" /*------------------------------ Tx Desc definition Macro ------------------------*/ /* #pragma mark -- Tx Desc related definition. -- */ diff --git a/include/hal_com_h2c.h b/hal_com_h2c.h similarity index 100% rename from include/hal_com_h2c.h rename to hal_com_h2c.h diff --git a/include/hal_com_led.h b/hal_com_led.h similarity index 100% rename from include/hal_com_led.h rename to hal_com_led.h diff --git a/include/hal_com_phycfg.h b/hal_com_phycfg.h similarity index 100% rename from include/hal_com_phycfg.h rename to hal_com_phycfg.h diff --git a/include/hal_com_reg.h b/hal_com_reg.h similarity index 100% rename from include/hal_com_reg.h rename to hal_com_reg.h diff --git a/include/hal_data.h b/hal_data.h similarity index 99% rename from include/hal_data.h rename to hal_data.h index 68d0526..1ccfdb1 100755 --- a/include/hal_data.h +++ b/hal_data.h @@ -4,7 +4,7 @@ #ifndef __HAL_DATA_H__ #define __HAL_DATA_H__ -#include "../phydm_precomp.h" +#include "phydm_precomp.h" #ifdef CONFIG_BT_COEXIST #include #endif diff --git a/include/hal_ic_cfg.h b/hal_ic_cfg.h similarity index 100% rename from include/hal_ic_cfg.h rename to hal_ic_cfg.h diff --git a/include/hal_intf.h b/hal_intf.h similarity index 100% rename from include/hal_intf.h rename to hal_intf.h diff --git a/include/hal_pg.h b/hal_pg.h similarity index 100% rename from include/hal_pg.h rename to hal_pg.h diff --git a/include/hal_phy.h b/hal_phy.h similarity index 100% rename from include/hal_phy.h rename to hal_phy.h diff --git a/include/hal_phy_reg.h b/hal_phy_reg.h similarity index 100% rename from include/hal_phy_reg.h rename to hal_phy_reg.h diff --git a/include/hal_sdio.h b/hal_sdio.h similarity index 100% rename from include/hal_sdio.h rename to hal_sdio.h diff --git a/halbtcoutsrc.h b/halbtcoutsrc.h new file mode 100644 index 0000000..0f25098 --- /dev/null +++ b/halbtcoutsrc.h @@ -0,0 +1,997 @@ +#ifndef __HALBTC_OUT_SRC_H__ +#define __HALBTC_OUT_SRC_H__ + + +#define BTC_COEX_OFFLOAD 0 +#define BTC_TMP_BUF_SHORT 20 + +extern u8 gl_btc_trace_buf[]; +#define BTC_SPRINTF rsprintf +#define BTC_TRACE(_MSG_)\ +do {\ + if (GLBtcDbgType[COMP_COEX] & BIT(DBG_LOUD)) {\ + RTW_INFO("%s", _MSG_);\ + } \ +} while (0) +#define BT_PrintData(adapter, _MSG_, len, data) RTW_DBG_DUMP((_MSG_), data, len) + + +#define NORMAL_EXEC FALSE +#define FORCE_EXEC TRUE + +#define BTC_RF_OFF 0x0 +#define BTC_RF_ON 0x1 + +#define BTC_RF_A 0x0 +#define BTC_RF_B 0x1 +#define BTC_RF_C 0x2 +#define BTC_RF_D 0x3 + +#define BTC_SMSP SINGLEMAC_SINGLEPHY +#define BTC_DMDP DUALMAC_DUALPHY +#define BTC_DMSP DUALMAC_SINGLEPHY +#define BTC_MP_UNKNOWN 0xff + +#define BT_COEX_ANT_TYPE_PG 0 +#define BT_COEX_ANT_TYPE_ANTDIV 1 +#define BT_COEX_ANT_TYPE_DETECTED 2 + +#define BTC_MIMO_PS_STATIC 0 /* 1ss */ +#define BTC_MIMO_PS_DYNAMIC 1 /* 2ss */ + +#define BTC_RATE_DISABLE 0 +#define BTC_RATE_ENABLE 1 + +/* single Antenna definition */ +#define BTC_ANT_PATH_WIFI 0 +#define BTC_ANT_PATH_BT 1 +#define BTC_ANT_PATH_PTA 2 +#define BTC_ANT_PATH_WIFI5G 3 +#define BTC_ANT_PATH_AUTO 4 +/* dual Antenna definition */ +#define BTC_ANT_WIFI_AT_MA 0 +#define BTC_ANT_WIFI_AT_AUX 1 +#define BTC_ANT_WIFI_AT_DIVERSITY 2 +/* coupler Antenna definition */ +#define BTC_ANT_WIFI_AT_CPL_MA0 +#define BTC_ANT_WIFI_AT_CPL_AUX 1 + +typedef enum _BTC_POWERSAVE_TYPE { + BTC_PS_WIFI_NATIVE = 0, /* wifi original power save behavior */ + BTC_PS_LPS_ON = 1, + BTC_PS_LPS_OFF = 2, + BTC_PS_MAX +} BTC_POWERSAVE_TYPE, *PBTC_POWERSAVE_TYPE; + +typedef enum _BTC_BT_REG_TYPE { + BTC_BT_REG_RF = 0, + BTC_BT_REG_MODEM = 1, + BTC_BT_REG_BLUEWIZE = 2, + BTC_BT_REG_VENDOR = 3, + BTC_BT_REG_LE = 4, + BTC_BT_REG_MAX +} BTC_BT_REG_TYPE, *PBTC_BT_REG_TYPE; + +typedef enum _BTC_CHIP_INTERFACE { + BTC_INTF_UNKNOWN = 0, + BTC_INTF_PCI = 1, + BTC_INTF_USB = 2, + BTC_INTF_SDIO = 3, + BTC_INTF_MAX +} BTC_CHIP_INTERFACE, *PBTC_CHIP_INTERFACE; + +typedef enum _BTC_CHIP_TYPE { + BTC_CHIP_UNDEF = 0, + BTC_CHIP_CSR_BC4 = 1, + BTC_CHIP_CSR_BC8 = 2, + BTC_CHIP_RTL8723A = 3, + BTC_CHIP_RTL8821 = 4, + BTC_CHIP_RTL8723B = 5, + BTC_CHIP_MAX +} BTC_CHIP_TYPE, *PBTC_CHIP_TYPE; + +/* following is for wifi link status */ +#define WIFI_STA_CONNECTED BIT0 +#define WIFI_AP_CONNECTED BIT1 +#define WIFI_HS_CONNECTED BIT2 +#define WIFI_P2P_GO_CONNECTED BIT3 +#define WIFI_P2P_GC_CONNECTED BIT4 + +/* following is for command line utility */ +#define CL_SPRINTF rsprintf +#define CL_PRINTF DCMD_Printf + +struct btc_board_info { + /* The following is some board information */ + u8 bt_chip_type; + u8 pg_ant_num; /* pg ant number */ + u8 btdm_ant_num; /* ant number for btdm */ + u8 btdm_ant_num_by_ant_det; /* ant number for btdm after antenna detection */ + u8 btdm_ant_pos; /* Bryant Add to indicate Antenna Position for (pg_ant_num = 2) && (btdm_ant_num =1) (DPDT+1Ant case) */ + u8 single_ant_path; /* current used for 8723b only, 1=>s0, 0=>s1 */ + bool tfbga_package; /* for Antenna detect threshold */ + bool btdm_ant_det_finish; + bool btdm_ant_det_already_init_phydm; + u8 ant_type; + u8 rfe_type; + u8 ant_div_cfg; + bool btdm_ant_det_complete_fail; + u8 ant_det_result; + bool ant_det_result_five_complete; + u32 antdetval; +}; + +typedef enum _BTC_DBG_OPCODE { + BTC_DBG_SET_COEX_NORMAL = 0x0, + BTC_DBG_SET_COEX_WIFI_ONLY = 0x1, + BTC_DBG_SET_COEX_BT_ONLY = 0x2, + BTC_DBG_SET_COEX_DEC_BT_PWR = 0x3, + BTC_DBG_SET_COEX_BT_AFH_MAP = 0x4, + BTC_DBG_SET_COEX_BT_IGNORE_WLAN_ACT = 0x5, + BTC_DBG_SET_COEX_MANUAL_CTRL = 0x6, + BTC_DBG_MAX +} BTC_DBG_OPCODE, *PBTC_DBG_OPCODE; + +typedef enum _BTC_RSSI_STATE { + BTC_RSSI_STATE_HIGH = 0x0, + BTC_RSSI_STATE_MEDIUM = 0x1, + BTC_RSSI_STATE_LOW = 0x2, + BTC_RSSI_STATE_STAY_HIGH = 0x3, + BTC_RSSI_STATE_STAY_MEDIUM = 0x4, + BTC_RSSI_STATE_STAY_LOW = 0x5, + BTC_RSSI_MAX +} BTC_RSSI_STATE, *PBTC_RSSI_STATE; +#define BTC_RSSI_HIGH(_rssi_) ((_rssi_ == BTC_RSSI_STATE_HIGH || _rssi_ == BTC_RSSI_STATE_STAY_HIGH) ? TRUE:FALSE) +#define BTC_RSSI_MEDIUM(_rssi_) ((_rssi_ == BTC_RSSI_STATE_MEDIUM || _rssi_ == BTC_RSSI_STATE_STAY_MEDIUM) ? TRUE:FALSE) +#define BTC_RSSI_LOW(_rssi_) ((_rssi_ == BTC_RSSI_STATE_LOW || _rssi_ == BTC_RSSI_STATE_STAY_LOW) ? TRUE:FALSE) + +typedef enum _BTC_WIFI_ROLE { + BTC_ROLE_STATION = 0x0, + BTC_ROLE_AP = 0x1, + BTC_ROLE_IBSS = 0x2, + BTC_ROLE_HS_MODE = 0x3, + BTC_ROLE_MAX +} BTC_WIFI_ROLE, *PBTC_WIFI_ROLE; + +typedef enum _BTC_WIRELESS_FREQ { + BTC_FREQ_2_4G = 0x0, + BTC_FREQ_5G = 0x1, + BTC_FREQ_MAX +} BTC_WIRELESS_FREQ, *PBTC_WIRELESS_FREQ; + +typedef enum _BTC_WIFI_BW_MODE { + BTC_WIFI_BW_LEGACY = 0x0, + BTC_WIFI_BW_HT20 = 0x1, + BTC_WIFI_BW_HT40 = 0x2, + BTC_WIFI_BW_HT80 = 0x3, + BTC_WIFI_BW_HT160 = 0x4, + BTC_WIFI_BW_MAX +} BTC_WIFI_BW_MODE, *PBTC_WIFI_BW_MODE; + +typedef enum _BTC_WIFI_TRAFFIC_DIR { + BTC_WIFI_TRAFFIC_TX = 0x0, + BTC_WIFI_TRAFFIC_RX = 0x1, + BTC_WIFI_TRAFFIC_MAX +} BTC_WIFI_TRAFFIC_DIR, *PBTC_WIFI_TRAFFIC_DIR; + +typedef enum _BTC_WIFI_PNP { + BTC_WIFI_PNP_WAKE_UP = 0x0, + BTC_WIFI_PNP_SLEEP = 0x1, + BTC_WIFI_PNP_SLEEP_KEEP_ANT = 0x2, + BTC_WIFI_PNP_MAX +} BTC_WIFI_PNP, *PBTC_WIFI_PNP; + +typedef enum _BTC_IOT_PEER { + BTC_IOT_PEER_UNKNOWN = 0, + BTC_IOT_PEER_REALTEK = 1, + BTC_IOT_PEER_REALTEK_92SE = 2, + BTC_IOT_PEER_BROADCOM = 3, + BTC_IOT_PEER_RALINK = 4, + BTC_IOT_PEER_ATHEROS = 5, + BTC_IOT_PEER_CISCO = 6, + BTC_IOT_PEER_MERU = 7, + BTC_IOT_PEER_MARVELL = 8, + BTC_IOT_PEER_REALTEK_SOFTAP = 9, /* peer is RealTek SOFT_AP, by Bohn, 2009.12.17 */ + BTC_IOT_PEER_SELF_SOFTAP = 10, /* Self is SoftAP */ + BTC_IOT_PEER_AIRGO = 11, + BTC_IOT_PEER_INTEL = 12, + BTC_IOT_PEER_RTK_APCLIENT = 13, + BTC_IOT_PEER_REALTEK_81XX = 14, + BTC_IOT_PEER_REALTEK_WOW = 15, + BTC_IOT_PEER_REALTEK_JAGUAR_BCUTAP = 16, + BTC_IOT_PEER_REALTEK_JAGUAR_CCUTAP = 17, + BTC_IOT_PEER_MAX, +} BTC_IOT_PEER, *PBTC_IOT_PEER; + +/* for 8723b-d cut large current issue */ +typedef enum _BTC_WIFI_COEX_STATE { + BTC_WIFI_STAT_INIT, + BTC_WIFI_STAT_IQK, + BTC_WIFI_STAT_NORMAL_OFF, + BTC_WIFI_STAT_MP_OFF, + BTC_WIFI_STAT_NORMAL, + BTC_WIFI_STAT_ANT_DIV, + BTC_WIFI_STAT_MAX +} BTC_WIFI_COEX_STATE, *PBTC_WIFI_COEX_STATE; + +typedef enum _BTC_ANT_TYPE { + BTC_ANT_TYPE_0, + BTC_ANT_TYPE_1, + BTC_ANT_TYPE_2, + BTC_ANT_TYPE_3, + BTC_ANT_TYPE_4, + BTC_ANT_TYPE_MAX +} BTC_ANT_TYPE, *PBTC_ANT_TYPE; + +typedef enum _BTC_VENDOR { + BTC_VENDOR_LENOVO, + BTC_VENDOR_ASUS, + BTC_VENDOR_OTHER +} BTC_VENDOR, *PBTC_VENDOR; + + +/* defined for BFP_BTC_GET */ +typedef enum _BTC_GET_TYPE { + /* type bool */ + BTC_GET_BL_HS_OPERATION, + BTC_GET_BL_HS_CONNECTING, + BTC_GET_BL_WIFI_FW_READY, + BTC_GET_BL_WIFI_CONNECTED, + BTC_GET_BL_WIFI_BUSY, + BTC_GET_BL_WIFI_SCAN, + BTC_GET_BL_WIFI_LINK, + BTC_GET_BL_WIFI_ROAM, + BTC_GET_BL_WIFI_4_WAY_PROGRESS, + BTC_GET_BL_WIFI_UNDER_5G, + BTC_GET_BL_WIFI_AP_MODE_ENABLE, + BTC_GET_BL_WIFI_ENABLE_ENCRYPTION, + BTC_GET_BL_WIFI_UNDER_B_MODE, + BTC_GET_BL_EXT_SWITCH, + BTC_GET_BL_WIFI_IS_IN_MP_MODE, + BTC_GET_BL_IS_ASUS_8723B, + + /* type s4Byte */ + BTC_GET_S4_WIFI_RSSI, + BTC_GET_S4_HS_RSSI, + + /* type u32 */ + BTC_GET_U4_WIFI_BW, + BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, + BTC_GET_U4_WIFI_FW_VER, + BTC_GET_U4_WIFI_LINK_STATUS, + BTC_GET_U4_BT_PATCH_VER, + BTC_GET_U4_VENDOR, + BTC_GET_U4_SUPPORTED_VERSION, + BTC_GET_U4_SUPPORTED_FEATURE, + BTC_GET_U4_WIFI_IQK_TOTAL, + BTC_GET_U4_WIFI_IQK_OK, + BTC_GET_U4_WIFI_IQK_FAIL, + + /* type u8 */ + BTC_GET_U1_WIFI_DOT11_CHNL, + BTC_GET_U1_WIFI_CENTRAL_CHNL, + BTC_GET_U1_WIFI_HS_CHNL, + BTC_GET_U1_WIFI_P2P_CHNL, + BTC_GET_U1_MAC_PHY_MODE, + BTC_GET_U1_AP_NUM, + BTC_GET_U1_ANT_TYPE, + BTC_GET_U1_IOT_PEER, + + /*===== for 1Ant ======*/ + BTC_GET_U1_LPS_MODE, + + BTC_GET_MAX +} BTC_GET_TYPE, *PBTC_GET_TYPE; + +/* defined for BFP_BTC_SET */ +typedef enum _BTC_SET_TYPE { + /* type bool */ + BTC_SET_BL_BT_DISABLE, + BTC_SET_BL_BT_ENABLE_DISABLE_CHANGE, + BTC_SET_BL_BT_TRAFFIC_BUSY, + BTC_SET_BL_BT_LIMITED_DIG, + BTC_SET_BL_FORCE_TO_ROAM, + BTC_SET_BL_TO_REJ_AP_AGG_PKT, + BTC_SET_BL_BT_CTRL_AGG_SIZE, + BTC_SET_BL_INC_SCAN_DEV_NUM, + BTC_SET_BL_BT_TX_RX_MASK, + BTC_SET_BL_MIRACAST_PLUS_BT, + + /* type u8 */ + BTC_SET_U1_RSSI_ADJ_VAL_FOR_AGC_TABLE_ON, + BTC_SET_U1_AGG_BUF_SIZE, + + /* type trigger some action */ + BTC_SET_ACT_GET_BT_RSSI, + BTC_SET_ACT_AGGREGATE_CTRL, + BTC_SET_ACT_ANTPOSREGRISTRY_CTRL, + /*===== for 1Ant ======*/ + /* type bool */ + + /* type u8 */ + BTC_SET_U1_RSSI_ADJ_VAL_FOR_1ANT_COEX_TYPE, + BTC_SET_U1_LPS_VAL, + BTC_SET_U1_RPWM_VAL, + /* type trigger some action */ + BTC_SET_ACT_LEAVE_LPS, + BTC_SET_ACT_ENTER_LPS, + BTC_SET_ACT_NORMAL_LPS, + BTC_SET_ACT_DISABLE_LOW_POWER, + BTC_SET_ACT_UPDATE_RAMASK, + BTC_SET_ACT_SEND_MIMO_PS, + /* BT Coex related */ + BTC_SET_ACT_CTRL_BT_INFO, + BTC_SET_ACT_CTRL_BT_COEX, + BTC_SET_ACT_CTRL_8723B_ANT, + /*=================*/ + BTC_SET_MAX +} BTC_SET_TYPE, *PBTC_SET_TYPE; + +typedef enum _BTC_DBG_DISP_TYPE { + BTC_DBG_DISP_COEX_STATISTICS = 0x0, + BTC_DBG_DISP_BT_LINK_INFO = 0x1, + BTC_DBG_DISP_WIFI_STATUS = 0x2, + BTC_DBG_DISP_MAX +} BTC_DBG_DISP_TYPE, *PBTC_DBG_DISP_TYPE; + +typedef enum _BTC_NOTIFY_TYPE_IPS { + BTC_IPS_LEAVE = 0x0, + BTC_IPS_ENTER = 0x1, + BTC_IPS_MAX +} BTC_NOTIFY_TYPE_IPS, *PBTC_NOTIFY_TYPE_IPS; +typedef enum _BTC_NOTIFY_TYPE_LPS { + BTC_LPS_DISABLE = 0x0, + BTC_LPS_ENABLE = 0x1, + BTC_LPS_MAX +} BTC_NOTIFY_TYPE_LPS, *PBTC_NOTIFY_TYPE_LPS; +typedef enum _BTC_NOTIFY_TYPE_SCAN { + BTC_SCAN_FINISH = 0x0, + BTC_SCAN_START = 0x1, + BTC_SCAN_START_2G = 0x2, + BTC_SCAN_MAX +} BTC_NOTIFY_TYPE_SCAN, *PBTC_NOTIFY_TYPE_SCAN; +typedef enum _BTC_NOTIFY_TYPE_SWITCHBAND { + BTC_NOT_SWITCH = 0x0, + BTC_SWITCH_TO_24G = 0x1, + BTC_SWITCH_TO_5G = 0x2, + BTC_SWITCH_TO_24G_NOFORSCAN = 0x3, + BTC_SWITCH_MAX +} BTC_NOTIFY_TYPE_SWITCHBAND, *PBTC_NOTIFY_TYPE_SWITCHBAND; +typedef enum _BTC_NOTIFY_TYPE_ASSOCIATE { + BTC_ASSOCIATE_FINISH = 0x0, + BTC_ASSOCIATE_START = 0x1, + BTC_ASSOCIATE_5G_FINISH = 0x2, + BTC_ASSOCIATE_5G_START = 0x3, + BTC_ASSOCIATE_MAX +} BTC_NOTIFY_TYPE_ASSOCIATE, *PBTC_NOTIFY_TYPE_ASSOCIATE; +typedef enum _BTC_NOTIFY_TYPE_MEDIA_STATUS { + BTC_MEDIA_DISCONNECT = 0x0, + BTC_MEDIA_CONNECT = 0x1, + BTC_MEDIA_MAX +} BTC_NOTIFY_TYPE_MEDIA_STATUS, *PBTC_NOTIFY_TYPE_MEDIA_STATUS; +typedef enum _BTC_NOTIFY_TYPE_SPECIFIC_PACKET { + BTC_PACKET_UNKNOWN = 0x0, + BTC_PACKET_DHCP = 0x1, + BTC_PACKET_ARP = 0x2, + BTC_PACKET_EAPOL = 0x3, + BTC_PACKET_MAX +} BTC_NOTIFY_TYPE_SPECIFIC_PACKET, *PBTC_NOTIFY_TYPE_SPECIFIC_PACKET; +typedef enum _BTC_NOTIFY_TYPE_STACK_OPERATION { + BTC_STACK_OP_NONE = 0x0, + BTC_STACK_OP_INQ_PAGE_PAIR_START = 0x1, + BTC_STACK_OP_INQ_PAGE_PAIR_FINISH = 0x2, + BTC_STACK_OP_MAX +} BTC_NOTIFY_TYPE_STACK_OPERATION, *PBTC_NOTIFY_TYPE_STACK_OPERATION; + +/* Bryant Add */ +typedef enum _BTC_ANTENNA_POS { + BTC_ANTENNA_AT_MAIN_PORT = 0x1, + BTC_ANTENNA_AT_AUX_PORT = 0x2, +} BTC_ANTENNA_POS, *PBTC_ANTENNA_POS; + +/* Bryant Add */ +typedef enum _BTC_BT_OFFON { + BTC_BT_OFF = 0x0, + BTC_BT_ON = 0x1, +} BTC_BTOFFON, *PBTC_BT_OFFON; + +/*================================================== +For following block is for coex offload +==================================================*/ +typedef struct _COL_H2C { + u8 opcode; + u8 opcode_ver:4; + u8 req_num:4; + u8 buf[1]; +} COL_H2C, *PCOL_H2C; + +#define COL_C2H_ACK_HDR_LEN 3 +typedef struct _COL_C2H_ACK { + u8 status; + u8 opcode_ver:4; + u8 req_num:4; + u8 ret_len; + u8 buf[1]; +} COL_C2H_ACK, *PCOL_C2H_ACK; + +#define COL_C2H_IND_HDR_LEN 3 +typedef struct _COL_C2H_IND { + u8 type; + u8 version; + u8 length; + u8 data[1]; +} COL_C2H_IND, *PCOL_C2H_IND; + +/*============================================ +NOTE: for debug message, the following define should match +the strings in coexH2cResultString. +============================================*/ +typedef enum _COL_H2C_STATUS { + /* c2h status */ + COL_STATUS_C2H_OK = 0x00, /* Wifi received H2C request and check content ok. */ + COL_STATUS_C2H_UNKNOWN = 0x01, /* Not handled routine */ + COL_STATUS_C2H_UNKNOWN_OPCODE = 0x02, /* Invalid OP code, It means that wifi firmware received an undefiend OP code. */ + COL_STATUS_C2H_OPCODE_VER_MISMATCH = 0x03, /* Wifi firmware and wifi driver mismatch, need to update wifi driver or wifi or. */ + COL_STATUS_C2H_PARAMETER_ERROR = 0x04, /* Error paraneter.(ex: parameters = NULL but it should have values) */ + COL_STATUS_C2H_PARAMETER_OUT_OF_RANGE = 0x05, /* Wifi firmware needs to check the parameters from H2C request and return the status.(ex: ch = 500, it's wrong) */ + /* other COL status start from here */ + COL_STATUS_C2H_REQ_NUM_MISMATCH , /* c2h req_num mismatch, means this c2h is not we expected. */ + COL_STATUS_H2C_HALMAC_FAIL , /* HALMAC return fail. */ + COL_STATUS_H2C_TIMT , /* not received the c2h response from fw */ + COL_STATUS_INVALID_C2H_LEN , /* invalid coex offload c2h ack length, must >= 3 */ + COL_STATUS_COEX_DATA_OVERFLOW , /* coex returned length over the c2h ack length. */ + COL_STATUS_MAX +} COL_H2C_STATUS, *PCOL_H2C_STATUS; + +#define COL_MAX_H2C_REQ_NUM 16 + +#define COL_H2C_BUF_LEN 20 +typedef enum _COL_OPCODE { + COL_OP_WIFI_STATUS_NOTIFY = 0x0, + COL_OP_WIFI_PROGRESS_NOTIFY = 0x1, + COL_OP_WIFI_INFO_NOTIFY = 0x2, + COL_OP_WIFI_POWER_STATE_NOTIFY = 0x3, + COL_OP_SET_CONTROL = 0x4, + COL_OP_GET_CONTROL = 0x5, + COL_OP_WIFI_OPCODE_MAX +} COL_OPCODE, *PCOL_OPCODE; + +typedef enum _COL_IND_TYPE { + COL_IND_BT_INFO = 0x0, + COL_IND_PSTDMA = 0x1, + COL_IND_LIMITED_TX_RX = 0x2, + COL_IND_COEX_TABLE = 0x3, + COL_IND_REQ = 0x4, + COL_IND_MAX +} COL_IND_TYPE, *PCOL_IND_TYPE; + +typedef struct _COL_SINGLE_H2C_RECORD { + u8 h2c_buf[COL_H2C_BUF_LEN]; /* the latest sent h2c buffer */ + u32 h2c_len; + u8 c2h_ack_buf[COL_H2C_BUF_LEN]; /* the latest received c2h buffer */ + u32 c2h_ack_len; + u32 count; /* the total number of the sent h2c command */ + u32 status[COL_STATUS_MAX]; /* the c2h status for the sent h2c command */ +} COL_SINGLE_H2C_RECORD, *PCOL_SINGLE_H2C_RECORD; + +typedef struct _COL_SINGLE_C2H_IND_RECORD { + u8 ind_buf[COL_H2C_BUF_LEN]; /* the latest received c2h indication buffer */ + u32 ind_len; + u32 count; /* the total number of the rcvd c2h indication */ + u32 status[COL_STATUS_MAX]; /* the c2h indication verified status */ +} COL_SINGLE_C2H_IND_RECORD, *PCOL_SINGLE_C2H_IND_RECORD; + +typedef struct _BTC_OFFLOAD { + /* H2C command related */ + u8 h2c_req_num; + u32 cnt_h2c_sent; + COL_SINGLE_H2C_RECORD h2c_record[COL_OP_WIFI_OPCODE_MAX]; + + /* C2H Ack related */ + u32 cnt_c2h_ack; + u32 status[COL_STATUS_MAX]; + struct completion c2h_event[COL_MAX_H2C_REQ_NUM]; /* for req_num = 1~COL_MAX_H2C_REQ_NUM */ + u8 c2h_ack_buf[COL_MAX_H2C_REQ_NUM][COL_H2C_BUF_LEN]; + u8 c2h_ack_len[COL_MAX_H2C_REQ_NUM]; + + /* C2H Indication related */ + u32 cnt_c2h_ind; + COL_SINGLE_C2H_IND_RECORD c2h_ind_record[COL_IND_MAX]; + u32 c2h_ind_status[COL_STATUS_MAX]; + u8 c2h_ind_buf[COL_H2C_BUF_LEN]; + u8 c2h_ind_len; +} BTC_OFFLOAD, *PBTC_OFFLOAD; +extern BTC_OFFLOAD gl_coex_offload; +/*==================================================*/ + +typedef u8 +(*BFP_BTC_R1)( + void * pBtcContext, + u32 RegAddr + ); +typedef u16 +(*BFP_BTC_R2)( + void * pBtcContext, + u32 RegAddr + ); +typedef u32 +(*BFP_BTC_R4)( + void * pBtcContext, + u32 RegAddr + ); +typedef void +(*BFP_BTC_W1)( + void * pBtcContext, + u32 RegAddr, + u8 Data + ); +typedef void +(*BFP_BTC_W1_BIT_MASK)( + void * pBtcContext, + u32 regAddr, + u8 bitMask, + u8 data1b + ); +typedef void +(*BFP_BTC_W2)( + void * pBtcContext, + u32 RegAddr, + u16 Data + ); +typedef void +(*BFP_BTC_W4)( + void * pBtcContext, + u32 RegAddr, + u32 Data + ); +typedef void +(*BFP_BTC_LOCAL_REG_W1)( + void * pBtcContext, + u32 RegAddr, + u8 Data + ); +typedef void +(*BFP_BTC_SET_BB_REG)( + void * pBtcContext, + u32 RegAddr, + u32 BitMask, + u32 Data + ); +typedef u32 +(*BFP_BTC_GET_BB_REG)( + void * pBtcContext, + u32 RegAddr, + u32 BitMask + ); +typedef void +(*BFP_BTC_SET_RF_REG)( + void * pBtcContext, + u8 eRFPath, + u32 RegAddr, + u32 BitMask, + u32 Data + ); +typedef u32 +(*BFP_BTC_GET_RF_REG)( + void * pBtcContext, + u8 eRFPath, + u32 RegAddr, + u32 BitMask + ); +typedef void +(*BFP_BTC_FILL_H2C)( + void * pBtcContext, + u8 elementId, + u32 cmdLen, + u8 * pCmdBuffer + ); + +typedef bool +(*BFP_BTC_GET)( + void * pBtCoexist, + u8 getType, + void * pOutBuf + ); + +typedef bool +(*BFP_BTC_SET)( + void * pBtCoexist, + u8 setType, + void * pInBuf + ); +typedef u16 +(*BFP_BTC_SET_BT_REG)( + void * pBtcContext, + u8 regType, + u32 offset, + u32 value + ); +typedef bool +(*BFP_BTC_SET_BT_ANT_DETECTION)( + void * pBtcContext, + u8 txTime, + u8 btChnl + ); + +typedef bool +(*BFP_BTC_SET_BT_TRX_MASK)( + void * pBtcContext, + u8 bt_trx_mask + ); + +typedef u32 +(*BFP_BTC_GET_BT_REG)( + void * pBtcContext, + u8 regType, + u32 offset + ); +typedef void +(*BFP_BTC_DISP_DBG_MSG)( + void * pBtCoexist, + u8 dispType + ); + +typedef COL_H2C_STATUS +(*BFP_BTC_COEX_H2C_PROCESS)( + void * pBtCoexist, + u8 opcode, + u8 opcode_ver, + u8 * ph2c_par, + u8 h2c_par_len + ); + +typedef u32 +(*BFP_BTC_GET_BT_COEX_SUPPORTED_FEATURE)( + void * pBtcContext + ); + +typedef u32 +(*BFP_BTC_GET_BT_COEX_SUPPORTED_VERSION)( + void * pBtcContext + ); + +typedef u32 +(*BFP_BTC_GET_PHYDM_VERSION)( + void * pBtcContext + ); + +typedef void +(*BTC_PHYDM_MODIFY_RA_PCR_THRESHLOD)( + void * pDM_Odm, + u8 RA_offset_direction, + u8 RA_threshold_offset + ); + +typedef u32 +(*BTC_PHYDM_CMNINFOQUERY)( + void * pDM_Odm, + u8 info_type + ); + +typedef u8 +(*BFP_BTC_GET_ANT_DET_VAL_FROM_BT)( + + void * pBtcContext + ); + +typedef u8 +(*BFP_BTC_GET_BLE_SCAN_TYPE_FROM_BT)( + void * pBtcContext + ); + +typedef u32 +(*BFP_BTC_GET_BLE_SCAN_PARA_FROM_BT)( + void * pBtcContext, + u8 scanType + ); + +typedef bool +(*BFP_BTC_GET_BT_AFH_MAP_FROM_BT)( + void * pBtcContext, + u8 mapType, + u8 * afhMap + ); + +struct btc_bt_info { + bool bt_disabled; + bool bt_enable_disable_change; + u8 rssi_adjust_for_agc_table_on; + u8 rssi_adjust_for_1ant_coex_type; + bool pre_bt_ctrl_agg_buf_size; + bool bt_ctrl_agg_buf_size; + bool pre_reject_agg_pkt; + bool reject_agg_pkt; + bool increase_scan_dev_num; + bool bt_tx_rx_mask; + u8 pre_agg_buf_size; + u8 agg_buf_size; + bool bt_busy; + bool limited_dig; + u16 bt_hci_ver; + u16 bt_real_fw_ver; + u8 bt_fw_ver; + u32 get_bt_fw_ver_cnt; + u32 bt_get_fw_ver; + bool miracast_plus_bt; + + bool bt_disable_low_pwr; + + bool bt_ctrl_lps; + bool bt_lps_on; + bool force_to_roam; /* for 1Ant solution */ + u8 lps_val; + u8 rpwm_val; + u32 ra_mask; +}; + +struct btc_stack_info { + bool profile_notified; + u16 hci_version; /* stack hci version */ + u8 num_of_link; + bool bt_link_exist; + bool sco_exist; + bool acl_exist; + bool a2dp_exist; + bool hid_exist; + u8 num_of_hid; + bool pan_exist; + bool unknown_acl_exist; + s8 min_bt_rssi; +}; + +struct btc_bt_link_info { + bool bt_link_exist; + bool bt_hi_pri_link_exist; + bool sco_exist; + bool sco_only; + bool a2dp_exist; + bool a2dp_only; + bool hid_exist; + bool hid_only; + bool pan_exist; + bool pan_only; + bool slave_role; + bool acl_busy; +}; + +struct btc_statistics { + u32 cnt_bind; + u32 cnt_power_on; + u32 cnt_pre_load_firmware; + u32 cnt_init_hw_config; + u32 cnt_init_coex_dm; + u32 cnt_ips_notify; + u32 cnt_lps_notify; + u32 cnt_scan_notify; + u32 cnt_connect_notify; + u32 cnt_media_status_notify; + u32 cnt_specific_packet_notify; + u32 cnt_bt_info_notify; + u32 cnt_rf_status_notify; + u32 cnt_periodical; + u32 cnt_coex_dm_switch; + u32 cnt_stack_operation_notify; + u32 cnt_dbg_ctrl; +}; + +struct btc_coexist { + bool bBinded; /*make sure only one adapter can bind the data context*/ + void * Adapter; /*default adapter*/ + struct btc_board_info board_info; + struct btc_bt_info bt_info; /*some bt info referenced by non-bt module*/ + struct btc_stack_info stack_info; + struct btc_bt_link_info bt_link_info; + BTC_CHIP_INTERFACE chip_interface; + void * odm_priv; + + bool initilized; + bool stop_coex_dm; + bool manual_control; + bool bdontenterLPS; + u8 * cli_buf; + struct btc_statistics statistics; + u8 pwrModeVal[10]; + + /* function pointers */ + /* io related */ + BFP_BTC_R1 btc_read_1byte; + BFP_BTC_W1 btc_write_1byte; + BFP_BTC_W1_BIT_MASK btc_write_1byte_bitmask; + BFP_BTC_R2 btc_read_2byte; + BFP_BTC_W2 btc_write_2byte; + BFP_BTC_R4 btc_read_4byte; + BFP_BTC_W4 btc_write_4byte; + BFP_BTC_LOCAL_REG_W1 btc_write_local_reg_1byte; + /* read/write bb related */ + BFP_BTC_SET_BB_REG btc_set_bb_reg; + BFP_BTC_GET_BB_REG btc_get_bb_reg; + + /* read/write rf related */ + BFP_BTC_SET_RF_REG btc_set_rf_reg; + BFP_BTC_GET_RF_REG btc_get_rf_reg; + + /* fill h2c related */ + BFP_BTC_FILL_H2C btc_fill_h2c; + /* other */ + BFP_BTC_DISP_DBG_MSG btc_disp_dbg_msg; + /* normal get/set related */ + BFP_BTC_GET btc_get; + BFP_BTC_SET btc_set; + + BFP_BTC_GET_BT_REG btc_get_bt_reg; + BFP_BTC_SET_BT_REG btc_set_bt_reg; + + BFP_BTC_SET_BT_ANT_DETECTION btc_set_bt_ant_detection; + + BFP_BTC_COEX_H2C_PROCESS btc_coex_h2c_process; + BFP_BTC_SET_BT_TRX_MASK btc_set_bt_trx_mask; + BFP_BTC_GET_BT_COEX_SUPPORTED_FEATURE btc_get_bt_coex_supported_feature; + BFP_BTC_GET_BT_COEX_SUPPORTED_VERSION btc_get_bt_coex_supported_version; + BFP_BTC_GET_PHYDM_VERSION btc_get_bt_phydm_version; + BTC_PHYDM_MODIFY_RA_PCR_THRESHLOD btc_phydm_modify_RA_PCR_threshold; + BTC_PHYDM_CMNINFOQUERY btc_phydm_query_PHY_counter; + BFP_BTC_GET_ANT_DET_VAL_FROM_BT btc_get_ant_det_val_from_bt; + BFP_BTC_GET_BLE_SCAN_TYPE_FROM_BT btc_get_ble_scan_type_from_bt; + BFP_BTC_GET_BLE_SCAN_PARA_FROM_BT btc_get_ble_scan_para_from_bt; + BFP_BTC_GET_BT_AFH_MAP_FROM_BT btc_get_bt_afh_map_from_bt; +}; +typedef struct btc_coexist *PBTC_COEXIST; + +extern struct btc_coexist GLBtCoexist; + +bool +EXhalbtcoutsrc_InitlizeVariables( + void * Adapter + ); +void +EXhalbtcoutsrc_PowerOnSetting( + PBTC_COEXIST pBtCoexist + ); +void +EXhalbtcoutsrc_PreLoadFirmware( + PBTC_COEXIST pBtCoexist + ); +void +EXhalbtcoutsrc_InitHwConfig( + PBTC_COEXIST pBtCoexist, + bool bWifiOnly + ); +void +EXhalbtcoutsrc_InitCoexDm( + PBTC_COEXIST pBtCoexist + ); +void +EXhalbtcoutsrc_IpsNotify( + PBTC_COEXIST pBtCoexist, + u8 type + ); +void +EXhalbtcoutsrc_LpsNotify( + PBTC_COEXIST pBtCoexist, + u8 type + ); +void +EXhalbtcoutsrc_ScanNotify( + PBTC_COEXIST pBtCoexist, + u8 type + ); +void +EXhalbtcoutsrc_SetAntennaPathNotify( + PBTC_COEXIST pBtCoexist, + u8 type + ); +void +EXhalbtcoutsrc_ConnectNotify( + PBTC_COEXIST pBtCoexist, + u8 action + ); +void +EXhalbtcoutsrc_MediaStatusNotify( + PBTC_COEXIST pBtCoexist, + RT_MEDIA_STATUS mediaStatus + ); +void +EXhalbtcoutsrc_SpecificPacketNotify( + PBTC_COEXIST pBtCoexist, + u8 pktType + ); +void +EXhalbtcoutsrc_BtInfoNotify( + PBTC_COEXIST pBtCoexist, + u8 * tmpBuf, + u8 length + ); +void +EXhalbtcoutsrc_RfStatusNotify( + PBTC_COEXIST pBtCoexist, + u8 type + ); +void +EXhalbtcoutsrc_StackOperationNotify( + PBTC_COEXIST pBtCoexist, + u8 type + ); +void +EXhalbtcoutsrc_HaltNotify( + PBTC_COEXIST pBtCoexist + ); +void +EXhalbtcoutsrc_PnpNotify( + PBTC_COEXIST pBtCoexist, + u8 pnpState + ); +void +EXhalbtcoutsrc_CoexDmSwitch( + PBTC_COEXIST pBtCoexist + ); +void +EXhalbtcoutsrc_Periodical( + PBTC_COEXIST pBtCoexist + ); +void +EXhalbtcoutsrc_DbgControl( + PBTC_COEXIST pBtCoexist, + u8 opCode, + u8 opLen, + u8 * pData + ); +void +EXhalbtcoutsrc_AntennaDetection( + PBTC_COEXIST pBtCoexist, + u32 centFreq, + u32 offset, + u32 span, + u32 seconds + ); +void +EXhalbtcoutsrc_StackUpdateProfileInfo( + void + ); +void +EXhalbtcoutsrc_SetHciVersion( + u16 hciVersion + ); +void +EXhalbtcoutsrc_SetBtPatchVersion( + u16 btHciVersion, + u16 btPatchVersion + ); +void +EXhalbtcoutsrc_UpdateMinBtRssi( + s8 btRssi + ); +void +EXhalbtcoutsrc_SetChipType( + u8 chipType + ); +void +EXhalbtcoutsrc_SetAntNum( + u8 type, + u8 antNum + ); +void +EXhalbtcoutsrc_SetSingleAntPath( + u8 singleAntPath + ); +void +EXhalbtcoutsrc_DisplayBtCoexInfo( + PBTC_COEXIST pBtCoexist + ); +void +EXhalbtcoutsrc_DisplayAntDetection( + PBTC_COEXIST pBtCoexist + ); + +#define MASKBYTE0 0xff +#define MASKBYTE1 0xff00 +#define MASKBYTE2 0xff0000 +#define MASKBYTE3 0xff000000 +#define MASKHWORD 0xffff0000 +#define MASKLWORD 0x0000ffff +#define MASKDWORD 0xffffffff +#define MASK12BITS 0xfff +#define MASKH4BITS 0xf0000000 +#define MASKOFDM_D 0xffc00000 +#define MASKCCK 0x3f3f3f3f + +#endif diff --git a/include/ieee80211.h b/ieee80211.h similarity index 100% rename from include/ieee80211.h rename to ieee80211.h diff --git a/include/ieee80211_ext.h b/ieee80211_ext.h similarity index 100% rename from include/ieee80211_ext.h rename to ieee80211_ext.h diff --git a/include/if_ether.h b/if_ether.h similarity index 100% rename from include/if_ether.h rename to if_ether.h diff --git a/include/linux/wireless.h b/include/linux/wireless.h deleted file mode 100644 index de76fe1..0000000 --- a/include/linux/wireless.h +++ /dev/null @@ -1,70 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* Copyright(c) 2007 - 2016 Realtek Corporation. All rights reserved. */ - - -#ifndef _LINUX_WIRELESS_H -#define _LINUX_WIRELESS_H - -/***************************** INCLUDES *****************************/ - -#define __user -/* typedef uint16_t __u16; */ -#include /* for "struct sockaddr" et al */ -#include /* for IFNAMSIZ and co... */ - -/****************************** TYPES ******************************/ -#ifdef CONFIG_COMPAT -struct compat_iw_point { - compat_caddr_t pointer; - __u16 length; - __u16 flags; -}; -#endif -/* --------------------------- SUBTYPES --------------------------- */ -/* - * For all data larger than 16 octets, we need to use a - * pointer to memory allocated in user space. - */ -struct iw_point { - void __user *pointer; /* Pointer to the data (in user space) */ - __u16 length; /* number of fields or size in bytes */ - __u16 flags; /* Optional params */ -}; - - -/* ------------------------ IOCTL REQUEST ------------------------ */ -/* - * This structure defines the payload of an ioctl, and is used - * below. - * - * Note that this structure should fit on the memory footprint - * of iwreq (which is the same as ifreq), which mean a max size of - * 16 octets = 128 bits. Warning, pointers might be 64 bits wide... - * You should check this when increasing the structures defined - * above in this file... - */ -union iwreq_data { - /* Config - generic */ - char name[IFNAMSIZ]; - /* Name : used to verify the presence of wireless extensions. - * Name of the protocol/provider... */ - - struct iw_point data; /* Other large parameters */ -}; - -/* - * The structure to exchange data for ioctl. - * This structure is the same as 'struct ifreq', but (re)defined for - * convenience... - * Do I need to remind you about structure size (32 octets) ? - */ -struct iwreq { - union { - char ifrn_name[IFNAMSIZ]; /* if name, e.g. "eth0" */ - } ifr_ifrn; - - /* Data part (defined just above) */ - union iwreq_data u; -}; - -#endif /* _LINUX_WIRELESS_H */ diff --git a/ioctl_linux.c b/ioctl_linux.c index 60ec072..ab845a9 100644 --- a/ioctl_linux.c +++ b/ioctl_linux.c @@ -7,9 +7,9 @@ #include #include #include -#include "../phydm_precomp.h" +#include "phydm_precomp.h" #ifdef RTW_HALMAC -#include "../hal_halmac.h" +#include "hal_halmac.h" #endif #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)) diff --git a/ioctl_mp.c b/ioctl_mp.c index 35f675e..f2d8471 100644 --- a/ioctl_mp.c +++ b/ioctl_mp.c @@ -6,7 +6,7 @@ #include #include #include -#include "../phydm_precomp.h" +#include "phydm_precomp.h" /* * Input Format: %s,%d,%d diff --git a/include/ip.h b/ip.h similarity index 100% rename from include/ip.h rename to ip.h diff --git a/include/mlme_osdep.h b/mlme_osdep.h similarity index 100% rename from include/mlme_osdep.h rename to mlme_osdep.h diff --git a/include/mp_custom_oid.h b/mp_custom_oid.h similarity index 100% rename from include/mp_custom_oid.h rename to mp_custom_oid.h diff --git a/include/nic_spec.h b/nic_spec.h similarity index 100% rename from include/nic_spec.h rename to nic_spec.h diff --git a/include/osdep_intf.h b/osdep_intf.h similarity index 98% rename from include/osdep_intf.h rename to osdep_intf.h index b6a79cd..c7dc71f 100644 --- a/include/osdep_intf.h +++ b/osdep_intf.h @@ -85,10 +85,10 @@ u16 rtw_recv_select_queue(struct sk_buff *skb); int rtw_ndev_notifier_register(void); void rtw_ndev_notifier_unregister(void); -#include "../rtw_proc.h" +#include "rtw_proc.h" #ifdef CONFIG_IOCTL_CFG80211 - #include "../ioctl_cfg80211.h" + #include "ioctl_cfg80211.h" #endif /* CONFIG_IOCTL_CFG80211 */ u8 rtw_rtnl_lock_needed(struct dvobj_priv *dvobj); diff --git a/include/osdep_service.h b/osdep_service.h similarity index 100% rename from include/osdep_service.h rename to osdep_service.h diff --git a/include/osdep_service_linux.h b/osdep_service_linux.h similarity index 100% rename from include/osdep_service_linux.h rename to osdep_service_linux.h diff --git a/include/recv_osdep.h b/recv_osdep.h similarity index 100% rename from include/recv_osdep.h rename to recv_osdep.h diff --git a/include/rtl8188e_cmd.h b/rtl8188e_cmd.h similarity index 100% rename from include/rtl8188e_cmd.h rename to rtl8188e_cmd.h diff --git a/include/rtl8188e_dm.h b/rtl8188e_dm.h similarity index 100% rename from include/rtl8188e_dm.h rename to rtl8188e_dm.h diff --git a/include/rtl8188e_hal.h b/rtl8188e_hal.h similarity index 100% rename from include/rtl8188e_hal.h rename to rtl8188e_hal.h diff --git a/include/rtl8188e_led.h b/rtl8188e_led.h similarity index 100% rename from include/rtl8188e_led.h rename to rtl8188e_led.h diff --git a/include/rtl8188e_recv.h b/rtl8188e_recv.h similarity index 100% rename from include/rtl8188e_recv.h rename to rtl8188e_recv.h diff --git a/include/rtl8188e_rf.h b/rtl8188e_rf.h similarity index 100% rename from include/rtl8188e_rf.h rename to rtl8188e_rf.h diff --git a/include/rtl8188e_spec.h b/rtl8188e_spec.h similarity index 100% rename from include/rtl8188e_spec.h rename to rtl8188e_spec.h diff --git a/include/rtl8188e_sreset.h b/rtl8188e_sreset.h similarity index 100% rename from include/rtl8188e_sreset.h rename to rtl8188e_sreset.h diff --git a/include/rtl8188e_xmit.h b/rtl8188e_xmit.h similarity index 100% rename from include/rtl8188e_xmit.h rename to rtl8188e_xmit.h diff --git a/include/rtw_android.h b/rtw_android.h similarity index 100% rename from include/rtw_android.h rename to rtw_android.h diff --git a/include/rtw_ap.h b/rtw_ap.h similarity index 100% rename from include/rtw_ap.h rename to rtw_ap.h diff --git a/include/rtw_beamforming.h b/rtw_beamforming.h similarity index 100% rename from include/rtw_beamforming.h rename to rtw_beamforming.h diff --git a/include/rtw_br_ext.h b/rtw_br_ext.h similarity index 100% rename from include/rtw_br_ext.h rename to rtw_br_ext.h diff --git a/include/rtw_bt_mp.h b/rtw_bt_mp.h similarity index 100% rename from include/rtw_bt_mp.h rename to rtw_bt_mp.h diff --git a/include/rtw_btcoex.h b/rtw_btcoex.h similarity index 100% rename from include/rtw_btcoex.h rename to rtw_btcoex.h diff --git a/include/rtw_btcoex_wifionly.h b/rtw_btcoex_wifionly.h similarity index 100% rename from include/rtw_btcoex_wifionly.h rename to rtw_btcoex_wifionly.h diff --git a/include/rtw_cmd.h b/rtw_cmd.h similarity index 100% rename from include/rtw_cmd.h rename to rtw_cmd.h diff --git a/include/rtw_debug.h b/rtw_debug.h similarity index 100% rename from include/rtw_debug.h rename to rtw_debug.h diff --git a/include/rtw_eeprom.h b/rtw_eeprom.h similarity index 100% rename from include/rtw_eeprom.h rename to rtw_eeprom.h diff --git a/rtw_efuse.c b/rtw_efuse.c index 1f25233..bdef202 100644 --- a/rtw_efuse.c +++ b/rtw_efuse.c @@ -6,7 +6,7 @@ #include #include -#include "../efuse_mask.h" +#include "efuse_mask.h" /*------------------------Define local variable------------------------------*/ u8 fakeEfuseBank = {0}; diff --git a/include/rtw_efuse.h b/rtw_efuse.h similarity index 100% rename from include/rtw_efuse.h rename to rtw_efuse.h diff --git a/include/rtw_event.h b/rtw_event.h similarity index 100% rename from include/rtw_event.h rename to rtw_event.h diff --git a/include/rtw_ht.h b/rtw_ht.h similarity index 100% rename from include/rtw_ht.h rename to rtw_ht.h diff --git a/include/rtw_io.h b/rtw_io.h similarity index 100% rename from include/rtw_io.h rename to rtw_io.h diff --git a/include/rtw_ioctl.h b/rtw_ioctl.h similarity index 100% rename from include/rtw_ioctl.h rename to rtw_ioctl.h diff --git a/include/rtw_ioctl_query.h b/rtw_ioctl_query.h similarity index 100% rename from include/rtw_ioctl_query.h rename to rtw_ioctl_query.h diff --git a/include/rtw_ioctl_rtl.h b/rtw_ioctl_rtl.h similarity index 100% rename from include/rtw_ioctl_rtl.h rename to rtw_ioctl_rtl.h diff --git a/include/rtw_ioctl_set.h b/rtw_ioctl_set.h similarity index 100% rename from include/rtw_ioctl_set.h rename to rtw_ioctl_set.h diff --git a/include/rtw_iol.h b/rtw_iol.h similarity index 100% rename from include/rtw_iol.h rename to rtw_iol.h diff --git a/include/rtw_mcc.h b/rtw_mcc.h similarity index 100% rename from include/rtw_mcc.h rename to rtw_mcc.h diff --git a/include/rtw_mem.h b/rtw_mem.h similarity index 100% rename from include/rtw_mem.h rename to rtw_mem.h diff --git a/include/rtw_mi.h b/rtw_mi.h similarity index 100% rename from include/rtw_mi.h rename to rtw_mi.h diff --git a/include/rtw_mlme.h b/rtw_mlme.h similarity index 100% rename from include/rtw_mlme.h rename to rtw_mlme.h diff --git a/include/rtw_mlme_ext.h b/rtw_mlme_ext.h similarity index 100% rename from include/rtw_mlme_ext.h rename to rtw_mlme_ext.h diff --git a/rtw_mp.c b/rtw_mp.c index 81af3d0..29548c4 100644 --- a/rtw_mp.c +++ b/rtw_mp.c @@ -4,7 +4,7 @@ #define _RTW_MP_C_ #include -#include "../phydm_precomp.h" +#include "phydm_precomp.h" #ifdef CONFIG_MP_VHT_HW_TX_MODE #define CEILING_POS(X) ((X - (int)(X)) > 0 ? (int)(X + 1) : (int)(X)) diff --git a/include/rtw_mp.h b/rtw_mp.h similarity index 100% rename from include/rtw_mp.h rename to rtw_mp.h diff --git a/include/rtw_mp_ioctl.h b/rtw_mp_ioctl.h similarity index 100% rename from include/rtw_mp_ioctl.h rename to rtw_mp_ioctl.h diff --git a/include/rtw_mp_phy_regdef.h b/rtw_mp_phy_regdef.h similarity index 100% rename from include/rtw_mp_phy_regdef.h rename to rtw_mp_phy_regdef.h diff --git a/include/rtw_odm.h b/rtw_odm.h similarity index 98% rename from include/rtw_odm.h rename to rtw_odm.h index 753f96e..aa3f826 100644 --- a/include/rtw_odm.h +++ b/rtw_odm.h @@ -5,7 +5,7 @@ #define __RTW_ODM_H__ #include -#include "../phydm_types.h" +#include "phydm_types.h" /* * This file provides utilities/wrappers for rtw driver to use ODM */ diff --git a/include/rtw_p2p.h b/rtw_p2p.h similarity index 100% rename from include/rtw_p2p.h rename to rtw_p2p.h diff --git a/include/rtw_pwrctrl.h b/rtw_pwrctrl.h similarity index 100% rename from include/rtw_pwrctrl.h rename to rtw_pwrctrl.h diff --git a/include/rtw_qos.h b/rtw_qos.h similarity index 100% rename from include/rtw_qos.h rename to rtw_qos.h diff --git a/include/rtw_recv.h b/rtw_recv.h similarity index 100% rename from include/rtw_recv.h rename to rtw_recv.h diff --git a/include/rtw_rf.h b/rtw_rf.h similarity index 100% rename from include/rtw_rf.h rename to rtw_rf.h diff --git a/include/rtw_sdio.h b/rtw_sdio.h similarity index 100% rename from include/rtw_sdio.h rename to rtw_sdio.h diff --git a/include/rtw_security.h b/rtw_security.h similarity index 100% rename from include/rtw_security.h rename to rtw_security.h diff --git a/include/rtw_sreset.h b/rtw_sreset.h similarity index 100% rename from include/rtw_sreset.h rename to rtw_sreset.h diff --git a/include/rtw_tdls.h b/rtw_tdls.h similarity index 100% rename from include/rtw_tdls.h rename to rtw_tdls.h diff --git a/include/rtw_version.h b/rtw_version.h similarity index 100% rename from include/rtw_version.h rename to rtw_version.h diff --git a/include/rtw_vht.h b/rtw_vht.h similarity index 100% rename from include/rtw_vht.h rename to rtw_vht.h diff --git a/include/rtw_wapi.h b/rtw_wapi.h similarity index 100% rename from include/rtw_wapi.h rename to rtw_wapi.h diff --git a/include/rtw_wifi_regd.h b/rtw_wifi_regd.h similarity index 100% rename from include/rtw_wifi_regd.h rename to rtw_wifi_regd.h diff --git a/include/rtw_xmit.h b/rtw_xmit.h similarity index 100% rename from include/rtw_xmit.h rename to rtw_xmit.h diff --git a/include/sta_info.h b/sta_info.h similarity index 100% rename from include/sta_info.h rename to sta_info.h diff --git a/include/usb_hal.h b/usb_hal.h similarity index 100% rename from include/usb_hal.h rename to usb_hal.h diff --git a/include/usb_ops.h b/usb_ops.h similarity index 100% rename from include/usb_ops.h rename to usb_ops.h diff --git a/include/usb_ops_linux.h b/usb_ops_linux.h similarity index 100% rename from include/usb_ops_linux.h rename to usb_ops_linux.h diff --git a/include/usb_osintf.h b/usb_osintf.h similarity index 100% rename from include/usb_osintf.h rename to usb_osintf.h diff --git a/include/usb_vendor_req.h b/usb_vendor_req.h similarity index 100% rename from include/usb_vendor_req.h rename to usb_vendor_req.h diff --git a/include/wifi.h b/wifi.h similarity index 100% rename from include/wifi.h rename to wifi.h diff --git a/include/wlan_bssdef.h b/wlan_bssdef.h similarity index 100% rename from include/wlan_bssdef.h rename to wlan_bssdef.h diff --git a/include/xmit_osdep.h b/xmit_osdep.h similarity index 100% rename from include/xmit_osdep.h rename to xmit_osdep.h