aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/phy.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-01-13 15:23:44 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:53 -0500
commit53a6e2342d73d509318836e320f70cd286acd69c (patch)
tree835a25c8d48465840a8cdea8c363c58f567d921c /drivers/net/wireless/b43/phy.h
parentaf4b7450788426a113057ce2d85c25b4f4e440d1 (diff)
b43: Add NPHY radio init code
This adds some code to init the 2055 radio. This patch adds two files "tables_nphy.h" and "tables_nphy.c" Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy.h')
-rw-r--r--drivers/net/wireless/b43/phy.h20
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 {
204void b43_phy_lock(struct b43_wldev *dev); 204void b43_phy_lock(struct b43_wldev *dev);
205void b43_phy_unlock(struct b43_wldev *dev); 205void b43_phy_unlock(struct b43_wldev *dev);
206 206
207
208/* Read a value from a PHY register */
207u16 b43_phy_read(struct b43_wldev *dev, u16 offset); 209u16 b43_phy_read(struct b43_wldev *dev, u16 offset);
210/* Write a value to a PHY register */
208void b43_phy_write(struct b43_wldev *dev, u16 offset, u16 val); 211void b43_phy_write(struct b43_wldev *dev, u16 offset, u16 val);
212/* Mask a PHY register with a mask */
213void b43_phy_mask(struct b43_wldev *dev, u16 offset, u16 mask);
214/* OR a PHY register with a bitmap */
215void b43_phy_set(struct b43_wldev *dev, u16 offset, u16 set);
216/* Mask and OR a PHY register with a mask and bitmap */
217void b43_phy_maskset(struct b43_wldev *dev, u16 offset, u16 mask, u16 set);
218
209 219
210int b43_phy_init_tssi2dbm_table(struct b43_wldev *dev); 220int b43_phy_init_tssi2dbm_table(struct b43_wldev *dev);
211 221
@@ -269,8 +279,18 @@ extern const u8 b43_radio_channel_codes_bg[];
269void b43_radio_lock(struct b43_wldev *dev); 279void b43_radio_lock(struct b43_wldev *dev);
270void b43_radio_unlock(struct b43_wldev *dev); 280void b43_radio_unlock(struct b43_wldev *dev);
271 281
282
283/* Read a value from a 16bit radio register */
272u16 b43_radio_read16(struct b43_wldev *dev, u16 offset); 284u16 b43_radio_read16(struct b43_wldev *dev, u16 offset);
285/* Write a value to a 16bit radio register */
273void b43_radio_write16(struct b43_wldev *dev, u16 offset, u16 val); 286void b43_radio_write16(struct b43_wldev *dev, u16 offset, u16 val);
287/* Mask a 16bit radio register with a mask */
288void b43_radio_mask(struct b43_wldev *dev, u16 offset, u16 mask);
289/* OR a 16bit radio register with a bitmap */
290void b43_radio_set(struct b43_wldev *dev, u16 offset, u16 set);
291/* Mask and OR a PHY register with a mask and bitmap */
292void b43_radio_maskset(struct b43_wldev *dev, u16 offset, u16 mask, u16 set);
293
274 294
275u16 b43_radio_init2050(struct b43_wldev *dev); 295u16 b43_radio_init2050(struct b43_wldev *dev);
276void b43_radio_init2060(struct b43_wldev *dev); 296void b43_radio_init2060(struct b43_wldev *dev);