diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.h')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.h | 66 |
1 files changed, 37 insertions, 29 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.h b/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.h index 4325ecd58f0c..3723d7476717 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.h +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/hal_btc.h | |||
@@ -11,10 +11,6 @@ | |||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
12 | * more details. | 12 | * more details. |
13 | * | 13 | * |
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA | ||
17 | * | ||
18 | * The full GNU General Public License is included in this distribution in the | 14 | * The full GNU General Public License is included in this distribution in the |
19 | * file called LICENSE. | 15 | * file called LICENSE. |
20 | * | 16 | * |
@@ -24,8 +20,7 @@ | |||
24 | * Hsinchu 300, Taiwan. | 20 | * Hsinchu 300, Taiwan. |
25 | * Larry Finger <Larry.Finger@lwfinger.net> | 21 | * Larry Finger <Larry.Finger@lwfinger.net> |
26 | * | 22 | * |
27 | **************************************************************************** | 23 | *****************************************************************************/ |
28 | */ | ||
29 | 24 | ||
30 | #ifndef __RTL8723E_HAL_BTC_H__ | 25 | #ifndef __RTL8723E_HAL_BTC_H__ |
31 | #define __RTL8723E_HAL_BTC_H__ | 26 | #define __RTL8723E_HAL_BTC_H__ |
@@ -34,21 +29,31 @@ | |||
34 | #include "btc.h" | 29 | #include "btc.h" |
35 | #include "hal_bt_coexist.h" | 30 | #include "hal_bt_coexist.h" |
36 | 31 | ||
37 | #define BT_TXRX_CNT_THRES_1 1200 | 32 | #define BT_TXRX_CNT_THRES_1 1200 |
38 | #define BT_TXRX_CNT_THRES_2 1400 | 33 | #define BT_TXRX_CNT_THRES_2 1400 |
39 | #define BT_TXRX_CNT_THRES_3 3000 | 34 | #define BT_TXRX_CNT_THRES_3 3000 |
40 | #define BT_TXRX_CNT_LEVEL_0 0 /* < 1200 */ | 35 | /* < 1200 */ |
41 | #define BT_TXRX_CNT_LEVEL_1 1 /* >= 1200 && < 1400 */ | 36 | #define BT_TXRX_CNT_LEVEL_0 0 |
42 | #define BT_TXRX_CNT_LEVEL_2 2 /* >= 1400 */ | 37 | /* >= 1200 && < 1400 */ |
43 | #define BT_TXRX_CNT_LEVEL_3 3 | 38 | #define BT_TXRX_CNT_LEVEL_1 1 |
39 | /* >= 1400 */ | ||
40 | #define BT_TXRX_CNT_LEVEL_2 2 | ||
41 | #define BT_TXRX_CNT_LEVEL_3 3 | ||
42 | |||
43 | #define BT_COEX_DISABLE 0 | ||
44 | #define BT_Q_PKT_OFF 0 | ||
45 | #define BT_Q_PKT_ON 1 | ||
46 | |||
47 | #define BT_TX_PWR_OFF 0 | ||
48 | #define BT_TX_PWR_ON 1 | ||
44 | 49 | ||
45 | /* TDMA mode definition */ | 50 | /* TDMA mode definition */ |
46 | #define TDMA_2ANT 0 | 51 | #define TDMA_2ANT 0 |
47 | #define TDMA_1ANT 1 | 52 | #define TDMA_1ANT 1 |
48 | #define TDMA_NAV_OFF 0 | 53 | #define TDMA_NAV_OFF 0 |
49 | #define TDMA_NAV_ON 1 | 54 | #define TDMA_NAV_ON 1 |
50 | #define TDMA_DAC_SWING_OFF 0 | 55 | #define TDMA_DAC_SWING_OFF 0 |
51 | #define TDMA_DAC_SWING_ON 1 | 56 | #define TDMA_DAC_SWING_ON 1 |
52 | 57 | ||
53 | /* PTA mode related definition */ | 58 | /* PTA mode related definition */ |
54 | #define BT_PTA_MODE_OFF 0 | 59 | #define BT_PTA_MODE_OFF 0 |
@@ -80,6 +85,7 @@ enum bt_traffic_mode_profile { | |||
80 | BT_PROFILE_SCO | 85 | BT_PROFILE_SCO |
81 | }; | 86 | }; |
82 | 87 | ||
88 | /* | ||
83 | enum hci_ext_bt_operation { | 89 | enum hci_ext_bt_operation { |
84 | HCI_BT_OP_NONE = 0x0, | 90 | HCI_BT_OP_NONE = 0x0, |
85 | HCI_BT_OP_INQUIRE_START = 0x1, | 91 | HCI_BT_OP_INQUIRE_START = 0x1, |
@@ -93,6 +99,7 @@ enum hci_ext_bt_operation { | |||
93 | HCI_BT_OP_BT_DEV_DISABLE = 0x9, | 99 | HCI_BT_OP_BT_DEV_DISABLE = 0x9, |
94 | HCI_BT_OP_MAX, | 100 | HCI_BT_OP_MAX, |
95 | }; | 101 | }; |
102 | */ | ||
96 | 103 | ||
97 | enum bt_spec { | 104 | enum bt_spec { |
98 | BT_SPEC_1_0_b = 0x00, | 105 | BT_SPEC_1_0_b = 0x00, |
@@ -123,12 +130,12 @@ enum bt_state { | |||
123 | BT_INFO_STATE_MAX = 7 | 130 | BT_INFO_STATE_MAX = 7 |
124 | }; | 131 | }; |
125 | 132 | ||
126 | enum rtl8723ae_c2h_evt { | 133 | enum rtl8723e_c2h_evt { |
127 | C2H_DBG = 0, | 134 | C2H_DBG = 0, |
128 | C2H_TSF = 1, | 135 | C2H_TSF = 1, |
129 | C2H_AP_RPT_RSP = 2, | 136 | C2H_AP_RPT_RSP = 2, |
130 | C2H_CCX_TX_RPT = 3, /* The FW notify the report of the specific */ | 137 | /* The FW notify the report of the specific tx packet. */ |
131 | /* tx packet. */ | 138 | C2H_CCX_TX_RPT = 3, |
132 | C2H_BT_RSSI = 4, | 139 | C2H_BT_RSSI = 4, |
133 | C2H_BT_OP_MODE = 5, | 140 | C2H_BT_OP_MODE = 5, |
134 | C2H_HW_INFO_EXCH = 10, | 141 | C2H_HW_INFO_EXCH = 10, |
@@ -137,15 +144,16 @@ enum rtl8723ae_c2h_evt { | |||
137 | MAX_C2HEVENT | 144 | MAX_C2HEVENT |
138 | }; | 145 | }; |
139 | 146 | ||
140 | void rtl8723ae_dm_bt_fw_coex_all_off_8723a(struct ieee80211_hw *hw); | 147 | void rtl8723e_dm_bt_fw_coex_all_off_8723a(struct ieee80211_hw *hw); |
141 | void rtl8723ae_dm_bt_sw_coex_all_off_8723a(struct ieee80211_hw *hw); | 148 | void rtl8723e_dm_bt_sw_coex_all_off_8723a(struct ieee80211_hw *hw); |
142 | void rtl8723ae_dm_bt_hw_coex_all_off_8723a(struct ieee80211_hw *hw); | 149 | void rtl8723e_dm_bt_hw_coex_all_off_8723a(struct ieee80211_hw *hw); |
143 | void rtl8723ae_dm_bt_coexist_8723(struct ieee80211_hw *hw); | 150 | void rtl8723e_dm_bt_coexist_8723(struct ieee80211_hw *hw); |
144 | void rtl8723ae_dm_bt_set_bt_dm(struct ieee80211_hw *hw, | 151 | void rtl8723e_dm_bt_set_bt_dm(struct ieee80211_hw *hw, |
145 | struct btdm_8723 *p_btdm); | 152 | struct btdm_8723 *p_btdm); |
146 | void rtl_8723e_c2h_command_handle(struct ieee80211_hw *hw); | 153 | void rtl_8723e_c2h_command_handle(struct ieee80211_hw *hw); |
147 | void rtl_8723e_bt_wifi_media_status_notify(struct ieee80211_hw *hw, | 154 | void rtl_8723e_bt_wifi_media_status_notify(struct ieee80211_hw *hw, |
148 | bool mstatus); | 155 | bool mstatus); |
149 | void rtl8723ae_bt_coex_off_before_lps(struct ieee80211_hw *hw); | 156 | void rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps( |
157 | struct ieee80211_hw *hw); | ||
150 | 158 | ||
151 | #endif | 159 | #endif |