Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
iwl-csr.h File Reference

Go to the source code of this file.

Macros

#define CSR_BASE   (0x000)
 
#define CSR_HW_IF_CONFIG_REG   (CSR_BASE+0x000) /* hardware interface config */
 
#define CSR_INT_COALESCING   (CSR_BASE+0x004) /* accum ints, 32-usec units */
 
#define CSR_INT   (CSR_BASE+0x008) /* host interrupt status/ack */
 
#define CSR_INT_MASK   (CSR_BASE+0x00c) /* host interrupt enable */
 
#define CSR_FH_INT_STATUS   (CSR_BASE+0x010) /* busmaster int status/ack*/
 
#define CSR_GPIO_IN   (CSR_BASE+0x018) /* read external chip pins */
 
#define CSR_RESET   (CSR_BASE+0x020) /* busmaster enable, NMI, etc*/
 
#define CSR_GP_CNTRL   (CSR_BASE+0x024)
 
#define CSR_INT_PERIODIC_REG   (CSR_BASE+0x005)
 
#define CSR_HW_REV   (CSR_BASE+0x028)
 
#define CSR_EEPROM_REG   (CSR_BASE+0x02c)
 
#define CSR_EEPROM_GP   (CSR_BASE+0x030)
 
#define CSR_OTP_GP_REG   (CSR_BASE+0x034)
 
#define CSR_GIO_REG   (CSR_BASE+0x03C)
 
#define CSR_GP_UCODE_REG   (CSR_BASE+0x048)
 
#define CSR_GP_DRIVER_REG   (CSR_BASE+0x050)
 
#define CSR_UCODE_DRV_GP1   (CSR_BASE+0x054)
 
#define CSR_UCODE_DRV_GP1_SET   (CSR_BASE+0x058)
 
#define CSR_UCODE_DRV_GP1_CLR   (CSR_BASE+0x05c)
 
#define CSR_UCODE_DRV_GP2   (CSR_BASE+0x060)
 
#define CSR_LED_REG   (CSR_BASE+0x094)
 
#define CSR_DRAM_INT_TBL_REG   (CSR_BASE+0x0A0)
 
#define CSR_MAC_SHADOW_REG_CTRL   (CSR_BASE+0x0A8) /* 6000 and up */
 
#define CSR_GIO_CHICKEN_BITS   (CSR_BASE+0x100)
 
#define CSR_ANA_PLL_CFG   (CSR_BASE+0x20c)
 
#define CSR_HW_REV_WA_REG   (CSR_BASE+0x22C)
 
#define CSR_DBG_HPET_MEM_REG   (CSR_BASE+0x240)
 
#define CSR_DBG_LINK_PWR_MGMT_REG   (CSR_BASE+0x250)
 
#define CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH   (0x00000003)
 
#define CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP   (0x0000000C)
 
#define CSR_HW_IF_CONFIG_REG_MSK_BOARD_VER   (0x000000C0)
 
#define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI   (0x00000100)
 
#define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI   (0x00000200)
 
#define CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE   (0x00000C00)
 
#define CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH   (0x00003000)
 
#define CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP   (0x0000C000)
 
#define CSR_HW_IF_CONFIG_REG_POS_MAC_DASH   (0)
 
#define CSR_HW_IF_CONFIG_REG_POS_MAC_STEP   (2)
 
#define CSR_HW_IF_CONFIG_REG_POS_BOARD_VER   (6)
 
#define CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE   (10)
 
#define CSR_HW_IF_CONFIG_REG_POS_PHY_DASH   (12)
 
#define CSR_HW_IF_CONFIG_REG_POS_PHY_STEP   (14)
 
#define CSR_HW_IF_CONFIG_REG_BIT_HAP_WAKE_L1A   (0x00080000)
 
#define CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM   (0x00200000)
 
#define CSR_HW_IF_CONFIG_REG_BIT_NIC_READY   (0x00400000) /* PCI_OWN_SEM */
 
#define CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE   (0x02000000) /* ME_OWN */
 
#define CSR_HW_IF_CONFIG_REG_PREPARE   (0x08000000) /* WAKE_ME */
 
#define CSR_INT_PERIODIC_DIS   (0x00) /* disable periodic int*/
 
#define CSR_INT_PERIODIC_ENA   (0xFF) /* 255*32 usec ~ 8 msec*/
 
