blob: 40a82d7f510c93b1219a98547d3042ba95d97303 [file] [log] [blame]
Rafał Miłecki5192bf52011-06-19 12:17:19 +02001#ifndef B43_RADIO_2059_H_
2#define B43_RADIO_2059_H_
3
4#include <linux/types.h>
5
6#include "phy_ht.h"
7
Rafał Miłeckid6657db2013-03-16 23:24:21 +01008#define R2059_C1 0x000
9#define R2059_C2 0x400
10#define R2059_C3 0x800
Rafał Miłeckie8dec1e2011-06-28 00:08:52 +020011#define R2059_ALL 0xC00
12
Rafał Miłecki5192bf52011-06-19 12:17:19 +020013/* Values for various registers uploaded on channel switching */
14struct b43_phy_ht_channeltab_e_radio2059 {
15 /* The channel frequency in MHz */
16 u16 freq;
17 /* Values for radio registers */
Rafał Miłeckia6b7da52011-06-19 12:17:21 +020018 u8 radio_syn16;
19 u8 radio_syn17;
20 u8 radio_syn22;
21 u8 radio_syn25;
22 u8 radio_syn27;
23 u8 radio_syn28;
24 u8 radio_syn29;
25 u8 radio_syn2c;
26 u8 radio_syn2d;
27 u8 radio_syn37;
28 u8 radio_syn41;
29 u8 radio_syn43;
30 u8 radio_syn47;
Rafał Miłeckia6b7da52011-06-19 12:17:21 +020031 u8 radio_rxtx4a;
32 u8 radio_rxtx58;
33 u8 radio_rxtx5a;
34 u8 radio_rxtx6a;
35 u8 radio_rxtx6d;
36 u8 radio_rxtx6e;
37 u8 radio_rxtx92;
38 u8 radio_rxtx98;
Rafał Miłecki5192bf52011-06-19 12:17:19 +020039 /* Values for PHY registers */
40 struct b43_phy_ht_channeltab_e_phy phy_regs;
41};
42
43const struct b43_phy_ht_channeltab_e_radio2059
44*b43_phy_ht_get_channeltab_e_r2059(struct b43_wldev *dev, u16 freq);
45
46#endif /* B43_RADIO_2059_H_ */