xref: /freebsd/sys/dev/ath/ath_hal/ar9003/ar9300_devid.h (revision 734e82fe33aa764367791a7d603b383996c6b40b)
1 /*-
2  * SPDX-License-Identifier: BSD-4-Clause
3  *
4  * Copyright (c) 2012, Qualcomm Atheros, Inc.  All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted
7  * provided that the following conditions are met:
8  * 1. The materials contained herein are unmodified and are used
9  *    unmodified.
10  * 2. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following NO
12  *    ''WARRANTY'' disclaimer below (''Disclaimer''), without
13  *    modification.
14  * 3. Redistributions in binary form must reproduce at minimum a
15  *    disclaimer similar to the Disclaimer below and any redistribution
16  *    must be conditioned upon including a substantially similar
17  *    Disclaimer requirement for further binary redistribution.
18  * 4. Neither the names of the above-listed copyright holders nor the
19  *    names of any contributors may be used to endorse or promote
20  *    product derived from this software without specific prior written
21  *    permission.
22  *
23  * NO WARRANTY
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25  * ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT,
27  * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
29  * FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
31  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
32  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
33  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
34  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35  * SUCH DAMAGES.
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