#define CSR_INT_BIT_FH_RX   (1 << 31) /* Rx DMA, cmd responses, FH_INT[17:16] */
 
#define CSR_INT_BIT_HW_ERR   (1 << 29) /* DMA hardware error FH_INT[31] */
 
#define CSR_INT_BIT_RX_PERIODIC   (1 << 28) /* Rx periodic */
 
#define CSR_INT_BIT_FH_TX   (1 << 27) /* Tx DMA FH_INT[1:0] */
 
#define CSR_INT_BIT_SCD   (1 << 26) /* TXQ pointer advanced */
 
#define CSR_INT_BIT_SW_ERR   (1 << 25) /* uCode error */
 
#define CSR_INT_BIT_RF_KILL   (1 << 7) /* HW RFKILL switch GP_CNTRL[27] toggled */
 
#define CSR_INT_BIT_CT_KILL   (1 << 6) /* Critical temp (chip too hot) rfkill */
 
#define CSR_INT_BIT_SW_RX   (1 << 3) /* Rx, command responses */
 
#define CSR_INT_BIT_WAKEUP   (1 << 1) /* NIC controller waking up (pwr mgmt) */
 
#define CSR_INT_BIT_ALIVE   (1 << 0) /* uCode interrupts once it initializes */
 
#define CSR_INI_SET_MASK
 
#define CSR_FH_INT_BIT_ERR   (1 << 31) /* Error */
 
#define CSR_FH_INT_BIT_HI_PRIOR   (1 << 30) /* High priority Rx, bypass coalescing */
 
#define CSR_FH_INT_BIT_RX_CHNL1   (1 << 17) /* Rx channel 1 */
 
#define CSR_FH_INT_BIT_RX_CHNL0   (1 << 16) /* Rx channel 0 */
 
#define CSR_FH_INT_BIT_TX_CHNL1   (1 << 1) /* Tx channel 1 */
 
#define CSR_FH_INT_BIT_TX_CHNL0   (1 << 0) /* Tx channel 0 */
 
#define CSR_FH_INT_RX_MASK
 
#define CSR_FH_INT_TX_MASK
 
#define CSR_GPIO_IN_BIT_AUX_POWER   (0x00000200)
 
#define CSR_GPIO_IN_VAL_VAUX_PWR_SRC   (0x00000000)
 
#define CSR_GPIO_IN_VAL_VMAIN_PWR_SRC   (0x00000200)
 
#define CSR_RESET_REG_FLAG_NEVO_RESET   (0x00000001)
 
#define CSR_RESET_REG_FLAG_FORCE_NMI   (0x00000002)
 
#define CSR_RESET_REG_FLAG_SW_RESET   (0x00000080)
 
#define CSR_RESET_REG_FLAG_MASTER_DISABLED   (0x00000100)
 
#define CSR_RESET_REG_FLAG_STOP_MASTER   (0x00000200)
 
#define CSR_RESET_LINK_PWR_MGMT_DISABLED   (0x80000000)
 
#define CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY   (0x00000001)
 
#define CSR_GP_CNTRL_REG_FLAG_INIT_DONE   (0x00000004)
 
#define CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ   (0x00000008)
 
#define CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP   (0x00000010)
 
#define CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN   (0x00000001)
 
#define CSR_GP_CNTRL_REG_MSK_POWER_SAVE_TYPE   (0x07000000)
 
#define CSR_GP_CNTRL_REG_FLAG_MAC_POWER_SAVE   (0x04000000)
 
#define CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW   (0x08000000)
 
#define CSR_HW_REV_DASH(_val)   (((_val) & 0x0000003) >> 0)
 
#define CSR_HW_REV_STEP(_val)   (((_val) & 0x000000C) >> 2)
 
#define CSR_HW_REV_TYPE_MSK   (0x000FFF0)
 
#define CSR_HW_REV_TYPE_5300   (0x0000020)
 
#define CSR_HW_REV_TYPE_5350   (0x0000030)
 
#define CSR_HW_REV_TYPE_5100   (0x0000050)
 
#define CSR_HW_REV_TYPE_5150   (0x0000040)
 
#define CSR_HW_REV_TYPE_1000   (0x0000060)
 
#define CSR_HW_REV_TYPE_6x00   (0x0000070)
 
#define CSR_HW_REV_TYPE_6x50   (0x0000080)
 
#define CSR_HW_REV_TYPE_6150   (0x0000084)
 
