From bfa54935204f105222400c368975d340c3cd088a Mon Sep 17 00:00:00 2001 From: Sujith Date: Mon, 9 Feb 2009 13:27:15 +0530 Subject: [PATCH] --- yaml --- r: 134471 b: refs/heads/master c: e153789dc3846b35494435b4a8ae82a034c99dae h: refs/heads/master i: 134469: 16bb2b0819b5daf9ebbe0db83e964a2ab6254bf6 134467: 2d343fa07ce8fa1613fd2b04d9b75ceeac5ad4c6 134463: 242fb4d0339ac9dd852ac0e5b3488e1ba02db684 v: v3 --- [refs] | 2 +- trunk/drivers/net/wireless/ath9k/eeprom.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index ef020b682f0f..f887f8b8674b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cbe61d8a41210600bc76b212edcd4dc0f55c014f +refs/heads/master: e153789dc3846b35494435b4a8ae82a034c99dae diff --git a/trunk/drivers/net/wireless/ath9k/eeprom.h b/trunk/drivers/net/wireless/ath9k/eeprom.h index 81a7a708bc85..47c8eea85e83 100644 --- a/trunk/drivers/net/wireless/ath9k/eeprom.h +++ b/trunk/drivers/net/wireless/ath9k/eeprom.h @@ -447,6 +447,23 @@ enum hal_eep_map { EEP_MAP_MAX }; +struct eeprom_ops { + int (*check_eeprom)(struct ath_hw *hw); + u32 (*get_eeprom)(struct ath_hw *hw, enum eeprom_param param); + bool (*fill_eeprom)(struct ath_hw *hw); + int (*get_eeprom_ver)(struct ath_hw *hw); + int (*get_eeprom_rev)(struct ath_hw *hw); + u8 (*get_num_ant_config)(struct ath_hw *hw, enum ieee80211_band band); + u16 (*get_eeprom_antenna_cfg)(struct ath_hw *hw, + struct ath9k_channel *chan); + bool (*set_board_values)(struct ath_hw *hw, struct ath9k_channel *chan); + void (*set_addac)(struct ath_hw *hw, struct ath9k_channel *chan); + int (*set_txpower)(struct ath_hw *hw, struct ath9k_channel *chan, + u16 cfgCtl, u8 twiceAntennaReduction, + u8 twiceMaxRegulatoryPower, u8 powerLimit); + u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz); +}; + #define ar5416_get_eep_ver(_ah) \ (((_ah)->ah_eeprom.def.baseEepHeader.version >> 12) & 0xF) #define ar5416_get_eep_rev(_ah) \