FreeBSD kernel ATH device code
ar9287.h
Go to the documentation of this file.
1/*-
2 * SPDX-License-Identifier: ISC
3 *
4 * Copyright (c) 2010 Atheros Communications, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * $FreeBSD$
19 */
20
21#ifndef _ATH_AR9287_H_
22#define _ATH_AR9287_H_
23
24#include "ar5416/ar5416.h"
25
26/*
27 * This is a chip thing, but it's used here as part of the
28 * ath_hal_9287 struct; so it's convienent to locate the
29 * define here.
30 */
31#define AR9287_TX_GAIN_TABLE_SIZE 22
32
35
39
42
44
46};
47#define AH9287(_ah) ((struct ath_hal_9287 *)(_ah))
48
49#define AR9287_DEFAULT_RXCHAINMASK 3
50#define AR9287_DEFAULT_TXCHAINMASK 3
51
52#define AR_PHY_CCA_NOM_VAL_9287_2GHZ -112
53#define AR_PHY_CCA_NOM_VAL_9287_5GHZ -112
54#define AR_PHY_CCA_MIN_GOOD_VAL_9287_2GHZ -127
55#define AR_PHY_CCA_MIN_GOOD_VAL_9287_5GHZ -122
56#define AR_PHY_CCA_MAX_GOOD_VAL_9287_2GHZ -97
57#define AR_PHY_CCA_MAX_GOOD_VAL_9287_5GHZ -102
58
59extern HAL_BOOL ar9287RfAttach(struct ath_hal *, HAL_STATUS *);
61
62#endif /* _ATH_AR9287_H_ */
HAL_STATUS
Definition: ah.h:71
HAL_ANT_SETTING
Definition: ah.h:758
HAL_BOOL
Definition: ah.h:93
HAL_BOOL ar9287SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING)
#define AR9287_TX_GAIN_TABLE_SIZE
Definition: ar9287.h:31
HAL_BOOL ar9287RfAttach(struct ath_hal *, HAL_STATUS *)
Definition: ar9287.c:359
HAL_INI_ARRAY ah_ini_txgain
Definition: ar9287.h:38
HAL_INI_ARRAY ah_ini_xmodes
Definition: ar9287.h:36
HAL_INI_ARRAY ah_ini_cckFirNormal
Definition: ar9287.h:40
uint32_t originalGain[AR9287_TX_GAIN_TABLE_SIZE]
Definition: ar9287.h:45
struct ath_hal_5416 ah_5416
Definition: ar9287.h:34
HAL_INI_ARRAY ah_ini_rxgain
Definition: ar9287.h:37
int PDADCdelta
Definition: ar9287.h:43
HAL_INI_ARRAY ah_ini_cckFirJapan2484
Definition: ar9287.h:41
Definition: ah.h:1219