aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/bus.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/bus.h')
-rw-r--r--drivers/net/wireless/b43/bus.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/bus.h b/drivers/net/wireless/b43/bus.h
index f3205c6988bc..460d9d90bdde 100644
--- a/drivers/net/wireless/b43/bus.h
+++ b/drivers/net/wireless/b43/bus.h
@@ -60,7 +60,21 @@ static inline bool b43_bus_host_is_pcmcia(struct b43_bus_dev *dev)
60#else 60#else
61 return false; 61 return false;
62#endif 62#endif
63};
64
65static inline bool b43_bus_host_is_pci(struct b43_bus_dev *dev)
66{
67#ifdef CONFIG_B43_BCMA
68 if (dev->bus_type == B43_BUS_BCMA)
69 return (dev->bdev->bus->hosttype == BCMA_HOSTTYPE_PCI);
70#endif
71#ifdef CONFIG_B43_SSB
72 if (dev->bus_type == B43_BUS_SSB)
73 return (dev->sdev->bus->bustype == SSB_BUSTYPE_PCI);
74#endif
75 return false;
63} 76}
77
64static inline bool b43_bus_host_is_sdio(struct b43_bus_dev *dev) 78static inline bool b43_bus_host_is_sdio(struct b43_bus_dev *dev)
65{ 79{
66#ifdef CONFIG_B43_SSB 80#ifdef CONFIG_B43_SSB