aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54common.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2008-10-18 17:18:01 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 15:10:16 -0500
commit9e7f3f8e4acdc480584d6b5e6a6be5d1f7bda8fa (patch)
tree433f71d1213a487a1550b0c8924094d87624e9a0 /drivers/net/wireless/p54/p54common.h
parent9a8675d712d57da0993ad2e43b168c9585892097 (diff)
p54: more definitions form lmac_longbow.h and pda.h
This patch ports more useful features to p54 - PDR definitions for the synth chips & regulatory domain. - honour IEEE80211_TX_CTL_ASSIGN_SEQ flag, if it's set. - adds some lost mutex_lock & mutex_unlock. - replace two more "magic values" that sneaked past. Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54common.h')
-rw-r--r--drivers/net/wireless/p54/p54common.h31
1 files changed, 30 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/p54common.h b/drivers/net/wireless/p54/p54common.h
index b1101feace69..8c8793cb2d79 100644
--- a/drivers/net/wireless/p54/p54common.h
+++ b/drivers/net/wireless/p54/p54common.h
@@ -25,6 +25,22 @@ struct bootrec {
25 u32 data[10]; 25 u32 data[10];
26} __attribute__((packed)); 26} __attribute__((packed));
27 27
28#define PDR_SYNTH_FRONTEND_MASK 0x0007
29#define PDR_SYNTH_IQ_CAL_MASK 0x0018
30#define PDR_SYNTH_IQ_CAL_PA_DETECTOR 0x0000
31#define PDR_SYNTH_IQ_CAL_DISABLED 0x0008
32#define PDR_SYNTH_IQ_CAL_ZIF 0x0010
33#define PDR_SYNTH_FAA_SWITCH_MASK 0x0020
34#define PDR_SYNTH_FAA_SWITCH_ENABLED 0x0001
35#define PDR_SYNTH_24_GHZ_MASK 0x0040
36#define PDR_SYNTH_24_GHZ_DISABLED 0x0040
37#define PDR_SYNTH_5_GHZ_MASK 0x0080
38#define PDR_SYNTH_5_GHZ_DISABLED 0x0080
39#define PDR_SYNTH_RX_DIV_MASK 0x0100
40#define PDR_SYNTH_RX_DIV_SUPPORTED 0x0100
41#define PDR_SYNTH_TX_DIV_MASK 0x0200
42#define PDR_SYNTH_TX_DIV_SUPPORTED 0x0200
43
28struct bootrec_exp_if { 44struct bootrec_exp_if {
29 __le16 role; 45 __le16 role;
30 __le16 if_id; 46 __le16 if_id;
@@ -210,6 +226,19 @@ struct pda_pa_curve_data {
210#define PDR_BASEBAND_REGISTERS 0x8000 226#define PDR_BASEBAND_REGISTERS 0x8000
211#define PDR_PER_CHANNEL_BASEBAND_REGISTERS 0x8001 227#define PDR_PER_CHANNEL_BASEBAND_REGISTERS 0x8001
212 228
229/* PDR definitions for default country & country list */
230#define PDR_COUNTRY_CERT_CODE 0x80
231#define PDR_COUNTRY_CERT_CODE_REAL 0x00
232#define PDR_COUNTRY_CERT_CODE_PSEUDO 0x80
233#define PDR_COUNTRY_CERT_BAND 0x40
234#define PDR_COUNTRY_CERT_BAND_2GHZ 0x00
235#define PDR_COUNTRY_CERT_BAND_5GHZ 0x40
236#define PDR_COUNTRY_CERT_IODOOR 0x30
237#define PDR_COUNTRY_CERT_IODOOR_BOTH 0x00
238#define PDR_COUNTRY_CERT_IODOOR_INDOOR 0x20
239#define PDR_COUNTRY_CERT_IODOOR_OUTDOOR 0x30
240#define PDR_COUNTRY_CERT_INDEX 0x0F
241
213/* stored in skb->cb */ 242/* stored in skb->cb */
214struct memrecord { 243struct memrecord {
215 u32 start_addr; 244 u32 start_addr;
@@ -507,7 +536,7 @@ struct p54_sta_unlock {
507} __attribute__ ((packed)); 536} __attribute__ ((packed));
508 537
509#define P54_TIM_CLEAR BIT(15) 538#define P54_TIM_CLEAR BIT(15)
510struct p54_tx_control_tim { 539struct p54_tim {
511 u8 count; 540 u8 count;
512 u8 padding[3]; 541 u8 padding[3];
513 __le16 entry[8]; 542 __le16 entry[8];