diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-01-13 18:05:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:53 -0500 |
commit | d15913140645d9c23e8b0a9a0bb307ca889688d3 (patch) | |
tree | 7bd05a3d5f082d4dc7adcb82d066cb56e35eb847 /drivers/net/wireless/b43/tables_nphy.h | |
parent | 53a6e2342d73d509318836e320f70cd286acd69c (diff) |
b43: Add NPHY channel switch code
This adds code and table data for channel switching on NPHYs.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/tables_nphy.h')
-rw-r--r-- | drivers/net/wireless/b43/tables_nphy.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/tables_nphy.h b/drivers/net/wireless/b43/tables_nphy.h index 1a96cf910003..9c53c4c44e30 100644 --- a/drivers/net/wireless/b43/tables_nphy.h +++ b/drivers/net/wireless/b43/tables_nphy.h | |||
@@ -4,6 +4,46 @@ | |||
4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
5 | 5 | ||
6 | 6 | ||
7 | struct b43_nphy_channeltab_entry { | ||
8 | /* The channel number */ | ||
9 | u8 channel; | ||
10 | /* Radio register values on channelswitch */ | ||
11 | u8 radio_pll_ref; | ||
12 | u8 radio_rf_pllmod0; | ||
13 | u8 radio_rf_pllmod1; | ||
14 | u8 radio_vco_captail; | ||
15 | u8 radio_vco_cal1; | ||
16 | u8 radio_vco_cal2; | ||
17 | u8 radio_pll_lfc1; | ||
18 | u8 radio_pll_lfr1; | ||
19 | u8 radio_pll_lfc2; | ||
20 | u8 radio_lgbuf_cenbuf; | ||
21 | u8 radio_lgen_tune1; | ||
22 | u8 radio_lgen_tune2; | ||
23 | u8 radio_c1_lgbuf_atune; | ||
24 | u8 radio_c1_lgbuf_gtune; | ||
25 | u8 radio_c1_rx_rfr1; | ||
26 | u8 radio_c1_tx_pgapadtn; | ||
27 | u8 radio_c1_tx_mxbgtrim; | ||
28 | u8 radio_c2_lgbuf_atune; | ||
29 | u8 radio_c2_lgbuf_gtune; | ||
30 | u8 radio_c2_rx_rfr1; | ||
31 | u8 radio_c2_tx_pgapadtn; | ||
32 | u8 radio_c2_tx_mxbgtrim; | ||
33 | /* PHY register values on channelswitch */ | ||
34 | u16 phy_bw1a; | ||
35 | u16 phy_bw2; | ||
36 | u16 phy_bw3; | ||
37 | u16 phy_bw4; | ||
38 | u16 phy_bw5; | ||
39 | u16 phy_bw6; | ||
40 | /* The channel frequency in MHz */ | ||
41 | u16 freq; | ||
42 | /* An unknown value */ | ||
43 | u16 unk2; | ||
44 | }; | ||
45 | |||
46 | |||
7 | struct b43_wldev; | 47 | struct b43_wldev; |
8 | 48 | ||
9 | /* Upload the default register value table. | 49 | /* Upload the default register value table. |
@@ -14,4 +54,10 @@ void b2055_upload_inittab(struct b43_wldev *dev, | |||
14 | bool ghz5, bool ignore_uploadflag); | 54 | bool ghz5, bool ignore_uploadflag); |
15 | 55 | ||
16 | 56 | ||
57 | /* Get the NPHY Channel Switch Table entry for a channel number. | ||
58 | * Returns NULL on failure to find an entry. */ | ||
59 | const struct b43_nphy_channeltab_entry * | ||
60 | b43_nphy_get_chantabent(struct b43_wldev *dev, u8 channel); | ||
61 | |||
62 | |||
17 | #endif /* B43_TABLES_NPHY_H_ */ | 63 | #endif /* B43_TABLES_NPHY_H_ */ |