diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-05-18 02:06:37 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-01 21:10:56 +0200 |
commit | c0b4c00907c7f611ef328de73967d7913e137df8 (patch) | |
tree | 56c0699a51b4af08ddbb2afab99cac63640865e1 /drivers/net/wireless/b43/bus.h | |
parent | b43: add bus device abstraction layer (diff) | |
download | linux-c0b4c00907c7f611ef328de73967d7913e137df8.tar.xz linux-c0b4c00907c7f611ef328de73967d7913e137df8.zip |
b43: bus: abstract R/W operations
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/bus.h b/drivers/net/wireless/b43/bus.h index 68bc00a7458e..9b390020fb52 100644 --- a/drivers/net/wireless/b43/bus.h +++ b/drivers/net/wireless/b43/bus.h @@ -10,6 +10,15 @@ struct b43_bus_dev { union { struct ssb_device *sdev; }; + + u16 (*read16)(struct b43_bus_dev *dev, u16 offset); + u32 (*read32)(struct b43_bus_dev *dev, u16 offset); + void (*write16)(struct b43_bus_dev *dev, u16 offset, u16 value); + void (*write32)(struct b43_bus_dev *dev, u16 offset, u32 value); + void (*block_read)(struct b43_bus_dev *dev, void *buffer, + size_t count, u16 offset, u8 reg_width); + void (*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); |