aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/eeprom.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-02-09 02:57:24 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-13 13:45:08 -0500
commitf74df6fbe31561091bf42be0ed30232be2b9d3ac (patch)
tree5cd6ed9f809e60d8ff6acd9363efa0475a95e20c /drivers/net/wireless/ath9k/eeprom.h
parente153789dc3846b35494435b4a8ae82a034c99dae (diff)
ath9k: Cleanup EEPROM operations
This patch removes the various function pointer assignments and unifies them in a single ops 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.h30
1 files changed, 1 insertions, 29 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.h b/drivers/net/wireless/ath9k/eeprom.h
index 47c8eea85e83..7a4266f29eaa 100644
--- a/drivers/net/wireless/ath9k/eeprom.h
+++ b/drivers/net/wireless/ath9k/eeprom.h
@@ -464,38 +464,10 @@ struct eeprom_ops {
464 u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz); 464 u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz);
465}; 465};
466 466
467#define ar5416_get_eep_ver(_ah) \
468 (((_ah)->ah_eeprom.def.baseEepHeader.version >> 12) & 0xF)
469#define ar5416_get_eep_rev(_ah) \
470 (((_ah)->ah_eeprom.def.baseEepHeader.version) & 0xFFF)
471#define ar5416_get_ntxchains(_txchainmask) \ 467#define ar5416_get_ntxchains(_txchainmask) \
472 (((_txchainmask >> 2) & 1) + \ 468 (((_txchainmask >> 2) & 1) + \
473 ((_txchainmask >> 1) & 1) + (_txchainmask & 1)) 469 ((_txchainmask >> 1) & 1) + (_txchainmask & 1))
474 470
475#define ar5416_get_eep4k_ver(_ah) \
476 (((_ah)->ah_eeprom.map4k.baseEepHeader.version >> 12) & 0xF)
477#define ar5416_get_eep4k_rev(_ah) \
478 (((_ah)->ah_eeprom.map4k.baseEepHeader.version) & 0xFFF)
479
480int ath9k_hw_set_txpower(struct ath_hw *ah, struct ath9k_channel *chan,
481 u16 cfgCtl, u8 twiceAntennaReduction,
482 u8 twiceMaxRegulatoryPower, u8 powerLimit);
483void ath9k_hw_set_addac(struct ath_hw *ah, struct ath9k_channel *chan);
484bool ath9k_hw_set_power_per_rate_table(struct ath_hw *ah,
485 struct ath9k_channel *chan, int16_t *ratesArray,
486 u16 cfgCtl, u8 AntennaReduction,
487 u8 twiceMaxRegulatoryPower, u8 powerLimit);
488bool ath9k_hw_set_power_cal_table(struct ath_hw *ah,
489 struct ath9k_channel *chan,
490 int16_t *pTxPowerIndexOffset);
491bool ath9k_hw_eeprom_set_board_values(struct ath_hw *ah,
492 struct ath9k_channel *chan);
493u16 ath9k_hw_get_eeprom_antenna_cfg(struct ath_hw *ah,
494 struct ath9k_channel *chan);
495u8 ath9k_hw_get_num_ant_config(struct ath_hw *ah,
496 enum ieee80211_band freq_band);
497u16 ath9k_hw_eeprom_get_spur_chan(struct ath_hw *ah, u16 i, bool is2GHz);
498u32 ath9k_hw_get_eeprom(struct ath_hw *ah, enum eeprom_param param);
499int ath9k_hw_eeprom_attach(struct ath_hw *ah); 471int ath9k_hw_eeprom_attach(struct ath_hw *ah);
500 472
501#endif /* EEPROM_H */ 473#endif /* EEPROM_H */