sprom.c (50d1e9302bab7d35dae7146f8c468e0943015616) | sprom.c (da1fdb02d9200ff28b6f3a380d21930335fe5429) |
---|---|
1/* 2 * Sonics Silicon Backplane 3 * Common SPROM support routines 4 * 5 * Copyright (C) 2005-2008 Michael Buesch <mb@bu3sch.de> 6 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 7 * Copyright (C) 2005 Stefano Brivio <st3@riseup.net> 8 * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org> --- 171 unchanged lines hidden (view full) --- 180/* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ 181bool ssb_is_sprom_available(struct ssb_bus *bus) 182{ 183 /* status register only exists on chipcomon rev >= 11 and we need check 184 for >= 31 only */ 185 /* this routine differs from specs as we do not access SPROM directly 186 on PCMCIA */ 187 if (bus->bustype == SSB_BUSTYPE_PCI && | 1/* 2 * Sonics Silicon Backplane 3 * Common SPROM support routines 4 * 5 * Copyright (C) 2005-2008 Michael Buesch <mb@bu3sch.de> 6 * Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 7 * Copyright (C) 2005 Stefano Brivio <st3@riseup.net> 8 * Copyright (C) 2005 Danny van Dyk <kugelfang@gentoo.org> --- 171 unchanged lines hidden (view full) --- 180/* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ 181bool ssb_is_sprom_available(struct ssb_bus *bus) 182{ 183 /* status register only exists on chipcomon rev >= 11 and we need check 184 for >= 31 only */ 185 /* this routine differs from specs as we do not access SPROM directly 186 on PCMCIA */ 187 if (bus->bustype == SSB_BUSTYPE_PCI && |
188 bus->chipco.dev && /* can be unavailible! */ |
|
188 bus->chipco.dev->id.revision >= 31) 189 return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM; 190 191 return true; 192} | 189 bus->chipco.dev->id.revision >= 31) 190 return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM; 191 192 return true; 193} |