#ifdef CONFIG_BCM47XX_BCMA
#include <asm/mach-bcm47xx/bcm47xx.h>
#endif
#include "b43.h"
#include "bus.h"
#ifdef CONFIG_B43_BCMA
static int b43_bus_bcma_bus_may_powerdown(struct b43_bus_dev *dev)
{ … }
static int b43_bus_bcma_bus_powerup(struct b43_bus_dev *dev,
bool dynamic_pctl)
{ … }
static int b43_bus_bcma_device_is_enabled(struct b43_bus_dev *dev)
{ … }
static void b43_bus_bcma_device_enable(struct b43_bus_dev *dev,
u32 core_specific_flags)
{ … }
static void b43_bus_bcma_device_disable(struct b43_bus_dev *dev,
u32 core_specific_flags)
{ … }
static u16 b43_bus_bcma_read16(struct b43_bus_dev *dev, u16 offset)
{ … }
static u32 b43_bus_bcma_read32(struct b43_bus_dev *dev, u16 offset)
{ … }
static
void b43_bus_bcma_write16(struct b43_bus_dev *dev, u16 offset, u16 value)
{ … }
static
void b43_bus_bcma_write32(struct b43_bus_dev *dev, u16 offset, u32 value)
{ … }
static
void b43_bus_bcma_block_read(struct b43_bus_dev *dev, void *buffer,
size_t count, u16 offset, u8 reg_width)
{ … }
static
void b43_bus_bcma_block_write(struct b43_bus_dev *dev, const void *buffer,
size_t count, u16 offset, u8 reg_width)
{ … }
struct b43_bus_dev *b43_bus_dev_bcma_init(struct bcma_device *core)
{ … }
#endif
#ifdef CONFIG_B43_SSB
static int b43_bus_ssb_bus_may_powerdown(struct b43_bus_dev *dev)
{ … }
static int b43_bus_ssb_bus_powerup(struct b43_bus_dev *dev,
bool dynamic_pctl)
{ … }
static int b43_bus_ssb_device_is_enabled(struct b43_bus_dev *dev)
{ … }
static void b43_bus_ssb_device_enable(struct b43_bus_dev *dev,
u32 core_specific_flags)
{ … }
static void b43_bus_ssb_device_disable(struct b43_bus_dev *dev,
u32 core_specific_flags)
{ … }
static u16 b43_bus_ssb_read16(struct b43_bus_dev *dev, u16 offset)
{ … }
static u32 b43_bus_ssb_read32(struct b43_bus_dev *dev, u16 offset)
{ … }
static void b43_bus_ssb_write16(struct b43_bus_dev *dev, u16 offset, u16 value)
{ … }
static void b43_bus_ssb_write32(struct b43_bus_dev *dev, u16 offset, u32 value)
{ … }
static void b43_bus_ssb_block_read(struct b43_bus_dev *dev, void *buffer,
size_t count, u16 offset, u8 reg_width)
{ … }
static
void b43_bus_ssb_block_write(struct b43_bus_dev *dev, const void *buffer,
size_t count, u16 offset, u8 reg_width)
{ … }
struct b43_bus_dev *b43_bus_dev_ssb_init(struct ssb_device *sdev)
{ … }
#endif
void *b43_bus_get_wldev(struct b43_bus_dev *dev)
{ … }
void b43_bus_set_wldev(struct b43_bus_dev *dev, void *wldev)
{ … }