diff options
Diffstat (limited to 'drivers/net/wireless/b43/phy.h')
-rw-r--r-- | drivers/net/wireless/b43/phy.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy.h b/drivers/net/wireless/b43/phy.h index ab1e7f097022..6d165d822175 100644 --- a/drivers/net/wireless/b43/phy.h +++ b/drivers/net/wireless/b43/phy.h | |||
@@ -204,8 +204,18 @@ enum { | |||
204 | void b43_phy_lock(struct b43_wldev *dev); | 204 | void b43_phy_lock(struct b43_wldev *dev); |
205 | void b43_phy_unlock(struct b43_wldev *dev); | 205 | void b43_phy_unlock(struct b43_wldev *dev); |
206 | 206 | ||
207 | |||
208 | /* Read a value from a PHY register */ | ||
207 | u16 b43_phy_read(struct b43_wldev *dev, u16 offset); | 209 | u16 b43_phy_read(struct b43_wldev *dev, u16 offset); |
210 | /* Write a value to a PHY register */ | ||
208 | void b43_phy_write(struct b43_wldev *dev, u16 offset, u16 val); | 211 | void b43_phy_write(struct b43_wldev *dev, u16 offset, u16 val); |
212 | /* Mask a PHY register with a mask */ | ||
213 | void b43_phy_mask(struct b43_wldev *dev, u16 offset, u16 mask); | ||
214 | /* OR a PHY register with a bitmap */ | ||
215 | void b43_phy_set(struct b43_wldev *dev, u16 offset, u16 set); | ||
216 | /* Mask and OR a PHY register with a mask and bitmap */ | ||
217 | void b43_phy_maskset(struct b43_wldev *dev, u16 offset, u16 mask, u16 set); | ||
218 | |||
209 | 219 | ||
210 | int b43_phy_init_tssi2dbm_table(struct b43_wldev *dev); | 220 | int b43_phy_init_tssi2dbm_table(struct b43_wldev *dev); |
211 | 221 | ||
@@ -269,8 +279,18 @@ extern const u8 b43_radio_channel_codes_bg[]; | |||
269 | void b43_radio_lock(struct b43_wldev *dev); | 279 | void b43_radio_lock(struct b43_wldev *dev); |
270 | void b43_radio_unlock(struct b43_wldev *dev); | 280 | void b43_radio_unlock(struct b43_wldev *dev); |
271 | 281 | ||
282 | |||
283 | /* Read a value from a 16bit radio register */ | ||
272 | u16 b43_radio_read16(struct b43_wldev *dev, u16 offset); | 284 | u16 b43_radio_read16(struct b43_wldev *dev, u16 offset); |
285 | /* Write a value to a 16bit radio register */ | ||
273 | void b43_radio_write16(struct b43_wldev *dev, u16 offset, u16 val); | 286 | void b43_radio_write16(struct b43_wldev *dev, u16 offset, u16 val); |
287 | /* Mask a 16bit radio register with a mask */ | ||
288 | void b43_radio_mask(struct b43_wldev *dev, u16 offset, u16 mask); | ||
289 | /* OR a 16bit radio register with a bitmap */ | ||
290 | void b43_radio_set(struct b43_wldev *dev, u16 offset, u16 set); | ||
291 | /* Mask and OR a PHY register with a mask and bitmap */ | ||
292 | void b43_radio_maskset(struct b43_wldev *dev, u16 offset, u16 mask, u16 set); | ||
293 | |||
274 | 294 | ||
275 | u16 b43_radio_init2050(struct b43_wldev *dev); | 295 | u16 b43_radio_init2050(struct b43_wldev *dev); |
276 | void b43_radio_init2060(struct b43_wldev *dev); | 296 | void b43_radio_init2060(struct b43_wldev *dev); |