diff options
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 16e8f8058155..835462dc1206 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -999,6 +999,12 @@ static inline void b43_write16(struct b43_wldev *dev, u16 offset, u16 value) | |||
999 | dev->dev->write16(dev->dev, offset, value); | 999 | dev->dev->write16(dev->dev, offset, value); |
1000 | } | 1000 | } |
1001 | 1001 | ||
1002 | static inline void b43_maskset16(struct b43_wldev *dev, u16 offset, u16 mask, | ||
1003 | u16 set) | ||
1004 | { | ||
1005 | b43_write16(dev, offset, (b43_read16(dev, offset) & mask) | set); | ||
1006 | } | ||
1007 | |||
1002 | static inline u32 b43_read32(struct b43_wldev *dev, u16 offset) | 1008 | static inline u32 b43_read32(struct b43_wldev *dev, u16 offset) |
1003 | { | 1009 | { |
1004 | return dev->dev->read32(dev->dev, offset); | 1010 | return dev->dev->read32(dev->dev, offset); |
@@ -1009,6 +1015,12 @@ static inline void b43_write32(struct b43_wldev *dev, u16 offset, u32 value) | |||
1009 | dev->dev->write32(dev->dev, offset, value); | 1015 | dev->dev->write32(dev->dev, offset, value); |
1010 | } | 1016 | } |
1011 | 1017 | ||
1018 | static inline void b43_maskset32(struct b43_wldev *dev, u16 offset, u32 mask, | ||
1019 | u32 set) | ||
1020 | { | ||
1021 | b43_write32(dev, offset, (b43_read32(dev, offset) & mask) | set); | ||
1022 | } | ||
1023 | |||
1012 | static inline void b43_block_read(struct b43_wldev *dev, void *buffer, | 1024 | static inline void b43_block_read(struct b43_wldev *dev, void *buffer, |
1013 | size_t count, u16 offset, u8 reg_width) | 1025 | size_t count, u16 offset, u8 reg_width) |
1014 | { | 1026 | { |