#define CSR_HW_REV_TYPE_6x05   (0x00000B0)
 
#define CSR_HW_REV_TYPE_6x30   CSR_HW_REV_TYPE_6x05
 
#define CSR_HW_REV_TYPE_6x35   CSR_HW_REV_TYPE_6x05
 
#define CSR_HW_REV_TYPE_2x30   (0x00000C0)
 
#define CSR_HW_REV_TYPE_2x00   (0x0000100)
 
#define CSR_HW_REV_TYPE_105   (0x0000110)
 
#define CSR_HW_REV_TYPE_135   (0x0000120)
 
#define CSR_HW_REV_TYPE_NONE   (0x00001F0)
 
#define CSR_EEPROM_REG_READ_VALID_MSK   (0x00000001)
 
#define CSR_EEPROM_REG_BIT_CMD   (0x00000002)
 
#define CSR_EEPROM_REG_MSK_ADDR   (0x0000FFFC)
 
#define CSR_EEPROM_REG_MSK_DATA   (0xFFFF0000)
 
#define CSR_EEPROM_GP_VALID_MSK   (0x00000007) /* signature */
 
#define CSR_EEPROM_GP_IF_OWNER_MSK   (0x00000180)
 
#define CSR_EEPROM_GP_BAD_SIGNATURE_BOTH_EEP_AND_OTP   (0x00000000)
 
#define CSR_EEPROM_GP_BAD_SIG_EEP_GOOD_SIG_OTP   (0x00000001)
 
#define CSR_EEPROM_GP_GOOD_SIG_EEP_LESS_THAN_4K   (0x00000002)
 
#define CSR_EEPROM_GP_GOOD_SIG_EEP_MORE_THAN_4K   (0x00000004)
 
#define CSR_OTP_GP_REG_DEVICE_SELECT   (0x00010000) /* 0 - EEPROM, 1 - OTP */
 
#define CSR_OTP_GP_REG_OTP_ACCESS_MODE   (0x00020000) /* 0 - absolute, 1 - relative */
 
#define CSR_OTP_GP_REG_ECC_CORR_STATUS_MSK   (0x00100000) /* bit 20 */
 
#define CSR_OTP_GP_REG_ECC_UNCORR_STATUS_MSK   (0x00200000) /* bit 21 */
 
#define CSR_GP_REG_POWER_SAVE_STATUS_MSK   (0x03000000) /* bit 24/25 */
 
#define CSR_GP_REG_NO_POWER_SAVE   (0x00000000)
 
#define CSR_GP_REG_MAC_POWER_SAVE   (0x01000000)
 
#define CSR_GP_REG_PHY_POWER_SAVE   (0x02000000)
 
#define CSR_GP_REG_POWER_SAVE_ERROR   (0x03000000)
 
#define CSR_GIO_REG_VAL_L0S_ENABLED   (0x00000002)
 
#define CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP   (0x00000001)
 
#define CSR_UCODE_SW_BIT_RFKILL   (0x00000002)
 
#define CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED   (0x00000004)
 
#define CSR_UCODE_DRV_GP1_REG_BIT_CT_KILL_EXIT   (0x00000008)
 
#define CSR_UCODE_DRV_GP1_BIT_D3_CFG_COMPLETE   (0x00000020)
 
#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_MSK   (0x00000003)
 
#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_3x3_HYB   (0x00000000)
 
#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB   (0x00000001)
 
#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA   (0x00000002)
 
#define CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6   (0x00000004)
 
#define CSR_GP_DRIVER_REG_BIT_6050_1x2   (0x00000008)
 
#define CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER   (0x00000080)
 
#define CSR_GIO_CHICKEN_BITS_REG_BIT_L1A_NO_L0S_RX   (0x00800000)
 
#define CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER   (0x20000000)
 
#define CSR_LED_BSM_CTRL_MSK   (0xFFFFFFDF)
 
#define CSR_LED_REG_TRUN_ON   (0x78)
 
#define CSR_LED_REG_TRUN_OFF   (0x38)
 
#define CSR50_ANA_PLL_CFG_VAL   (0x00880300)
 
#define CSR_DBG_HPET_MEM_REG_VAL   (0xFFFF0000)
 
#define CSR_DRAM_INT_TBL_ENABLE   (1 << 31)
 
#define CSR_DRAM_INIT_TBL_WRAP_CHECK   (1 << 27)
 
