]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/dev/ath/ath_hal/ar9002/ar9287an.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / dev / ath / ath_hal / ar9002 / ar9287an.h
1 /*
2  * Copyright (c) 2010 Atheros Communications, Inc.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  *
16  * $FreeBSD$
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