eeprom.h (495a1b4eff1a216a3ea171ac137f1807e6555f52) eeprom.h (8fbff4b838c53945d6baeafe609c627000f85cd6)
1/*
2 * Copyright (c) 2008-2009 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 480 unchanged lines hidden (view full) ---

489 bool (*fill_eeprom)(struct ath_hw *hw);
490 int (*get_eeprom_ver)(struct ath_hw *hw);
491 int (*get_eeprom_rev)(struct ath_hw *hw);
492 u8 (*get_num_ant_config)(struct ath_hw *hw, enum ieee80211_band band);
493 u16 (*get_eeprom_antenna_cfg)(struct ath_hw *hw,
494 struct ath9k_channel *chan);
495 void (*set_board_values)(struct ath_hw *hw, struct ath9k_channel *chan);
496 void (*set_addac)(struct ath_hw *hw, struct ath9k_channel *chan);
1/*
2 * Copyright (c) 2008-2009 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 480 unchanged lines hidden (view full) ---

489 bool (*fill_eeprom)(struct ath_hw *hw);
490 int (*get_eeprom_ver)(struct ath_hw *hw);
491 int (*get_eeprom_rev)(struct ath_hw *hw);
492 u8 (*get_num_ant_config)(struct ath_hw *hw, enum ieee80211_band band);
493 u16 (*get_eeprom_antenna_cfg)(struct ath_hw *hw,
494 struct ath9k_channel *chan);
495 void (*set_board_values)(struct ath_hw *hw, struct ath9k_channel *chan);
496 void (*set_addac)(struct ath_hw *hw, struct ath9k_channel *chan);
497 int (*set_txpower)(struct ath_hw *hw, struct ath9k_channel *chan,
497 void (*set_txpower)(struct ath_hw *hw, struct ath9k_channel *chan,
498 u16 cfgCtl, u8 twiceAntennaReduction,
499 u8 twiceMaxRegulatoryPower, u8 powerLimit);
500 u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz);
501};
502
503#define ar5416_get_ntxchains(_txchainmask) \
504 (((_txchainmask >> 2) & 1) + \
505 ((_txchainmask >> 1) & 1) + (_txchainmask & 1))
506
507int ath9k_hw_eeprom_attach(struct ath_hw *ah);
508
509#endif /* EEPROM_H */
498 u16 cfgCtl, u8 twiceAntennaReduction,
499 u8 twiceMaxRegulatoryPower, u8 powerLimit);
500 u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz);
501};
502
503#define ar5416_get_ntxchains(_txchainmask) \
504 (((_txchainmask >> 2) & 1) + \
505 ((_txchainmask >> 1) & 1) + (_txchainmask & 1))
506
507int ath9k_hw_eeprom_attach(struct ath_hw *ah);
508
509#endif /* EEPROM_H */