diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-02-09 02:57:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:45:05 -0500 |
commit | cbe61d8a41210600bc76b212edcd4dc0f55c014f (patch) | |
tree | d8bd8e43d3556c58d410f1bef0d2ca3bf7d75c92 /drivers/net/wireless/ath9k/eeprom.h | |
parent | ba52da58be0acf3b7775972b2b5234ce64388c79 (diff) |
ath9k: Merge ath_hal and ath_hal_5416 structures
Finally, merge these structures and have a single
HW specific data structure.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath9k/eeprom.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.h b/drivers/net/wireless/ath9k/eeprom.h index 9eb777465144..81a7a708bc85 100644 --- a/drivers/net/wireless/ath9k/eeprom.h +++ b/drivers/net/wireless/ath9k/eeprom.h | |||
@@ -447,38 +447,38 @@ enum hal_eep_map { | |||
447 | EEP_MAP_MAX | 447 | EEP_MAP_MAX |
448 | }; | 448 | }; |
449 | 449 | ||
450 | #define ar5416_get_eep_ver(_ahp) \ | 450 | #define ar5416_get_eep_ver(_ah) \ |
451 | (((_ahp)->ah_eeprom.def.baseEepHeader.version >> 12) & 0xF) | 451 | (((_ah)->ah_eeprom.def.baseEepHeader.version >> 12) & 0xF) |
452 | #define ar5416_get_eep_rev(_ahp) \ | 452 | #define ar5416_get_eep_rev(_ah) \ |
453 | (((_ahp)->ah_eeprom.def.baseEepHeader.version) & 0xFFF) | 453 | (((_ah)->ah_eeprom.def.baseEepHeader.version) & 0xFFF) |
454 | #define ar5416_get_ntxchains(_txchainmask) \ | 454 | #define ar5416_get_ntxchains(_txchainmask) \ |
455 | (((_txchainmask >> 2) & 1) + \ | 455 | (((_txchainmask >> 2) & 1) + \ |
456 | ((_txchainmask >> 1) & 1) + (_txchainmask & 1)) | 456 | ((_txchainmask >> 1) & 1) + (_txchainmask & 1)) |
457 | 457 | ||
458 | #define ar5416_get_eep4k_ver(_ahp) \ | 458 | #define ar5416_get_eep4k_ver(_ah) \ |
459 | (((_ahp)->ah_eeprom.map4k.baseEepHeader.version >> 12) & 0xF) | 459 | (((_ah)->ah_eeprom.map4k.baseEepHeader.version >> 12) & 0xF) |
460 | #define ar5416_get_eep4k_rev(_ahp) \ | 460 | #define ar5416_get_eep4k_rev(_ah) \ |
461 | (((_ahp)->ah_eeprom.map4k.baseEepHeader.version) & 0xFFF) | 461 | (((_ah)->ah_eeprom.map4k.baseEepHeader.version) & 0xFFF) |
462 | 462 | ||
463 | int ath9k_hw_set_txpower(struct ath_hal *ah, struct ath9k_channel *chan, | 463 | int ath9k_hw_set_txpower(struct ath_hw *ah, struct ath9k_channel *chan, |
464 | u16 cfgCtl, u8 twiceAntennaReduction, | 464 | u16 cfgCtl, u8 twiceAntennaReduction, |
465 | u8 twiceMaxRegulatoryPower, u8 powerLimit); | 465 | u8 twiceMaxRegulatoryPower, u8 powerLimit); |
466 | void ath9k_hw_set_addac(struct ath_hal *ah, struct ath9k_channel *chan); | 466 | void ath9k_hw_set_addac(struct ath_hw *ah, struct ath9k_channel *chan); |
467 | bool ath9k_hw_set_power_per_rate_table(struct ath_hal *ah, | 467 | bool ath9k_hw_set_power_per_rate_table(struct ath_hw *ah, |
468 | struct ath9k_channel *chan, int16_t *ratesArray, | 468 | struct ath9k_channel *chan, int16_t *ratesArray, |
469 | u16 cfgCtl, u8 AntennaReduction, | 469 | u16 cfgCtl, u8 AntennaReduction, |
470 | u8 twiceMaxRegulatoryPower, u8 powerLimit); | 470 | u8 twiceMaxRegulatoryPower, u8 powerLimit); |
471 | bool ath9k_hw_set_power_cal_table(struct ath_hal *ah, | 471 | bool ath9k_hw_set_power_cal_table(struct ath_hw *ah, |
472 | struct ath9k_channel *chan, | 472 | struct ath9k_channel *chan, |
473 | int16_t *pTxPowerIndexOffset); | 473 | int16_t *pTxPowerIndexOffset); |
474 | bool ath9k_hw_eeprom_set_board_values(struct ath_hal *ah, | 474 | bool ath9k_hw_eeprom_set_board_values(struct ath_hw *ah, |
475 | struct ath9k_channel *chan); | 475 | struct ath9k_channel *chan); |
476 | u16 ath9k_hw_get_eeprom_antenna_cfg(struct ath_hal *ah, | 476 | u16 ath9k_hw_get_eeprom_antenna_cfg(struct ath_hw *ah, |
477 | struct ath9k_channel *chan); | 477 | struct ath9k_channel *chan); |
478 | u8 ath9k_hw_get_num_ant_config(struct ath_hal *ah, | 478 | u8 ath9k_hw_get_num_ant_config(struct ath_hw *ah, |
479 | enum ieee80211_band freq_band); | 479 | enum ieee80211_band freq_band); |
480 | u16 ath9k_hw_eeprom_get_spur_chan(struct ath_hal *ah, u16 i, bool is2GHz); | 480 | u16 ath9k_hw_eeprom_get_spur_chan(struct ath_hw *ah, u16 i, bool is2GHz); |
481 | u32 ath9k_hw_get_eeprom(struct ath_hal *ah, enum eeprom_param param); | 481 | u32 ath9k_hw_get_eeprom(struct ath_hw *ah, enum eeprom_param param); |
482 | int ath9k_hw_eeprom_attach(struct ath_hal *ah); | 482 | int ath9k_hw_eeprom_attach(struct ath_hw *ah); |
483 | 483 | ||
484 | #endif /* EEPROM_H */ | 484 | #endif /* EEPROM_H */ |