Deleted Added
full compact
ah_internal.h (188974) ah_internal.h (188979)
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/ah_internal.h 188974 2009-02-24 00:12:16Z sam $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_internal.h 188979 2009-02-24 01:07:06Z sam $
18 */
19#ifndef _ATH_AH_INTERAL_H_
20#define _ATH_AH_INTERAL_H_
21/*
22 * Atheros Device Hardware Access Layer (HAL).
23 *
24 * Internal definitions.
25 */

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

264 */
265 uint16_t ah_devid; /* PCI device ID */
266 uint16_t ah_subvendorid; /* PCI subvendor ID */
267 uint32_t ah_macVersion; /* MAC version id */
268 uint16_t ah_macRev; /* MAC revision */
269 uint16_t ah_phyRev; /* PHY revision */
270 uint16_t ah_analog5GhzRev; /* 2GHz radio revision */
271 uint16_t ah_analog2GhzRev; /* 5GHz radio revision */
18 */
19#ifndef _ATH_AH_INTERAL_H_
20#define _ATH_AH_INTERAL_H_
21/*
22 * Atheros Device Hardware Access Layer (HAL).
23 *
24 * Internal definitions.
25 */

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

264 */
265 uint16_t ah_devid; /* PCI device ID */
266 uint16_t ah_subvendorid; /* PCI subvendor ID */
267 uint32_t ah_macVersion; /* MAC version id */
268 uint16_t ah_macRev; /* MAC revision */
269 uint16_t ah_phyRev; /* PHY revision */
270 uint16_t ah_analog5GhzRev; /* 2GHz radio revision */
271 uint16_t ah_analog2GhzRev; /* 5GHz radio revision */
272 uint8_t ah_ispcie; /* PCIE, special treatment */
272
273 HAL_OPMODE ah_opmode; /* operating mode from reset */
274 const struct ieee80211_channel *ah_curchan;/* operating channel */
275 HAL_CAPABILITIES ah_caps; /* device capabilities */
276 uint32_t ah_diagreg; /* user-specified AR_DIAG_SW */
277 int16_t ah_powerLimit; /* tx power cap */
278 uint16_t ah_maxPowerLevel; /* calculated max tx power */
279 u_int ah_tpScale; /* tx power scale factor */

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

322#define ath_hal_gpioSetIntr(_ah, _gpio, _ilevel) \
323 (_ah)->ah_gpioSetIntr(_ah, _gpio, _ilevel)
324#define ath_hal_getpowerlimits(_ah, _chan) \
325 AH_PRIVATE(_ah)->ah_getChipPowerLimits(_ah, _chan)
326#define ath_hal_getNfAdjust(_ah, _c) \
327 AH_PRIVATE(_ah)->ah_getNfAdjust(_ah, _c)
328#define ath_hal_getNoiseFloor(_ah, _nfArray) \
329 AH_PRIVATE(_ah)->ah_getNoiseFloor(_ah, _nfArray)
273
274 HAL_OPMODE ah_opmode; /* operating mode from reset */
275 const struct ieee80211_channel *ah_curchan;/* operating channel */
276 HAL_CAPABILITIES ah_caps; /* device capabilities */
277 uint32_t ah_diagreg; /* user-specified AR_DIAG_SW */
278 int16_t ah_powerLimit; /* tx power cap */
279 uint16_t ah_maxPowerLevel; /* calculated max tx power */
280 u_int ah_tpScale; /* tx power scale factor */

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

323#define ath_hal_gpioSetIntr(_ah, _gpio, _ilevel) \
324 (_ah)->ah_gpioSetIntr(_ah, _gpio, _ilevel)
325#define ath_hal_getpowerlimits(_ah, _chan) \
326 AH_PRIVATE(_ah)->ah_getChipPowerLimits(_ah, _chan)
327#define ath_hal_getNfAdjust(_ah, _c) \
328 AH_PRIVATE(_ah)->ah_getNfAdjust(_ah, _c)
329#define ath_hal_getNoiseFloor(_ah, _nfArray) \
330 AH_PRIVATE(_ah)->ah_getNoiseFloor(_ah, _nfArray)
331#define ath_hal_configPCIE(_ah, _reset) \
332 (_ah)->ah_configPCIE(_ah, _reset)
333#define ath_hal_disablePCIE(_ah) \
334 (_ah)->ah_disablePCIE(_ah)
330
331#define ath_hal_eepromDetach(_ah) \
332 AH_PRIVATE(_ah)->ah_eepromDetach(_ah)
333#define ath_hal_eepromGet(_ah, _param, _val) \
334 AH_PRIVATE(_ah)->ah_eepromGet(_ah, _param, _val)
335#define ath_hal_eepromSet(_ah, _param, _val) \
336 AH_PRIVATE(_ah)->ah_eepromSet(_ah, _param, _val)
337#define ath_hal_eepromGetFlag(_ah, _param) \

--- 458 unchanged lines hidden ---
335
336#define ath_hal_eepromDetach(_ah) \
337 AH_PRIVATE(_ah)->ah_eepromDetach(_ah)
338#define ath_hal_eepromGet(_ah, _param, _val) \
339 AH_PRIVATE(_ah)->ah_eepromGet(_ah, _param, _val)
340#define ath_hal_eepromSet(_ah, _param, _val) \
341 AH_PRIVATE(_ah)->ah_eepromSet(_ah, _param, _val)
342#define ath_hal_eepromGetFlag(_ah, _param) \

--- 458 unchanged lines hidden ---