xref: /freebsd/sys/dev/ath/ath_hal/ah_devid.h (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1 /*-
2  * SPDX-License-Identifier: ISC
3  *
4  * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
5  * Copyright (c) 2002-2008 Atheros Communications, Inc.
6  *
7  * Permission to use, copy, modify, and/or distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  *
19  * $FreeBSD$
20  */
21 
22 #ifndef _DEV_ATH_DEVID_H_
23 #define _DEV_ATH_DEVID_H_
24 
25 #define ATHEROS_VENDOR_ID	0x168c		/* Atheros PCI vendor ID */
26 /*
27  * NB: all Atheros-based devices should have a PCI vendor ID
28  *     of 0x168c, but some vendors, in their infinite wisdom
29  *     do not follow this so we must handle them specially.
30  */
31 #define	ATHEROS_3COM_VENDOR_ID	0xa727		/* 3Com 3CRPAG175 vendor ID */
32 #define	ATHEROS_3COM2_VENDOR_ID	0x10b7		/* 3Com 3CRDAG675 vendor ID */
33 
34 /* AR5210 (for reference) */
35 #define AR5210_DEFAULT          0x1107          /* No eeprom HW default */
36 #define AR5210_PROD             0x0007          /* Final device ID */
37 #define AR5210_AP               0x0207          /* Early AP11s */
38 
39 /* AR5211 */
40 #define AR5211_DEFAULT          0x1112          /* No eeprom HW default */
41 #define AR5311_DEVID            0x0011          /* Final ar5311 devid */
42 #define AR5211_DEVID            0x0012          /* Final ar5211 devid */
43 #define AR5211_LEGACY           0xff12          /* Original emulation board */
44 #define AR5211_FPGA11B          0xf11b          /* 11b emulation board */
45 
46 /* AR5212 */
47 #define AR5212_DEFAULT          0x1113          /* No eeprom HW default */
48 #define AR5212_DEVID            0x0013          /* Final ar5212 devid */
49 #define AR5212_FPGA             0xf013          /* Emulation board */
50 #define	AR5212_DEVID_IBM	0x1014          /* IBM minipci ID */
51 #define AR5212_AR5312_REV2      0x0052          /* AR5312 WMAC (AP31) */
52 #define AR5212_AR5312_REV7      0x0057          /* AR5312 WMAC (AP30-040) */
53 #define AR5212_AR2313_REV8      0x0058          /* AR2313 WMAC (AP43-030) */
54 #define AR5212_AR2315_REV6      0x0086          /* AR2315 WMAC (AP51-Light) */
55 #define AR5212_AR2315_REV7      0x0087          /* AR2315 WMAC (AP51-Full) */
56 #define AR5212_AR2317_REV1      0x0090          /* AR2317 WMAC (AP61-Light) */
57 #define AR5212_AR2317_REV2      0x0091          /* AR2317 WMAC (AP61-Full) */
58 
59 /* AR5212 compatible devid's also attach to 5212 */
60 #define	AR5212_DEVID_0014	0x0014
61 #define	AR5212_DEVID_0015	0x0015
62 #define	AR5212_DEVID_0016	0x0016
63 #define	AR5212_DEVID_0017	0x0017
64 #define	AR5212_DEVID_0018	0x0018
65 #define	AR5212_DEVID_0019	0x0019
66 #define AR5212_AR2413      	0x001a          /* AR2413 aka Griffin-lite */
67 #define AR5212_AR5413		0x001b          /* Eagle */
68 #define AR5212_AR5424		0x001c          /* Condor (PCI express) */
69 #define AR5212_AR2417		0x001d          /* Nala, PCI */
70 #define AR5212_DEVID_FF19	0xff19          /* XXX PCI express */
71 
72 /* AR5213 */
73 #define	AR5213_SREV_1_0		0x0055
74 #define	AR5213_SREV_REG		0x4020
75 
76 /* AR5416 compatible devid's  */
77 #define AR5416_DEVID_PCI	0x0023          /* AR5416 PCI (MB/CB) Owl */
78 #define AR5416_DEVID_PCIE	0x0024          /* AR5418 PCI-E (XB) Owl */
79 #define	AR5416_AR9130_DEVID     0x000b          /* AR9130 SoC WiMAC */
80 #define AR9160_DEVID_PCI	0x0027          /* AR9160 PCI Sowl */
81 #define AR9280_DEVID_PCI	0x0029          /* AR9280 PCI Merlin */
82 #define AR9280_DEVID_PCIE	0x002a          /* AR9220 PCI-E Merlin */
83 #define AR9285_DEVID_PCIE	0x002b          /* AR9285 PCI-E Kite */
84 #define	AR2427_DEVID_PCIE	0x002c		/* AR2427 PCI-E w/ 802.11n bonded out */
85 #define	AR9287_DEVID_PCI	0x002d		/* AR9227 PCI Kiwi */
86 #define	AR9287_DEVID_PCIE	0x002e		/* AR9287 PCI-E Kiwi */
87 
88 /* AR9300 */
89 #define	AR9300_DEVID_AR9380_PCIE	0x0030
90 #define	AR9300_DEVID_EMU_PCIE		0xabcd
91 #define	AR9300_DEVID_AR9340		0x0031
92 #define	AR9300_DEVID_AR9485_PCIE	0x0032
93 #define	AR9300_DEVID_AR9580_PCIE	0x0033
94 #define	AR9300_DEVID_AR946X_PCIE	0x0034
95 #define	AR9300_DEVID_AR9330		0x0035
96 #define	AR9300_DEVID_QCA9565		0x0036
97 #define	AR9300_DEVID_AR1111_PCIE	0x0037
98 #define	AR9300_DEVID_QCA955X		0x0039
99 #define	AR9300_DEVID_QCA953X		0x003d        /* Honey Bee */
100 
101 #define	AR_SUBVENDOR_ID_NOG	0x0e11		/* No 11G subvendor ID */
102 #define AR_SUBVENDOR_ID_NEW_A	0x7065		/* Update device to new RD */
103 #endif /* _DEV_ATH_DEVID_H */
104