1
2
3
4
5
6
7 #ifndef __RTL8723B_SPEC_H__
8 #define __RTL8723B_SPEC_H__
9
10 #include <autoconf.h>
11
12 #define HAL_NAV_UPPER_UNIT_8723B 128
13
14
15
16
17
18
19 #define REG_RSV_CTRL_8723B 0x001C
20 #define REG_BT_WIFI_ANTENNA_SWITCH_8723B 0x0038
21 #define REG_HSISR_8723B 0x005c
22 #define REG_PAD_CTRL1_8723B 0x0064
23 #define REG_AFE_CTRL_4_8723B 0x0078
24 #define REG_HMEBOX_DBG_0_8723B 0x0088
25 #define REG_HMEBOX_DBG_1_8723B 0x008A
26 #define REG_HMEBOX_DBG_2_8723B 0x008C
27 #define REG_HMEBOX_DBG_3_8723B 0x008E
28 #define REG_HIMR0_8723B 0x00B0
29 #define REG_HISR0_8723B 0x00B4
30 #define REG_HIMR1_8723B 0x00B8
31 #define REG_HISR1_8723B 0x00BC
32 #define REG_PMC_DBG_CTRL2_8723B 0x00CC
33
34
35
36
37
38
39 #define REG_C2HEVT_CMD_ID_8723B 0x01A0
40 #define REG_C2HEVT_CMD_LEN_8723B 0x01AE
41 #define REG_WOWLAN_WAKE_REASON 0x01C7
42 #define REG_WOWLAN_GTK_DBG1 0x630
43 #define REG_WOWLAN_GTK_DBG2 0x634
44
45 #define REG_HMEBOX_EXT0_8723B 0x01F0
46 #define REG_HMEBOX_EXT1_8723B 0x01F4
47 #define REG_HMEBOX_EXT2_8723B 0x01F8
48 #define REG_HMEBOX_EXT3_8723B 0x01FC
49
50
51
52
53
54
55
56
57
58
59
60
61 #define REG_RXDMA_CONTROL_8723B 0x0286
62 #define REG_RXDMA_MODE_CTRL_8723B 0x0290
63
64
65
66
67
68
69 #define REG_PCIE_CTRL_REG_8723B 0x0300
70 #define REG_INT_MIG_8723B 0x0304
71 #define REG_BCNQ_DESA_8723B 0x0308
72 #define REG_HQ_DESA_8723B 0x0310
73 #define REG_MGQ_DESA_8723B 0x0318
74 #define REG_VOQ_DESA_8723B 0x0320
75 #define REG_VIQ_DESA_8723B 0x0328
76 #define REG_BEQ_DESA_8723B 0x0330
77 #define REG_BKQ_DESA_8723B 0x0338
78 #define REG_RX_DESA_8723B 0x0340
79 #define REG_DBI_WDATA_8723B 0x0348
80 #define REG_DBI_RDATA_8723B 0x034C
81 #define REG_DBI_ADDR_8723B 0x0350
82 #define REG_DBI_FLAG_8723B 0x0352
83 #define REG_MDIO_WDATA_8723B 0x0354
84 #define REG_MDIO_RDATA_8723B 0x0356
85 #define REG_MDIO_CTL_8723B 0x0358
86 #define REG_DBG_SEL_8723B 0x0360
87 #define REG_PCIE_HRPWM_8723B 0x0361
88 #define REG_PCIE_HCPWM_8723B 0x0363
89 #define REG_PCIE_MULTIFET_CTRL_8723B 0x036A
90
91
92
93
94
95
96 #define REG_TXPKTBUF_BCNQ_BDNY_8723B 0x0424
97 #define REG_TXPKTBUF_MGQ_BDNY_8723B 0x0425
98 #define REG_TXPKTBUF_WMAC_LBK_BF_HD_8723B 0x045D
99 #ifdef CONFIG_WOWLAN
100 #define REG_TXPKTBUF_IV_LOW 0x0484
101 #define REG_TXPKTBUF_IV_HIGH 0x0488
102 #endif
103 #define REG_AMPDU_BURST_MODE_8723B 0x04BC
104
105
106
107
108
109
110 #define REG_SECONDARY_CCA_CTRL_8723B 0x0577
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133 #define SDIO_REG_HCPWM1_8723B 0x025
134
135
136
137
138
139
140
141 #define MASK_HSISR_CLEAR (HSISR_GPIO12_0_INT |\
142 HSISR_SPS_OCP_INT |\
143 HSISR_RON_INT |\
144 HSISR_PDNINT |\
145 HSISR_GPIO9_INT)
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164 #define BIT_USB_RXDMA_AGG_EN BIT(31)
165 #define RXDMA_AGG_MODE_EN BIT(1)
166
167 #ifdef CONFIG_WOWLAN
168 #define RXPKT_RELEASE_POLL BIT(16)
169 #define RXDMA_IDLE BIT(17)
170 #define RW_RELEASE_EN BIT(18)
171 #endif
172
173
174
175
176
177
178
179
180
181
182 #define BIT_BCN_PORT_SEL BIT5
183
184
185
186
187
188
189
190
191
192
193
194
195 #define EEPROM_RF_GAIN_OFFSET 0xC1
196 #define EEPROM_RF_GAIN_VAL 0x1F6
197
198
199
200
201 #define IMR_DISABLED_8723B 0
202
203 #define IMR_TIMER2_8723B BIT31
204 #define IMR_TIMER1_8723B BIT30
205 #define IMR_PSTIMEOUT_8723B BIT29
206 #define IMR_GTINT4_8723B BIT28
207 #define IMR_GTINT3_8723B BIT27
208 #define IMR_TXBCN0ERR_8723B BIT26
209 #define IMR_TXBCN0OK_8723B BIT25
210 #define IMR_TSF_BIT32_TOGGLE_8723B BIT24
211 #define IMR_BCNDMAINT0_8723B BIT20
212 #define IMR_BCNDERR0_8723B BIT16
213 #define IMR_HSISR_IND_ON_INT_8723B BIT15
214 #define IMR_BCNDMAINT_E_8723B BIT14
215 #define IMR_ATIMEND_8723B BIT12
216 #define IMR_C2HCMD_8723B BIT10
217 #define IMR_CPWM2_8723B BIT9
218 #define IMR_CPWM_8723B BIT8
219 #define IMR_HIGHDOK_8723B BIT7
220 #define IMR_MGNTDOK_8723B BIT6
221 #define IMR_BKDOK_8723B BIT5
222 #define IMR_BEDOK_8723B BIT4
223 #define IMR_VIDOK_8723B BIT3
224 #define IMR_VODOK_8723B BIT2
225 #define IMR_RDU_8723B BIT1
226 #define IMR_ROK_8723B BIT0
227
228
229 #define IMR_BCNDMAINT7_8723B BIT27
230 #define IMR_BCNDMAINT6_8723B BIT26
231 #define IMR_BCNDMAINT5_8723B BIT25
232 #define IMR_BCNDMAINT4_8723B BIT24
233 #define IMR_BCNDMAINT3_8723B BIT23
234 #define IMR_BCNDMAINT2_8723B BIT22
235 #define IMR_BCNDMAINT1_8723B BIT21
236 #define IMR_BCNDOK7_8723B BIT20
237 #define IMR_BCNDOK6_8723B BIT19
238 #define IMR_BCNDOK5_8723B BIT18
239 #define IMR_BCNDOK4_8723B BIT17
240 #define IMR_BCNDOK3_8723B BIT16
241 #define IMR_BCNDOK2_8723B BIT15
242 #define IMR_BCNDOK1_8723B BIT14
243 #define IMR_ATIMEND_E_8723B BIT13
244 #define IMR_TXERR_8723B BIT11
245 #define IMR_RXERR_8723B BIT10
246 #define IMR_TXFOVW_8723B BIT9
247 #define IMR_RXFOVW_8723B BIT8
248
249 #endif