#define HBUS_BASE   (0x400)
 
#define HBUS_TARG_MEM_RADDR   (HBUS_BASE+0x00c)
 
#define HBUS_TARG_MEM_WADDR   (HBUS_BASE+0x010)
 
#define HBUS_TARG_MEM_WDAT   (HBUS_BASE+0x018)
 
#define HBUS_TARG_MEM_RDAT   (HBUS_BASE+0x01c)
 
#define HBUS_TARG_MBX_C   (HBUS_BASE+0x030)
 
#define HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED   (0x00000004)
 
#define HBUS_TARG_PRPH_WADDR   (HBUS_BASE+0x044)
 
#define HBUS_TARG_PRPH_RADDR   (HBUS_BASE+0x048)
 
#define HBUS_TARG_PRPH_WDAT   (HBUS_BASE+0x04c)
 
#define HBUS_TARG_PRPH_RDAT   (HBUS_BASE+0x050)
 
#define HBUS_TARG_TEST_REG   (HBUS_BASE+0x05c)
 
#define HBUS_TARG_WRPTR   (HBUS_BASE+0x060)
 
#define IWL_HOST_INT_TIMEOUT_MAX   (0xFF)
 
#define IWL_HOST_INT_TIMEOUT_DEF   (0x40)
 
#define IWL_HOST_INT_TIMEOUT_MIN   (0x0)
 
#define IWL_HOST_INT_CALIB_TIMEOUT_MAX   (0xFF)
 
#define IWL_HOST_INT_CALIB_TIMEOUT_DEF   (0x10)
 
#define IWL_HOST_INT_CALIB_TIMEOUT_MIN   (0x0)
 

Macro Definition Documentation

#define CSR50_ANA_PLL_CFG_VAL   (0x00880300)

Definition at line 388 of file iwl-csr.h.

#define CSR_ANA_PLL_CFG   (CSR_BASE+0x20c)

Definition at line 139 of file iwl-csr.h.

#define CSR_BASE   (0x000)

Definition at line 83 of file iwl-csr.h.

#define CSR_DBG_HPET_MEM_REG   (CSR_BASE+0x240)

Definition at line 151 of file iwl-csr.h.

#define CSR_DBG_HPET_MEM_REG_VAL   (0xFFFF0000)

Definition at line 391 of file iwl-csr.h.

#define CSR_DBG_LINK_PWR_MGMT_REG   (CSR_BASE+0x250)

Definition at line 152 of file iwl-csr.h.

#define CSR_DRAM_INIT_TBL_WRAP_CHECK   (1 << 27)

Definition at line 395 of file iwl-csr.h.

#define CSR_DRAM_INT_TBL_ENABLE   (1 << 31)

Definition at line 394 of file iwl-csr.h.

#define CSR_DRAM_INT_TBL_REG   (CSR_BASE+0x0A0)

Definition at line 131 of file iwl-csr.h.

#define CSR_EEPROM_GP   (CSR_BASE+0x030)

Definition at line 114 of file iwl-csr.h.

#define CSR_EEPROM_GP_BAD_SIG_EEP_GOOD_SIG_OTP   (0x00000001)

Definition at line 313 of file iwl-csr.h.

#define CSR_EEPROM_GP_BAD_SIGNATURE_BOTH_EEP_AND_OTP   (0x00000000)

Definition at line 312 of file iwl-csr.h.

#define CSR_EEPROM_GP_GOOD_SIG_EEP_LESS_THAN_4K   (0x00000002)

Definition at line 314 of file iwl-csr.h.

#define CSR_EEPROM_GP_GOOD_SIG_EEP_MORE_THAN_4K   (0x00000004)

Definition at line 315 of file iwl-csr.h.

#define CSR_EEPROM_GP_IF_OWNER_MSK   (0x00000180)

Definition at line 311 of file iwl-csr.h.

#define CSR_EEPROM_GP_VALID_MSK   (0x00000007) /* signature */

Definition at line 310 of file iwl-csr.h.

#define CSR_EEPROM_REG   (CSR_BASE+0x02c)

Definition at line 113 of file iwl-csr.h.

#define CSR_EEPROM_REG_BIT_CMD   (0x00000002)

Definition at line 305 of file iwl-csr.h.

#define CSR_EEPROM_REG_MSK_ADDR   (0x0000FFFC)

