ah_eeprom_v4k.h (203159) | ah_eeprom_v4k.h (208711) |
---|---|
1/* 2 * Copyright (c) 2009 Rui Paulo <rpaulo@FreeBSD.org> 3 * Copyright (c) 2008 Sam Leffler, Errno Consulting 4 * Copyright (c) 2008 Atheros Communications, Inc. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * | 1/* 2 * Copyright (c) 2009 Rui Paulo <rpaulo@FreeBSD.org> 3 * Copyright (c) 2008 Sam Leffler, Errno Consulting 4 * Copyright (c) 2008 Atheros Communications, Inc. 5 * 6 * Permission to use, copy, modify, and/or distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 * |
18 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h 203159 2010-01-29 10:10:14Z rpaulo $ | 18 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_eeprom_v4k.h 208711 2010-06-01 15:33:10Z rpaulo $ |
19 */ 20#ifndef _AH_EEPROM_V4K_H_ 21#define _AH_EEPROM_V4K_H_ 22 23#include "ah_eeprom.h" 24#include "ah_eeprom_v14.h" 25 | 19 */ 20#ifndef _AH_EEPROM_V4K_H_ 21#define _AH_EEPROM_V4K_H_ 22 23#include "ah_eeprom.h" 24#include "ah_eeprom_v14.h" 25 |
26#define AR9285_RDEXT_DEFAULT 0x1F 27 |
|
26#undef owl_eep_start_loc 27#ifdef __LINUX_ARM_ARCH__ /* AP71 */ 28#define owl_eep_start_loc 0 29#else 30#define owl_eep_start_loc 64 31#endif 32 33// 16-bit offset location start of calibration struct --- 111 unchanged lines hidden (view full) --- 145} __packed; 146 147typedef struct { 148 struct ar5416eeprom_4k ee_base; 149#define NUM_EDGES 8 150 uint16_t ee_numCtls; 151 RD_EDGES_POWER ee_rdEdgesPower[NUM_EDGES*AR5416_4K_NUM_CTLS]; 152 /* XXX these are dynamically calculated for use by shared code */ | 28#undef owl_eep_start_loc 29#ifdef __LINUX_ARM_ARCH__ /* AP71 */ 30#define owl_eep_start_loc 0 31#else 32#define owl_eep_start_loc 64 33#endif 34 35// 16-bit offset location start of calibration struct --- 111 unchanged lines hidden (view full) --- 147} __packed; 148 149typedef struct { 150 struct ar5416eeprom_4k ee_base; 151#define NUM_EDGES 8 152 uint16_t ee_numCtls; 153 RD_EDGES_POWER ee_rdEdgesPower[NUM_EDGES*AR5416_4K_NUM_CTLS]; 154 /* XXX these are dynamically calculated for use by shared code */ |
153 int8_t ee_antennaGainMax[2]; | 155 int8_t ee_antennaGainMax; |
154} HAL_EEPROM_v4k; 155#endif /* _AH_EEPROM_V4K_H_ */ | 156} HAL_EEPROM_v4k; 157#endif /* _AH_EEPROM_V4K_H_ */ |