diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index cdaec526db35..c7b0c4d5f75a 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -148,6 +148,15 @@ enum wireless_mode { | |||
148 | ATH9K_MODE_MAX, | 148 | ATH9K_MODE_MAX, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | /** | ||
152 | * ath9k_ant_setting - transmit antenna settings | ||
153 | * | ||
154 | * Configures the antenna setting to use for transmit. | ||
155 | * | ||
156 | * @ATH9K_ANT_VARIABLE: this means transmit on all active antennas | ||
157 | * @ATH9K_ANT_FIXED_A: this means transmit on the first antenna only | ||
158 | * @ATH9K_ANT_FIXED_B: this means transmit on the second antenna only | ||
159 | */ | ||
151 | enum ath9k_ant_setting { | 160 | enum ath9k_ant_setting { |
152 | ATH9K_ANT_VARIABLE = 0, | 161 | ATH9K_ANT_VARIABLE = 0, |
153 | ATH9K_ANT_FIXED_A, | 162 | ATH9K_ANT_FIXED_A, |
@@ -539,7 +548,14 @@ struct ath_hw { | |||
539 | DONT_USE_32KHZ, | 548 | DONT_USE_32KHZ, |
540 | } enable_32kHz_clock; | 549 | } enable_32kHz_clock; |
541 | 550 | ||
542 | /* RF */ | 551 | /* Callback for radio frequency change */ |
552 | int (*ath9k_hw_rf_set_freq)(struct ath_hw *ah, struct ath9k_channel *chan); | ||
553 | |||
554 | /* Callback for baseband spur frequency */ | ||
555 | void (*ath9k_hw_spur_mitigate_freq)(struct ath_hw *ah, | ||
556 | struct ath9k_channel *chan); | ||
557 | |||
558 | /* Used to program the radio on non single-chip devices */ | ||
543 | u32 *analogBank0Data; | 559 | u32 *analogBank0Data; |
544 | u32 *analogBank1Data; | 560 | u32 *analogBank1Data; |
545 | u32 *analogBank2Data; | 561 | u32 *analogBank2Data; |
@@ -596,6 +612,7 @@ struct ath_hw { | |||
596 | struct ar5416IniArray iniModesAdditional; | 612 | struct ar5416IniArray iniModesAdditional; |
597 | struct ar5416IniArray iniModesRxGain; | 613 | struct ar5416IniArray iniModesRxGain; |
598 | struct ar5416IniArray iniModesTxGain; | 614 | struct ar5416IniArray iniModesTxGain; |
615 | struct ar5416IniArray iniModes_9271_1_0_only; | ||
599 | struct ar5416IniArray iniCckfirNormal; | 616 | struct ar5416IniArray iniCckfirNormal; |
600 | struct ar5416IniArray iniCckfirJapan2484; | 617 | struct ar5416IniArray iniCckfirJapan2484; |
601 | 618 | ||
@@ -618,7 +635,6 @@ static inline struct ath_regulatory *ath9k_hw_regulatory(struct ath_hw *ah) | |||
618 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); | 635 | const char *ath9k_hw_probe(u16 vendorid, u16 devid); |
619 | void ath9k_hw_detach(struct ath_hw *ah); | 636 | void ath9k_hw_detach(struct ath_hw *ah); |
620 | int ath9k_hw_init(struct ath_hw *ah); | 637 | int ath9k_hw_init(struct ath_hw *ah); |
621 | void ath9k_hw_rf_free(struct ath_hw *ah); | ||
622 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | 638 | int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, |
623 | bool bChannelChange); | 639 | bool bChannelChange); |
624 | void ath9k_hw_fill_cap_info(struct ath_hw *ah); | 640 | void ath9k_hw_fill_cap_info(struct ath_hw *ah); |
@@ -704,6 +720,8 @@ void ath_gen_timer_free(struct ath_hw *ah, struct ath_gen_timer *timer); | |||
704 | void ath_gen_timer_isr(struct ath_hw *hw); | 720 | void ath_gen_timer_isr(struct ath_hw *hw); |
705 | u32 ath9k_hw_gettsf32(struct ath_hw *ah); | 721 | u32 ath9k_hw_gettsf32(struct ath_hw *ah); |
706 | 722 | ||
723 | void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len); | ||
724 | |||
707 | #define ATH_PCIE_CAP_LINK_CTRL 0x70 | 725 | #define ATH_PCIE_CAP_LINK_CTRL 0x70 |
708 | #define ATH_PCIE_CAP_LINK_L0S 1 | 726 | #define ATH_PCIE_CAP_LINK_L0S 1 |
709 | #define ATH_PCIE_CAP_LINK_L1 2 | 727 | #define ATH_PCIE_CAP_LINK_L1 2 |