Definition at line 306 of file iwl-csr.h.

#define CSR_EEPROM_REG_MSK_DATA   (0xFFFF0000)

Definition at line 307 of file iwl-csr.h.

#define CSR_EEPROM_REG_READ_VALID_MSK   (0x00000001)

Definition at line 304 of file iwl-csr.h.

#define CSR_FH_INT_BIT_ERR   (1 << 31) /* Error */

Definition at line 204 of file iwl-csr.h.

#define CSR_FH_INT_BIT_HI_PRIOR   (1 << 30) /* High priority Rx, bypass coalescing */

Definition at line 205 of file iwl-csr.h.

#define CSR_FH_INT_BIT_RX_CHNL0   (1 << 16) /* Rx channel 0 */

Definition at line 207 of file iwl-csr.h.

#define CSR_FH_INT_BIT_RX_CHNL1   (1 << 17) /* Rx channel 1 */

Definition at line 206 of file iwl-csr.h.

#define CSR_FH_INT_BIT_TX_CHNL0   (1 << 0) /* Tx channel 0 */

Definition at line 209 of file iwl-csr.h.

#define CSR_FH_INT_BIT_TX_CHNL1   (1 << 1) /* Tx channel 1 */

Definition at line 208 of file iwl-csr.h.

#define CSR_FH_INT_RX_MASK
Value:
CSR_FH_INT_BIT_RX_CHNL1 | \
CSR_FH_INT_BIT_RX_CHNL0)

Definition at line 211 of file iwl-csr.h.

#define CSR_FH_INT_STATUS   (CSR_BASE+0x010) /* busmaster int status/ack*/

Definition at line 89 of file iwl-csr.h.

#define CSR_FH_INT_TX_MASK
Value:
CSR_FH_INT_BIT_TX_CHNL0)

Definition at line 215 of file iwl-csr.h.

#define CSR_GIO_CHICKEN_BITS   (CSR_BASE+0x100)

Definition at line 136 of file iwl-csr.h.

#define CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER   (0x20000000)

Definition at line 380 of file iwl-csr.h.

#define CSR_GIO_CHICKEN_BITS_REG_BIT_L1A_NO_L0S_RX   (0x00800000)

Definition at line 379 of file iwl-csr.h.

#define CSR_GIO_REG   (CSR_BASE+0x03C)

Definition at line 117 of file iwl-csr.h.

#define CSR_GIO_REG_VAL_L0S_ENABLED   (0x00000002)

Definition at line 332 of file iwl-csr.h.

#define CSR_GP_CNTRL   (CSR_BASE+0x024)

Definition at line 92 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_FLAG_GOING_TO_SLEEP   (0x00000010)

Definition at line 272 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW   (0x08000000)

Definition at line 278 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_FLAG_INIT_DONE   (0x00000004)

Definition at line 270 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_FLAG_MAC_ACCESS_REQ   (0x00000008)

Definition at line 271 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY   (0x00000001)

Definition at line 269 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_FLAG_MAC_POWER_SAVE   (0x04000000)

Definition at line 277 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_MSK_POWER_SAVE_TYPE   (0x07000000)

Definition at line 276 of file iwl-csr.h.

#define CSR_GP_CNTRL_REG_VAL_MAC_ACCESS_EN   (0x00000001)

Definition at line 274 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG   (CSR_BASE+0x050)

Definition at line 119 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG_BIT_6050_1x2   (0x00000008)

Definition at line 374 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG_BIT_CALIB_VERSION6   (0x00000004)

Definition at line 373 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG_BIT_RADIO_IQ_INVER   (0x00000080)

Definition at line 376 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB   (0x00000001)

Definition at line 371 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA   (0x00000002)

Definition at line 372 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_3x3_HYB   (0x00000000)

Definition at line 370 of file iwl-csr.h.

#define CSR_GP_DRIVER_REG_BIT_RADIO_SKU_MSK   (0x00000003)

Definition at line 369 of file iwl-csr.h.

#define CSR_GP_REG_MAC_POWER_SAVE   (0x01000000)

Definition at line 326 of file iwl-csr.h.

#define CSR_GP_REG_NO_POWER_SAVE   (0x00000000)

Definition at line 325 of file iwl-csr.h.

#define CSR_GP_REG_PHY_POWER_SAVE   (0x02000000)

Definition at line 327 of file iwl-csr.h.

