diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-04 21:09:29 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-07 16:03:00 -0500 |
commit | 750fe6396614e267aeec0e2ff636740e2688d4d9 (patch) | |
tree | 9002a6fa10175e94df7550c9073af32935018dad /drivers/net/wireless/iwlwifi/iwl-csr.h | |
parent | 6f83eaa170c05324fb33668eace007ea24c277d2 (diff) |
iwlwifi: Move HBUS address to iwl-csr.h
HBUS is accessed through CSR registers
moved to iwl-csr.h
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-csr.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-csr.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-csr.h b/drivers/net/wireless/iwlwifi/iwl-csr.h index 276ba2816041..7016e5b41c58 100644 --- a/drivers/net/wireless/iwlwifi/iwl-csr.h +++ b/drivers/net/wireless/iwlwifi/iwl-csr.h | |||
@@ -214,4 +214,46 @@ | |||
214 | #define CSR_GIO_CHICKEN_BITS_REG_BIT_L1A_NO_L0S_RX (0x00800000) | 214 | #define CSR_GIO_CHICKEN_BITS_REG_BIT_L1A_NO_L0S_RX (0x00800000) |
215 | #define CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER (0x20000000) | 215 | #define CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER (0x20000000) |
216 | 216 | ||
217 | /*=== HBUS (Host-side Bus) ===*/ | ||
218 | #define HBUS_BASE (0x400) | ||
219 | /* | ||
220 | * Registers for accessing device's internal SRAM memory (e.g. SCD SRAM | ||
221 | * structures, error log, event log, verifying uCode load). | ||
222 | * First write to address register, then read from or write to data register | ||
223 | * to complete the job. Once the address register is set up, accesses to | ||
224 | * data registers auto-increment the address by one dword. | ||
225 | * Bit usage for address registers (read or write): | ||
226 | * 0-31: memory address within device | ||
227 | */ | ||
228 | #define HBUS_TARG_MEM_RADDR (HBUS_BASE+0x00c) | ||
229 | #define HBUS_TARG_MEM_WADDR (HBUS_BASE+0x010) | ||
230 | #define HBUS_TARG_MEM_WDAT (HBUS_BASE+0x018) | ||
231 | #define HBUS_TARG_MEM_RDAT (HBUS_BASE+0x01c) | ||
232 | |||
233 | /* | ||
234 | * Registers for accessing device's internal peripheral registers | ||
235 | * (e.g. SCD, BSM, etc.). First write to address register, | ||
236 | * then read from or write to data register to complete the job. | ||
237 | * Bit usage for address registers (read or write): | ||
238 | * 0-15: register address (offset) within device | ||
239 | * 24-25: (# bytes - 1) to read or write (e.g. 3 for dword) | ||
240 | */ | ||
241 | #define HBUS_TARG_PRPH_WADDR (HBUS_BASE+0x044) | ||
242 | #define HBUS_TARG_PRPH_RADDR (HBUS_BASE+0x048) | ||
243 | #define HBUS_TARG_PRPH_WDAT (HBUS_BASE+0x04c) | ||
244 | #define HBUS_TARG_PRPH_RDAT (HBUS_BASE+0x050) | ||
245 | |||
246 | /* | ||
247 | * Per-Tx-queue write pointer (index, really!) (3945 and 4965). | ||
248 | * Indicates index to next TFD that driver will fill (1 past latest filled). | ||
249 | * Bit usage: | ||
250 | * 0-7: queue write index | ||
251 | * 11-8: queue selector | ||
252 | */ | ||
253 | #define HBUS_TARG_WRPTR (HBUS_BASE+0x060) | ||
254 | #define HBUS_TARG_MBX_C (HBUS_BASE+0x030) | ||
255 | |||
256 | #define HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED (0x00000004) | ||
257 | |||
258 | |||
217 | 259 | ||