diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-01-10 19:10:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:22 -0500 |
commit | 83cf1b6edba6bde87c8cf852b182d44b12ae7f88 (patch) | |
tree | f90010ab7a686fe59f04e4b5f268253cb6f7ed52 /drivers/net/wireless/p54/p54.h | |
parent | b6ea03562f04382776ad825624daefe27f5d3f9c (diff) |
p54: prepare the eeprom parser routines for longbow
This patch adds support to upload pre-calculated calibration data to the firmware.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54.h')
-rw-r--r-- | drivers/net/wireless/p54/p54.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index a06c2a676dfe..ac11efd19db2 100644 --- a/drivers/net/wireless/p54/p54.h +++ b/drivers/net/wireless/p54/p54.h | |||
@@ -87,6 +87,14 @@ struct p54_rssi_linear_approximation { | |||
87 | s16 longbow_unk2; | 87 | s16 longbow_unk2; |
88 | }; | 88 | }; |
89 | 89 | ||
90 | struct p54_cal_database { | ||
91 | size_t entries; | ||
92 | size_t entry_size; | ||
93 | size_t offset; | ||
94 | size_t len; | ||
95 | u8 data[0]; | ||
96 | }; | ||
97 | |||
90 | #define EEPROM_READBACK_LEN 0x3fc | 98 | #define EEPROM_READBACK_LEN 0x3fc |
91 | 99 | ||
92 | #define ISL38XX_DEV_FIRMWARE_ADDR 0x20000 | 100 | #define ISL38XX_DEV_FIRMWARE_ADDR 0x20000 |
@@ -115,9 +123,8 @@ struct p54_common { | |||
115 | u8 tx_diversity_mask; | 123 | u8 tx_diversity_mask; |
116 | struct pda_iq_autocal_entry *iq_autocal; | 124 | struct pda_iq_autocal_entry *iq_autocal; |
117 | unsigned int iq_autocal_len; | 125 | unsigned int iq_autocal_len; |
118 | struct pda_channel_output_limit *output_limit; | 126 | struct p54_cal_database *output_limit; |
119 | unsigned int output_limit_len; | 127 | struct p54_cal_database *curve_data; |
120 | struct pda_pa_curve_data *curve_data; | ||
121 | struct p54_rssi_linear_approximation rssical_db[IEEE80211_NUM_BANDS]; | 128 | struct p54_rssi_linear_approximation rssical_db[IEEE80211_NUM_BANDS]; |
122 | unsigned int filter_flags; | 129 | unsigned int filter_flags; |
123 | bool use_short_slot; | 130 | bool use_short_slot; |