#define CSR_GP_REG_POWER_SAVE_ERROR   (0x03000000)

Definition at line 328 of file iwl-csr.h.

#define CSR_GP_REG_POWER_SAVE_STATUS_MSK   (0x03000000) /* bit 24/25 */

Definition at line 324 of file iwl-csr.h.

#define CSR_GP_UCODE_REG   (CSR_BASE+0x048)

Definition at line 118 of file iwl-csr.h.

#define CSR_GPIO_IN   (CSR_BASE+0x018) /* read external chip pins */

Definition at line 90 of file iwl-csr.h.

#define CSR_GPIO_IN_BIT_AUX_POWER   (0x00000200)

Definition at line 219 of file iwl-csr.h.

#define CSR_GPIO_IN_VAL_VAUX_PWR_SRC   (0x00000000)

Definition at line 220 of file iwl-csr.h.

#define CSR_GPIO_IN_VAL_VMAIN_PWR_SRC   (0x00000200)

Definition at line 221 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG   (CSR_BASE+0x000) /* hardware interface config */

Definition at line 85 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM   (0x00200000)

Definition at line 172 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_BIT_HAP_WAKE_L1A   (0x00080000)

Definition at line 171 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI   (0x00000100)

Definition at line 158 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_BIT_NIC_PREPARE_DONE   (0x02000000) /* ME_OWN */

Definition at line 174 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_BIT_NIC_READY   (0x00400000) /* PCI_OWN_SEM */

Definition at line 173 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI   (0x00000200)

Definition at line 159 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_MSK_BOARD_VER   (0x000000C0)

Definition at line 157 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_MSK_MAC_DASH   (0x00000003)

Definition at line 155 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP   (0x0000000C)

Definition at line 156 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_MSK_PHY_DASH   (0x00003000)

Definition at line 161 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_MSK_PHY_STEP   (0x0000C000)

Definition at line 162 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_MSK_PHY_TYPE   (0x00000C00)

Definition at line 160 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_POS_BOARD_VER   (6)

Definition at line 166 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_POS_MAC_DASH   (0)

Definition at line 164 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_POS_MAC_STEP   (2)

Definition at line 165 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_POS_PHY_DASH   (12)

Definition at line 168 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_POS_PHY_STEP   (14)

Definition at line 169 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_POS_PHY_TYPE   (10)

Definition at line 167 of file iwl-csr.h.

#define CSR_HW_IF_CONFIG_REG_PREPARE   (0x08000000) /* WAKE_ME */

Definition at line 175 of file iwl-csr.h.

#define CSR_HW_REV   (CSR_BASE+0x028)

Definition at line 105 of file iwl-csr.h.

#define CSR_HW_REV_DASH (   _val)    (((_val) & 0x0000003) >> 0)

Definition at line 282 of file iwl-csr.h.

#define CSR_HW_REV_STEP (   _val)    (((_val) & 0x000000C) >> 2)

Definition at line 283 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_1000   (0x0000060)

Definition at line 290 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_105   (0x0000110)

Definition at line 299 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_135   (0x0000120)

Definition at line 300 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_2x00   (0x0000100)

Definition at line 298 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_2x30   (0x00000C0)

Definition at line 297 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_5100   (0x0000050)

Definition at line 288 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_5150   (0x0000040)

Definition at line 289 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_5300   (0x0000020)

Definition at line 286 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_5350   (0x0000030)

Definition at line 287 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_6150   (0x0000084)

Definition at line 293 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_6x00   (0x0000070)

Definition at line 291 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_6x05   (0x00000B0)

Definition at line 294 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_6x30   CSR_HW_REV_TYPE_6x05

Definition at line 295 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_6x35   CSR_HW_REV_TYPE_6x05

Definition at line 296 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_6x50   (0x0000080)

Definition at line 292 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_MSK   (0x000FFF0)

Definition at line 285 of file iwl-csr.h.

#define CSR_HW_REV_TYPE_NONE   (0x00001F0)

Definition at line 301 of file iwl-csr.h.

#define CSR_HW_REV_WA_REG   (CSR_BASE+0x22C)

Definition at line 149 of file iwl-csr.h.

#define CSR_INI_SET_MASK
Value:
CSR_INT_BIT_HW_ERR | \
CSR_INT_BIT_FH_TX | \
CSR_INT_BIT_SW_ERR | \
CSR_INT_BIT_RF_KILL | \
CSR_INT_BIT_SW_RX | \
CSR_INT_BIT_WAKEUP | \
CSR_INT_BIT_ALIVE)

