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.
22 } __attribute__((packed));
24 struct bootrec_exp_if {
30 } __attribute__((packed));
32 #define BR_CODE_MIN 0x80000000
33 #define BR_CODE_COMPONENT_ID 0x80000001
34 #define BR_CODE_COMPONENT_VERSION 0x80000002
35 #define BR_CODE_DEPENDENT_IF 0x80000003
36 #define BR_CODE_EXPOSED_IF 0x80000004
37 #define BR_CODE_DESCR 0x80000101
38 #define BR_CODE_MAX 0x8FFFFFFF
39 #define BR_CODE_END_OF_BRA 0xFF0000FF
40 #define LEGACY_BR_CODE_END_OF_BRA 0xFFFFFFFF
42 #define FW_FMAC 0x464d4143
43 #define FW_LM86 0x4c4d3836
44 #define FW_LM87 0x4c4d3837
45 #define FW_LM20 0x4c4d3230
47 /* PDA defines are Copyright (C) 2005 Nokia Corporation (taken from islsm_pda.h) */
50 __le16 len; /* includes both code and data */
53 } __attribute__ ((packed));
55 struct eeprom_pda_wrap {
61 } __attribute__ ((packed));
63 struct pda_iq_autocal_entry {
66 } __attribute__ ((packed));
68 struct pda_channel_output_limit {
76 } __attribute__ ((packed));
78 struct pda_pa_curve_data_sample_rev0 {
82 } __attribute__ ((packed));
84 struct pda_pa_curve_data_sample_rev1 {
92 } __attribute__ ((packed));
94 struct p54_pa_curve_data_sample {
103 } __attribute__ ((packed));
105 struct pda_pa_curve_data {
108 u8 points_per_channel;
111 } __attribute__ ((packed));
114 * this defines the PDR codes used to build PDAs as defined in document
115 * number 553155. The current implementation mirrors version 1.1 of the
116 * document and lists only PDRs supported by the ARM platform.
119 /* common and choice range (0x0000 - 0x0fff) */
120 #define PDR_END 0x0000
121 #define PDR_MANUFACTURING_PART_NUMBER 0x0001
122 #define PDR_PDA_VERSION 0x0002
123 #define PDR_NIC_SERIAL_NUMBER 0x0003
125 #define PDR_MAC_ADDRESS 0x0101
126 #define PDR_REGULATORY_DOMAIN_LIST 0x0103
127 #define PDR_TEMPERATURE_TYPE 0x0107
129 #define PDR_PRISM_PCI_IDENTIFIER 0x0402
131 /* ARM range (0x1000 - 0x1fff) */
132 #define PDR_COUNTRY_INFORMATION 0x1000
133 #define PDR_INTERFACE_LIST 0x1001
134 #define PDR_HARDWARE_PLATFORM_COMPONENT_ID 0x1002
135 #define PDR_OEM_NAME 0x1003
136 #define PDR_PRODUCT_NAME 0x1004
137 #define PDR_UTF8_OEM_NAME 0x1005
138 #define PDR_UTF8_PRODUCT_NAME 0x1006
139 #define PDR_COUNTRY_LIST 0x1007
140 #define PDR_DEFAULT_COUNTRY 0x1008
142 #define PDR_ANTENNA_GAIN 0x1100
144 #define PDR_PRISM_INDIGO_PA_CALIBRATION_DATA 0x1901
145 #define PDR_RSSI_LINEAR_APPROXIMATION 0x1902
146 #define PDR_PRISM_PA_CAL_OUTPUT_POWER_LIMITS 0x1903
147 #define PDR_PRISM_PA_CAL_CURVE_DATA 0x1904
148 #define PDR_RSSI_LINEAR_APPROXIMATION_DUAL_BAND 0x1905
149 #define PDR_PRISM_ZIF_TX_IQ_CALIBRATION 0x1906
150 #define PDR_REGULATORY_POWER_LIMITS 0x1907
151 #define PDR_RSSI_LINEAR_APPROXIMATION_EXTENDED 0x1908
152 #define PDR_RADIATED_TRANSMISSION_CORRECTION 0x1909
153 #define PDR_PRISM_TX_IQ_CALIBRATION 0x190a
155 /* reserved range (0x2000 - 0x7fff) */
157 /* customer range (0x8000 - 0xffff) */
158 #define PDR_BASEBAND_REGISTERS 0x8000
159 #define PDR_PER_CHANNEL_BASEBAND_REGISTERS 0x8001
161 /* stored in skb->cb */
167 struct p54_eeprom_lm86 {
171 } __attribute__ ((packed));
184 } __attribute__ ((packed));
186 struct p54_frame_sent_hdr {
192 } __attribute__ ((packed));
194 struct p54_tx_control_allocdata {
207 } __attribute__ ((packed));
209 struct p54_tx_control_filter {
216 u8 rates[8]; // FIXME: what's this for?
222 } __attribute__ ((packed));
224 struct p54_tx_control_channel {
228 struct pda_iq_autocal_entry iq_autocal;
229 u8 pa_points_per_curve;
235 struct pda_pa_curve_data_sample_rev1 curve_data[8];
242 } __attribute__ ((packed));
244 struct p54_tx_control_led {
246 __le16 led_temporary;
247 __le16 led_permanent;
249 } __attribute__ ((packed));
251 struct p54_tx_vdcf_queues {
256 } __attribute__ ((packed));
258 struct p54_tx_control_vdcf {
263 struct p54_tx_vdcf_queues queue[8];
266 } __attribute__ ((packed));
268 #endif /* P54COMMON_H */