forked from Minki/linux
ath9k: Split eeprom.c into manageable pieces
Add eeprom_def.c, eeprom_4k.c and eeprom_9287.c This improves maintainability. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
6780ccf565
commit
b5aec950ee
@ -1,5 +1,8 @@
|
||||
ath9k-y += hw.o \
|
||||
eeprom.o \
|
||||
eeprom_def.o \
|
||||
eeprom_4k.o \
|
||||
eeprom_9287.o \
|
||||
mac.o \
|
||||
calib.o \
|
||||
ani.o \
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -656,10 +656,39 @@ struct eeprom_ops {
|
||||
u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz);
|
||||
};
|
||||
|
||||
void ath9k_hw_analog_shift_rmw(struct ath_hw *ah, u32 reg, u32 mask,
|
||||
u32 shift, u32 val);
|
||||
int16_t ath9k_hw_interpolate(u16 target, u16 srcLeft, u16 srcRight,
|
||||
int16_t targetLeft,
|
||||
int16_t targetRight);
|
||||
bool ath9k_hw_get_lower_upper_index(u8 target, u8 *pList, u16 listSize,
|
||||
u16 *indexL, u16 *indexR);
|
||||
bool ath9k_hw_nvram_read(struct ath_hw *ah, u32 off, u16 *data);
|
||||
void ath9k_hw_fill_vpd_table(u8 pwrMin, u8 pwrMax, u8 *pPwrList,
|
||||
u8 *pVpdList, u16 numIntercepts,
|
||||
u8 *pRetVpdList);
|
||||
void ath9k_hw_get_legacy_target_powers(struct ath_hw *ah,
|
||||
struct ath9k_channel *chan,
|
||||
struct cal_target_power_leg *powInfo,
|
||||
u16 numChannels,
|
||||
struct cal_target_power_leg *pNewPower,
|
||||
u16 numRates, bool isExtTarget);
|
||||
void ath9k_hw_get_target_powers(struct ath_hw *ah,
|
||||
struct ath9k_channel *chan,
|
||||
struct cal_target_power_ht *powInfo,
|
||||
u16 numChannels,
|
||||
struct cal_target_power_ht *pNewPower,
|
||||
u16 numRates, bool isHt40Target);
|
||||
u16 ath9k_hw_get_max_edge_power(u16 freq, struct cal_ctl_edges *pRdEdgesPower,
|
||||
bool is2GHz, int num_band_edges);
|
||||
int ath9k_hw_eeprom_init(struct ath_hw *ah);
|
||||
|
||||
#define ar5416_get_ntxchains(_txchainmask) \
|
||||
(((_txchainmask >> 2) & 1) + \
|
||||
((_txchainmask >> 1) & 1) + (_txchainmask & 1))
|
||||
|
||||
int ath9k_hw_eeprom_init(struct ath_hw *ah);
|
||||
extern const struct eeprom_ops eep_def_ops;
|
||||
extern const struct eeprom_ops eep_4k_ops;
|
||||
extern const struct eeprom_ops eep_AR9287_ops;
|
||||
|
||||
#endif /* EEPROM_H */
|
||||
|
1181
drivers/net/wireless/ath/ath9k/eeprom_4k.c
Normal file
1181
drivers/net/wireless/ath/ath9k/eeprom_4k.c
Normal file
File diff suppressed because it is too large
Load Diff
1183
drivers/net/wireless/ath/ath9k/eeprom_9287.c
Normal file
1183
drivers/net/wireless/ath/ath9k/eeprom_9287.c
Normal file
File diff suppressed because it is too large
Load Diff
1385
drivers/net/wireless/ath/ath9k/eeprom_def.c
Normal file
1385
drivers/net/wireless/ath/ath9k/eeprom_def.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user