]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dev/ath/ath_hal/ar9002/ar9287an.h
MFV r356415
[FreeBSD/FreeBSD.git] / sys / dev / ath / ath_hal / ar9002 / ar9287an.h
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 __AR9287AN_H__
22 #define __AR9287AN_H__
23
24 #define AR9287_AN_RF2G3_CH0                     0x7808
25 #define AR9287_AN_RF2G3_CH1                     0x785c
26 #define AR9287_AN_RF2G3_DB1                     0xE0000000
27 #define AR9287_AN_RF2G3_DB1_S                   29
28 #define AR9287_AN_RF2G3_DB2                     0x1C000000
29 #define AR9287_AN_RF2G3_DB2_S                   26
30 #define AR9287_AN_RF2G3_OB_CCK                  0x03800000
31 #define AR9287_AN_RF2G3_OB_CCK_S                23
32 #define AR9287_AN_RF2G3_OB_PSK                  0x00700000
33 #define AR9287_AN_RF2G3_OB_PSK_S                20
34 #define AR9287_AN_RF2G3_OB_QAM                  0x000E0000
35 #define AR9287_AN_RF2G3_OB_QAM_S                17
36 #define AR9287_AN_RF2G3_OB_PAL_OFF              0x0001C000
37 #define AR9287_AN_RF2G3_OB_PAL_OFF_S            14
38
39 #define AR9287_AN_TXPC0                         0x7898
40 #define AR9287_AN_TXPC0_TXPCMODE                0x0000C000
41 #define AR9287_AN_TXPC0_TXPCMODE_S              14
42 #define AR9287_AN_TXPC0_TXPCMODE_NORMAL         0
43 #define AR9287_AN_TXPC0_TXPCMODE_TEST           1
44 #define AR9287_AN_TXPC0_TXPCMODE_TEMPSENSE      2
45 #define AR9287_AN_TXPC0_TXPCMODE_ATBTEST        3
46
47 #define AR9287_AN_TOP2                          0x78b4
48 #define AR9287_AN_TOP2_XPABIAS_LVL              0xC0000000
49 #define AR9287_AN_TOP2_XPABIAS_LVL_S            30
50
51 #endif