Rafał Miłecki | 482f053 | 2011-05-18 02:06:36 +0200 | [diff] [blame] | 1 | #ifndef B43_BUS_H_ |
| 2 | #define B43_BUS_H_ |
| 3 | |
| 4 | enum b43_bus_type { |
| 5 | B43_BUS_SSB, |
| 6 | }; |
| 7 | |
| 8 | struct b43_bus_dev { |
| 9 | enum b43_bus_type bus_type; |
| 10 | union { |
| 11 | struct ssb_device *sdev; |
| 12 | }; |
Rafał Miłecki | c0b4c00 | 2011-05-18 02:06:37 +0200 | [diff] [blame^] | 13 | |
| 14 | u16 (*read16)(struct b43_bus_dev *dev, u16 offset); |
| 15 | u32 (*read32)(struct b43_bus_dev *dev, u16 offset); |
| 16 | void (*write16)(struct b43_bus_dev *dev, u16 offset, u16 value); |
| 17 | void (*write32)(struct b43_bus_dev *dev, u16 offset, u32 value); |
| 18 | void (*block_read)(struct b43_bus_dev *dev, void *buffer, |
| 19 | size_t count, u16 offset, u8 reg_width); |
| 20 | void (*block_write)(struct b43_bus_dev *dev, const void *buffer, |
| 21 | size_t count, u16 offset, u8 reg_width); |
Rafał Miłecki | 482f053 | 2011-05-18 02:06:36 +0200 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | struct b43_bus_dev *b43_bus_dev_ssb_init(struct ssb_device *sdev); |
| 25 | |
| 26 | #endif /* B43_BUS_H_ */ |