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  * 4. 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 #define	AR_SREV_VERSION_QCA9565		0x2c0
52 
53 #define	AR_SREV_VERSION_AR9330		0x200
54 #define	AR_SREV_VERSION_AR9340		0x300
55 #define	AR_SREV_VERSION_QCA9550		0x400
56 #define	AR_SREV_VERSION_AR9485		0x240
57 #define	AR_SREV_VERSION_QCA9530		0x500
58 
59 #define	AR_SREV_REVISION_AR9380_10	0	/* AR9380 1.0 */
60 #define	AR_SREV_REVISION_AR9380_20	2	/* AR9380 2.0/2.1 */
61 #define	AR_SREV_REVISION_AR9380_22	3	/* AR9380 2.2 */
62 #define	AR_SREV_REVISION_AR9580_10	4	/* AR9580/Peacock 1.0 */
63 
64 #define	AR_SREV_REVISION_AR9330_10	0	/* AR9330 1.0 */
65 #define	AR_SREV_REVISION_AR9330_11	1	/* AR9330 1.1 */
66 #define	AR_SREV_REVISION_AR9330_12	2	/* AR9330 1.2 */
67 #define	AR_SREV_REVISION_AR9330_11_MASK	0xf	/* AR9330 1.1 revision mask */
68 
69 #define	AR_SREV_REVISION_AR9485_10	0	/* AR9485 1.0 */
70 #define	AR_SREV_REVISION_AR9485_11	1	/* AR9485 1.1 */
71 
72 #define	AR_SREV_REVISION_AR9340_10	0	/* AR9340 1.0 */
73 #define	AR_SREV_REVISION_AR9340_11	1	/* AR9340 1.1 */
74 #define	AR_SREV_REVISION_AR9340_12	2	/* AR9340 1.2 */
75 #define	AR_SREV_REVISION_AR9340_MASK	0xf	/* AR9340 revision mask */
76 
77 #define	AR_SREV_REVISION_AR9460_10	0	/* AR946x 1.0 */
78 
79 #endif	/* __AR9300_DEVID_H__ */
80