diff options
author | Christoph Hellwig <hch@lst.de> | 2008-01-27 19:41:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:35 -0500 |
commit | bb8c093bdea62f2ae371b98ebff81b0407852faf (patch) | |
tree | 7937a70c333356a85b344f883608eeaf93dd3d2b /drivers/net/wireless/iwlwifi/iwl-4965-hw.h | |
parent | 403ab56b1c2786b0e1d58c27f5ce667b529c7faa (diff) |
iwlwifi: cleanup namespace
Prefix all symbols with iwl3945_ or iwl4965_ and thus allow building
the driver into the kernel. Also remove all the useless default
statements in Kconfig while we're at it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-hw.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-hw.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h index 4afd69da375f..dfaa60779460 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h | |||
@@ -137,7 +137,7 @@ enum { | |||
137 | #define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7) | 137 | #define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7) |
138 | 138 | ||
139 | /* *regulatory* channel data from eeprom, one for each channel */ | 139 | /* *regulatory* channel data from eeprom, one for each channel */ |
140 | struct iwl_eeprom_channel { | 140 | struct iwl4965_eeprom_channel { |
141 | u8 flags; /* flags copied from EEPROM */ | 141 | u8 flags; /* flags copied from EEPROM */ |
142 | s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */ | 142 | s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */ |
143 | } __attribute__ ((packed)); | 143 | } __attribute__ ((packed)); |
@@ -152,7 +152,7 @@ struct iwl_eeprom_channel { | |||
152 | * level. | 152 | * level. |
153 | * Data copied from EEPROM. | 153 | * Data copied from EEPROM. |
154 | */ | 154 | */ |
155 | struct iwl_eeprom_txpower_sample { | 155 | struct iwl4965_eeprom_txpower_sample { |
156 | u8 gain_index; /* index into power (gain) setup table ... */ | 156 | u8 gain_index; /* index into power (gain) setup table ... */ |
157 | s8 power; /* ... for this pwr level for this chnl group */ | 157 | s8 power; /* ... for this pwr level for this chnl group */ |
158 | u16 v_det; /* PA output voltage */ | 158 | u16 v_det; /* PA output voltage */ |
@@ -166,8 +166,8 @@ struct iwl_eeprom_txpower_sample { | |||
166 | * Data copied from EEPROM. | 166 | * Data copied from EEPROM. |
167 | * DO NOT ALTER THIS STRUCTURE!!! | 167 | * DO NOT ALTER THIS STRUCTURE!!! |
168 | */ | 168 | */ |
169 | struct iwl_eeprom_txpower_group { | 169 | struct iwl4965_eeprom_txpower_group { |
170 | struct iwl_eeprom_txpower_sample samples[5]; /* 5 power levels */ | 170 | struct iwl4965_eeprom_txpower_sample samples[5]; /* 5 power levels */ |
171 | s32 a, b, c, d, e; /* coefficients for voltage->power | 171 | s32 a, b, c, d, e; /* coefficients for voltage->power |
172 | * formula (signed) */ | 172 | * formula (signed) */ |
173 | s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on | 173 | s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on |
@@ -185,7 +185,7 @@ struct iwl_eeprom_txpower_group { | |||
185 | * difference between current temperature and factory calib temperature. | 185 | * difference between current temperature and factory calib temperature. |
186 | * Data copied from EEPROM. | 186 | * Data copied from EEPROM. |
187 | */ | 187 | */ |
188 | struct iwl_eeprom_temperature_corr { | 188 | struct iwl4965_eeprom_temperature_corr { |
189 | u32 Ta; | 189 | u32 Ta; |
190 | u32 Tb; | 190 | u32 Tb; |
191 | u32 Tc; | 191 | u32 Tc; |
@@ -199,35 +199,35 @@ struct iwl_eeprom_temperature_corr { | |||
199 | #define EEPROM_TX_POWER_VERSION (2) | 199 | #define EEPROM_TX_POWER_VERSION (2) |
200 | #define EEPROM_TX_POWER_VERSION_NEW (5) | 200 | #define EEPROM_TX_POWER_VERSION_NEW (5) |
201 | 201 | ||
202 | struct iwl_eeprom_calib_measure { | 202 | struct iwl4965_eeprom_calib_measure { |
203 | u8 temperature; | 203 | u8 temperature; |
204 | u8 gain_idx; | 204 | u8 gain_idx; |
205 | u8 actual_pow; | 205 | u8 actual_pow; |
206 | s8 pa_det; | 206 | s8 pa_det; |
207 | } __attribute__ ((packed)); | 207 | } __attribute__ ((packed)); |
208 | 208 | ||
209 | struct iwl_eeprom_calib_ch_info { | 209 | struct iwl4965_eeprom_calib_ch_info { |
210 | u8 ch_num; | 210 | u8 ch_num; |
211 | struct iwl_eeprom_calib_measure measurements[EEPROM_TX_POWER_TX_CHAINS] | 211 | struct iwl4965_eeprom_calib_measure measurements[EEPROM_TX_POWER_TX_CHAINS] |
212 | [EEPROM_TX_POWER_MEASUREMENTS]; | 212 | [EEPROM_TX_POWER_MEASUREMENTS]; |
213 | } __attribute__ ((packed)); | 213 | } __attribute__ ((packed)); |
214 | 214 | ||
215 | struct iwl_eeprom_calib_subband_info { | 215 | struct iwl4965_eeprom_calib_subband_info { |
216 | u8 ch_from; | 216 | u8 ch_from; |
217 | u8 ch_to; | 217 | u8 ch_to; |
218 | struct iwl_eeprom_calib_ch_info ch1; | 218 | struct iwl4965_eeprom_calib_ch_info ch1; |
219 | struct iwl_eeprom_calib_ch_info ch2; | 219 | struct iwl4965_eeprom_calib_ch_info ch2; |
220 | } __attribute__ ((packed)); | 220 | } __attribute__ ((packed)); |
221 | 221 | ||
222 | struct iwl_eeprom_calib_info { | 222 | struct iwl4965_eeprom_calib_info { |
223 | u8 saturation_power24; | 223 | u8 saturation_power24; |
224 | u8 saturation_power52; | 224 | u8 saturation_power52; |
225 | s16 voltage; /* signed */ | 225 | s16 voltage; /* signed */ |
226 | struct iwl_eeprom_calib_subband_info band_info[EEPROM_TX_POWER_BANDS]; | 226 | struct iwl4965_eeprom_calib_subband_info band_info[EEPROM_TX_POWER_BANDS]; |
227 | } __attribute__ ((packed)); | 227 | } __attribute__ ((packed)); |
228 | 228 | ||
229 | 229 | ||
230 | struct iwl_eeprom { | 230 | struct iwl4965_eeprom { |
231 | u8 reserved0[16]; | 231 | u8 reserved0[16]; |
232 | #define EEPROM_DEVICE_ID (2*0x08) /* 2 bytes */ | 232 | #define EEPROM_DEVICE_ID (2*0x08) /* 2 bytes */ |
233 | u16 device_id; /* abs.ofs: 16 */ | 233 | u16 device_id; /* abs.ofs: 16 */ |
@@ -276,30 +276,30 @@ struct iwl_eeprom { | |||
276 | #define EEPROM_REGULATORY_BAND_1 (2*0x62) /* 2 bytes */ | 276 | #define EEPROM_REGULATORY_BAND_1 (2*0x62) /* 2 bytes */ |
277 | u16 band_1_count; /* abs.ofs: 196 */ | 277 | u16 band_1_count; /* abs.ofs: 196 */ |
278 | #define EEPROM_REGULATORY_BAND_1_CHANNELS (2*0x63) /* 28 bytes */ | 278 | #define EEPROM_REGULATORY_BAND_1_CHANNELS (2*0x63) /* 28 bytes */ |
279 | struct iwl_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */ | 279 | struct iwl4965_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */ |
280 | #define EEPROM_REGULATORY_BAND_2 (2*0x71) /* 2 bytes */ | 280 | #define EEPROM_REGULATORY_BAND_2 (2*0x71) /* 2 bytes */ |
281 | u16 band_2_count; /* abs.ofs: 226 */ | 281 | u16 band_2_count; /* abs.ofs: 226 */ |
282 | #define EEPROM_REGULATORY_BAND_2_CHANNELS (2*0x72) /* 26 bytes */ | 282 | #define EEPROM_REGULATORY_BAND_2_CHANNELS (2*0x72) /* 26 bytes */ |
283 | struct iwl_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */ | 283 | struct iwl4965_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */ |
284 | #define EEPROM_REGULATORY_BAND_3 (2*0x7F) /* 2 bytes */ | 284 | #define EEPROM_REGULATORY_BAND_3 (2*0x7F) /* 2 bytes */ |
285 | u16 band_3_count; /* abs.ofs: 254 */ | 285 | u16 band_3_count; /* abs.ofs: 254 */ |
286 | #define EEPROM_REGULATORY_BAND_3_CHANNELS (2*0x80) /* 24 bytes */ | 286 | #define EEPROM_REGULATORY_BAND_3_CHANNELS (2*0x80) /* 24 bytes */ |
287 | struct iwl_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */ | 287 | struct iwl4965_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */ |
288 | #define EEPROM_REGULATORY_BAND_4 (2*0x8C) /* 2 bytes */ | 288 | #define EEPROM_REGULATORY_BAND_4 (2*0x8C) /* 2 bytes */ |
289 | u16 band_4_count; /* abs.ofs: 280 */ | 289 | u16 band_4_count; /* abs.ofs: 280 */ |
290 | #define EEPROM_REGULATORY_BAND_4_CHANNELS (2*0x8D) /* 22 bytes */ | 290 | #define EEPROM_REGULATORY_BAND_4_CHANNELS (2*0x8D) /* 22 bytes */ |
291 | struct iwl_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */ | 291 | struct iwl4965_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */ |
292 | #define EEPROM_REGULATORY_BAND_5 (2*0x98) /* 2 bytes */ | 292 | #define EEPROM_REGULATORY_BAND_5 (2*0x98) /* 2 bytes */ |
293 | u16 band_5_count; /* abs.ofs: 304 */ | 293 | u16 band_5_count; /* abs.ofs: 304 */ |
294 | #define EEPROM_REGULATORY_BAND_5_CHANNELS (2*0x99) /* 12 bytes */ | 294 | #define EEPROM_REGULATORY_BAND_5_CHANNELS (2*0x99) /* 12 bytes */ |
295 | struct iwl_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */ | 295 | struct iwl4965_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */ |
296 | 296 | ||
297 | u8 reserved10[2]; | 297 | u8 reserved10[2]; |
298 | #define EEPROM_REGULATORY_BAND_24_FAT_CHANNELS (2*0xA0) /* 14 bytes */ | 298 | #define EEPROM_REGULATORY_BAND_24_FAT_CHANNELS (2*0xA0) /* 14 bytes */ |
299 | struct iwl_eeprom_channel band_24_channels[7]; /* abs.ofs: 320 */ | 299 | struct iwl4965_eeprom_channel band_24_channels[7]; /* abs.ofs: 320 */ |
300 | u8 reserved11[2]; | 300 | u8 reserved11[2]; |
301 | #define EEPROM_REGULATORY_BAND_52_FAT_CHANNELS (2*0xA8) /* 22 bytes */ | 301 | #define EEPROM_REGULATORY_BAND_52_FAT_CHANNELS (2*0xA8) /* 22 bytes */ |
302 | struct iwl_eeprom_channel band_52_channels[11]; /* abs.ofs: 336 */ | 302 | struct iwl4965_eeprom_channel band_52_channels[11]; /* abs.ofs: 336 */ |
303 | u8 reserved12[6]; | 303 | u8 reserved12[6]; |
304 | #define EEPROM_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */ | 304 | #define EEPROM_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */ |
305 | u16 calib_version; /* abs.ofs: 364 */ | 305 | u16 calib_version; /* abs.ofs: 364 */ |
@@ -308,7 +308,7 @@ struct iwl_eeprom { | |||
308 | u16 satruation_power; /* abs.ofs: 368 */ | 308 | u16 satruation_power; /* abs.ofs: 368 */ |
309 | u8 reserved14[94]; | 309 | u8 reserved14[94]; |
310 | #define EEPROM_IWL_CALIB_TXPOWER_OFFSET (2*0xE8) /* 48 bytes */ | 310 | #define EEPROM_IWL_CALIB_TXPOWER_OFFSET (2*0xE8) /* 48 bytes */ |
311 | struct iwl_eeprom_calib_info calib_info; /* abs.ofs: 464 */ | 311 | struct iwl4965_eeprom_calib_info calib_info; /* abs.ofs: 464 */ |
312 | 312 | ||
313 | u8 reserved16[140]; /* fill out to full 1024 byte block */ | 313 | u8 reserved16[140]; /* fill out to full 1024 byte block */ |
314 | 314 | ||
@@ -731,8 +731,8 @@ struct iwl_eeprom { | |||
731 | #define TFD_TX_CMD_SLOTS 256 | 731 | #define TFD_TX_CMD_SLOTS 256 |
732 | #define TFD_CMD_SLOTS 32 | 732 | #define TFD_CMD_SLOTS 32 |
733 | 733 | ||
734 | #define TFD_MAX_PAYLOAD_SIZE (sizeof(struct iwl_cmd) - \ | 734 | #define TFD_MAX_PAYLOAD_SIZE (sizeof(struct iwl4965_cmd) - \ |
735 | sizeof(struct iwl_cmd_meta)) | 735 | sizeof(struct iwl4965_cmd_meta)) |
736 | 736 | ||
737 | /* | 737 | /* |
738 | * RX related structures and functions | 738 | * RX related structures and functions |
@@ -751,7 +751,7 @@ struct iwl_eeprom { | |||
751 | #define IWL_MAX_INST_SIZE KDR_RTC_INST_SIZE | 751 | #define IWL_MAX_INST_SIZE KDR_RTC_INST_SIZE |
752 | #define IWL_MAX_DATA_SIZE KDR_RTC_DATA_SIZE | 752 | #define IWL_MAX_DATA_SIZE KDR_RTC_DATA_SIZE |
753 | 753 | ||
754 | static inline int iwl_hw_valid_rtc_data_addr(u32 addr) | 754 | static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr) |
755 | { | 755 | { |
756 | return (addr >= RTC_DATA_LOWER_BOUND) && | 756 | return (addr >= RTC_DATA_LOWER_BOUND) && |
757 | (addr < KDR_RTC_DATA_UPPER_BOUND); | 757 | (addr < KDR_RTC_DATA_UPPER_BOUND); |
@@ -873,7 +873,7 @@ enum { | |||
873 | #define CALIB_IWL_TX_ATTEN_GR5_LCH 20 | 873 | #define CALIB_IWL_TX_ATTEN_GR5_LCH 20 |
874 | 874 | ||
875 | 875 | ||
876 | union iwl_tx_power_dual_stream { | 876 | union iwl4965_tx_power_dual_stream { |
877 | struct { | 877 | struct { |
878 | u8 radio_tx_gain[2]; | 878 | u8 radio_tx_gain[2]; |
879 | u8 dsp_predis_atten[2]; | 879 | u8 dsp_predis_atten[2]; |
@@ -1115,20 +1115,20 @@ union iwl_tx_power_dual_stream { | |||
1115 | #define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI (0x00000100) | 1115 | #define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI (0x00000100) |
1116 | #define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI (0x00000200) | 1116 | #define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI (0x00000200) |
1117 | 1117 | ||
1118 | static inline u8 iwl_hw_get_rate(__le32 rate_n_flags) | 1118 | static inline u8 iwl4965_hw_get_rate(__le32 rate_n_flags) |
1119 | { | 1119 | { |
1120 | return le32_to_cpu(rate_n_flags) & 0xFF; | 1120 | return le32_to_cpu(rate_n_flags) & 0xFF; |
1121 | } | 1121 | } |
1122 | static inline u16 iwl_hw_get_rate_n_flags(__le32 rate_n_flags) | 1122 | static inline u16 iwl4965_hw_get_rate_n_flags(__le32 rate_n_flags) |
1123 | { | 1123 | { |
1124 | return le32_to_cpu(rate_n_flags) & 0xFFFF; | 1124 | return le32_to_cpu(rate_n_flags) & 0xFFFF; |
1125 | } | 1125 | } |
1126 | static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u16 flags) | 1126 | static inline __le32 iwl4965_hw_set_rate_n_flags(u8 rate, u16 flags) |
1127 | { | 1127 | { |
1128 | return cpu_to_le32(flags|(u16)rate); | 1128 | return cpu_to_le32(flags|(u16)rate); |
1129 | } | 1129 | } |
1130 | 1130 | ||
1131 | struct iwl_tfd_frame_data { | 1131 | struct iwl4965_tfd_frame_data { |
1132 | __le32 tb1_addr; | 1132 | __le32 tb1_addr; |
1133 | 1133 | ||
1134 | __le32 val1; | 1134 | __le32 val1; |
@@ -1156,7 +1156,7 @@ struct iwl_tfd_frame_data { | |||
1156 | #define IWL_tb2_len_SYM val2 | 1156 | #define IWL_tb2_len_SYM val2 |
1157 | } __attribute__ ((packed)); | 1157 | } __attribute__ ((packed)); |
1158 | 1158 | ||
1159 | struct iwl_tfd_frame { | 1159 | struct iwl4965_tfd_frame { |
1160 | __le32 val0; | 1160 | __le32 val0; |
1161 | /* __le32 rsvd1:24; */ | 1161 | /* __le32 rsvd1:24; */ |
1162 | /* __le32 num_tbs:5; */ | 1162 | /* __le32 num_tbs:5; */ |
@@ -1165,7 +1165,7 @@ struct iwl_tfd_frame { | |||
1165 | #define IWL_num_tbs_SYM val0 | 1165 | #define IWL_num_tbs_SYM val0 |
1166 | /* __le32 rsvd2:1; */ | 1166 | /* __le32 rsvd2:1; */ |
1167 | /* __le32 padding:2; */ | 1167 | /* __le32 padding:2; */ |
1168 | struct iwl_tfd_frame_data pa[10]; | 1168 | struct iwl4965_tfd_frame_data pa[10]; |
1169 | __le32 reserved; | 1169 | __le32 reserved; |
1170 | } __attribute__ ((packed)); | 1170 | } __attribute__ ((packed)); |
1171 | 1171 | ||
@@ -1191,9 +1191,9 @@ struct iwl4965_sched_queue_byte_cnt_tbl { | |||
1191 | sizeof(__le16)]; | 1191 | sizeof(__le16)]; |
1192 | } __attribute__ ((packed)); | 1192 | } __attribute__ ((packed)); |
1193 | 1193 | ||
1194 | /* Base physical address of iwl_shared is provided to KDR_SCD_DRAM_BASE_ADDR | 1194 | /* Base physical address of iwl4965_shared is provided to KDR_SCD_DRAM_BASE_ADDR |
1195 | * and &iwl_shared.val0 is provided to FH_RSCSR_CHNL0_STTS_WPTR_REG */ | 1195 | * and &iwl4965_shared.val0 is provided to FH_RSCSR_CHNL0_STTS_WPTR_REG */ |
1196 | struct iwl_shared { | 1196 | struct iwl4965_shared { |
1197 | struct iwl4965_sched_queue_byte_cnt_tbl | 1197 | struct iwl4965_sched_queue_byte_cnt_tbl |
1198 | queues_byte_cnt_tbls[IWL_MAX_NUM_QUEUES]; | 1198 | queues_byte_cnt_tbls[IWL_MAX_NUM_QUEUES]; |
1199 | __le32 val0; | 1199 | __le32 val0; |
@@ -1225,4 +1225,4 @@ struct iwl_shared { | |||
1225 | __le32 padding2; | 1225 | __le32 padding2; |
1226 | } __attribute__ ((packed)); | 1226 | } __attribute__ ((packed)); |
1227 | 1227 | ||
1228 | #endif /* __iwl_4965_hw_h__ */ | 1228 | #endif /* __iwl4965_4965_hw_h__ */ |