aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/eeprom.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2009-02-09 02:57:15 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-13 13:45:07 -0500
commite153789dc3846b35494435b4a8ae82a034c99dae (patch)
treeb5f06209335cc04516f70cb12fe718d7d0b8352e /drivers/net/wireless/ath9k/eeprom.h
parentcbe61d8a41210600bc76b212edcd4dc0f55c014f (diff)
ath9k: Add callbacks hooks for EEPROM operations
This is preparatory work for removing the individual function pointer assignments in eeprom.c 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.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.h b/drivers/net/wireless/ath9k/eeprom.h
index 81a7a708bc85..47c8eea85e83 100644
--- a/drivers/net/wireless/ath9k/eeprom.h
+++ b/drivers/net/wireless/ath9k/eeprom.h
@@ -447,6 +447,23 @@ enum hal_eep_map {
447 EEP_MAP_MAX 447 EEP_MAP_MAX
448}; 448};
449 449
450struct eeprom_ops {
451 int (*check_eeprom)(struct ath_hw *hw);
452 u32 (*get_eeprom)(struct ath_hw *hw, enum eeprom_param param);
453 bool (*fill_eeprom)(struct ath_hw *hw);
454 int (*get_eeprom_ver)(struct ath_hw *hw);
455 int (*get_eeprom_rev)(struct ath_hw *hw);
456 u8 (*get_num_ant_config)(struct ath_hw *hw, enum ieee80211_band band);
457 u16 (*get_eeprom_antenna_cfg)(struct ath_hw *hw,
458 struct ath9k_channel *chan);
459 bool (*set_board_values)(struct ath_hw *hw, struct ath9k_channel *chan);
460 void (*set_addac)(struct ath_hw *hw, struct ath9k_channel *chan);
461 int (*set_txpower)(struct ath_hw *hw, struct ath9k_channel *chan,
462 u16 cfgCtl, u8 twiceAntennaReduction,
463 u8 twiceMaxRegulatoryPower, u8 powerLimit);
464 u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz);
465};
466
450#define ar5416_get_eep_ver(_ah) \ 467#define ar5416_get_eep_ver(_ah) \
451 (((_ah)->ah_eeprom.def.baseEepHeader.version >> 12) & 0xF) 468 (((_ah)->ah_eeprom.def.baseEepHeader.version >> 12) & 0xF)
452#define ar5416_get_eep_rev(_ah) \ 469#define ar5416_get_eep_rev(_ah) \