Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / sys / dev / netif / ath / hal / ath_hal / ar5212 / ar5311reg.h
1 /*
2  * Copyright (c) 2002-2008 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  * $Id: ar5311reg.h,v 1.3 2008/10/06 18:32:50 sam Exp $
18  * $DragonFly$
19  */
20 #ifndef _DEV_ATH_AR5311REG_H_
21 #define _DEV_ATH_AR5311REG_H_
22
23 /*
24  * Definitions for the Atheros 5311 chipset.
25  */
26 #define AR5311_QDCLKGATE        0x005c  /* MAC QCU/DCU clock gating control */
27 #define AR5311_QDCLKGATE_QCU_M  0x0000FFFF /* QCU clock disable */
28 #define AR5311_QDCLKGATE_DCU_M  0x07FF0000 /* DCU clock disable */
29
30 #define AR5311_RXCFG_DEF_RX_ANTENNA     0x00000008 /* Default Receive Antenna */
31
32 /*
33  * NOTE: MAC_5211/MAC_5311 difference
34  * On Oahu the TX latency field has increased from 6 bits to 9 bits.
35  * The RX latency field is unchanged but is shifted over 3 bits.
36  */
37 #define AR5311_USEC_TX_LAT_M    0x000FC000 /* tx latency (usec) */
38 #define AR5311_USEC_TX_LAT_S    14
39 #define AR5311_USEC_RX_LAT_M    0x03F00000 /* rx latency (usec) */
40 #define AR5311_USEC_RX_LAT_S    20
41
42 /*
43  * NOTE: MAC_5211/MAC_5311 difference
44  * On Maui2/Spirit the frame sequence number is controlled per DCU.
45  * On Oahu the frame sequence number is global across all DCUs and
46  * is controlled
47  */
48 #define AR5311_D_MISC_SEQ_NUM_CONTROL   0x01000000 /* seq num local or global */
49 #define AR5311_DIAG_USE_ECO     0x00000400      /* "super secret" enable ECO */
50
51 #endif /* _DEV_ATH_AR5311REG_H_ */