Definition at line 194 of file iwl-csr.h.

#define CSR_INT   (CSR_BASE+0x008) /* host interrupt status/ack */

Definition at line 87 of file iwl-csr.h.

#define CSR_INT_BIT_ALIVE   (1 << 0) /* uCode interrupts once it initializes */

Definition at line 192 of file iwl-csr.h.

#define CSR_INT_BIT_CT_KILL   (1 << 6) /* Critical temp (chip too hot) rfkill */

Definition at line 189 of file iwl-csr.h.

#define CSR_INT_BIT_FH_RX   (1 << 31) /* Rx DMA, cmd responses, FH_INT[17:16] */

Definition at line 182 of file iwl-csr.h.

#define CSR_INT_BIT_FH_TX   (1 << 27) /* Tx DMA FH_INT[1:0] */

Definition at line 185 of file iwl-csr.h.

#define CSR_INT_BIT_HW_ERR   (1 << 29) /* DMA hardware error FH_INT[31] */

Definition at line 183 of file iwl-csr.h.

#define CSR_INT_BIT_RF_KILL   (1 << 7) /* HW RFKILL switch GP_CNTRL[27] toggled */

Definition at line 188 of file iwl-csr.h.

#define CSR_INT_BIT_RX_PERIODIC   (1 << 28) /* Rx periodic */

Definition at line 184 of file iwl-csr.h.

#define CSR_INT_BIT_SCD   (1 << 26) /* TXQ pointer advanced */

Definition at line 186 of file iwl-csr.h.

#define CSR_INT_BIT_SW_ERR   (1 << 25) /* uCode error */

Definition at line 187 of file iwl-csr.h.

#define CSR_INT_BIT_SW_RX   (1 << 3) /* Rx, command responses */

Definition at line 190 of file iwl-csr.h.

#define CSR_INT_BIT_WAKEUP   (1 << 1) /* NIC controller waking up (pwr mgmt) */

Definition at line 191 of file iwl-csr.h.

#define CSR_INT_COALESCING   (CSR_BASE+0x004) /* accum ints, 32-usec units */

Definition at line 86 of file iwl-csr.h.

#define CSR_INT_MASK   (CSR_BASE+0x00c) /* host interrupt enable */

Definition at line 88 of file iwl-csr.h.

#define CSR_INT_PERIODIC_DIS   (0x00) /* disable periodic int*/

Definition at line 177 of file iwl-csr.h.

#define CSR_INT_PERIODIC_ENA   (0xFF) /* 255*32 usec ~ 8 msec*/

Definition at line 178 of file iwl-csr.h.

#define CSR_INT_PERIODIC_REG   (CSR_BASE+0x005)

Definition at line 95 of file iwl-csr.h.

#define CSR_LED_BSM_CTRL_MSK   (0xFFFFFFDF)

Definition at line 383 of file iwl-csr.h.

#define CSR_LED_REG   (CSR_BASE+0x094)

Definition at line 130 of file iwl-csr.h.

#define CSR_LED_REG_TRUN_OFF   (0x38)

Definition at line 385 of file iwl-csr.h.

#define CSR_LED_REG_TRUN_ON   (0x78)

Definition at line 384 of file iwl-csr.h.

#define CSR_MAC_SHADOW_REG_CTRL   (CSR_BASE+0x0A8) /* 6000 and up */

Definition at line 132 of file iwl-csr.h.

#define CSR_OTP_GP_REG   (CSR_BASE+0x034)

Definition at line 115 of file iwl-csr.h.

#define CSR_OTP_GP_REG_DEVICE_SELECT   (0x00010000) /* 0 - EEPROM, 1 - OTP */

Definition at line 318 of file iwl-csr.h.

#define CSR_OTP_GP_REG_ECC_CORR_STATUS_MSK   (0x00100000) /* bit 20 */

Definition at line 320 of file iwl-csr.h.

#define CSR_OTP_GP_REG_ECC_UNCORR_STATUS_MSK   (0x00200000) /* bit 21 */

Definition at line 321 of file iwl-csr.h.

#define CSR_OTP_GP_REG_OTP_ACCESS_MODE   (0x00020000) /* 0 - absolute, 1 - relative */

