diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw-ops.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw-ops.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw-ops.h b/drivers/net/wireless/ath/ath9k/hw-ops.h index b444ce5f09f8..624422a8169e 100644 --- a/drivers/net/wireless/ath/ath9k/hw-ops.h +++ b/drivers/net/wireless/ath/ath9k/hw-ops.h | |||
@@ -57,6 +57,77 @@ static inline bool ath9k_hw_getisr(struct ath_hw *ah, enum ath9k_int *masked) | |||
57 | return ath9k_hw_ops(ah)->get_isr(ah, masked); | 57 | return ath9k_hw_ops(ah)->get_isr(ah, masked); |
58 | } | 58 | } |
59 | 59 | ||
60 | static inline void ath9k_hw_filltxdesc(struct ath_hw *ah, void *ds, u32 seglen, | ||
61 | bool is_firstseg, bool is_lastseg, | ||
62 | const void *ds0, dma_addr_t buf_addr, | ||
63 | unsigned int qcu) | ||
64 | { | ||
65 | ath9k_hw_ops(ah)->fill_txdesc(ah, ds, seglen, is_firstseg, is_lastseg, | ||
66 | ds0, buf_addr, qcu); | ||
67 | } | ||
68 | |||
69 | static inline int ath9k_hw_txprocdesc(struct ath_hw *ah, void *ds, | ||
70 | struct ath_tx_status *ts) | ||
71 | { | ||
72 | return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts); | ||
73 | } | ||
74 | |||
75 | static inline void ath9k_hw_set11n_txdesc(struct ath_hw *ah, void *ds, | ||
76 | u32 pktLen, enum ath9k_pkt_type type, | ||
77 | u32 txPower, u32 keyIx, | ||
78 | enum ath9k_key_type keyType, | ||
79 | u32 flags) | ||
80 | { | ||
81 | ath9k_hw_ops(ah)->set11n_txdesc(ah, ds, pktLen, type, txPower, keyIx, | ||
82 | keyType, flags); | ||
83 | } | ||
84 | |||
85 | static inline void ath9k_hw_set11n_ratescenario(struct ath_hw *ah, void *ds, | ||
86 | void *lastds, | ||
87 | u32 durUpdateEn, u32 rtsctsRate, | ||
88 | u32 rtsctsDuration, | ||
89 | struct ath9k_11n_rate_series series[], | ||
90 | u32 nseries, u32 flags) | ||
91 | { | ||
92 | ath9k_hw_ops(ah)->set11n_ratescenario(ah, ds, lastds, durUpdateEn, | ||
93 | rtsctsRate, rtsctsDuration, series, | ||
94 | nseries, flags); | ||
95 | } | ||
96 | |||
97 | static inline void ath9k_hw_set11n_aggr_first(struct ath_hw *ah, void *ds, | ||
98 | u32 aggrLen) | ||
99 | { | ||
100 | ath9k_hw_ops(ah)->set11n_aggr_first(ah, ds, aggrLen); | ||
101 | } | ||
102 | |||
103 | static inline void ath9k_hw_set11n_aggr_middle(struct ath_hw *ah, void *ds, | ||
104 | u32 numDelims) | ||
105 | { | ||
106 | ath9k_hw_ops(ah)->set11n_aggr_middle(ah, ds, numDelims); | ||
107 | } | ||
108 | |||
109 | static inline void ath9k_hw_set11n_aggr_last(struct ath_hw *ah, void *ds) | ||
110 | { | ||
111 | ath9k_hw_ops(ah)->set11n_aggr_last(ah, ds); | ||
112 | } | ||
113 | |||
114 | static inline void ath9k_hw_clr11n_aggr(struct ath_hw *ah, void *ds) | ||
115 | { | ||
116 | ath9k_hw_ops(ah)->clr11n_aggr(ah, ds); | ||
117 | } | ||
118 | |||
119 | static inline void ath9k_hw_set11n_burstduration(struct ath_hw *ah, void *ds, | ||
120 | u32 burstDuration) | ||
121 | { | ||
122 | ath9k_hw_ops(ah)->set11n_burstduration(ah, ds, burstDuration); | ||
123 | } | ||
124 | |||
125 | static inline void ath9k_hw_set11n_virtualmorefrag(struct ath_hw *ah, void *ds, | ||
126 | u32 vmf) | ||
127 | { | ||
128 | ath9k_hw_ops(ah)->set11n_virtualmorefrag(ah, ds, vmf); | ||
129 | } | ||
130 | |||
60 | /* Private hardware call ops */ | 131 | /* Private hardware call ops */ |
61 | 132 | ||
62 | /* PHY ops */ | 133 | /* PHY ops */ |