diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2007-11-09 17:58:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:44 -0500 |
commit | d3c319f9c8d9ee2c042c60b8a1bbd909dcc42782 (patch) | |
tree | a80dc345690edae76d7eea864ec25966869b08b3 /include/linux/ssb/ssb_regs.h | |
parent | 7797aa384870e3bb5bfd3b6a0eae61e7c7a4c993 (diff) |
ssb: Remove the old, now unused, data structures
The old, now unused, data structures and SPROM extraction routines
are removed.
Signed-off-by: Larry Finger<Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/ssb/ssb_regs.h')
-rw-r--r-- | include/linux/ssb/ssb_regs.h | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/include/linux/ssb/ssb_regs.h b/include/linux/ssb/ssb_regs.h index 96bba69b1271..30222e89ad16 100644 --- a/include/linux/ssb/ssb_regs.h +++ b/include/linux/ssb/ssb_regs.h | |||
@@ -175,6 +175,7 @@ | |||
175 | #define SSB_SPROM_REVISION_REV 0x00FF /* SPROM Revision number */ | 175 | #define SSB_SPROM_REVISION_REV 0x00FF /* SPROM Revision number */ |
176 | #define SSB_SPROM_REVISION_CRC 0xFF00 /* SPROM CRC8 value */ | 176 | #define SSB_SPROM_REVISION_CRC 0xFF00 /* SPROM CRC8 value */ |
177 | #define SSB_SPROM_REVISION_CRC_SHIFT 8 | 177 | #define SSB_SPROM_REVISION_CRC_SHIFT 8 |
178 | |||
178 | /* SPROM Revision 1 */ | 179 | /* SPROM Revision 1 */ |
179 | #define SSB_SPROM1_SPID 0x1004 /* Subsystem Product ID for PCI */ | 180 | #define SSB_SPROM1_SPID 0x1004 /* Subsystem Product ID for PCI */ |
180 | #define SSB_SPROM1_SVID 0x1006 /* Subsystem Vendor ID for PCI */ | 181 | #define SSB_SPROM1_SVID 0x1006 /* Subsystem Vendor ID for PCI */ |
@@ -223,7 +224,7 @@ | |||
223 | #define SSB_SPROM1_AGAIN_A 0x00FF /* A-PHY */ | 224 | #define SSB_SPROM1_AGAIN_A 0x00FF /* A-PHY */ |
224 | #define SSB_SPROM1_AGAIN_BG 0xFF00 /* B-PHY and G-PHY */ | 225 | #define SSB_SPROM1_AGAIN_BG 0xFF00 /* B-PHY and G-PHY */ |
225 | #define SSB_SPROM1_AGAIN_BG_SHIFT 8 | 226 | #define SSB_SPROM1_AGAIN_BG_SHIFT 8 |
226 | #define SSB_SPROM1_OEM 0x1076 /* 8 bytes OEM string (rev 1 only) */ | 227 | |
227 | /* SPROM Revision 2 (inherits from rev 1) */ | 228 | /* SPROM Revision 2 (inherits from rev 1) */ |
228 | #define SSB_SPROM2_BFLHI 0x1038 /* Boardflags (high 16 bits) */ | 229 | #define SSB_SPROM2_BFLHI 0x1038 /* Boardflags (high 16 bits) */ |
229 | #define SSB_SPROM2_MAXP_A 0x103A /* A-PHY Max Power */ | 230 | #define SSB_SPROM2_MAXP_A 0x103A /* A-PHY Max Power */ |
@@ -240,6 +241,7 @@ | |||
240 | #define SSB_SPROM2_OPO_VALUE 0x00FF | 241 | #define SSB_SPROM2_OPO_VALUE 0x00FF |
241 | #define SSB_SPROM2_OPO_UNUSED 0xFF00 | 242 | #define SSB_SPROM2_OPO_UNUSED 0xFF00 |
242 | #define SSB_SPROM2_CCODE 0x107C /* Two char Country Code */ | 243 | #define SSB_SPROM2_CCODE 0x107C /* Two char Country Code */ |
244 | |||
243 | /* SPROM Revision 3 (inherits most data from rev 2) */ | 245 | /* SPROM Revision 3 (inherits most data from rev 2) */ |
244 | #define SSB_SPROM3_IL0MAC 0x104A /* 6 bytes MAC address for 802.11b/g */ | 246 | #define SSB_SPROM3_IL0MAC 0x104A /* 6 bytes MAC address for 802.11b/g */ |
245 | #define SSB_SPROM3_ET0MAC 0x1050 /* 6 bytes MAC address for Ethernet ?? */ | 247 | #define SSB_SPROM3_ET0MAC 0x1050 /* 6 bytes MAC address for Ethernet ?? */ |
@@ -261,11 +263,12 @@ | |||
261 | #define SSB_SPROM3_CCKPO_11M 0xF000 /* 11M Rate PO */ | 263 | #define SSB_SPROM3_CCKPO_11M 0xF000 /* 11M Rate PO */ |
262 | #define SSB_SPROM3_CCKPO_11M_SHIFT 12 | 264 | #define SSB_SPROM3_CCKPO_11M_SHIFT 12 |
263 | #define SSB_SPROM3_OFDMGPO 0x107A /* G-PHY OFDM Power Offset (4 bytes, BigEndian) */ | 265 | #define SSB_SPROM3_OFDMGPO 0x107A /* G-PHY OFDM Power Offset (4 bytes, BigEndian) */ |
266 | |||
264 | /* SPROM Revision 4 entries with ?? in comment are unknown */ | 267 | /* SPROM Revision 4 entries with ?? in comment are unknown */ |
265 | #define SSB_SPROM4_IL0MAC 0x104C /* 6 byte MAC address for b/g */ | 268 | #define SSB_SPROM4_IL0MAC 0x104C /* 6 byte MAC address for a/b/g/n */ |
266 | #define SSB_SPROM4_ET0MAC 0x1018 /* 6 bytes MAC address for Ethernet ?? */ | 269 | #define SSB_SPROM4_ET0MAC 0x1018 /* 6 bytes MAC address for Ethernet ?? */ |
267 | #define SSB_SPROM4_ET1MAC 0x1018 /* 6 bytes MAC address for 802.11a ?? */ | 270 | #define SSB_SPROM4_ET1MAC 0x1018 /* 6 bytes MAC address for 802.11a ?? */ |
268 | #define SSB_SPROM4_ETHPHY 0x105A /* Ethernet PHY settings */ | 271 | #define SSB_SPROM4_ETHPHY 0x105A /* Ethernet PHY settings ?? */ |
269 | #define SSB_SPROM4_ETHPHY_ET0A 0x001F /* MII Address for enet0 */ | 272 | #define SSB_SPROM4_ETHPHY_ET0A 0x001F /* MII Address for enet0 */ |
270 | #define SSB_SPROM4_ETHPHY_ET1A 0x03E0 /* MII Address for enet1 */ | 273 | #define SSB_SPROM4_ETHPHY_ET1A 0x03E0 /* MII Address for enet1 */ |
271 | #define SSB_SPROM4_ETHPHY_ET1A_SHIFT 5 | 274 | #define SSB_SPROM4_ETHPHY_ET1A_SHIFT 5 |
@@ -280,24 +283,28 @@ | |||
280 | #define SSB_SPROM4_AGAIN_1 0xFF00 /* Antenna 1 */ | 283 | #define SSB_SPROM4_AGAIN_1 0xFF00 /* Antenna 1 */ |
281 | #define SSB_SPROM4_AGAIN_1_SHIFT 8 | 284 | #define SSB_SPROM4_AGAIN_1_SHIFT 8 |
282 | #define SSB_SPROM4_BFLHI 0x1046 /* Board Flags Hi */ | 285 | #define SSB_SPROM4_BFLHI 0x1046 /* Board Flags Hi */ |
283 | #define SSB_SPROM4_MAXP_A 0x1000 /* Max Power A ?? */ | 286 | #define SSB_SPROM4_MAXP_BG 0x1080 /* Max Power BG in path 1 */ |
284 | #define SSB_SPROM4_MAXP_A_HI 0x00FF /* Mask for Hi */ | 287 | #define SSB_SPROM4_MAXP_BG_MASK 0x00FF /* Mask for Max Power BG */ |
285 | #define SSB_SPROM4_MAXP_A_LO 0xFF00 /* Mask for Lo */ | 288 | #define SSB_SPROM4_ITSSI_BG 0xFF00 /* Mask for path 1 itssi_bg */ |
286 | #define SSB_SPROM4_MAXP_A_LO_SHIFT 16 /* Shift for Lo */ | 289 | #define SSB_SPROM4_ITSSI_BG_SHIFT 8 |
287 | #define SSB_SPROM4_PA1LOB0 0x1000 /* ?? */ | 290 | #define SSB_SPROM4_MAXP_A 0x108A /* Max Power A in path 1 */ |
288 | #define SSB_SPROM4_PA1LOB1 0x1000 /* ?? */ | 291 | #define SSB_SPROM4_MAXP_A_MASK 0x00FF /* Mask for Max Power A */ |
289 | #define SSB_SPROM4_PA1LOB2 0x1000 /* ?? */ | 292 | #define SSB_SPROM4_ITSSI_A 0xFF00 /* Mask for path 1 itssi_a */ |
290 | #define SSB_SPROM4_PA1HIB0 0x1000 /* ?? */ | 293 | #define SSB_SPROM4_ITSSI_A_SHIFT 8 |
291 | #define SSB_SPROM4_PA1HIB1 0x1000 /* ?? */ | 294 | #define SSB_SPROM4_GPIOA 0x1056 /* Gen. Purpose IO # 0 and 1 */ |
292 | #define SSB_SPROM4_PA1HIB2 0x1000 /* ?? */ | 295 | #define SSB_SPROM4_GPIOA_P0 0x00FF /* Pin 0 */ |
293 | #define SSB_SPROM4_OPO 0x1000 /* ?? */ | 296 | #define SSB_SPROM4_GPIOA_P1 0xFF00 /* Pin 1 */ |
294 | #define SSB_SPROM4_OPO_VALUE 0x0000 /* ?? */ | 297 | #define SSB_SPROM4_GPIOA_P1_SHIFT 8 |
295 | #define SSB_SPROM4_GPIOLDC 0x105A /* LED Powersave Duty Cycle */ | 298 | #define SSB_SPROM4_GPIOB 0x1058 /* Gen. Purpose IO # 2 and 3 */ |
296 | #define SSB_SPROM4_GPIOLDC_OFF 0x0000FF00 /* Off Count */ | 299 | #define SSB_SPROM4_GPIOB_P2 0x00FF /* Pin 2 */ |
297 | #define SSB_SPROM4_GPIOLDC_OFF_SHIFT 8 | 300 | #define SSB_SPROM4_GPIOB_P3 0xFF00 /* Pin 3 */ |
298 | #define SSB_SPROM4_GPIOLDC_ON 0x00FF0000 /* On Count */ | 301 | #define SSB_SPROM4_GPIOB_P3_SHIFT 8 |
299 | #define SSB_SPROM4_GPIOLDC_ON_SHIFT 16 | 302 | #define SSB_SPROM4_PA0B0 0x1082 /* The paXbY locations are */ |
300 | 303 | #define SSB_SPROM4_PA0B1 0x1084 /* only guesses */ | |
304 | #define SSB_SPROM4_PA0B2 0x1086 | ||
305 | #define SSB_SPROM4_PA1B0 0x108E | ||
306 | #define SSB_SPROM4_PA1B1 0x1090 | ||
307 | #define SSB_SPROM4_PA1B2 0x1092 | ||
301 | 308 | ||
302 | /* Values for SSB_SPROM1_BINF_CCODE */ | 309 | /* Values for SSB_SPROM1_BINF_CCODE */ |
303 | enum { | 310 | enum { |