/* * Shared Atheros AR9170 Header * * EEPROM layout * * Copyright 2008, Johannes Berg <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, see * http://www.gnu.org/licenses/. * * This file incorporates work covered by the following copyright and * permission notice: * Copyright (c) 2007-2008 Atheros Communications, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef __CARL9170_SHARED_EEPROM_H #define __CARL9170_SHARED_EEPROM_H #define AR9170_EEPROM_START … #define AR5416_MAX_CHAINS … #define AR5416_MODAL_SPURS … struct ar9170_eeprom_modal { … } __packed; #define AR5416_NUM_PD_GAINS … #define AR5416_PD_GAIN_ICEPTS … struct ar9170_calibration_data_per_freq { … } __packed; #define AR5416_NUM_5G_CAL_PIERS … #define AR5416_NUM_2G_CAL_PIERS … #define AR5416_NUM_5G_TARGET_PWRS … #define AR5416_NUM_2G_CCK_TARGET_PWRS … #define AR5416_NUM_2G_OFDM_TARGET_PWRS … #define AR5416_MAX_NUM_TGT_PWRS … struct ar9170_calibration_target_power_legacy { … } __packed; struct ar9170_calibration_target_power_ht { … } __packed; #define AR5416_NUM_CTLS … struct ar9170_calctl_edges { … } __packed; #define AR5416_NUM_BAND_EDGES … struct ar9170_calctl_data { … } __packed; struct ar9170_eeprom { … } __packed; #define AR9170_LED_MODE_POWER_ON … #define AR9170_LED_MODE_RESERVED … #define AR9170_LED_MODE_DISABLE_STATE … #define AR9170_LED_MODE_OFF_IN_PSM … /* AR9170_LED_MODE BIT is set */ #define AR9170_LED_MODE_FREQUENCY_S … #define AR9170_LED_MODE_FREQUENCY … #define AR9170_LED_MODE_FREQUENCY_1HZ … #define AR9170_LED_MODE_FREQUENCY_0_5HZ … #define AR9170_LED_MODE_FREQUENCY_0_25HZ … #define AR9170_LED_MODE_FREQUENCY_0_125HZ … /* AR9170_LED_MODE BIT is not set */ #define AR9170_LED_MODE_CONN_STATE_S … #define AR9170_LED_MODE_CONN_STATE … #define AR9170_LED_MODE_CONN_STATE_FORCE_OFF … #define AR9170_LED_MODE_CONN_STATE_FORCE_ON … /* Idle off / Active on */ #define AR9170_LED_MODE_CONN_STATE_IOFF_AON … /* Idle on / Active off */ #define AR9170_LED_MODE_CONN_STATE_ION_AOFF … #define AR9170_LED_MODE_MODE … #define AR9170_LED_MODE_RESERVED2 … #define AR9170_LED_MODE_TON_SCAN_S … #define AR9170_LED_MODE_TON_SCAN … #define AR9170_LED_MODE_TOFF_SCAN_S … #define AR9170_LED_MODE_TOFF_SCAN … struct ar9170_led_mode { … }; #endif /* __CARL9170_SHARED_EEPROM_H */