Go to the documentation of this file.
83 #define CSR_BASE (0x000)
85 #define CSR_HW_IF_CONFIG_REG (CSR_BASE+0x000)
86 #define CSR_INT_COALESCING (CSR_BASE+0x004)
87 #define CSR_INT (CSR_BASE+0x008)
88 #define CSR_INT_MASK (CSR_BASE+0x00c)
89 #define CSR_FH_INT_STATUS (CSR_BASE+0x010)
90 #define CSR_GPIO_IN (CSR_BASE+0x018)
91 #define CSR_RESET (CSR_BASE+0x020)
92 #define CSR_GP_CNTRL (CSR_BASE+0x024)
95 #define CSR_INT_PERIODIC_REG (CSR_BASE+0x005)
105 #define CSR_HW_REV (CSR_BASE+0x028)
113 #define CSR_EEPROM_REG (CSR_BASE+0x02c)
114 #define CSR_EEPROM_GP (CSR_BASE+0x030)
115 #define CSR_OTP_GP_REG (CSR_BASE+0x034)
117 #define CSR_GIO_REG (CSR_BASE+0x03C)
118 #define CSR_GP_UCODE_REG (CSR_BASE+0x048)
119 #define CSR_GP_DRIVER_REG (CSR_BASE+0x050)
125 #define CSR_UCODE_DRV_GP1 (CSR_BASE+0x054)
126 #define CSR_UCODE_DRV_GP1_SET (CSR_BASE+0x058)
127 #define CSR_UCODE_DRV_GP1_CLR (CSR_BASE+0x05c)
128 #define CSR_UCODE_DRV_GP2 (CSR_BASE+0x060)
130 #define CSR_LED_REG (CSR_BASE+0x094)
131 #define CSR_DRAM_INT_TBL_REG (CSR_BASE+0x0A0)
132 #define CSR_MAC_SHADOW_REG_CTRL (CSR_BASE+0x0A8)
136 #define CSR_GIO_CHICKEN_BITS (CSR_BASE+0x100)
139 #define CSR_ANA_PLL_CFG (CSR_BASE+0x20c)
149 #define CSR_HW_REV_WA_REG (CSR_BASE+0x22C)
151 #define CSR_DBG_HPET_MEM_REG (CSR_BASE+0x240)
152 #define CSR_DBG_LINK_PWR_MGMT_REG (CSR_BASE+0x250)
155 #define CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH (0x00000003)
156 #define CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP (0x0000000C)
157 #define CSR_HW_IF_CONFIG_REG_MSK_BOARD_VER (0x000000C0)
158 #define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI (0x00000100)
159 #define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI (0x00000200)
160 #define CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE (0x00000C00)
161 #define CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH (0x00003000)
162 #define CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP (0x0000C000)
164 #define CSR_HW_IF_CONFIG_REG_POS_MAC_DASH (0)
165 #define CSR_HW_IF_CONFIG_REG_POS_MAC_STEP (2)
166 #define CSR_HW_IF_CONFIG_REG_POS_BOARD_VER (6)
167 #define CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE (10)
168 #define CSR_HW_IF_CONFIG_REG_POS_PHY_DASH (12)
169 #define CSR_HW_IF_CONFIG_REG_POS_PHY_STEP (14)
171 #define CSR_HW_IF_CONFIG_REG_BIT_HAP_WAKE_L1A (0x00080000)
172 #define CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM (0x00200000)
173 #define CSR_HW_IF_CONFIG_REG_BIT_NIC_READY (0x00400000)
174 #define CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE (0x02000000)
175 #define CSR_HW_IF_CONFIG_REG_PREPARE (0x08000000)
177 #define CSR_INT_PERIODIC_DIS (0x00)
178 #define CSR_INT_PERIODIC_ENA (0xFF)
182 #define CSR_INT_BIT_FH_RX (1 << 31)
183 #define CSR_INT_BIT_HW_ERR (1 << 29)
184 #define CSR_INT_BIT_RX_PERIODIC (1 << 28)
185 #define CSR_INT_BIT_FH_TX (1 << 27)
186 #define CSR_INT_BIT_SCD (1 << 26)
187 #define CSR_INT_BIT_SW_ERR (1 << 25)
188 #define CSR_INT_BIT_RF_KILL (1 << 7)
189 #define CSR_INT_BIT_CT_KILL (1 << 6)
190 #define CSR_INT_BIT_SW_RX (1 << 3)
191 #define CSR_INT_BIT_WAKEUP (1 << 1)
192 #define CSR_INT_BIT_ALIVE (1 << 0)
194 #define CSR_INI_SET_MASK (CSR_INT_BIT_FH_RX | \
195 CSR_INT_BIT_HW_ERR | \
196 CSR_INT_BIT_FH_TX | \
197 CSR_INT_BIT_SW_ERR | \
198 CSR_INT_BIT_RF_KILL | \
199 CSR_INT_BIT_SW_RX | \
200 CSR_INT_BIT_WAKEUP | \
204 #define CSR_FH_INT_BIT_ERR (1 << 31)
205 #define CSR_FH_INT_BIT_HI_PRIOR (1 << 30)
206 #define CSR_FH_INT_BIT_RX_CHNL1 (1 << 17)
207 #define CSR_FH_INT_BIT_RX_CHNL0 (1 << 16)
208 #define CSR_FH_INT_BIT_TX_CHNL1 (1 << 1)
209 #define CSR_FH_INT_BIT_TX_CHNL0 (1 << 0)
211 #define CSR_FH_INT_RX_MASK (CSR_FH_INT_BIT_HI_PRIOR | \
212 CSR_FH_INT_BIT_RX_CHNL1 | \
213 CSR_FH_INT_BIT_RX_CHNL0)
215 #define CSR_FH_INT_TX_MASK (CSR_FH_INT_BIT_TX_CHNL1 | \
216 CSR_FH_INT_BIT_TX_CHNL0)
219 #define CSR_GPIO_IN_BIT_AUX_POWER (0x00000200)
220 #define CSR_GPIO_IN_VAL_VAUX_PWR_SRC (0x00000000)
221 #define CSR_GPIO_IN_VAL_VMAIN_PWR_SRC (0x00000200)
224 #define CSR_RESET_REG_FLAG_NEVO_RESET (0x00000001)
225 #define CSR_RESET_REG_FLAG_FORCE_NMI (0x00000002)
226 #define CSR_RESET_REG_FLAG_SW_RESET (0x00000080)
227 #define CSR_RESET_REG_FLAG_MASTER_DISABLED (0x00000100)
228 #define CSR_RESET_REG_FLAG_STOP_MASTER (0x00000200)
229 #define CSR_RESET_LINK_PWR_MGMT_DISABLED (0x80000000)
269 #define CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY (0x00000001)
270 #define CSR_GP_CNTRL_REG_FLAG_INIT_DONE (0x00000004)
271 #define CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ (0x00000008)
272 #define CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP (0x00000010)
274 #define CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN (0x00000001)
276 #define CSR_GP_CNTRL_REG_MSK_POWER_SAVE_TYPE (0x07000000)
277 #define CSR_GP_CNTRL_REG_FLAG_MAC_POWER_SAVE (0x04000000)
278 #define CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW (0x08000000)
282 #define CSR_HW_REV_DASH(_val) (((_val) & 0x0000003) >> 0)
283 #define CSR_HW_REV_STEP(_val) (((_val) & 0x000000C) >> 2)
285 #define CSR_HW_REV_TYPE_MSK (0x000FFF0)
286 #define CSR_HW_REV_TYPE_5300 (0x0000020)
287 #define CSR_HW_REV_TYPE_5350 (0x0000030)
288 #define CSR_HW_REV_TYPE_5100 (0x0000050)
289 #define CSR_HW_REV_TYPE_5150 (0x0000040)
290 #define CSR_HW_REV_TYPE_1000 (0x0000060)
291 #define CSR_HW_REV_TYPE_6x00 (0x0000070)
292 #define CSR_HW_REV_TYPE_6x50 (0x0000080)
293 #define CSR_HW_REV_TYPE_6150 (0x0000084)
294 #define CSR_HW_REV_TYPE_6x05 (0x00000B0)
295 #define CSR_HW_REV_TYPE_6x30 CSR_HW_REV_TYPE_6x05
296 #define CSR_HW_REV_TYPE_6x35 CSR_HW_REV_TYPE_6x05
297 #define CSR_HW_REV_TYPE_2x30 (0x00000C0)
298 #define CSR_HW_REV_TYPE_2x00 (0x0000100)
299 #define CSR_HW_REV_TYPE_105 (0x0000110)
300 #define CSR_HW_REV_TYPE_135 (0x0000120)
301 #define CSR_HW_REV_TYPE_NONE (0x00001F0)
304 #define CSR_EEPROM_REG_READ_VALID_MSK (0x00000001)
305 #define CSR_EEPROM_REG_BIT_CMD (0x00000002)
306 #define CSR_EEPROM_REG_MSK_ADDR (0x0000FFFC)
307 #define CSR_EEPROM_REG_MSK_DATA (0xFFFF0000)
310 #define CSR_EEPROM_GP_VALID_MSK (0x00000007)
311 #define CSR_EEPROM_GP_IF_OWNER_MSK (0x00000180)
312 #define CSR_EEPROM_GP_BAD_SIGNATURE_BOTH_EEP_AND_OTP (0x00000000)
313 #define CSR_EEPROM_GP_BAD_SIG_EEP_GOOD_SIG_OTP (0x00000001)
314 #define CSR_EEPROM_GP_GOOD_SIG_EEP_LESS_THAN_4K (0x00000002)
315 #define CSR_EEPROM_GP_GOOD_SIG_EEP_MORE_THAN_4K (0x00000004)
318 #define CSR_OTP_GP_REG_DEVICE_SELECT (0x00010000)
319 #define CSR_OTP_GP_REG_OTP_ACCESS_MODE (0x00020000)
320 #define CSR_OTP_GP_REG_ECC_CORR_STATUS_MSK (0x00100000)
321 #define CSR_OTP_GP_REG_ECC_UNCORR_STATUS_MSK (0x00200000)
324 #define CSR_GP_REG_POWER_SAVE_STATUS_MSK (0x03000000)
325 #define CSR_GP_REG_NO_POWER_SAVE (0x00000000)
326 #define CSR_GP_REG_MAC_POWER_SAVE (0x01000000)
327 #define CSR_GP_REG_PHY_POWER_SAVE (0x02000000)
328 #define CSR_GP_REG_POWER_SAVE_ERROR (0x03000000)
332 #define CSR_GIO_REG_VAL_L0S_ENABLED (0x00000002)
362 #define CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP (0x00000001)
363 #define CSR_UCODE_SW_BIT_RFKILL (0x00000002)
364 #define CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED (0x00000004)
365 #define CSR_UCODE_DRV_GP1_REG_BIT_CT_KILL_EXIT (0x00000008)
366 #define CSR_UCODE_DRV_GP1_BIT_D3_CFG_COMPLETE (0x00000020)
369 #define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_MSK (0x00000003)
370 #define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_3x3_HYB (0x00000000)
371 #define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB (0x00000001)
372 #define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA (0x00000002)
373 #define CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6 (0x00000004)
374 #define CSR_GP_DRIVER_REG_BIT_6050_1x2 (0x00000008)
376 #define CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER (0x00000080)
379 #define CSR_GIO_CHICKEN_BITS_REG_BIT_L1A_NO_L0S_RX (0x00800000)
380 #define CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER (0x20000000)
383 #define CSR_LED_BSM_CTRL_MSK (0xFFFFFFDF)
384 #define CSR_LED_REG_TRUN_ON (0x78)
385 #define CSR_LED_REG_TRUN_OFF (0x38)
388 #define CSR50_ANA_PLL_CFG_VAL (0x00880300)
391 #define CSR_DBG_HPET_MEM_REG_VAL (0xFFFF0000)
394 #define CSR_DRAM_INT_TBL_ENABLE (1 << 31)
395 #define CSR_DRAM_INIT_TBL_WRAP_CHECK (1 << 27)
412 #define HBUS_BASE (0x400)
423 #define HBUS_TARG_MEM_RADDR (HBUS_BASE+0x00c)
424 #define HBUS_TARG_MEM_WADDR (HBUS_BASE+0x010)
425 #define HBUS_TARG_MEM_WDAT (HBUS_BASE+0x018)
426 #define HBUS_TARG_MEM_RDAT (HBUS_BASE+0x01c)
429 #define HBUS_TARG_MBX_C (HBUS_BASE+0x030)
430 #define HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED (0x00000004)
440 #define HBUS_TARG_PRPH_WADDR (HBUS_BASE+0x044)
441 #define HBUS_TARG_PRPH_RADDR (HBUS_BASE+0x048)
442 #define HBUS_TARG_PRPH_WDAT (HBUS_BASE+0x04c)
443 #define HBUS_TARG_PRPH_RDAT (HBUS_BASE+0x050)
446 #define HBUS_TARG_TEST_REG (HBUS_BASE+0x05c)
455 #define HBUS_TARG_WRPTR (HBUS_BASE+0x060)
468 #define IWL_HOST_INT_TIMEOUT_MAX (0xFF)
469 #define IWL_HOST_INT_TIMEOUT_DEF (0x40)
470 #define IWL_HOST_INT_TIMEOUT_MIN (0x0)
471 #define IWL_HOST_INT_CALIB_TIMEOUT_MAX (0xFF)
472 #define IWL_HOST_INT_CALIB_TIMEOUT_DEF (0x10)
473 #define IWL_HOST_INT_CALIB_TIMEOUT_MIN (0x0)