Go to the documentation of this file.
32 #ifndef B43legacy_PHY_H_
33 #define B43legacy_PHY_H_
35 #include <linux/types.h>
57 #define B43legacy_PHYROUTE_OFDM_GPHY 0x400
58 #define B43legacy_PHYROUTE_EXT_GPHY 0x800
61 #define B43legacy_PHY_BASE(reg) (reg)
63 #define B43legacy_PHY_OFDM(reg) ((reg) | B43legacy_PHYROUTE_OFDM_GPHY)
65 #define B43legacy_PHY_EXTG(reg) ((reg) | B43legacy_PHYROUTE_EXT_GPHY)
69 #define B43legacy_PHY_CLASSCTL B43legacy_PHY_EXTG(0x02)
70 #define B43legacy_PHY_GTABCTL B43legacy_PHY_EXTG(0x03)
71 #define B43legacy_PHY_GTABOFF 0x03FF
72 #define B43legacy_PHY_GTABNR 0xFC00
73 #define B43legacy_PHY_GTABNR_SHIFT 10
74 #define B43legacy_PHY_GTABDATA B43legacy_PHY_EXTG(0x04)
75 #define B43legacy_PHY_LO_MASK B43legacy_PHY_EXTG(0x0F)
76 #define B43legacy_PHY_LO_CTL B43legacy_PHY_EXTG(0x10)
77 #define B43legacy_PHY_RFOVER B43legacy_PHY_EXTG(0x11)
78 #define B43legacy_PHY_RFOVERVAL B43legacy_PHY_EXTG(0x12)
80 #define B43legacy_OFDMTAB(number, offset) \
81 (((number) << B43legacy_PHY_OTABLENR_SHIFT) \
83 #define B43legacy_OFDMTAB_AGC1 B43legacy_OFDMTAB(0x00, 0)
84 #define B43legacy_OFDMTAB_GAIN0 B43legacy_OFDMTAB(0x00, 0)
85 #define B43legacy_OFDMTAB_GAINX B43legacy_OFDMTAB(0x01, 0)
86 #define B43legacy_OFDMTAB_GAIN1 B43legacy_OFDMTAB(0x01, 4)
87 #define B43legacy_OFDMTAB_AGC3 B43legacy_OFDMTAB(0x02, 0)
88 #define B43legacy_OFDMTAB_GAIN2 B43legacy_OFDMTAB(0x02, 3)
89 #define B43legacy_OFDMTAB_LNAHPFGAIN1 B43legacy_OFDMTAB(0x03, 0)
90 #define B43legacy_OFDMTAB_WRSSI B43legacy_OFDMTAB(0x04, 0)
91 #define B43legacy_OFDMTAB_LNAHPFGAIN2 B43legacy_OFDMTAB(0x04, 0)
92 #define B43legacy_OFDMTAB_NOISESCALE B43legacy_OFDMTAB(0x05, 0)
93 #define B43legacy_OFDMTAB_AGC2 B43legacy_OFDMTAB(0x06, 0)
94 #define B43legacy_OFDMTAB_ROTOR B43legacy_OFDMTAB(0x08, 0)
95 #define B43legacy_OFDMTAB_ADVRETARD B43legacy_OFDMTAB(0x09, 0)
96 #define B43legacy_OFDMTAB_DAC B43legacy_OFDMTAB(0x0C, 0)
97 #define B43legacy_OFDMTAB_DC B43legacy_OFDMTAB(0x0E, 7)
98 #define B43legacy_OFDMTAB_PWRDYN2 B43legacy_OFDMTAB(0x0E, 12)
99 #define B43legacy_OFDMTAB_LNAGAIN B43legacy_OFDMTAB(0x0E, 13)
101 #define B43legacy_OFDMTAB_LPFGAIN B43legacy_OFDMTAB(0x0F, 12)
102 #define B43legacy_OFDMTAB_RSSI B43legacy_OFDMTAB(0x10, 0)
104 #define B43legacy_OFDMTAB_AGC1_R1 B43legacy_OFDMTAB(0x13, 0)
105 #define B43legacy_OFDMTAB_GAINX_R1 B43legacy_OFDMTAB(0x14, 0)
106 #define B43legacy_OFDMTAB_MINSIGSQ B43legacy_OFDMTAB(0x14, 1)
107 #define B43legacy_OFDMTAB_AGC3_R1 B43legacy_OFDMTAB(0x15, 0)
108 #define B43legacy_OFDMTAB_WRSSI_R1 B43legacy_OFDMTAB(0x15, 4)
109 #define B43legacy_OFDMTAB_TSSI B43legacy_OFDMTAB(0x15, 0)
110 #define B43legacy_OFDMTAB_DACRFPABB B43legacy_OFDMTAB(0x16, 0)
111 #define B43legacy_OFDMTAB_DACOFF B43legacy_OFDMTAB(0x17, 0)
112 #define B43legacy_OFDMTAB_DCBIAS B43legacy_OFDMTAB(0x18, 0)
117 #define B43legacy_PHY_VERSION_OFDM B43legacy_PHY_OFDM(0x00)
118 #define B43legacy_PHY_BBANDCFG B43legacy_PHY_OFDM(0x01)
119 #define B43legacy_PHY_BBANDCFG_RXANT 0x180
120 #define B43legacy_PHY_BBANDCFG_RXANT_SHIFT 7
121 #define B43legacy_PHY_PWRDOWN B43legacy_PHY_OFDM(0x03)
122 #define B43legacy_PHY_CRSTHRES1 B43legacy_PHY_OFDM(0x06)
123 #define B43legacy_PHY_LNAHPFCTL B43legacy_PHY_OFDM(0x1C)
124 #define B43legacy_PHY_ADIVRELATED B43legacy_PHY_OFDM(0x27)
125 #define B43legacy_PHY_CRS0 B43legacy_PHY_OFDM(0x29)
126 #define B43legacy_PHY_ANTDWELL B43legacy_PHY_OFDM(0x2B)
127 #define B43legacy_PHY_ANTDWELL_AUTODIV1 0x0100
128 #define B43legacy_PHY_ENCORE B43legacy_PHY_OFDM(0x49)
129 #define B43legacy_PHY_ENCORE_EN 0x0200
130 #define B43legacy_PHY_LMS B43legacy_PHY_OFDM(0x55)
131 #define B43legacy_PHY_OFDM61 B43legacy_PHY_OFDM(0x61)
132 #define B43legacy_PHY_OFDM61_10 0x0010
133 #define B43legacy_PHY_IQBAL B43legacy_PHY_OFDM(0x69)
134 #define B43legacy_PHY_OTABLECTL B43legacy_PHY_OFDM(0x72)
135 #define B43legacy_PHY_OTABLEOFF 0x03FF
136 #define B43legacy_PHY_OTABLENR 0xFC00
137 #define B43legacy_PHY_OTABLENR_SHIFT 10
138 #define B43legacy_PHY_OTABLEI B43legacy_PHY_OFDM(0x73)
139 #define B43legacy_PHY_OTABLEQ B43legacy_PHY_OFDM(0x74)
140 #define B43legacy_PHY_HPWR_TSSICTL B43legacy_PHY_OFDM(0x78)
141 #define B43legacy_PHY_NRSSITHRES B43legacy_PHY_OFDM(0x8A)
142 #define B43legacy_PHY_ANTWRSETT B43legacy_PHY_OFDM(0x8C)
143 #define B43legacy_PHY_ANTWRSETT_ARXDIV 0x2000
144 #define B43legacy_PHY_CLIPPWRDOWNT B43legacy_PHY_OFDM(0x93)
145 #define B43legacy_PHY_OFDM9B B43legacy_PHY_OFDM(0x9B)
146 #define B43legacy_PHY_N1P1GAIN B43legacy_PHY_OFDM(0xA0)
147 #define B43legacy_PHY_P1P2GAIN B43legacy_PHY_OFDM(0xA1)
148 #define B43legacy_PHY_N1N2GAIN B43legacy_PHY_OFDM(0xA2)
149 #define B43legacy_PHY_CLIPTHRES B43legacy_PHY_OFDM(0xA3)
150 #define B43legacy_PHY_CLIPN1P2THRES B43legacy_PHY_OFDM(0xA4)
151 #define B43legacy_PHY_DIVSRCHIDX B43legacy_PHY_OFDM(0xA8)
152 #define B43legacy_PHY_CLIPP2THRES B43legacy_PHY_OFDM(0xA9)
153 #define B43legacy_PHY_CLIPP3THRES B43legacy_PHY_OFDM(0xAA)
154 #define B43legacy_PHY_DIVP1P2GAIN B43legacy_PHY_OFDM(0xAB)
155 #define B43legacy_PHY_DIVSRCHGAINBACK B43legacy_PHY_OFDM(0xAD)
156 #define B43legacy_PHY_DIVSRCHGAINCHNG B43legacy_PHY_OFDM(0xAE)
157 #define B43legacy_PHY_CRSTHRES1_R1 B43legacy_PHY_OFDM(0xC0)
158 #define B43legacy_PHY_CRSTHRES2_R1 B43legacy_PHY_OFDM(0xC1)
159 #define B43legacy_PHY_TSSIP_LTBASE B43legacy_PHY_OFDM(0x380)
160 #define B43legacy_PHY_DC_LTBASE B43legacy_PHY_OFDM(0x3A0)
161 #define B43legacy_PHY_GAIN_LTBASE B43legacy_PHY_OFDM(0x3C0)
166 #define B43legacy_PHYVER_ANALOG 0xF000
167 #define B43legacy_PHYVER_ANALOG_SHIFT 12
168 #define B43legacy_PHYVER_TYPE 0x0F00
169 #define B43legacy_PHYVER_TYPE_SHIFT 8
170 #define B43legacy_PHYVER_VERSION 0x00FF
178 #define has_loopback_gain(phy) \
179 (((phy)->rev > 1) || ((phy)->gmode))
204 u16 baseband_attenuation);
207 int bit25,
int bit26);