mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-01 00:54:15 +08:00
21d889d433
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
30 lines
751 B
C
30 lines
751 B
C
#ifndef B43_BUS_H_
|
|
#define B43_BUS_H_
|
|
|
|
enum b43_bus_type {
|
|
B43_BUS_SSB,
|
|
};
|
|
|
|
struct b43_bus_dev {
|
|
enum b43_bus_type bus_type;
|
|
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);
|
|
|
|
u16 core_id;
|
|
u8 core_rev;
|
|
};
|
|
|
|
struct b43_bus_dev *b43_bus_dev_ssb_init(struct ssb_device *sdev);
|
|
|
|
#endif /* B43_BUS_H_ */
|