xref: /dflybsd-src/sys/dev/netif/ath/ath_hal/ar9003/ar9300_devid.h (revision df052c2a9588fe12c7a2df4e61e2bfa3f3e16ce0)
1572ff6f6SMatthew Dillon /*
2572ff6f6SMatthew Dillon  * Copyright (c) 2012, Qualcomm Atheros, Inc.  All rights reserved.
3572ff6f6SMatthew Dillon  *
4572ff6f6SMatthew Dillon  * Redistribution and use in source and binary forms are permitted
5572ff6f6SMatthew Dillon  * provided that the following conditions are met:
6572ff6f6SMatthew Dillon  * 1. The materials contained herein are unmodified and are used
7572ff6f6SMatthew Dillon  *    unmodified.
8572ff6f6SMatthew Dillon  * 2. Redistributions of source code must retain the above copyright
9572ff6f6SMatthew Dillon  *    notice, this list of conditions and the following NO
10572ff6f6SMatthew Dillon  *    ''WARRANTY'' disclaimer below (''Disclaimer''), without
11572ff6f6SMatthew Dillon  *    modification.
12572ff6f6SMatthew Dillon  * 3. Redistributions in binary form must reproduce at minimum a
13572ff6f6SMatthew Dillon  *    disclaimer similar to the Disclaimer below and any redistribution
14572ff6f6SMatthew Dillon  *    must be conditioned upon including a substantially similar
15572ff6f6SMatthew Dillon  *    Disclaimer requirement for further binary redistribution.
16572ff6f6SMatthew Dillon  * 4. Neither the names of the above-listed copyright holders nor the
17572ff6f6SMatthew Dillon  *    names of any contributors may be used to endorse or promote
18572ff6f6SMatthew Dillon  *    product derived from this software without specific prior written
19572ff6f6SMatthew Dillon  *    permission.
20572ff6f6SMatthew Dillon  *
21572ff6f6SMatthew Dillon  * NO WARRANTY
22572ff6f6SMatthew Dillon  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23572ff6f6SMatthew Dillon  * ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24572ff6f6SMatthew Dillon  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT,
25*df052c2aSSascha Wildner  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26572ff6f6SMatthew Dillon  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
27572ff6f6SMatthew Dillon  * FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28572ff6f6SMatthew Dillon  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
29572ff6f6SMatthew Dillon  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30572ff6f6SMatthew Dillon  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31572ff6f6SMatthew Dillon  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
32572ff6f6SMatthew Dillon  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33572ff6f6SMatthew Dillon  * SUCH DAMAGES.
34572ff6f6SMatthew Dillon  *
35572ff6f6SMatthew Dillon  * $FreeBSD$
36572ff6f6SMatthew Dillon  *
37572ff6f6SMatthew Dillon  */
38572ff6f6SMatthew Dillon #ifndef	__AR9300_DEVID_H__
39572ff6f6SMatthew Dillon #define	__AR9300_DEVID_H__
40572ff6f6SMatthew Dillon 
41572ff6f6SMatthew Dillon /*
42572ff6f6SMatthew Dillon  * AR9380 HAL device IDs.
43572ff6f6SMatthew Dillon  */
44572ff6f6SMatthew Dillon 
45572ff6f6SMatthew Dillon /*
46572ff6f6SMatthew Dillon  * MAC Version and Revision
47572ff6f6SMatthew Dillon  */
48572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_AR9380		0x1C0
49572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_AR9580		0x1C0
50572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_AR9460		0x280
51572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_QCA9565		0x2c0
52572ff6f6SMatthew Dillon 
53572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_AR9330		0x200
54572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_AR9340		0x300
55572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_QCA9550		0x400
56572ff6f6SMatthew Dillon #define	AR_SREV_VERSION_AR9485		0x240
57b14ca477SMatthew Dillon #define	AR_SREV_VERSION_QCA9530		0x500
58572ff6f6SMatthew Dillon 
59572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9380_10	0	/* AR9380 1.0 */
60572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9380_20	2	/* AR9380 2.0/2.1 */
61572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9380_22	3	/* AR9380 2.2 */
62572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9580_10	4	/* AR9580/Peacock 1.0 */
63572ff6f6SMatthew Dillon 
64572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9330_10	0	/* AR9330 1.0 */
65572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9330_11	1	/* AR9330 1.1 */
66572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9330_12	2	/* AR9330 1.2 */
67572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9330_11_MASK	0xf	/* AR9330 1.1 revision mask */
68572ff6f6SMatthew Dillon 
69572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9485_10	0	/* AR9485 1.0 */
70572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9485_11	1	/* AR9485 1.1 */
71572ff6f6SMatthew Dillon 
72572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9340_10	0	/* AR9340 1.0 */
73572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9340_11	1	/* AR9340 1.1 */
74572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9340_12	2	/* AR9340 1.2 */
75572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9340_MASK	0xf	/* AR9340 revision mask */
76572ff6f6SMatthew Dillon 
77572ff6f6SMatthew Dillon #define	AR_SREV_REVISION_AR9460_10	0	/* AR946x 1.0 */
78572ff6f6SMatthew Dillon 
79572ff6f6SMatthew Dillon #endif	/* __AR9300_DEVID_H__ */
80