aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-5000-hw.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-04-24 14:55:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:24 -0400
commitfdd3e8a4ff96d03121b21946bfa684f3b5d783c6 (patch)
treee2124e7861d82bfb702fac78f5d9d21b4f640c5c /drivers/net/wireless/iwlwifi/iwl-5000-hw.h
parent25ae3986d7ed4303fabc883a87b74956bd59c22c (diff)
iwlwifi-5000: adding iwl5000 HW parameters
This patch adds iwl 5000 HW parameters Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000-hw.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000-hw.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000-hw.h b/drivers/net/wireless/iwlwifi/iwl-5000-hw.h
index 5cf8a684b3e1..31592fb8ddfd 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-5000-hw.h
@@ -68,6 +68,11 @@
68#ifndef __iwl_5000_hw_h__ 68#ifndef __iwl_5000_hw_h__
69#define __iwl_5000_hw_h__ 69#define __iwl_5000_hw_h__
70 70
71#define IWL50_RTC_INST_UPPER_BOUND (0x020000)
72#define IWL50_RTC_DATA_UPPER_BOUND (0x80C000)
73#define IWL50_RTC_INST_SIZE (IWL50_RTC_INST_UPPER_BOUND - RTC_INST_LOWER_BOUND)
74#define IWL50_RTC_DATA_SIZE (IWL50_RTC_DATA_UPPER_BOUND - RTC_DATA_LOWER_BOUND)
75
71/* EERPROM */ 76/* EERPROM */
72#define IWL_5000_EEPROM_IMG_SIZE 2048 77#define IWL_5000_EEPROM_IMG_SIZE 2048
73 78
@@ -78,5 +83,47 @@
78#define IWL50_NUM_QUEUES 20 83#define IWL50_NUM_QUEUES 20
79#define IWL50_BACK_QUEUE_FIRST_ID 10 84#define IWL50_BACK_QUEUE_FIRST_ID 10
80 85
86/* Fixed (non-configurable) rx data from phy */
87
88/* Base physical address of iwl5000_shared is provided to SCD_DRAM_BASE_ADDR
89 * and &iwl5000_shared.val0 is provided to FH_RSCSR_CHNL0_STTS_WPTR_REG */
90struct iwl5000_sched_queue_byte_cnt_tbl {
91 struct iwl4965_queue_byte_cnt_entry tfd_offset[IWL50_QUEUE_SIZE +
92 IWL50_MAX_WIN_SIZE];
93} __attribute__ ((packed));
94
95struct iwl5000_shared {
96 struct iwl5000_sched_queue_byte_cnt_tbl
97 queues_byte_cnt_tbls[IWL50_NUM_QUEUES];
98 __le32 rb_closed;
99
100 /* __le32 rb_closed_stts_rb_num:12; */
101#define IWL_rb_closed_stts_rb_num_POS 0
102#define IWL_rb_closed_stts_rb_num_LEN 12
103#define IWL_rb_closed_stts_rb_num_SYM rb_closed
104 /* __le32 rsrv1:4; */
105 /* __le32 rb_closed_stts_rx_frame_num:12; */
106#define IWL_rb_closed_stts_rx_frame_num_POS 16
107#define IWL_rb_closed_stts_rx_frame_num_LEN 12
108#define IWL_rb_closed_stts_rx_frame_num_SYM rb_closed
109 /* __le32 rsrv2:4; */
110
111 __le32 frm_finished;
112 /* __le32 frame_finished_stts_rb_num:12; */
113#define IWL_frame_finished_stts_rb_num_POS 0
114#define IWL_frame_finished_stts_rb_num_LEN 12
115#define IWL_frame_finished_stts_rb_num_SYM frm_finished
116 /* __le32 rsrv3:4; */
117 /* __le32 frame_finished_stts_rx_frame_num:12; */
118#define IWL_frame_finished_stts_rx_frame_num_POS 16
119#define IWL_frame_finished_stts_rx_frame_num_LEN 12
120#define IWL_frame_finished_stts_rx_frame_num_SYM frm_finished
121 /* __le32 rsrv4:4; */
122
123 __le32 padding1; /* so that allocation will be aligned to 16B */
124 __le32 padding2;
125} __attribute__ ((packed));
126
127
81#endif /* __iwl_5000_hw_h__ */ 128#endif /* __iwl_5000_hw_h__ */
82 129