17 #ifndef ATH9K_HW_OPS_H
18 #define ATH9K_HW_OPS_H
24 static inline void ath9k_hw_configpcipowersave(
struct ath_hw *
ah,
30 ath9k_hw_ops(ah)->config_pci_powersave(ah, power_off);
33 static inline void ath9k_hw_rxena(
struct ath_hw *ah)
35 ath9k_hw_ops(ah)->rx_enable(ah);
38 static inline void ath9k_hw_set_desc_link(
struct ath_hw *ah,
void *
ds,
41 ath9k_hw_ops(ah)->set_desc_link(ds, link);
44 static inline bool ath9k_hw_calibrate(
struct ath_hw *ah,
49 return ath9k_hw_ops(ah)->calibrate(ah, chan, rxchainmask, longcal);
52 static inline bool ath9k_hw_getisr(
struct ath_hw *ah,
enum ath9k_int *masked)
54 return ath9k_hw_ops(ah)->get_isr(ah, masked);
57 static inline void ath9k_hw_set_txdesc(
struct ath_hw *ah,
void *ds,
60 return ath9k_hw_ops(ah)->set_txdesc(ah, ds, i);
63 static inline int ath9k_hw_txprocdesc(
struct ath_hw *ah,
void *ds,
66 return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts);
69 static inline void ath9k_hw_antdiv_comb_conf_get(
struct ath_hw *ah,
72 ath9k_hw_ops(ah)->antdiv_comb_conf_get(ah, antconf);
75 static inline void ath9k_hw_antdiv_comb_conf_set(
struct ath_hw *ah,
78 ath9k_hw_ops(ah)->antdiv_comb_conf_set(ah, antconf);
81 static inline void ath9k_hw_antctrl_shared_chain_lnadiv(
struct ath_hw *ah,
84 if (ath9k_hw_ops(ah)->antctrl_shared_chain_lnadiv)
85 ath9k_hw_ops(ah)->antctrl_shared_chain_lnadiv(ah, enable);
92 static inline int ath9k_hw_rf_set_freq(
struct ath_hw *ah,
95 return ath9k_hw_private_ops(ah)->rf_set_freq(ah, chan);
98 static inline void ath9k_hw_spur_mitigate_freq(
struct ath_hw *ah,
101 ath9k_hw_private_ops(ah)->spur_mitigate_freq(ah, chan);
104 static inline int ath9k_hw_rf_alloc_ext_banks(
struct ath_hw *ah)
106 if (!ath9k_hw_private_ops(ah)->rf_alloc_ext_banks)
109 return ath9k_hw_private_ops(ah)->rf_alloc_ext_banks(ah);
112 static inline void ath9k_hw_rf_free_ext_banks(
struct ath_hw *ah)
114 if (!ath9k_hw_private_ops(ah)->rf_free_ext_banks)
117 ath9k_hw_private_ops(ah)->rf_free_ext_banks(ah);
120 static inline bool ath9k_hw_set_rf_regs(
struct ath_hw *ah,
124 if (!ath9k_hw_private_ops(ah)->set_rf_regs)
127 return ath9k_hw_private_ops(ah)->set_rf_regs(ah, chan, modesIndex);
130 static inline void ath9k_hw_init_bb(
struct ath_hw *ah,
133 return ath9k_hw_private_ops(ah)->init_bb(ah, chan);
136 static inline void ath9k_hw_set_channel_regs(
struct ath_hw *ah,
139 return ath9k_hw_private_ops(ah)->set_channel_regs(ah, chan);
142 static inline int ath9k_hw_process_ini(
struct ath_hw *ah,
145 return ath9k_hw_private_ops(ah)->process_ini(ah, chan);
148 static inline void ath9k_olc_init(
struct ath_hw *ah)
150 if (!ath9k_hw_private_ops(ah)->olc_init)
153 return ath9k_hw_private_ops(ah)->olc_init(ah);
156 static inline void ath9k_hw_set_rfmode(
struct ath_hw *ah,
159 return ath9k_hw_private_ops(ah)->set_rfmode(ah, chan);
162 static inline void ath9k_hw_mark_phy_inactive(
struct ath_hw *ah)
164 return ath9k_hw_private_ops(ah)->mark_phy_inactive(ah);
167 static inline void ath9k_hw_set_delta_slope(
struct ath_hw *ah,
170 return ath9k_hw_private_ops(ah)->set_delta_slope(ah, chan);
173 static inline bool ath9k_hw_rfbus_req(
struct ath_hw *ah)
175 return ath9k_hw_private_ops(ah)->rfbus_req(ah);
178 static inline void ath9k_hw_rfbus_done(
struct ath_hw *ah)
180 return ath9k_hw_private_ops(ah)->rfbus_done(ah);
183 static inline void ath9k_hw_restore_chainmask(
struct ath_hw *ah)
185 if (!ath9k_hw_private_ops(ah)->restore_chainmask)
188 return ath9k_hw_private_ops(ah)->restore_chainmask(ah);
191 static inline bool ath9k_hw_ani_control(
struct ath_hw *ah,
194 return ath9k_hw_private_ops(ah)->ani_control(ah, cmd, param);
197 static inline void ath9k_hw_do_getnf(
struct ath_hw *ah,
200 ath9k_hw_private_ops(ah)->do_getnf(ah, nfarray);
203 static inline bool ath9k_hw_init_cal(
struct ath_hw *ah,
206 return ath9k_hw_private_ops(ah)->init_cal(ah, chan);
209 static inline void ath9k_hw_setup_calibration(
struct ath_hw *ah,
212 ath9k_hw_private_ops(ah)->setup_calibration(ah, currCal);
215 static inline int ath9k_hw_fast_chan_change(
struct ath_hw *ah,
219 return ath9k_hw_private_ops(ah)->fast_chan_change(ah, chan,
223 static inline void ath9k_hw_set_radar_params(
struct ath_hw *ah)
225 if (!ath9k_hw_private_ops(ah)->set_radar_params)
228 ath9k_hw_private_ops(ah)->set_radar_params(ah, &ah->
radar_conf);