diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-12-18 21:37:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:57 -0500 |
commit | 0f741d9992ad043026218677c06042ac9f834f8f (patch) | |
tree | db7950bcd9d16e789f0465831bdf1d80e13355c1 /drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |
parent | a3139c5956702c9ff957ac9fe2d902de355b063e (diff) |
iwl3945: Getting rid of iwl3945_eeprom_channel
The corresponding iwl structure is identical.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@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-3945-hw.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-hw.h | 59 |
1 files changed, 7 insertions, 52 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h index 21719eb7e144..b6145b0b9255 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-hw.h | |||
@@ -69,6 +69,8 @@ | |||
69 | #ifndef __iwl_3945_hw__ | 69 | #ifndef __iwl_3945_hw__ |
70 | #define __iwl_3945_hw__ | 70 | #define __iwl_3945_hw__ |
71 | 71 | ||
72 | #include "iwl-eeprom.h" | ||
73 | |||
72 | /* | 74 | /* |
73 | * uCode queue management definitions ... | 75 | * uCode queue management definitions ... |
74 | * Queue #4 is the command queue for 3945 and 4965. | 76 | * Queue #4 is the command queue for 3945 and 4965. |
@@ -85,55 +87,8 @@ | |||
85 | /* | 87 | /* |
86 | * EEPROM related constants, enums, and structures. | 88 | * EEPROM related constants, enums, and structures. |
87 | */ | 89 | */ |
88 | |||
89 | /* | ||
90 | * EEPROM access time values: | ||
91 | * | ||
92 | * Driver initiates EEPROM read by writing byte address << 1 to CSR_EEPROM_REG, | ||
93 | * then clearing (with subsequent read/modify/write) CSR_EEPROM_REG bit | ||
94 | * CSR_EEPROM_REG_BIT_CMD (0x2). | ||
95 | * Driver then polls CSR_EEPROM_REG for CSR_EEPROM_REG_READ_VALID_MSK (0x1). | ||
96 | * When polling, wait 10 uSec between polling loops, up to a maximum 5000 uSec. | ||
97 | * Driver reads 16-bit value from bits 31-16 of CSR_EEPROM_REG. | ||
98 | */ | ||
99 | #define IWL_EEPROM_ACCESS_TIMEOUT 5000 /* uSec */ | ||
100 | |||
101 | /* | ||
102 | * Regulatory channel usage flags in EEPROM struct iwl_eeprom_channel.flags. | ||
103 | * | ||
104 | * IBSS and/or AP operation is allowed *only* on those channels with | ||
105 | * (VALID && IBSS && ACTIVE && !RADAR). This restriction is in place because | ||
106 | * RADAR detection is not supported by the 3945 driver, but is a | ||
107 | * requirement for establishing a new network for legal operation on channels | ||
108 | * requiring RADAR detection or restricting ACTIVE scanning. | ||
109 | * | ||
110 | * NOTE: "WIDE" flag indicates that 20 MHz channel is supported; | ||
111 | * 3945 does not support FAT 40 MHz-wide channels. | ||
112 | * | ||
113 | * NOTE: Using a channel inappropriately will result in a uCode error! | ||
114 | */ | ||
115 | enum { | ||
116 | EEPROM_CHANNEL_VALID = (1 << 0), /* usable for this SKU/geo */ | ||
117 | EEPROM_CHANNEL_IBSS = (1 << 1), /* usable as an IBSS channel */ | ||
118 | /* Bit 2 Reserved */ | ||
119 | EEPROM_CHANNEL_ACTIVE = (1 << 3), /* active scanning allowed */ | ||
120 | EEPROM_CHANNEL_RADAR = (1 << 4), /* radar detection required */ | ||
121 | EEPROM_CHANNEL_WIDE = (1 << 5), /* 20 MHz channel okay */ | ||
122 | /* Bit 6 Reserved (was Narrow Channel) */ | ||
123 | EEPROM_CHANNEL_DFS = (1 << 7), /* dynamic freq selection candidate */ | ||
124 | }; | ||
125 | |||
126 | /* SKU Capabilities */ | ||
127 | #define EEPROM_SKU_CAP_SW_RF_KILL_ENABLE (1 << 0) | ||
128 | #define EEPROM_SKU_CAP_HW_RF_KILL_ENABLE (1 << 1) | ||
129 | #define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7) | 90 | #define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7) |
130 | 91 | ||
131 | /* *regulatory* channel data from eeprom, one for each channel */ | ||
132 | struct iwl3945_eeprom_channel { | ||
133 | u8 flags; /* flags copied from EEPROM */ | ||
134 | s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */ | ||
135 | } __attribute__ ((packed)); | ||
136 | |||
137 | /* | 92 | /* |
138 | * Mapping of a Tx power level, at factory calibration temperature, | 93 | * Mapping of a Tx power level, at factory calibration temperature, |
139 | * to a radio/DSP gain table index. | 94 | * to a radio/DSP gain table index. |
@@ -227,7 +182,7 @@ struct iwl3945_eeprom { | |||
227 | * 2.4 GHz channels 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 | 182 | * 2.4 GHz channels 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 |
228 | */ | 183 | */ |
229 | u16 band_1_count; /* abs.ofs: 196 */ | 184 | u16 band_1_count; /* abs.ofs: 196 */ |
230 | struct iwl3945_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */ | 185 | struct iwl_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */ |
231 | 186 | ||
232 | /* | 187 | /* |
233 | * 4.9 GHz channels 183, 184, 185, 187, 188, 189, 192, 196, | 188 | * 4.9 GHz channels 183, 184, 185, 187, 188, 189, 192, 196, |
@@ -235,28 +190,28 @@ struct iwl3945_eeprom { | |||
235 | * (4915-5080MHz) (none of these is ever supported) | 190 | * (4915-5080MHz) (none of these is ever supported) |
236 | */ | 191 | */ |
237 | u16 band_2_count; /* abs.ofs: 226 */ | 192 | u16 band_2_count; /* abs.ofs: 226 */ |
238 | struct iwl3945_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */ | 193 | struct iwl_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */ |
239 | 194 | ||
240 | /* | 195 | /* |
241 | * 5.2 GHz channels 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64 | 196 | * 5.2 GHz channels 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64 |
242 | * (5170-5320MHz) | 197 | * (5170-5320MHz) |
243 | */ | 198 | */ |
244 | u16 band_3_count; /* abs.ofs: 254 */ | 199 | u16 band_3_count; /* abs.ofs: 254 */ |
245 | struct iwl3945_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */ | 200 | struct iwl_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */ |
246 | 201 | ||
247 | /* | 202 | /* |
248 | * 5.5 GHz channels 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 | 203 | * 5.5 GHz channels 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 |
249 | * (5500-5700MHz) | 204 | * (5500-5700MHz) |
250 | */ | 205 | */ |
251 | u16 band_4_count; /* abs.ofs: 280 */ | 206 | u16 band_4_count; /* abs.ofs: 280 */ |
252 | struct iwl3945_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */ | 207 | struct iwl_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */ |
253 | 208 | ||
254 | /* | 209 | /* |
255 | * 5.7 GHz channels 145, 149, 153, 157, 161, 165 | 210 | * 5.7 GHz channels 145, 149, 153, 157, 161, 165 |
256 | * (5725-5825MHz) | 211 | * (5725-5825MHz) |
257 | */ | 212 | */ |
258 | u16 band_5_count; /* abs.ofs: 304 */ | 213 | u16 band_5_count; /* abs.ofs: 304 */ |
259 | struct iwl3945_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */ | 214 | struct iwl_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */ |
260 | 215 | ||
261 | u8 reserved9[194]; | 216 | u8 reserved9[194]; |
262 | 217 | ||