2 * SPROM format definitions for the Broadcom 47xx and 43xx chip family.
4 * Copyright(c) 2002 Broadcom Corporation
13 /* A word is this many bytes */
16 /* offset into PCI config space for write enable bit */
17 #define CFG_SROM_WRITABLE_OFFSET 0x88
18 #define SROM_WRITEABLE 0x10
20 /* enumeration space consists of N contiguous 4Kbyte core register sets */
21 #define SBCORES_BASE 0x18000000
22 #define SBCORES_EACH 0x1000
24 /* offset from BAR0 for srom space */
25 #define SROM_BASE 4096
27 /* number of 2-byte words in srom */
30 #define SROM_BYTES (SROM_SIZE * SRW)
34 /* Word 0, Hardware control */
36 #define HW_FUNMSK 0x000f
37 #define HW_FCLK 0x0200
39 #define HW_PIMSK 0xf000
41 #define HW_4301PISHIFT 13
43 #define HW_FUN4401 0x0001
44 #define HW_FCLK4402 0x0000
46 /* Word 1, common-power/boot-rom */
48 /* boot rom present bit */
49 #define BR_PRESSHIFT 8
50 /* 15:9 for n; boot rom size is 2^(14 + n) bytes */
51 #define BR_SIZESHIFT 9
53 /* Word 2, SubsystemId */
56 /* Word 3, VendorId */
59 /* Function 0 info, function info length */
63 /* Within each function: */
64 /* Word 0, deviceID */
67 /* Words 1-2, ClassCode */
69 /* Word 2, D0 Power */
72 /* Word 3, PME and D1D2D3 power */
73 #define SRFN_PMED123 3
80 #define PME_4402_ENET 0
81 #define PME_4402_CODEC 1
83 #define PMEREP_4402_ENET (PMERD3CV | PMERD3CA | PMERD3H | PMERD2 | PMERD1 | PMERD0 | PME)
85 /* Word 4, Bar1 enable, pme reports */
90 #define PMERMSK 0x0ff0
95 #define PMERD3H 0x0100
96 #define PMERD3CA 0x0200
97 #define PMERD3CV 0x0400
98 #define IGNCLKRR 0x0800
101 /* Words 4-5, Bar0 Sonics value */
103 /* Words 6-7, CIS Pointer */
107 /* Words 36-38: iLine MAC address */
108 #define SROM_I_MACHI 36
109 #define SROM_I_MACMID 37
110 #define SROM_I_MACLO 38
112 /* Words 36-38: wireless0 MAC address on 43xx */
113 #define SROM_W0_MACHI 36
114 #define SROM_W0_MACMID 37
115 #define SROM_W0_MACLO 38
117 /* Words 39-41: enet0 MAC address */
118 #define SROM_E0_MACHI 39
119 #define SROM_E0_MACMID 40
120 #define SROM_E0_MACLO 41
122 /* Words 42-44: enet1 MAC address */
123 #define SROM_E1_MACHI 42
124 #define SROM_E1_MACMID 43
125 #define SROM_E1_MACLO 44
127 /* Words 42-44: wireless1 MAC address on 4309 */
128 #define SROM_W1_MACHI 42
129 #define SROM_W1_MACMID 43
130 #define SROM_W1_MACLO 44
134 /* Word 46: BdRev & Antennas0/1 & ccLock for 430x */
135 #define SROM_REV_AA_LOCK 46
137 /* Words 47-51 wl0 PA bx */
138 #define SROM_WL0_PAB0 47
139 #define SROM_WL0_PAB1 48
140 #define SROM_WL0_PAB2 49
141 #define SROM_WL0_PAB3 50
142 #define SROM_WL0_PAB4 51
144 /* Word 52: wl0/wl1 MaxPower */
145 #define SROM_WL_MAXPWR 52
147 /* Words 53-55 wl1 PA bx */
148 #define SROM_WL1_PAB0 53
149 #define SROM_WL1_PAB1 54
150 #define SROM_WL1_PAB2 55
155 /* Words 59-62: OEM Space */
156 #define SROM_WL_OEM 59
157 #define SROM_OEM_SIZE 4
159 /* Contents for the srom */
161 #define BU4710_SSID 0x0400
162 #define VSIM4710_SSID 0x0401
163 #define QT4710_SSID 0x0402
165 #define BU4610_SSID 0x0403
166 #define VSIM4610_SSID 0x0404
168 #define BU4307_SSID 0x0405
169 #define BCM94301CB_SSID 0x0406
170 #define BCM94301MP_SSID 0x0407
171 #define BCM94307MP_SSID 0x0408
172 #define AP4307_SSID 0x0409
174 #define BU4309_SSID 0x040a
175 #define BCM94309CB_SSID 0x040b
176 #define BCM94309MP_SSID 0x040c
177 #define AP4309_SSID 0x040d
179 #define BU4402_SSID 0x4402
181 #define CLASS_OTHER 0x8000
182 #define CLASS_ETHER 0x0000
183 #define CLASS_NET 0x0002
184 #define CLASS_COMM 0x0007
185 #define CLASS_MODEM 0x0300
186 #define CLASS_MIPS 0x3000
187 #define CLASS_PROC 0x000b
188 #define CLASS_FLASH 0x0100
189 #define CLASS_MEM 0x0005
190 #define CLASS_SERIALBUS 0x000c
191 #define CLASS_OHCI 0x0310
193 /* Broadcom IEEE MAC addresses are 00:90:4c:xx:xx:xx */
196 #define MACMID_BU4710I 0x4c17
197 #define MACMID_BU4710E0 0x4c18
198 #define MACMID_BU4710E1 0x4c19
200 #define MACMID_94710R1I 0x4c1a
201 #define MACMID_94710R1E0 0x4c1b
202 #define MACMID_94710R1E1 0x4c1c
204 #define MACMID_94710R4I 0x4c1d
205 #define MACMID_94710R4E0 0x4c1e
206 #define MACMID_94710R4E1 0x4c1f
208 #define MACMID_94710DEVI 0x4c20
209 #define MACMID_94710DEVE0 0x4c21
210 #define MACMID_94710DEVE1 0x4c22
212 #define MACMID_BU4402 0x4c23
214 #define MACMID_BU4610I 0x4c24
215 #define MACMID_BU4610E0 0x4c25
216 #define MACMID_BU4610E1 0x4c26
218 #define MACMID_BU4307W 0x4c27
219 #define MACMID_BU4307E 0x4c28
221 #define MACMID_94301CB 0x4c29
223 #define MACMID_94301MP 0x4c2a
225 #define MACMID_94307MPW 0x4c2b
226 #define MACMID_94307MPE 0x4c2c
228 #define MACMID_AP4307W 0x4c2d
229 #define MACMID_AP4307E 0x4c2e
231 #define MACMID_BU4309W0 0x4c2f
232 #define MACMID_BU4309W1 0x4c30
233 #define MACMID_BU4309E 0x4c31
235 #define MACMID_94309CBW0 0x4c32
236 #define MACMID_94309CBW1 0x4c33
238 #define MACMID_94309MPW0 0x4c34
239 #define MACMID_94309MPW1 0x4c35
240 #define MACMID_94309MPE 0x4c36
242 #define MACMID_BU4401 0x4c37
244 /* Enet phy settings one or two singles or a dual */
245 /* Bits 4-0 : MII address for enet0 (0x1f for not there */
246 /* Bits 9-5 : MII address for enet1 (0x1f for not there */
247 /* Bit 14 : Mdio for enet0 */
248 /* Bit 15 : Mdio for enet1 */
250 /* bu4710 with only one phy on enet1 with address 7: */
251 #define SROM_EPHY_ONE 0x80ff
253 /* bu4710 with two individual phys, at 6 and 7, */
254 /* each mdio connected to its own mac: */
255 #define SROM_EPHY_TWO 0x80e6
257 /* bu4710 with a dual phy addresses 0 & 1, mdio-connected to enet0 */
258 #define SROM_EPHY_DUAL 0x0001
260 /* r1 board with a dual phy at 0, 1 (NOT swapped and mdc0 */
261 #define SROM_EPHY_R1 0x0010
263 /* r4 board with a single phy on enet0 at address 5 and a switch */
264 /* chip on enet1 (speciall case: 0x1e */
265 #define SROM_EPHY_R4 0x83e5
267 /* 4402 uses an internal phy at phyaddr 1; want mdcport == coreunit == 0 */
268 #define SROM_EPHY_INTERNAL 0x0001
270 /* 4307 uses an external phy at phyaddr 0; want mdcport == coreunit == 0 */
271 #define SROM_EPHY_ZERO 0x0000
273 #define SROM_VERS 0x0001
276 #endif /* _SBSPROM_H */
This page took 0.055462 seconds and 5 git commands to generate.