5 * Common code specific definitions for mac80211 Prism54 drivers
7 * Copyright (c) 2006, Michael Wu <flamingice@sourmilk.net>
8 * Copyright (c) 2007, Christian Lamparter <chunkeey@web.de>
10 * Based on the islsm (softmac prism54) driver, which is:
11 * Copyright 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al.
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2 as
15 * published by the Free Software Foundation.
23 } __attribute__((packed));
25 struct bootrec_exp_if {
31 } __attribute__((packed));
42 } __attribute__((packed));
44 #define BR_CODE_MIN 0x80000000
45 #define BR_CODE_COMPONENT_ID 0x80000001
46 #define BR_CODE_COMPONENT_VERSION 0x80000002
47 #define BR_CODE_DEPENDENT_IF 0x80000003
48 #define BR_CODE_EXPOSED_IF 0x80000004
49 #define BR_CODE_DESCR 0x80000101
50 #define BR_CODE_MAX 0x8FFFFFFF
51 #define BR_CODE_END_OF_BRA 0xFF0000FF
52 #define LEGACY_BR_CODE_END_OF_BRA 0xFFFFFFFF
54 /* PDA defines are Copyright (C) 2005 Nokia Corporation (taken from islsm_pda.h) */
57 __le16 len; /* includes both code and data */
60 } __attribute__ ((packed));
62 struct eeprom_pda_wrap {
68 } __attribute__ ((packed));
70 struct pda_iq_autocal_entry {
73 } __attribute__ ((packed));
75 struct pda_channel_output_limit {
83 } __attribute__ ((packed));
85 struct pda_pa_curve_data_sample_rev0 {
89 } __attribute__ ((packed));
91 struct pda_pa_curve_data_sample_rev1 {
99 } __attribute__ ((packed));
101 struct p54_pa_curve_data_sample {
110 } __attribute__ ((packed));
112 struct pda_pa_curve_data {
115 u8 points_per_channel;
118 } __attribute__ ((packed));
121 * this defines the PDR codes used to build PDAs as defined in document
122 * number 553155. The current implementation mirrors version 1.1 of the
123 * document and lists only PDRs supported by the ARM platform.
126 /* common and choice range (0x0000 - 0x0fff) */
127 #define PDR_END 0x0000
128 #define PDR_MANUFACTURING_PART_NUMBER 0x0001
129 #define PDR_PDA_VERSION 0x0002
130 #define PDR_NIC_SERIAL_NUMBER 0x0003
132 #define PDR_MAC_ADDRESS 0x0101
133 #define PDR_REGULATORY_DOMAIN_LIST 0x0103
134 #define PDR_TEMPERATURE_TYPE 0x0107
136 #define PDR_PRISM_PCI_IDENTIFIER 0x0402
138 /* ARM range (0x1000 - 0x1fff) */
139 #define PDR_COUNTRY_INFORMATION 0x1000
140 #define PDR_INTERFACE_LIST 0x1001
141 #define PDR_HARDWARE_PLATFORM_COMPONENT_ID 0x1002
142 #define PDR_OEM_NAME 0x1003
143 #define PDR_PRODUCT_NAME 0x1004
144 #define PDR_UTF8_OEM_NAME 0x1005
145 #define PDR_UTF8_PRODUCT_NAME 0x1006
146 #define PDR_COUNTRY_LIST 0x1007
147 #define PDR_DEFAULT_COUNTRY 0x1008
149 #define PDR_ANTENNA_GAIN 0x1100
151 #define PDR_PRISM_INDIGO_PA_CALIBRATION_DATA 0x1901
152 #define PDR_RSSI_LINEAR_APPROXIMATION 0x1902
153 #define PDR_PRISM_PA_CAL_OUTPUT_POWER_LIMITS 0x1903
154 #define PDR_PRISM_PA_CAL_CURVE_DATA 0x1904
155 #define PDR_RSSI_LINEAR_APPROXIMATION_DUAL_BAND 0x1905
156 #define PDR_PRISM_ZIF_TX_IQ_CALIBRATION 0x1906
157 #define PDR_REGULATORY_POWER_LIMITS 0x1907
158 #define PDR_RSSI_LINEAR_APPROXIMATION_EXTENDED 0x1908
159 #define PDR_RADIATED_TRANSMISSION_CORRECTION 0x1909
160 #define PDR_PRISM_TX_IQ_CALIBRATION 0x190a
162 /* reserved range (0x2000 - 0x7fff) */
164 /* customer range (0x8000 - 0xffff) */
165 #define PDR_BASEBAND_REGISTERS 0x8000
166 #define PDR_PER_CHANNEL_BASEBAND_REGISTERS 0x8001
168 /* stored in skb->cb */
174 struct p54_eeprom_lm86 {
178 } __attribute__ ((packed));
192 } __attribute__ ((packed));
194 struct p54_frame_sent_hdr {
200 } __attribute__ ((packed));
202 struct p54_tx_control_allocdata {
215 } __attribute__ ((packed));
217 struct p54_tx_control_filter {
219 u8 mac_addr[ETH_ALEN];
225 __le32 basic_rate_mask;
232 } v1 __attribute__ ((packed));
240 } v2 __attribute__ ((packed));
241 } __attribute__ ((packed));
242 } __attribute__ ((packed));
244 #define P54_TX_CONTROL_FILTER_V1_LEN (sizeof(struct p54_tx_control_filter))
245 #define P54_TX_CONTROL_FILTER_V2_LEN (sizeof(struct p54_tx_control_filter)-8)
247 struct p54_tx_control_channel {
251 struct pda_iq_autocal_entry iq_autocal;
252 u8 pa_points_per_curve;
258 struct p54_pa_curve_data_sample curve_data[8];
267 } v1 __attribute__ ((packed));
270 __le32 basic_rate_mask;
274 } v2 __attribute__ ((packed));
275 } __attribute__ ((packed));
276 } __attribute__ ((packed));
278 #define P54_TX_CONTROL_CHANNEL_V1_LEN (sizeof(struct p54_tx_control_channel)-12)
279 #define P54_TX_CONTROL_CHANNEL_V2_LEN (sizeof(struct p54_tx_control_channel))
281 struct p54_tx_control_led {
283 __le16 led_temporary;
284 __le16 led_permanent;
286 } __attribute__ ((packed));
288 struct p54_tx_vdcf_queues {
293 } __attribute__ ((packed));
295 struct p54_tx_control_vdcf {
300 struct p54_tx_vdcf_queues queue[8];
303 } __attribute__ ((packed));
305 struct p54_statistics {
315 __le32 unkn[10]; /* CCE / CCA / RADAR */
316 } __attribute__ ((packed));
318 struct p54_tx_control_xbow_synth {
323 } __attribute__ ((packed));
325 #endif /* P54COMMON_H */