diff options
author | Assaf Krauss <assaf.krauss@intel.com> | 2008-03-14 13:38:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:51 -0400 |
commit | bf85ea4fbecab278c63f02fd102b33cc6cb21eb9 (patch) | |
tree | 11c997de3b8ecbdcb479ca143aa904f1be0dfeeb /drivers/net/wireless/iwlwifi/iwl-4965.h | |
parent | 1d0a082d38decb62ceb3e26a4bb1a3ca78843a23 (diff) |
iwlwifi: Probe Flow - Extracting hw and priv init
1. Extracting hw and priv initialization from probe function.
2. Moving some initialization functions to core module.
Signed-off-by: Assaf Krauss <assaf.krauss@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h index 1480e1b698a..7baed4db2f3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965.h | |||
@@ -197,7 +197,7 @@ enum { | |||
197 | */ | 197 | */ |
198 | #define IWL4965_MAX_RATE (33) | 198 | #define IWL4965_MAX_RATE (33) |
199 | 199 | ||
200 | struct iwl4965_channel_info { | 200 | struct iwl_channel_info { |
201 | struct iwl4965_channel_tgd_info tgd; | 201 | struct iwl4965_channel_tgd_info tgd; |
202 | struct iwl4965_channel_tgh_info tgh; | 202 | struct iwl4965_channel_tgh_info tgh; |
203 | struct iwl4965_eeprom_channel eeprom; /* EEPROM regulatory limit */ | 203 | struct iwl4965_eeprom_channel eeprom; /* EEPROM regulatory limit */ |
@@ -669,6 +669,8 @@ extern void iwl4965_set_decrypted_flag(struct iwl_priv *priv, struct sk_buff *sk | |||
669 | u32 decrypt_res, | 669 | u32 decrypt_res, |
670 | struct ieee80211_rx_status *stats); | 670 | struct ieee80211_rx_status *stats); |
671 | extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr); | 671 | extern __le16 *ieee80211_get_qos_ctrl(struct ieee80211_hdr *hdr); |
672 | int iwl4965_init_geos(struct iwl_priv *priv); | ||
673 | void iwl4965_free_geos(struct iwl_priv *priv); | ||
672 | 674 | ||
673 | extern const u8 iwl4965_broadcast_addr[ETH_ALEN]; | 675 | extern const u8 iwl4965_broadcast_addr[ETH_ALEN]; |
674 | 676 | ||
@@ -755,11 +757,6 @@ extern void iwl4965_update_rate_scaling(struct iwl_priv *priv, u8 mode); | |||
755 | extern void iwl4965_chain_noise_reset(struct iwl_priv *priv); | 757 | extern void iwl4965_chain_noise_reset(struct iwl_priv *priv); |
756 | extern void iwl4965_init_sensitivity(struct iwl_priv *priv, u8 flags, | 758 | extern void iwl4965_init_sensitivity(struct iwl_priv *priv, u8 flags, |
757 | u8 force); | 759 | u8 force); |
758 | extern int iwl4965_set_fat_chan_info(struct iwl_priv *priv, | ||
759 | enum ieee80211_band band, | ||
760 | u16 channel, | ||
761 | const struct iwl4965_eeprom_channel *eeprom_ch, | ||
762 | u8 fat_extension_channel); | ||
763 | extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv); | 760 | extern void iwl4965_rf_kill_ct_config(struct iwl_priv *priv); |
764 | extern void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv, | 761 | extern void iwl4965_hwrate_to_tx_control(struct iwl_priv *priv, |
765 | u32 rate_n_flags, | 762 | u32 rate_n_flags, |
@@ -995,7 +992,7 @@ struct iwl_priv { | |||
995 | 992 | ||
996 | /* we allocate array of iwl4965_channel_info for NIC's valid channels. | 993 | /* we allocate array of iwl4965_channel_info for NIC's valid channels. |
997 | * Access via channel # using indirect index array */ | 994 | * Access via channel # using indirect index array */ |
998 | struct iwl4965_channel_info *channel_info; /* channel info array */ | 995 | struct iwl_channel_info *channel_info; /* channel info array */ |
999 | u8 channel_count; /* # of channels */ | 996 | u8 channel_count; /* # of channels */ |
1000 | 997 | ||
1001 | /* each calibration channel group in the EEPROM has a derived | 998 | /* each calibration channel group in the EEPROM has a derived |
@@ -1229,44 +1226,44 @@ static inline int iwl4965_is_associated(struct iwl_priv *priv) | |||
1229 | return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0; | 1226 | return (priv->active_rxon.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0; |
1230 | } | 1227 | } |
1231 | 1228 | ||
1232 | static inline int is_channel_valid(const struct iwl4965_channel_info *ch_info) | 1229 | static inline int is_channel_valid(const struct iwl_channel_info *ch_info) |
1233 | { | 1230 | { |
1234 | if (ch_info == NULL) | 1231 | if (ch_info == NULL) |
1235 | return 0; | 1232 | return 0; |
1236 | return (ch_info->flags & EEPROM_CHANNEL_VALID) ? 1 : 0; | 1233 | return (ch_info->flags & EEPROM_CHANNEL_VALID) ? 1 : 0; |
1237 | } | 1234 | } |
1238 | 1235 | ||
1239 | static inline int is_channel_narrow(const struct iwl4965_channel_info *ch_info) | 1236 | static inline int is_channel_narrow(const struct iwl_channel_info *ch_info) |
1240 | { | 1237 | { |
1241 | return (ch_info->flags & EEPROM_CHANNEL_NARROW) ? 1 : 0; | 1238 | return (ch_info->flags & EEPROM_CHANNEL_NARROW) ? 1 : 0; |
1242 | } | 1239 | } |
1243 | 1240 | ||
1244 | static inline int is_channel_radar(const struct iwl4965_channel_info *ch_info) | 1241 | static inline int is_channel_radar(const struct iwl_channel_info *ch_info) |
1245 | { | 1242 | { |
1246 | return (ch_info->flags & EEPROM_CHANNEL_RADAR) ? 1 : 0; | 1243 | return (ch_info->flags & EEPROM_CHANNEL_RADAR) ? 1 : 0; |
1247 | } | 1244 | } |
1248 | 1245 | ||
1249 | static inline u8 is_channel_a_band(const struct iwl4965_channel_info *ch_info) | 1246 | static inline u8 is_channel_a_band(const struct iwl_channel_info *ch_info) |
1250 | { | 1247 | { |
1251 | return ch_info->band == IEEE80211_BAND_5GHZ; | 1248 | return ch_info->band == IEEE80211_BAND_5GHZ; |
1252 | } | 1249 | } |
1253 | 1250 | ||
1254 | static inline u8 is_channel_bg_band(const struct iwl4965_channel_info *ch_info) | 1251 | static inline u8 is_channel_bg_band(const struct iwl_channel_info *ch_info) |
1255 | { | 1252 | { |
1256 | return ch_info->band == IEEE80211_BAND_2GHZ; | 1253 | return ch_info->band == IEEE80211_BAND_2GHZ; |
1257 | } | 1254 | } |
1258 | 1255 | ||
1259 | static inline int is_channel_passive(const struct iwl4965_channel_info *ch) | 1256 | static inline int is_channel_passive(const struct iwl_channel_info *ch) |
1260 | { | 1257 | { |
1261 | return (!(ch->flags & EEPROM_CHANNEL_ACTIVE)) ? 1 : 0; | 1258 | return (!(ch->flags & EEPROM_CHANNEL_ACTIVE)) ? 1 : 0; |
1262 | } | 1259 | } |
1263 | 1260 | ||
1264 | static inline int is_channel_ibss(const struct iwl4965_channel_info *ch) | 1261 | static inline int is_channel_ibss(const struct iwl_channel_info *ch) |
1265 | { | 1262 | { |
1266 | return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0; | 1263 | return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0; |
1267 | } | 1264 | } |
1268 | 1265 | ||
1269 | extern const struct iwl4965_channel_info *iwl4965_get_channel_info( | 1266 | extern const struct iwl_channel_info *iwl4965_get_channel_info( |
1270 | const struct iwl_priv *priv, enum ieee80211_band band, u16 channel); | 1267 | const struct iwl_priv *priv, enum ieee80211_band band, u16 channel); |
1271 | 1268 | ||
1272 | /* Requires full declaration of iwl_priv before including */ | 1269 | /* Requires full declaration of iwl_priv before including */ |