xref: /freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_devid.h (revision 02e9120893770924227138ba49df1edb3896112a)
1 /*
2  * Copyright (c) 2012, Qualcomm Atheros, Inc.  All rights reserved.
3  *
4  * Redistribution and use in source and binary forms are permitted
5  * provided that the following conditions are met:
6  * 1. The materials contained herein are unmodified and are used
7  *    unmodified.
8  * 2. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following NO
10  *    ''WARRANTY'' disclaimer below (''Disclaimer''), without
11  *    modification.
12  * 3. Redistributions in binary form must reproduce at minimum a
13  *    disclaimer similar to the Disclaimer below and any redistribution
14  *    must be conditioned upon including a substantially similar
15  *    Disclaimer requirement for further binary redistribution.
16  * 3. Neither the names of the above-listed copyright holders nor the
17  *    names of any contributors may be used to endorse or promote
18  *    product derived from this software without specific prior written
19  *    permission.
20  *
21  * NO WARRANTY
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23  * ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT,
25  * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
27  * FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
29  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
32  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGES.
34  *
35  * $FreeBSD$
36  *
37  */
38 #ifndef	__AR9300_DEVID_H__
39 #define	__AR9300_DEVID_H__
40 
41 /*
42  * AR9380 HAL device IDs.
43  */
44 
45 /*
46  * MAC Version and Revision
47  */
48 #define	AR_SREV_VERSION_AR9380		0x1C0
49 #define	AR_SREV_VERSION_AR9580		0x1C0
50 #define	AR_SREV_VERSION_AR9460		0x280
51 
52 #define	AR_SREV_VERSION_AR9330		0x200
53 #define	AR_SREV_VERSION_AR9340		0x300
54 #define	AR_SREV_VERSION_QCA9550		0x400
55 #define	AR_SREV_VERSION_AR9485		0x240
56 
57 #define	AR_SREV_REVISION_AR9380_10	0	/* AR9380 1.0 */
58 #define	AR_SREV_REVISION_AR9380_20	2	/* AR9380 2.0/2.1 */
59 #define	AR_SREV_REVISION_AR9380_22	3	/* AR9380 2.2 */
60 #define	AR_SREV_REVISION_AR9580_10	4	/* AR9580/Peacock 1.0 */
61 
62 #define	AR_SREV_REVISION_AR9330_10	0	/* AR9330 1.0 */
63 #define	AR_SREV_REVISION_AR9330_11	1	/* AR9330 1.1 */
64 #define	AR_SREV_REVISION_AR9330_12	2	/* AR9330 1.2 */
65 #define	AR_SREV_REVISION_AR9330_11_MASK	0xf	/* AR9330 1.1 revision mask */
66 
67 #define	AR_SREV_REVISION_AR9485_10	0	/* AR9485 1.0 */
68 #define	AR_SREV_REVISION_AR9485_11	1	/* AR9485 1.1 */
69 
70 #define	AR_SREV_REVISION_AR9340_10	0	/* AR9340 1.0 */
71 #define	AR_SREV_REVISION_AR9340_11	1	/* AR9340 1.1 */
72 #define	AR_SREV_REVISION_AR9340_12	2	/* AR9340 1.2 */
73 #define	AR_SREV_REVISION_AR9340_MASK	0xf	/* AR9340 revision mask */
74 
75 #define	AR_SREV_REVISION_AR9460_10	0	/* AR946x 1.0 */
76 
77 #endif	/* __AR9300_DEVID_H__ */
78