Deleted Added
full compact
ah_internal.h (219586) ah_internal.h (219942)
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 219586 2011-03-13 05:54:05Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_internal.h 219942 2011-03-23 23:48:44Z adrian $
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 */

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

471/* Analog register writes may require a delay between each one (eg Merlin?) */
472#define OS_A_REG_RMW_FIELD(_a, _r, _f, _v) \
473 do { OS_REG_WRITE(_a, _r, (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f))) ; OS_DELAY(100); } while (0)
474
475/* system-configurable parameters */
476extern int ath_hal_dma_beacon_response_time; /* in TU's */
477extern int ath_hal_sw_beacon_response_time; /* in TU's */
478extern int ath_hal_additional_swba_backoff; /* in TU's */
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 */

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

471/* Analog register writes may require a delay between each one (eg Merlin?) */
472#define OS_A_REG_RMW_FIELD(_a, _r, _f, _v) \
473 do { OS_REG_WRITE(_a, _r, (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f))) ; OS_DELAY(100); } while (0)
474
475/* system-configurable parameters */
476extern int ath_hal_dma_beacon_response_time; /* in TU's */
477extern int ath_hal_sw_beacon_response_time; /* in TU's */
478extern int ath_hal_additional_swba_backoff; /* in TU's */
479extern int ath_hal_ar5416_biasadj; /* 1 or 0 */
479
480/* wait for the register contents to have the specified value */
481extern HAL_BOOL ath_hal_wait(struct ath_hal *, u_int reg,
482 uint32_t mask, uint32_t val);
483extern HAL_BOOL ath_hal_waitfor(struct ath_hal *, u_int reg,
484 uint32_t mask, uint32_t val, uint32_t timeout);
485
486/* return the first n bits in val reversed */

--- 311 unchanged lines hidden ---
480
481/* wait for the register contents to have the specified value */
482extern HAL_BOOL ath_hal_wait(struct ath_hal *, u_int reg,
483 uint32_t mask, uint32_t val);
484extern HAL_BOOL ath_hal_waitfor(struct ath_hal *, u_int reg,
485 uint32_t mask, uint32_t val, uint32_t timeout);
486
487/* return the first n bits in val reversed */

--- 311 unchanged lines hidden ---