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