Definition at line 319 of file iwl-csr.h.

#define CSR_RESET   (CSR_BASE+0x020) /* busmaster enable, NMI, etc*/

Definition at line 91 of file iwl-csr.h.

#define CSR_RESET_LINK_PWR_MGMT_DISABLED   (0x80000000)

Definition at line 229 of file iwl-csr.h.

#define CSR_RESET_REG_FLAG_FORCE_NMI   (0x00000002)

Definition at line 225 of file iwl-csr.h.

#define CSR_RESET_REG_FLAG_MASTER_DISABLED   (0x00000100)

Definition at line 227 of file iwl-csr.h.

#define CSR_RESET_REG_FLAG_NEVO_RESET   (0x00000001)

Definition at line 224 of file iwl-csr.h.

#define CSR_RESET_REG_FLAG_STOP_MASTER   (0x00000200)

Definition at line 228 of file iwl-csr.h.

#define CSR_RESET_REG_FLAG_SW_RESET   (0x00000080)

Definition at line 226 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP1   (CSR_BASE+0x054)

Definition at line 125 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP1_BIT_CMD_BLOCKED   (0x00000004)

Definition at line 364 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP1_BIT_D3_CFG_COMPLETE   (0x00000020)

Definition at line 366 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP   (0x00000001)

Definition at line 362 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP1_CLR   (CSR_BASE+0x05c)

Definition at line 127 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP1_REG_BIT_CT_KILL_EXIT   (0x00000008)

Definition at line 365 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP1_SET   (CSR_BASE+0x058)

Definition at line 126 of file iwl-csr.h.

#define CSR_UCODE_DRV_GP2   (CSR_BASE+0x060)

Definition at line 128 of file iwl-csr.h.

#define CSR_UCODE_SW_BIT_RFKILL   (0x00000002)

Definition at line 363 of file iwl-csr.h.

#define HBUS_BASE   (0x400)

Definition at line 412 of file iwl-csr.h.

#define HBUS_TARG_MBX_C   (HBUS_BASE+0x030)

Definition at line 429 of file iwl-csr.h.

#define HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED   (0x00000004)

Definition at line 430 of file iwl-csr.h.

#define HBUS_TARG_MEM_RADDR   (HBUS_BASE+0x00c)

Definition at line 423 of file iwl-csr.h.

#define HBUS_TARG_MEM_RDAT   (HBUS_BASE+0x01c)

Definition at line 426 of file iwl-csr.h.

#define HBUS_TARG_MEM_WADDR   (HBUS_BASE+0x010)

Definition at line 424 of file iwl-csr.h.

#define HBUS_TARG_MEM_WDAT   (HBUS_BASE+0x018)

Definition at line 425 of file iwl-csr.h.

#define HBUS_TARG_PRPH_RADDR   (HBUS_BASE+0x048)

Definition at line 441 of file iwl-csr.h.

#define HBUS_TARG_PRPH_RDAT   (HBUS_BASE+0x050)

Definition at line 443 of file iwl-csr.h.

#define HBUS_TARG_PRPH_WADDR   (HBUS_BASE+0x044)

Definition at line 440 of file iwl-csr.h.

#define HBUS_TARG_PRPH_WDAT   (HBUS_BASE+0x04c)

Definition at line 442 of file iwl-csr.h.

#define HBUS_TARG_TEST_REG   (HBUS_BASE+0x05c)

Definition at line 446 of file iwl-csr.h.

#define HBUS_TARG_WRPTR   (HBUS_BASE+0x060)

Definition at line 455 of file iwl-csr.h.

#define IWL_HOST_INT_CALIB_TIMEOUT_DEF   (0x10)

Definition at line 472 of file iwl-csr.h.

#define IWL_HOST_INT_CALIB_TIMEOUT_MAX   (0xFF)

Definition at line 471 of file iwl-csr.h.

#define IWL_HOST_INT_CALIB_TIMEOUT_MIN   (0x0)

Definition at line 473 of file iwl-csr.h.

#define IWL_HOST_INT_TIMEOUT_DEF   (0x40)

Definition at line 469 of file iwl-csr.h.

#define IWL_HOST_INT_TIMEOUT_MAX   (0xFF)

Definition at line 468 of file iwl-csr.h.

#define IWL_HOST_INT_TIMEOUT_MIN   (0x0)

Definition at line 470 of file iwl-csr.h.