aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-03-04 21:09:29 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-03-07 16:03:00 -0500
commit750fe6396614e267aeec0e2ff636740e2688d4d9 (patch)
tree9002a6fa10175e94df7550c9073af32935018dad /drivers
parent6f83eaa170c05324fb33668eace007ea24c277d2 (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')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-hw.h39
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-hw.h44
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-csr.h42
3 files changed, 42 insertions, 83 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h
index 269224ba23b6..7dc19136f41a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h
@@ -321,45 +321,6 @@ struct iwl3945_eeprom {
321#define PCI_REG_WUM8 0x0E8 321#define PCI_REG_WUM8 0x0E8
322#define PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT (0x80000000) 322#define PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT (0x80000000)
323 323
324/*=== HBUS (Host-side Bus) ===*/
325#define HBUS_BASE (0x400)
326
327/*
328 * Registers for accessing device's internal SRAM memory (e.g. SCD SRAM
329 * structures, error log, event log, verifying uCode load).
330 * First write to address register, then read from or write to data register
331 * to complete the job. Once the address register is set up, accesses to
332 * data registers auto-increment the address by one dword.
333 * Bit usage for address registers (read or write):
334 * 0-31: memory address within device
335 */
336#define HBUS_TARG_MEM_RADDR (HBUS_BASE+0x00c)
337#define HBUS_TARG_MEM_WADDR (HBUS_BASE+0x010)
338#define HBUS_TARG_MEM_WDAT (HBUS_BASE+0x018)
339#define HBUS_TARG_MEM_RDAT (HBUS_BASE+0x01c)
340
341/*
342 * Registers for accessing device's internal peripheral registers
343 * (e.g. SCD, BSM, etc.). First write to address register,
344 * then read from or write to data register to complete the job.
345 * Bit usage for address registers (read or write):
346 * 0-15: register address (offset) within device
347 * 24-25: (# bytes - 1) to read or write (e.g. 3 for dword)
348 */
349#define HBUS_TARG_PRPH_WADDR (HBUS_BASE+0x044)
350#define HBUS_TARG_PRPH_RADDR (HBUS_BASE+0x048)
351#define HBUS_TARG_PRPH_WDAT (HBUS_BASE+0x04c)
352#define HBUS_TARG_PRPH_RDAT (HBUS_BASE+0x050)
353
354/*
355 * Per-Tx-queue write pointer (index, really!) (3945 and 4965).
356 * Indicates index to next TFD that driver will fill (1 past latest filled).
357 * Bit usage:
358 * 0-7: queue write index
359 * 11-8: queue selector
360 */
361#define HBUS_TARG_WRPTR (HBUS_BASE+0x060)
362
363/* SCD (3945 Tx Frame Scheduler) */ 324/* SCD (3945 Tx Frame Scheduler) */
364#define SCD_BASE (CSR_BASE + 0x2E00) 325#define SCD_BASE (CSR_BASE + 0x2E00)
365 326
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
index 7e8cc9928b55..24413a479a3f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
@@ -410,50 +410,6 @@ struct iwl4965_eeprom {
410#define PCI_REG_WUM8 0x0E8 410#define PCI_REG_WUM8 0x0E8
411#define PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT (0x80000000) 411#define PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT (0x80000000)
412 412
413/*=== HBUS (Host-side Bus) ===*/
414#define HBUS_BASE (0x400)
415
416/*
417 * Registers for accessing device's internal SRAM memory (e.g. SCD SRAM
418 * structures, error log, event log, verifying uCode load).
419 * First write to address register, then read from or write to data register
420 * to complete the job. Once the address register is set up, accesses to
421 * data registers auto-increment the address by one dword.
422 * Bit usage for address registers (read or write):
423 * 0-31: memory address within device
424 */
425#define HBUS_TARG_MEM_RADDR (HBUS_BASE+0x00c)
426#define HBUS_TARG_MEM_WADDR (HBUS_BASE+0x010)
427#define HBUS_TARG_MEM_WDAT (HBUS_BASE+0x018)
428#define HBUS_TARG_MEM_RDAT (HBUS_BASE+0x01c)
429
430/*
431 * Registers for accessing device's internal peripheral registers
432 * (e.g. SCD, BSM, etc.). First write to address register,
433 * then read from or write to data register to complete the job.
434 * Bit usage for address registers (read or write):
435 * 0-15: register address (offset) within device
436 * 24-25: (# bytes - 1) to read or write (e.g. 3 for dword)
437 */
438#define HBUS_TARG_PRPH_WADDR (HBUS_BASE+0x044)
439#define HBUS_TARG_PRPH_RADDR (HBUS_BASE+0x048)
440#define HBUS_TARG_PRPH_WDAT (HBUS_BASE+0x04c)
441#define HBUS_TARG_PRPH_RDAT (HBUS_BASE+0x050)
442
443/*
444 * Per-Tx-queue write pointer (index, really!) (3945 and 4965).
445 * Driver sets this to indicate index to next TFD that driver will fill
446 * (1 past latest filled).
447 * Bit usage:
448 * 0-7: queue write index (0-255)
449 * 11-8: queue selector (0-15)
450 */
451#define HBUS_TARG_WRPTR (HBUS_BASE+0x060)
452
453#define HBUS_TARG_MBX_C (HBUS_BASE+0x030)
454
455#define HBUS_TARG_MBX_C_REG_BIT_CMD_BLOCKED (0x00000004)
456
457#define TFD_QUEUE_SIZE_MAX (256) 413#define TFD_QUEUE_SIZE_MAX (256)
458 414
459#define IWL_NUM_SCAN_RATES (2) 415#define IWL_NUM_SCAN_RATES (2)
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