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