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 * $FreeBSD$
38 *
39 */
40 #ifndef __AR9300_DEVID_H__
41 #define __AR9300_DEVID_H__
42
43 /*
44 * AR9380 HAL device IDs.
45 */
46
47 /*
48 * MAC Version and Revision
49 */
50 #define AR_SREV_VERSION_AR9380 0x1C0
51 #define AR_SREV_VERSION_AR9580 0x1C0
52 #define AR_SREV_VERSION_AR9460 0x280
53 #define AR_SREV_VERSION_QCA9565 0x2c0
54
55 #define AR_SREV_VERSION_AR9330 0x200
56 #define AR_SREV_VERSION_AR9340 0x300
57 #define AR_SREV_VERSION_QCA9550 0x400
58 #define AR_SREV_VERSION_AR9485 0x240
59 #define AR_SREV_VERSION_QCA9530 0x500
60
61 #define AR_SREV_REVISION_AR9380_10 0 /* AR9380 1.0 */
62 #define AR_SREV_REVISION_AR9380_20 2 /* AR9380 2.0/2.1 */
63 #define AR_SREV_REVISION_AR9380_22 3 /* AR9380 2.2 */
64 #define AR_SREV_REVISION_AR9580_10 4 /* AR9580/Peacock 1.0 */
65
66 #define AR_SREV_REVISION_AR9330_10 0 /* AR9330 1.0 */
67 #define AR_SREV_REVISION_AR9330_11 1 /* AR9330 1.1 */
68 #define AR_SREV_REVISION_AR9330_12 2 /* AR9330 1.2 */
69 #define AR_SREV_REVISION_AR9330_11_MASK 0xf /* AR9330 1.1 revision mask */
70
71 #define AR_SREV_REVISION_AR9485_10 0 /* AR9485 1.0 */
72 #define AR_SREV_REVISION_AR9485_11 1 /* AR9485 1.1 */
73
74 #define AR_SREV_REVISION_AR9340_10 0 /* AR9340 1.0 */
75 #define AR_SREV_REVISION_AR9340_11 1 /* AR9340 1.1 */
76 #define AR_SREV_REVISION_AR9340_12 2 /* AR9340 1.2 */
77 #define AR_SREV_REVISION_AR9340_MASK 0xf /* AR9340 revision mask */
78
79 #define AR_SREV_REVISION_AR9460_10 0 /* AR946x 1.0 */
80
81 #endif /* __AR9300_DEVID_H__ */
Cache object: 85c85914f34c12d1d5b9e86a1cd63ebf
|