Deleted Added
full compact
ar5416.h (203159) ar5416.h (203930)
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 *
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 203159 2010-01-29 10:10:14Z rpaulo $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416.h 203930 2010-02-15 17:49:49Z rpaulo $
18 */
19#ifndef _ATH_AR5416_H_
20#define _ATH_AR5416_H_
21
22#include "ar5212/ar5212.h"
23#include "ar5416_cal.h"
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_* */
24
25#define AR5416_MAGIC 0x20065416
26
27enum {
28 HAL_RESET_POWER_ON,
29 HAL_RESET_WARM,
30 HAL_RESET_COLD,
31};

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

174extern HAL_BOOL ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode,
175 struct ieee80211_channel *chan,
176 HAL_BOOL bChannelChange, HAL_STATUS *status);
177extern HAL_BOOL ar5416PhyDisable(struct ath_hal *ah);
178extern HAL_RFGAIN ar5416GetRfgain(struct ath_hal *ah);
179extern HAL_BOOL ar5416Disable(struct ath_hal *ah);
180extern HAL_BOOL ar5416ChipReset(struct ath_hal *ah,
181 const struct ieee80211_channel *);
25
26#define AR5416_MAGIC 0x20065416
27
28enum {
29 HAL_RESET_POWER_ON,
30 HAL_RESET_WARM,
31 HAL_RESET_COLD,
32};

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

175extern HAL_BOOL ar5416Reset(struct ath_hal *ah, HAL_OPMODE opmode,
176 struct ieee80211_channel *chan,
177 HAL_BOOL bChannelChange, HAL_STATUS *status);
178extern HAL_BOOL ar5416PhyDisable(struct ath_hal *ah);
179extern HAL_RFGAIN ar5416GetRfgain(struct ath_hal *ah);
180extern HAL_BOOL ar5416Disable(struct ath_hal *ah);
181extern HAL_BOOL ar5416ChipReset(struct ath_hal *ah,
182 const struct ieee80211_channel *);
183extern HAL_BOOL ar5416SetBoardValues(struct ath_hal *,
184 const struct ieee80211_channel *);
182extern HAL_BOOL ar5416SetResetReg(struct ath_hal *, uint32_t type);
183extern HAL_BOOL ar5416SetTxPowerLimit(struct ath_hal *ah, uint32_t limit);
185extern HAL_BOOL ar5416SetResetReg(struct ath_hal *, uint32_t type);
186extern HAL_BOOL ar5416SetTxPowerLimit(struct ath_hal *ah, uint32_t limit);
187extern HAL_BOOL ar5416SetTransmitPower(struct ath_hal *,
188 const struct ieee80211_channel *, uint16_t *);
184extern HAL_BOOL ar5416GetChipPowerLimits(struct ath_hal *ah,
185 struct ieee80211_channel *chan);
186extern void ar5416GetChannelCenters(struct ath_hal *,
187 const struct ieee80211_channel *chan, CHAN_CENTERS *centers);
189extern HAL_BOOL ar5416GetChipPowerLimits(struct ath_hal *ah,
190 struct ieee80211_channel *chan);
191extern void ar5416GetChannelCenters(struct ath_hal *,
192 const struct ieee80211_channel *chan, CHAN_CENTERS *centers);
193extern void ar5416GetTargetPowers(struct ath_hal *ah,
194 const struct ieee80211_channel *chan,
195 CAL_TARGET_POWER_HT *powInfo,
196 uint16_t numChannels, CAL_TARGET_POWER_HT *pNewPower,
197 uint16_t numRates, HAL_BOOL isHt40Target);
198extern void ar5416GetTargetPowersLeg(struct ath_hal *ah,
199 const struct ieee80211_channel *chan,
200 CAL_TARGET_POWER_LEG *powInfo,
201 uint16_t numChannels, CAL_TARGET_POWER_LEG *pNewPower,
202 uint16_t numRates, HAL_BOOL isExtTarget);
188
203
204
189extern HAL_BOOL ar5416StopTxDma(struct ath_hal *ah, u_int q);
190extern HAL_BOOL ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
191 u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower,
192 u_int txRate0, u_int txTries0,
193 u_int keyIx, u_int antMode, u_int flags,
194 u_int rtsctsRate, u_int rtsctsDuration,
195 u_int compicvLen, u_int compivLen, u_int comp);
196extern HAL_BOOL ar5416SetupXTxDesc(struct ath_hal *, struct ath_desc *,
197 u_int txRate1, u_int txRetries1,
198 u_int txRate2, u_int txRetries2,
199 u_int txRate3, u_int txRetries3);
200extern HAL_BOOL ar5416FillTxDesc(struct ath_hal *ah, struct ath_desc *ds,
201 u_int segLen, HAL_BOOL firstSeg, HAL_BOOL lastSeg,
202 const struct ath_desc *ds0);
203extern HAL_STATUS ar5416ProcTxDesc(struct ath_hal *ah,
204 struct ath_desc *, struct ath_tx_status *);
205
206extern const HAL_RATE_TABLE *ar5416GetRateTable(struct ath_hal *, u_int mode);
207#endif /* _ATH_AR5416_H_ */
205extern HAL_BOOL ar5416StopTxDma(struct ath_hal *ah, u_int q);
206extern HAL_BOOL ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
207 u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower,
208 u_int txRate0, u_int txTries0,
209 u_int keyIx, u_int antMode, u_int flags,
210 u_int rtsctsRate, u_int rtsctsDuration,
211 u_int compicvLen, u_int compivLen, u_int comp);
212extern HAL_BOOL ar5416SetupXTxDesc(struct ath_hal *, struct ath_desc *,
213 u_int txRate1, u_int txRetries1,
214 u_int txRate2, u_int txRetries2,
215 u_int txRate3, u_int txRetries3);
216extern HAL_BOOL ar5416FillTxDesc(struct ath_hal *ah, struct ath_desc *ds,
217 u_int segLen, HAL_BOOL firstSeg, HAL_BOOL lastSeg,
218 const struct ath_desc *ds0);
219extern HAL_STATUS ar5416ProcTxDesc(struct ath_hal *ah,
220 struct ath_desc *, struct ath_tx_status *);
221
222extern const HAL_RATE_TABLE *ar5416GetRateTable(struct ath_hal *, u_int mode);
223#endif /* _ATH_AR5416_H_ */