diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-csr.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-csr.h | 43 |
1 files changed, 10 insertions, 33 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-csr.h b/drivers/net/wireless/iwlwifi/iwl-csr.h index f52bc040bcbf..5ab90ba7a024 100644 --- a/drivers/net/wireless/iwlwifi/iwl-csr.h +++ b/drivers/net/wireless/iwlwifi/iwl-csr.h | |||
@@ -5,7 +5,7 @@ | |||
5 | * | 5 | * |
6 | * GPL LICENSE SUMMARY | 6 | * GPL LICENSE SUMMARY |
7 | * | 7 | * |
8 | * Copyright(c) 2005 - 2010 Intel Corporation. All rights reserved. | 8 | * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of version 2 of the GNU General Public License as | 11 | * it under the terms of version 2 of the GNU General Public License as |
@@ -30,7 +30,7 @@ | |||
30 | * | 30 | * |
31 | * BSD LICENSE | 31 | * BSD LICENSE |
32 | * | 32 | * |
33 | * Copyright(c) 2005 - 2010 Intel Corporation. All rights reserved. | 33 | * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. |
34 | * All rights reserved. | 34 | * All rights reserved. |
35 | * | 35 | * |
36 | * Redistribution and use in source and binary forms, with or without | 36 | * Redistribution and use in source and binary forms, with or without |
@@ -155,18 +155,10 @@ | |||
155 | #define CSR_DBG_LINK_PWR_MGMT_REG (CSR_BASE+0x250) | 155 | #define CSR_DBG_LINK_PWR_MGMT_REG (CSR_BASE+0x250) |
156 | 156 | ||
157 | /* Bits for CSR_HW_IF_CONFIG_REG */ | 157 | /* Bits for CSR_HW_IF_CONFIG_REG */ |
158 | #define CSR49_HW_IF_CONFIG_REG_BIT_4965_R (0x00000010) | ||
159 | #define CSR_HW_IF_CONFIG_REG_MSK_BOARD_VER (0x00000C00) | 158 | #define CSR_HW_IF_CONFIG_REG_MSK_BOARD_VER (0x00000C00) |
160 | #define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI (0x00000100) | 159 | #define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI (0x00000100) |
161 | #define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI (0x00000200) | 160 | #define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI (0x00000200) |
162 | 161 | ||
163 | #define CSR39_HW_IF_CONFIG_REG_BIT_3945_MB (0x00000100) | ||
164 | #define CSR39_HW_IF_CONFIG_REG_BIT_3945_MM (0x00000200) | ||
165 | #define CSR39_HW_IF_CONFIG_REG_BIT_SKU_MRC (0x00000400) | ||
166 | #define CSR39_HW_IF_CONFIG_REG_BIT_BOARD_TYPE (0x00000800) | ||
167 | #define CSR39_HW_IF_CONFIG_REG_BITS_SILICON_TYPE_A (0x00000000) | ||
168 | #define CSR39_HW_IF_CONFIG_REG_BITS_SILICON_TYPE_B (0x00001000) | ||
169 | |||
170 | #define CSR_HW_IF_CONFIG_REG_BIT_HAP_WAKE_L1A (0x00080000) | 162 | #define CSR_HW_IF_CONFIG_REG_BIT_HAP_WAKE_L1A (0x00080000) |
171 | #define CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM (0x00200000) | 163 | #define CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM (0x00200000) |
172 | #define CSR_HW_IF_CONFIG_REG_BIT_NIC_READY (0x00400000) /* PCI_OWN_SEM */ | 164 | #define CSR_HW_IF_CONFIG_REG_BIT_NIC_READY (0x00400000) /* PCI_OWN_SEM */ |
@@ -186,7 +178,7 @@ | |||
186 | #define CSR_INT_BIT_SW_ERR (1 << 25) /* uCode error */ | 178 | #define CSR_INT_BIT_SW_ERR (1 << 25) /* uCode error */ |
187 | #define CSR_INT_BIT_RF_KILL (1 << 7) /* HW RFKILL switch GP_CNTRL[27] toggled */ | 179 | #define CSR_INT_BIT_RF_KILL (1 << 7) /* HW RFKILL switch GP_CNTRL[27] toggled */ |
188 | #define CSR_INT_BIT_CT_KILL (1 << 6) /* Critical temp (chip too hot) rfkill */ | 180 | #define CSR_INT_BIT_CT_KILL (1 << 6) /* Critical temp (chip too hot) rfkill */ |
189 | #define CSR_INT_BIT_SW_RX (1 << 3) /* Rx, command responses, 3945 */ | 181 | #define CSR_INT_BIT_SW_RX (1 << 3) /* Rx, command responses */ |
190 | #define CSR_INT_BIT_WAKEUP (1 << 1) /* NIC controller waking up (pwr mgmt) */ | 182 | #define CSR_INT_BIT_WAKEUP (1 << 1) /* NIC controller waking up (pwr mgmt) */ |
191 | #define CSR_INT_BIT_ALIVE (1 << 0) /* uCode interrupts once it initializes */ | 183 | #define CSR_INT_BIT_ALIVE (1 << 0) /* uCode interrupts once it initializes */ |
192 | 184 | ||
@@ -202,29 +194,17 @@ | |||
202 | /* interrupt flags in FH (flow handler) (PCI busmaster DMA) */ | 194 | /* interrupt flags in FH (flow handler) (PCI busmaster DMA) */ |
203 | #define CSR_FH_INT_BIT_ERR (1 << 31) /* Error */ | 195 | #define CSR_FH_INT_BIT_ERR (1 << 31) /* Error */ |
204 | #define CSR_FH_INT_BIT_HI_PRIOR (1 << 30) /* High priority Rx, bypass coalescing */ | 196 | #define CSR_FH_INT_BIT_HI_PRIOR (1 << 30) /* High priority Rx, bypass coalescing */ |
205 | #define CSR39_FH_INT_BIT_RX_CHNL2 (1 << 18) /* Rx channel 2 (3945 only) */ | ||
206 | #define CSR_FH_INT_BIT_RX_CHNL1 (1 << 17) /* Rx channel 1 */ | 197 | #define CSR_FH_INT_BIT_RX_CHNL1 (1 << 17) /* Rx channel 1 */ |
207 | #define CSR_FH_INT_BIT_RX_CHNL0 (1 << 16) /* Rx channel 0 */ | 198 | #define CSR_FH_INT_BIT_RX_CHNL0 (1 << 16) /* Rx channel 0 */ |
208 | #define CSR39_FH_INT_BIT_TX_CHNL6 (1 << 6) /* Tx channel 6 (3945 only) */ | ||
209 | #define CSR_FH_INT_BIT_TX_CHNL1 (1 << 1) /* Tx channel 1 */ | 199 | #define CSR_FH_INT_BIT_TX_CHNL1 (1 << 1) /* Tx channel 1 */ |
210 | #define CSR_FH_INT_BIT_TX_CHNL0 (1 << 0) /* Tx channel 0 */ | 200 | #define CSR_FH_INT_BIT_TX_CHNL0 (1 << 0) /* Tx channel 0 */ |
211 | 201 | ||
212 | #define CSR39_FH_INT_RX_MASK (CSR_FH_INT_BIT_HI_PRIOR | \ | 202 | #define CSR_FH_INT_RX_MASK (CSR_FH_INT_BIT_HI_PRIOR | \ |
213 | CSR39_FH_INT_BIT_RX_CHNL2 | \ | 203 | CSR_FH_INT_BIT_RX_CHNL1 | \ |
214 | CSR_FH_INT_BIT_RX_CHNL1 | \ | 204 | CSR_FH_INT_BIT_RX_CHNL0) |
215 | CSR_FH_INT_BIT_RX_CHNL0) | ||
216 | |||
217 | |||
218 | #define CSR39_FH_INT_TX_MASK (CSR39_FH_INT_BIT_TX_CHNL6 | \ | ||
219 | CSR_FH_INT_BIT_TX_CHNL1 | \ | ||
220 | CSR_FH_INT_BIT_TX_CHNL0) | ||
221 | |||
222 | #define CSR49_FH_INT_RX_MASK (CSR_FH_INT_BIT_HI_PRIOR | \ | ||
223 | CSR_FH_INT_BIT_RX_CHNL1 | \ | ||
224 | CSR_FH_INT_BIT_RX_CHNL0) | ||
225 | 205 | ||
226 | #define CSR49_FH_INT_TX_MASK (CSR_FH_INT_BIT_TX_CHNL1 | \ | 206 | #define CSR_FH_INT_TX_MASK (CSR_FH_INT_BIT_TX_CHNL1 | \ |
227 | CSR_FH_INT_BIT_TX_CHNL0) | 207 | CSR_FH_INT_BIT_TX_CHNL0) |
228 | 208 | ||
229 | /* GPIO */ | 209 | /* GPIO */ |
230 | #define CSR_GPIO_IN_BIT_AUX_POWER (0x00000200) | 210 | #define CSR_GPIO_IN_BIT_AUX_POWER (0x00000200) |
@@ -268,7 +248,7 @@ | |||
268 | * Indicates MAC (ucode processor, etc.) is powered up and can run. | 248 | * Indicates MAC (ucode processor, etc.) is powered up and can run. |
269 | * Internal resources are accessible. | 249 | * Internal resources are accessible. |
270 | * NOTE: This does not indicate that the processor is actually running. | 250 | * NOTE: This does not indicate that the processor is actually running. |
271 | * NOTE: This does not indicate that 4965 or 3945 has completed | 251 | * NOTE: This does not indicate that device has completed |
272 | * init or post-power-down restore of internal SRAM memory. | 252 | * init or post-power-down restore of internal SRAM memory. |
273 | * Use CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP as indication that | 253 | * Use CSR_UCODE_DRV_GP1_BIT_MAC_SLEEP as indication that |
274 | * SRAM is restored and uCode is in normal operation mode. | 254 | * SRAM is restored and uCode is in normal operation mode. |
@@ -291,8 +271,6 @@ | |||
291 | 271 | ||
292 | /* HW REV */ | 272 | /* HW REV */ |
293 | #define CSR_HW_REV_TYPE_MSK (0x00001F0) | 273 | #define CSR_HW_REV_TYPE_MSK (0x00001F0) |
294 | #define CSR_HW_REV_TYPE_3945 (0x00000D0) | ||
295 | #define CSR_HW_REV_TYPE_4965 (0x0000000) | ||
296 | #define CSR_HW_REV_TYPE_5300 (0x0000020) | 274 | #define CSR_HW_REV_TYPE_5300 (0x0000020) |
297 | #define CSR_HW_REV_TYPE_5350 (0x0000030) | 275 | #define CSR_HW_REV_TYPE_5350 (0x0000030) |
298 | #define CSR_HW_REV_TYPE_5100 (0x0000050) | 276 | #define CSR_HW_REV_TYPE_5100 (0x0000050) |
@@ -363,7 +341,7 @@ | |||
363 | * 0: MAC_SLEEP | 341 | * 0: MAC_SLEEP |
364 | * uCode sets this when preparing a power-saving power-down. | 342 | * uCode sets this when preparing a power-saving power-down. |
365 | * uCode resets this when power-up is complete and SRAM is sane. | 343 | * uCode resets this when power-up is complete and SRAM is sane. |
366 | * NOTE: 3945/4965 saves internal SRAM data to host when powering down, | 344 | * NOTE: device saves internal SRAM data to host when powering down, |
367 | * and must restore this data after powering back up. | 345 | * and must restore this data after powering back up. |
368 | * MAC_SLEEP is the best indication that restore is complete. | 346 | * MAC_SLEEP is the best indication that restore is complete. |
369 | * Later devices (5xxx/6xxx/1xxx) use non-volatile SRAM, and | 347 | * Later devices (5xxx/6xxx/1xxx) use non-volatile SRAM, and |
@@ -394,7 +372,6 @@ | |||
394 | #define CSR_LED_REG_TRUN_OFF (0x38) | 372 | #define CSR_LED_REG_TRUN_OFF (0x38) |
395 | 373 | ||
396 | /* ANA_PLL */ | 374 | /* ANA_PLL */ |
397 | #define CSR39_ANA_PLL_CFG_VAL (0x01000000) | ||
398 | #define CSR50_ANA_PLL_CFG_VAL (0x00880300) | 375 | #define CSR50_ANA_PLL_CFG_VAL (0x00880300) |
399 | 376 | ||
400 | /* HPET MEM debug */ | 377 | /* HPET MEM debug */ |