summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/bus.h
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-05-18 02:06:37 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-06-01 15:10:56 -0400
commitc0b4c00907c7f611ef328de73967d7913e137df8 (patch)
tree56c0699a51b4af08ddbb2afab99cac63640865e1 /drivers/net/wireless/b43/bus.h
parent482f05386218a028309a71ad36066ee64b7a820d (diff)
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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/bus.h b/drivers/net/wireless/b43/bus.h
index 68bc00a7458..9b390020fb5 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);