Deleted Added
sdiff udiff text old ( 244943 ) new ( 247286 )
full compact
1/*
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416.h 247286 2013-02-25 22:42:43Z adrian $
18 */
19#ifndef _ATH_AR5416_H_
20#define _ATH_AR5416_H_
21
22#include "ar5212/ar5212.h"
23#include "ar5416_cal.h"
24#include "ah_eeprom_v14.h" /* for CAL_TARGET_POWER_* */
25
26#define AR5416_MAGIC 0x20065416
27
28enum {
29 HAL_RESET_POWER_ON,
30 HAL_RESET_WARM,
31 HAL_RESET_COLD,
32};
33
34typedef struct {
35 uint16_t synth_center;
36 uint16_t ctl_center;
37 uint16_t ext_center;
38} CHAN_CENTERS;
39
40typedef enum Ar5416_Rates {
41 rate6mb, rate9mb, rate12mb, rate18mb,
42 rate24mb, rate36mb, rate48mb, rate54mb,
43 rate1l, rate2l, rate2s, rate5_5l,
44 rate5_5s, rate11l, rate11s, rateXr,
45 rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3,
46 rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7,
47 rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3,
48 rateHt40_4, rateHt40_5, rateHt40_6, rateHt40_7,
49 rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm,
50 Ar5416RateSize
51} AR5416_RATES;
52
53#define AR5416_DEFAULT_RXCHAINMASK 7
54#define AR5416_DEFAULT_TXCHAINMASK 1
55#define AR5416_MAX_RATE_POWER 63
56#define AR5416_KEYTABLE_SIZE 128
57
58#define AR5416_CCA_MAX_GOOD_VALUE -85
59#define AR5416_CCA_MAX_HIGH_VALUE -62
60#define AR5416_CCA_MIN_BAD_VALUE -140
61#define AR9285_CCA_MAX_GOOD_VALUE -118
62
63#define AR5416_SPUR_RSSI_THRESH 40
64
65struct ar5416NfLimits {
66 int16_t max;
67 int16_t min;
68 int16_t nominal;
69};
70
71struct ath_hal_5416 {
72 struct ath_hal_5212 ah_5212;
73
74 /* NB: RF data setup at attach */
75 HAL_INI_ARRAY ah_ini_bb_rfgain;
76 HAL_INI_ARRAY ah_ini_bank0;
77 HAL_INI_ARRAY ah_ini_bank1;
78 HAL_INI_ARRAY ah_ini_bank2;
79 HAL_INI_ARRAY ah_ini_bank3;
80 HAL_INI_ARRAY ah_ini_bank6;
81 HAL_INI_ARRAY ah_ini_bank7;
82 HAL_INI_ARRAY ah_ini_addac;
83 HAL_INI_ARRAY ah_ini_pcieserdes;
84
85 void (*ah_writeIni)(struct ath_hal *,
86 const struct ieee80211_channel *);
87 void (*ah_spurMitigate)(struct ath_hal *,
88 const struct ieee80211_channel *);
89
90 /* calibration ops */
91 HAL_BOOL (*ah_cal_initcal)(struct ath_hal *,
92 const struct ieee80211_channel *);
93 void (*ah_cal_pacal)(struct ath_hal *,
94 HAL_BOOL is_reset);
95
96 /* optional open-loop tx power control related methods */
97 void (*ah_olcInit)(struct ath_hal *);
98 void (*ah_olcTempCompensation)(struct ath_hal *);
99
100 /* tx power control */
101 HAL_BOOL (*ah_setPowerCalTable) (struct ath_hal *ah,
102 struct ar5416eeprom *pEepData,
103 const struct ieee80211_channel *chan,
104 int16_t *pTxPowerIndexOffset);
105
106 /* baseband operations */
107 void (*ah_initPLL) (struct ath_hal *ah,
108 const struct ieee80211_channel *chan);
109
110 /* bluetooth coexistence operations */
111 void (*ah_btCoexSetDiversity)(struct ath_hal *ah);
112
113 u_int ah_globaltxtimeout; /* global tx timeout */
114 u_int ah_gpioMask;
115 int ah_hangs; /* h/w hangs state */
116 uint8_t ah_keytype[AR5416_KEYTABLE_SIZE];
117 /*
118 * Primary/Extension Channel Tx, Rx, Rx Clear State
119 */
120 uint32_t ah_cycleCount;
121 uint32_t ah_ctlBusy;
122 uint32_t ah_extBusy;
123 uint32_t ah_rxBusy;
124 uint32_t ah_txBusy;
125 uint32_t ah_rx_chainmask;
126 uint32_t ah_tx_chainmask;
127
128 HAL_ANI_CMD ah_ani_function;
129
130 struct ar5416PerCal ah_cal; /* periodic calibration state */
131
132 struct ar5416NfLimits nf_2g;
133 struct ar5416NfLimits nf_5g;
134
135 int initPDADC;
136
137 int ah_need_an_top2_fixup; /* merlin or later chips that may need this workaround */
138
139 /*
140 * Bluetooth coexistence static setup according to the registry
141 */
142 HAL_BT_MODULE ah_btModule; /* Bluetooth module identifier */
143 uint8_t ah_btCoexConfigType; /* BT coex configuration */
144 uint8_t ah_btActiveGpioSelect; /* GPIO pin for BT_ACTIVE */
145 uint8_t ah_btPriorityGpioSelect; /* GPIO pin for BT_PRIORITY */
146 uint8_t ah_wlanActiveGpioSelect; /* GPIO pin for WLAN_ACTIVE */
147 uint8_t ah_btActivePolarity; /* Polarity of BT_ACTIVE */
148 HAL_BOOL ah_btCoexSingleAnt; /* Single or dual antenna configuration */
149 uint8_t ah_btWlanIsolation; /* Isolation between BT and WLAN in dB */
150
151 /*
152 * Bluetooth coexistence runtime settings
153 */
154 HAL_BOOL ah_btCoexEnabled; /* If Bluetooth coexistence is enabled */
155 uint32_t ah_btCoexMode; /* Register setting for AR_BT_COEX_MODE */
156 uint32_t ah_btCoexBTWeight; /* Register setting for AR_BT_COEX_WEIGHT */
157 uint32_t ah_btCoexWLANWeight; /* Register setting for AR_BT_COEX_WEIGHT */
158 uint32_t ah_btCoexMode2; /* Register setting for AR_BT_COEX_MODE2 */
159 uint32_t ah_btCoexFlag; /* Special tuning flags for BT coex */
160};
161#define AH5416(_ah) ((struct ath_hal_5416 *)(_ah))
162
163#define IS_5416_PCI(ah) ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_VERSION_OWL_PCI)
164#define IS_5416_PCIE(ah) ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_VERSION_OWL_PCIE)
165#undef IS_PCIE
166#define IS_PCIE(ah) (IS_5416_PCIE(ah))
167
168extern HAL_BOOL ar2133RfAttach(struct ath_hal *, HAL_STATUS *);
169
170struct ath_hal;
171
172extern uint32_t ar5416GetRadioRev(struct ath_hal *ah);
173extern void ar5416InitState(struct ath_hal_5416 *, uint16_t devid,
174 HAL_SOFTC sc, HAL_BUS_TAG st, HAL_BUS_HANDLE sh,
175 HAL_STATUS *status);
176extern void ar5416Detach(struct ath_hal *ah);
177extern void ar5416AttachPCIE(struct ath_hal *ah);
178extern HAL_BOOL ar5416FillCapabilityInfo(struct ath_hal *ah);
179
180extern void ar5416AniAttach(struct ath_hal *, const struct ar5212AniParams *,
181 const struct ar5212AniParams *, HAL_BOOL ena);
182extern void ar5416AniDetach(struct ath_hal *);
183extern HAL_BOOL ar5416AniControl(struct ath_hal *, HAL_ANI_CMD cmd, int param);
184extern HAL_BOOL ar5416AniSetParams(struct ath_hal *,
185 const struct ar5212AniParams *, const struct ar5212AniParams *);
186extern void ar5416ProcessMibIntr(struct ath_hal *, const HAL_NODE_STATS *);
187extern void ar5416RxMonitor(struct ath_hal *, const HAL_NODE_STATS *,
188 const struct ieee80211_channel *);
189extern void ar5416AniPoll(struct ath_hal *, const struct ieee80211_channel *);
190extern void ar5416AniReset(struct ath_hal *, const struct ieee80211_channel *,
191 HAL_OPMODE, int);
192
193extern void ar5416SetBeaconTimers(struct ath_hal *, const HAL_BEACON_TIMERS *);
194extern void ar5416BeaconInit(struct ath_hal *ah,
195 uint32_t next_beacon, uint32_t beacon_period);
196extern void ar5416ResetStaBeaconTimers(struct ath_hal *ah);
197extern void ar5416SetStaBeaconTimers(struct ath_hal *ah,
198 const HAL_BEACON_STATE *);
199extern uint64_t ar5416GetNextTBTT(struct ath_hal *);
200
201/* ar5416_btcoex.c */
202extern void ar5416SetBTCoexInfo(struct ath_hal *ah,
203 HAL_BT_COEX_INFO *btinfo);
204extern void ar5416BTCoexConfig(struct ath_hal *ah,
205 HAL_BT_COEX_CONFIG *btconf);
206extern void ar5416BTCoexAntennaDiversity(struct ath_hal *ah);
207extern void ar5416BTCoexSetQcuThresh(struct ath_hal *ah, int qnum);
208extern void ar5416BTCoexSetWeights(struct ath_hal *ah, uint32_t stompType);
209extern void ar5416BTCoexSetupBmissThresh(struct ath_hal *ah,
210 uint32_t thresh);
211extern void ar5416BTCoexSetParameter(struct ath_hal *ah, uint32_t type,
212 uint32_t value);
213extern void ar5416BTCoexDisable(struct ath_hal *ah);
214extern int ar5416BTCoexEnable(struct ath_hal *ah);
215extern void ar5416InitBTCoex(struct ath_hal *ah);
216
217extern HAL_BOOL ar5416EepromRead(struct ath_hal *, u_int off, uint16_t *data);
218extern HAL_BOOL ar5416EepromWrite(struct ath_hal *, u_int off, uint16_t data);
219
220extern HAL_BOOL ar5416IsInterruptPending(struct ath_hal *ah);
221extern HAL_BOOL ar5416GetPendingInterrupts(struct ath_hal *, HAL_INT *masked);
222extern HAL_INT ar5416SetInterrupts(struct ath_hal *ah, HAL_INT ints);
223
224extern HAL_BOOL ar5416GpioCfgOutput(struct ath_hal *, uint32_t gpio,
225 HAL_GPIO_MUX_TYPE);
226extern HAL_BOOL ar5416GpioCfgInput(struct ath_hal *, uint32_t gpio);
227extern HAL_BOOL ar5416GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val);
228extern uint32_t ar5416GpioGet(struct ath_hal *ah, uint32_t gpio);
229extern void ar5416GpioSetIntr(struct ath_hal *ah, u_int, uint32_t ilevel);
230
231extern u_int ar5416GetWirelessModes(struct ath_hal *ah);
232extern void ar5416SetLedState(struct ath_hal *ah, HAL_LED_STATE state);
233extern uint64_t ar5416GetTsf64(struct ath_hal *ah);
234extern void ar5416SetTsf64(struct ath_hal *ah, uint64_t tsf64);
235extern void ar5416ResetTsf(struct ath_hal *ah);
236extern uint32_t ar5416GetCurRssi(struct ath_hal *ah);
237extern HAL_BOOL ar5416SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);
238extern HAL_BOOL ar5416SetDecompMask(struct ath_hal *, uint16_t, int);
239extern void ar5416SetCoverageClass(struct ath_hal *, uint8_t, int);
240extern HAL_BOOL ar5416GetMibCycleCounts(struct ath_hal *ah,
241 HAL_SURVEY_SAMPLE *hsample);
242extern void ar5416SetChainMasks(struct ath_hal *ah, uint32_t, uint32_t);
243extern uint32_t ar5416Get11nExtBusy(struct ath_hal *ah);
244extern void ar5416Set11nMac2040(struct ath_hal *ah, HAL_HT_MACMODE mode);
245extern HAL_HT_RXCLEAR ar5416Get11nRxClear(struct ath_hal *ah);
246extern void ar5416Set11nRxClear(struct ath_hal *ah, HAL_HT_RXCLEAR rxclear);
247extern HAL_STATUS ar5416SetQuiet(struct ath_hal *ah, uint32_t period,
248 uint32_t duration, uint32_t nextStart, HAL_QUIET_FLAG flag);
249extern HAL_STATUS ar5416GetCapability(struct ath_hal *ah,
250 HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t *result);
251extern HAL_BOOL ar5416SetCapability(struct ath_hal *ah,
252 HAL_CAPABILITY_TYPE type, uint32_t capability, uint32_t val,
253 HAL_STATUS *status);
254extern HAL_BOOL ar5416GetDiagState(struct ath_hal *ah, int request,
255 const void *args, uint32_t argsize,
256 void **result, uint32_t *resultsize);
257extern HAL_BOOL ar5416SetRifsDelay(struct ath_hal *ah,
258 const struct ieee80211_channel *chan, HAL_BOOL enable);
259
260extern void ar5416EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe);
261extern HAL_BOOL ar5416GetDfsDefaultThresh(struct ath_hal *ah,
262 HAL_PHYERR_PARAM *pe);
263extern void ar5416GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe);
264extern HAL_BOOL ar5416ProcessRadarEvent(struct ath_hal *ah,
265 struct ath_rx_status *rxs, uint64_t fulltsf, const char *buf,
266 HAL_DFS_EVENT *event);
267extern HAL_BOOL ar5416IsFastClockEnabled(struct ath_hal *ah);
268
269/* ar9280_spectral.c */
270extern void ar5416ConfigureSpectralScan(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss);
271extern void ar5416GetSpectralParams(struct ath_hal *ah, HAL_SPECTRAL_PARAM *ss);
272extern HAL_BOOL ar5416IsSpectralActive(struct ath_hal *ah);
273extern HAL_BOOL ar5416IsSpectralEnabled(struct ath_hal *ah);
274extern void ar5416StartSpectralScan(struct ath_hal *ah);
275extern void ar5416StopSpectralScan(struct ath_hal *ah);
276extern uint32_t ar5416GetSpectralConfig(struct ath_hal *ah);
277extern void ar5416RestoreSpectralConfig(struct ath_hal *ah, uint32_t restoreval);
278
279extern HAL_BOOL ar5416SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode,
280 int setChip);
281extern HAL_POWER_MODE ar5416GetPowerMode(struct ath_hal *ah);
282extern HAL_BOOL ar5416GetPowerStatus(struct ath_hal *ah);
283
284extern HAL_BOOL ar5416ResetKeyCacheEntry(struct ath_hal *ah, uint16_t entry);
285extern HAL_BOOL ar5416SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry,
286 const HAL_KEYVAL *k, const uint8_t *mac, int xorKey);
287
288extern uint32_t ar5416GetRxFilter(struct ath_hal *ah);
289extern void ar5416SetRxFilter(struct ath_hal *ah, uint32_t bits);
290extern HAL_BOOL ar5416StopDmaReceive(struct ath_hal *ah);
291extern void ar5416StartPcuReceive(struct ath_hal *ah);
292extern void ar5416StopPcuReceive(struct ath_hal *ah);
293extern HAL_BOOL ar5416SetupRxDesc(struct ath_hal *,
294 struct ath_desc *, uint32_t size, u_int flags);
295extern HAL_STATUS ar5416ProcRxDesc(struct ath_hal *ah, struct ath_desc *,
296 uint32_t, struct ath_desc *, uint64_t,
297 struct ath_rx_status *);
298
299extern HAL_BOOL ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode,
300 struct ieee80211_channel *chan,
301 HAL_BOOL bChannelChange, HAL_STATUS *status);
302extern HAL_BOOL ar5416PhyDisable(struct ath_hal *ah);
303extern HAL_RFGAIN ar5416GetRfgain(struct ath_hal *ah);
304extern HAL_BOOL ar5416Disable(struct ath_hal *ah);
305extern HAL_BOOL ar5416ChipReset(struct ath_hal *ah,
306 const struct ieee80211_channel *);
307extern int ar5416GetRegChainOffset(struct ath_hal *ah, int i);
308extern HAL_BOOL ar5416SetBoardValues(struct ath_hal *,
309 const struct ieee80211_channel *);
310extern HAL_BOOL ar5416SetResetReg(struct ath_hal *, uint32_t type);
311extern HAL_BOOL ar5416SetTxPowerLimit(struct ath_hal *ah, uint32_t limit);
312extern HAL_BOOL ar5416SetTransmitPower(struct ath_hal *,
313 const struct ieee80211_channel *, uint16_t *);
314extern HAL_BOOL ar5416GetChipPowerLimits(struct ath_hal *ah,
315 struct ieee80211_channel *chan);
316extern void ar5416GetChannelCenters(struct ath_hal *,
317 const struct ieee80211_channel *chan, CHAN_CENTERS *centers);
318extern void ar5416SetRatesArrayFromTargetPower(struct ath_hal *ah,
319 const struct ieee80211_channel *chan,
320 int16_t *ratesArray,
321 const CAL_TARGET_POWER_LEG *targetPowerCck,
322 const CAL_TARGET_POWER_LEG *targetPowerCckExt,
323 const CAL_TARGET_POWER_LEG *targetPowerOfdm,
324 const CAL_TARGET_POWER_LEG *targetPowerOfdmExt,
325 const CAL_TARGET_POWER_HT *targetPowerHt20,
326 const CAL_TARGET_POWER_HT *targetPowerHt40);
327extern void ar5416GetTargetPowers(struct ath_hal *ah,
328 const struct ieee80211_channel *chan,
329 CAL_TARGET_POWER_HT *powInfo,
330 uint16_t numChannels, CAL_TARGET_POWER_HT *pNewPower,
331 uint16_t numRates, HAL_BOOL isHt40Target);
332extern void ar5416GetTargetPowersLeg(struct ath_hal *ah,
333 const struct ieee80211_channel *chan,
334 CAL_TARGET_POWER_LEG *powInfo,
335 uint16_t numChannels, CAL_TARGET_POWER_LEG *pNewPower,
336 uint16_t numRates, HAL_BOOL isExtTarget);
337extern void ar5416InitChainMasks(struct ath_hal *ah);
338extern void ar5416RestoreChainMask(struct ath_hal *ah);
339extern void ar5416EepromSetAddac(struct ath_hal *ah,
340 const struct ieee80211_channel *chan);
341extern uint16_t ar5416GetMaxEdgePower(uint16_t freq,
342 CAL_CTL_EDGES *pRdEdgesPower, HAL_BOOL is2GHz);
343extern void ar5416InitPLL(struct ath_hal *ah,
344 const struct ieee80211_channel *chan);
345
346/* TX power setup related routines in ar5416_reset.c */
347extern void ar5416GetGainBoundariesAndPdadcs(struct ath_hal *ah,
348 const struct ieee80211_channel *chan, CAL_DATA_PER_FREQ *pRawDataSet,
349 uint8_t * bChans, uint16_t availPiers,
350 uint16_t tPdGainOverlap, int16_t *pMinCalPower,
351 uint16_t * pPdGainBoundaries, uint8_t * pPDADCValues,
352 uint16_t numXpdGains);
353extern void ar5416SetGainBoundariesClosedLoop(struct ath_hal *ah,
354 int i, uint16_t pdGainOverlap_t2,
355 uint16_t gainBoundaries[]);
356extern uint16_t ar5416GetXpdGainValues(struct ath_hal *ah, uint16_t xpdMask,
357 uint16_t xpdGainValues[]);
358extern void ar5416WriteDetectorGainBiases(struct ath_hal *ah,
359 uint16_t numXpdGain, uint16_t xpdGainValues[]);
360extern void ar5416WritePdadcValues(struct ath_hal *ah, int i,
361 uint8_t pdadcValues[]);
362extern HAL_BOOL ar5416SetPowerCalTable(struct ath_hal *ah,
363 struct ar5416eeprom *pEepData, const struct ieee80211_channel *chan,
364 int16_t *pTxPowerIndexOffset);
365extern void ar5416WriteTxPowerRateRegisters(struct ath_hal *ah,
366 const struct ieee80211_channel *chan, const int16_t ratesArray[]);
367
368extern HAL_BOOL ar5416StopTxDma(struct ath_hal *ah, u_int q);
369extern HAL_BOOL ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
370 u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower,
371 u_int txRate0, u_int txTries0,
372 u_int keyIx, u_int antMode, u_int flags,
373 u_int rtsctsRate, u_int rtsctsDuration,
374 u_int compicvLen, u_int compivLen, u_int comp);
375extern HAL_BOOL ar5416SetupXTxDesc(struct ath_hal *, struct ath_desc *,
376 u_int txRate1, u_int txRetries1,
377 u_int txRate2, u_int txRetries2,
378 u_int txRate3, u_int txRetries3);
379extern HAL_BOOL ar5416FillTxDesc(struct ath_hal *ah, struct ath_desc *ds,
380 HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList,
381 u_int descId, u_int qcuId, HAL_BOOL firstSeg, HAL_BOOL lastSeg,
382 const struct ath_desc *ds0);
383extern HAL_STATUS ar5416ProcTxDesc(struct ath_hal *ah,
384 struct ath_desc *, struct ath_tx_status *);
385extern HAL_BOOL ar5416GetTxCompletionRates(struct ath_hal *ah,
386 const struct ath_desc *ds0, int *rates, int *tries);
387
388extern HAL_BOOL ar5416ResetTxQueue(struct ath_hal *ah, u_int q);
389extern int ar5416SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type,
390 const HAL_TXQ_INFO *qInfo);
391
392extern HAL_BOOL ar5416ChainTxDesc(struct ath_hal *ah, struct ath_desc *ds,
393 HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList,
394 u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int keyIx,
395 HAL_CIPHER cipher, uint8_t delims,
396 HAL_BOOL firstSeg, HAL_BOOL lastSeg, HAL_BOOL lastAggr);
397extern HAL_BOOL ar5416SetupFirstTxDesc(struct ath_hal *ah, struct ath_desc *ds,
398 u_int aggrLen, u_int flags, u_int txPower, u_int txRate0, u_int txTries0,
399 u_int antMode, u_int rtsctsRate, u_int rtsctsDuration);
400extern HAL_BOOL ar5416SetupLastTxDesc(struct ath_hal *ah, struct ath_desc *ds,
401 const struct ath_desc *ds0);
402extern HAL_BOOL ar5416SetGlobalTxTimeout(struct ath_hal *ah, u_int tu);
403extern u_int ar5416GetGlobalTxTimeout(struct ath_hal *ah);
404extern void ar5416Set11nRateScenario(struct ath_hal *ah, struct ath_desc *ds,
405 u_int durUpdateEn, u_int rtsctsRate, HAL_11N_RATE_SERIES series[],
406 u_int nseries, u_int flags);
407
408extern void ar5416Set11nAggrFirst(struct ath_hal *ah, struct ath_desc *ds,
409 u_int aggrLen, u_int numDelims);
410extern void ar5416Set11nAggrMiddle(struct ath_hal *ah, struct ath_desc *ds, u_int numDelims);
411extern void ar5416Set11nAggrLast(struct ath_hal *ah, struct ath_desc *ds);
412
413extern void ar5416Clr11nAggr(struct ath_hal *ah, struct ath_desc *ds);
414
415extern void ar5416Set11nBurstDuration(struct ath_hal *ah, struct ath_desc *ds, u_int burstDuration);
416
417extern const HAL_RATE_TABLE *ar5416GetRateTable(struct ath_hal *, u_int mode);
418#endif /* _ATH_AR5416_H_ */