1c7ee0b5cSfei feng - Sun Microsystems - Beijing China /*
2*7d483bc1Sfei feng - Sun Microsystems - Beijing China  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
3c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * Use is subject to license terms.
4c7ee0b5cSfei feng - Sun Microsystems - Beijing China  */
5c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
6c7ee0b5cSfei feng - Sun Microsystems - Beijing China /*
7*7d483bc1Sfei feng - Sun Microsystems - Beijing China  * Copyright (c) 2009, Intel Corporation
8c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * All rights reserved.
9c7ee0b5cSfei feng - Sun Microsystems - Beijing China  */
10c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
11c7ee0b5cSfei feng - Sun Microsystems - Beijing China /*
12c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * Sun elects to use this software under the BSD license.
13c7ee0b5cSfei feng - Sun Microsystems - Beijing China  */
14c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
15c7ee0b5cSfei feng - Sun Microsystems - Beijing China /*
16c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * This file is provided under a dual BSD/GPLv2 license.  When using or
17c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * redistributing this file, you may do so under either license.
18c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
19c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * GPL LICENSE SUMMARY
20c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
21*7d483bc1Sfei feng - Sun Microsystems - Beijing China  * Copyright(c) 2005 - 2009 Intel Corporation. All rights reserved.
22c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
23c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * This program is free software; you can redistribute it and/or modify
2489b2a9fbSfei feng - Sun Microsystems - Beijing China  * it under the terms of version 2 of the GNU General Public License as
25c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * published by the Free Software Foundation.
26c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
27c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * This program is distributed in the hope that it will be useful, but
28c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * WITHOUT ANY WARRANTY; without even the implied warranty of
29c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
30c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * General Public License for more details.
31c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
32c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * You should have received a copy of the GNU General Public License
33c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * along with this program; if not, write to the Free Software
34c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
35c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * USA
36c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
37c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * The full GNU General Public License is included in this distribution
38c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * in the file called LICENSE.GPL.
39c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
40c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * Contact Information:
41c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * James P. Ketrenos <ipw2100-admin@linux.intel.com>
42c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
43c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
44c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * BSD LICENSE
45c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
46*7d483bc1Sfei feng - Sun Microsystems - Beijing China  * Copyright(c) 2005 - 2009 Intel Corporation. All rights reserved.
47c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * All rights reserved.
48c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
49c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * Redistribution and use in source and binary forms, with or without
50c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * modification, are permitted provided that the following conditions
51c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * are met:
52c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
53c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *  * Redistributions of source code must retain the above copyright
54c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *    notice, this list of conditions and the following disclaimer.
55c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *  * Redistributions in binary form must reproduce the above copyright
56c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *    notice, this list of conditions and the following disclaimer in
57c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *    the documentation and/or other materials provided with the
58c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *    distribution.
59c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *  * Neither the name Intel Corporation nor the names of its
60c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *    contributors may be used to endorse or promote products derived
61c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *    from this software without specific prior written permission.
62c7ee0b5cSfei feng - Sun Microsystems - Beijing China  *
63c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
64c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
65c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
66c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
67c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
68c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
69c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
70c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
71c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
72c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
73c7ee0b5cSfei feng - Sun Microsystems - Beijing China  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
74c7ee0b5cSfei feng - Sun Microsystems - Beijing China  */
75c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
76c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
77c7ee0b5cSfei feng - Sun Microsystems - Beijing China #ifndef _IWH_CALIBRATION_H
78c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define	_IWH_CALIBRATION_H
79c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
80c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define	EEP_TX_POWER_TX_CHAINS	(3)
81c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define	EEP_RXIQ_CAL_CHANNELS	(7)
82c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define	EEP_CAL_CHANNEL_GROUP	(7)
83c7ee0b5cSfei feng - Sun Microsystems - Beijing China #define	EEP_RXIQ_DRIVER_MODES	(12)
84c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
85c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct	tx_pow_calib_hdr {
86c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t		calib_version;
87c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t		pa_type;
88c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint16_t	voltage_reading;
89c7ee0b5cSfei feng - Sun Microsystems - Beijing China };
90c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
91c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct	iwh_eep_txpower_sample {
92c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t	gain_index;	/* index to power setup table */
93c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	int8_t	power;		/* power level for this channel group */
94c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t	v_det;		/* PA output voltage */
95c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t	temp_reading;
96c7ee0b5cSfei feng - Sun Microsystems - Beijing China };
97c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
98c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct	iwh_eep_txpower_cal {
99c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	struct	iwh_eep_txpower_sample	samples[6];	/* 6 power level */
100c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	/* highest power possible by hardware in this band */
101c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t	saturation_power;
102c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	/* "representative" channel number in this band */
103c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t	group_channel;
104c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	int8_t	t_pa_det;
105c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	int8_t	t_actual_power;
106c7ee0b5cSfei feng - Sun Microsystems - Beijing China };
107c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
108c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct	rx_iq_cal {
109c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	int16_t	ars;
110c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	int16_t	arc;
111c7ee0b5cSfei feng - Sun Microsystems - Beijing China };
112c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
113c7ee0b5cSfei feng - Sun Microsystems - Beijing China struct	iwh_eep_calibration {
114c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	struct	tx_pow_calib_hdr tx_pow_calib_hdr;
115c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	struct	iwh_eep_txpower_cal txpow_group
116c7ee0b5cSfei feng - Sun Microsystems - Beijing China 		[EEP_TX_POWER_TX_CHAINS][EEP_CAL_CHANNEL_GROUP];
117c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint16_t	xtal_calib[2];
118c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	int16_t		temp_calib_temp;
119c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	int16_t		temp_calib_volt;
120c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t		rx_iBB_filter;
121c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	uint8_t		reserved;
122c7ee0b5cSfei feng - Sun Microsystems - Beijing China 	struct	rx_iq_cal rx_iq_cal
123c7ee0b5cSfei feng - Sun Microsystems - Beijing China 		[EEP_RXIQ_CAL_CHANNELS][EEP_RXIQ_DRIVER_MODES];
124c7ee0b5cSfei feng - Sun Microsystems - Beijing China };
125c7ee0b5cSfei feng - Sun Microsystems - Beijing China 
126c7ee0b5cSfei feng - Sun Microsystems - Beijing China #endif /* _IWH_CALIBRATION_H */
127