aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/b43/bus.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-05-19 15:11:27 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-06-01 15:12:27 -0400
commit505fb019d4924e425bb1024eb603a7bc7fe7fe63 (patch)
treee729d7c6de06bece5e68585563984e24c98ee21d /drivers/net/wireless/b43/bus.h
parentd48ae5c826f9af7d8b39867887d48e2a6f47af1f (diff)
b43: bus: add helpers for checking host type
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/bus.h')
-rw-r--r--drivers/net/wireless/b43/bus.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/bus.h b/drivers/net/wireless/b43/bus.h
index fd88e2b121a..79a5ab4270c 100644
--- a/drivers/net/wireless/b43/bus.h
+++ b/drivers/net/wireless/b43/bus.h
@@ -46,6 +46,17 @@ struct b43_bus_dev {
u8 core_rev;
};
+static inline bool b43_bus_host_is_pcmcia(struct b43_bus_dev *dev)
+{
+ return (dev->bus_type == B43_BUS_SSB &&
+ dev->sdev->bus->bustype == SSB_BUSTYPE_PCMCIA);
+}
+static inline bool b43_bus_host_is_sdio(struct b43_bus_dev *dev)
+{
+ return (dev->bus_type == B43_BUS_SSB &&
+ dev->sdev->bus->bustype == SSB_BUSTYPE_SDIO);
+}
+
struct b43_bus_dev *b43_bus_dev_ssb_init(struct ssb_device *sdev);
#endif /* B43_BUS_H_ */