29 #ifdef CONFIG_B43_BCMA
44 u32 core_specific_flags)
49 u32 core_specific_flags)
55 return bcma_read16(dev->
bdev, offset);
59 return bcma_read32(dev->
bdev, offset);
64 bcma_write16(dev->
bdev, offset, value);
69 bcma_write32(dev->
bdev, offset, value);
75 bcma_block_read(dev->
bdev, buffer, count, offset, reg_width);
81 bcma_block_write(dev->
bdev, buffer, count, offset, reg_width);
99 dev->
read16 = b43_bus_bcma_read16;
100 dev->
read32 = b43_bus_bcma_read32;
101 dev->
write16 = b43_bus_bcma_write16;
102 dev->
write32 = b43_bus_bcma_write32;
128 #ifdef CONFIG_B43_SSB
129 static int b43_bus_ssb_bus_may_powerdown(
struct b43_bus_dev *dev)
133 static int b43_bus_ssb_bus_powerup(
struct b43_bus_dev *dev,
138 static int b43_bus_ssb_device_is_enabled(
struct b43_bus_dev *dev)
142 static void b43_bus_ssb_device_enable(
struct b43_bus_dev *dev,
143 u32 core_specific_flags)
147 static void b43_bus_ssb_device_disable(
struct b43_bus_dev *dev,
148 u32 core_specific_flags)
155 return ssb_read16(dev->
sdev, offset);
159 return ssb_read32(dev->
sdev, offset);
163 ssb_write16(dev->
sdev, offset, value);
167 ssb_write32(dev->
sdev, offset, value);
172 ssb_block_read(dev->
sdev, buffer, count, offset, reg_width);
178 ssb_block_write(dev->
sdev, buffer, count, offset, reg_width);
198 dev->
read16 = b43_bus_ssb_read16;
199 dev->
read32 = b43_bus_ssb_read32;
200 dev->
write16 = b43_bus_ssb_write16;
201 dev->
write32 = b43_bus_ssb_write32;
229 #ifdef CONFIG_B43_BCMA
231 return bcma_get_drvdata(dev->
bdev);
233 #ifdef CONFIG_B43_SSB
235 return ssb_get_drvdata(dev->
sdev);
244 #ifdef CONFIG_B43_BCMA
246 bcma_set_drvdata(dev->
bdev, wldev);
249 #ifdef CONFIG_B43_SSB
251 ssb_set_drvdata(dev->
sdev, wldev);