diff options
author | Patrick McHardy <kaber@trash.net> | 2010-05-10 12:39:28 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-05-10 12:39:28 -0400 |
commit | 1e4b1057121bc756b91758a434b504d2010f6088 (patch) | |
tree | b016cf2c728289c7e36d9e4e488f30ab0bd0ae6e /drivers/ssb/sprom.c | |
parent | 3b254c54ec46eb022cb26ee6ab37fae23f5f7d6a (diff) | |
parent | 3ee943728fff536edaf8f59faa58aaa1aa7366e3 (diff) |
Merge branch 'master' of /repos/git/net-next-2.6
Conflicts:
net/bridge/br_device.c
net/bridge/br_forward.c
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'drivers/ssb/sprom.c')
-rw-r--r-- | drivers/ssb/sprom.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/ssb/sprom.c b/drivers/ssb/sprom.c index f2f920fef10d..007bc3a03486 100644 --- a/drivers/ssb/sprom.c +++ b/drivers/ssb/sprom.c | |||
@@ -176,3 +176,17 @@ const struct ssb_sprom *ssb_get_fallback_sprom(void) | |||
176 | { | 176 | { |
177 | return fallback_sprom; | 177 | return fallback_sprom; |
178 | } | 178 | } |
179 | |||
180 | /* http://bcm-v4.sipsolutions.net/802.11/IsSpromAvailable */ | ||
181 | bool 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->id.revision >= 31) | ||
189 | return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM; | ||
190 | |||
191 | return true; | ||
192 | } | ||