ah_eeprom_v14.h (219980) | ah_eeprom_v14.h (220947) |
---|---|
1/* 2 * Copyright (c) 2008 Sam Leffler, Errno Consulting 3 * Copyright (c) 2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * | 1/* 2 * Copyright (c) 2008 Sam Leffler, Errno Consulting 3 * Copyright (c) 2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_eeprom_v14.h 219980 2011-03-25 00:45:24Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah_eeprom_v14.h 220947 2011-04-22 10:59:20Z adrian $ |
18 */ 19#ifndef _AH_EEPROM_V14_H_ 20#define _AH_EEPROM_V14_H_ 21 22#include "ah_eeprom.h" 23 24/* reg_off = 4 * (eep_off) */ 25#define AR5416_EEPROM_S 2 --- 112 unchanged lines hidden (view full) --- 138 uint8_t tPowerFlag; /* [0..5] tPower [6..7] flag */ 139#define CAL_CTL_EDGES_POWER 0x3f 140#define CAL_CTL_EDGES_POWER_S 0 141#define CAL_CTL_EDGES_FLAG 0xc0 142#define CAL_CTL_EDGES_FLAG_S 6 143} __packed CAL_CTL_EDGES; 144 145/* | 18 */ 19#ifndef _AH_EEPROM_V14_H_ 20#define _AH_EEPROM_V14_H_ 21 22#include "ah_eeprom.h" 23 24/* reg_off = 4 * (eep_off) */ 25#define AR5416_EEPROM_S 2 --- 112 unchanged lines hidden (view full) --- 138 uint8_t tPowerFlag; /* [0..5] tPower [6..7] flag */ 139#define CAL_CTL_EDGES_POWER 0x3f 140#define CAL_CTL_EDGES_POWER_S 0 141#define CAL_CTL_EDGES_FLAG 0xc0 142#define CAL_CTL_EDGES_FLAG_S 6 143} __packed CAL_CTL_EDGES; 144 145/* |
146 * These are the secondary regulatory domain flags 147 * for regDmn[1]. 148 */ 149#define AR5416_REGDMN_EN_FCC_MID 0x01 /* 5.47 - 5.7GHz operation */ 150#define AR5416_REGDMN_EN_JAP_MID 0x02 /* 5.47 - 5.7GHz operation */ 151#define AR5416_REGDMN_EN_FCC_DFS_HT40 0x04 /* FCC HT40 + DFS operation */ 152#define AR5416_REGDMN_EN_JAP_HT40 0x08 /* JP HT40 operation */ 153#define AR5416_REGDMN_EN_JAP_DFS_HT40 0x10 /* JP HT40 + DFS operation */ 154 155/* |
|
146 * NB: The format in EEPROM has words 0 and 2 swapped (i.e. version 147 * and length are swapped). We reverse their position after reading 148 * the data into host memory so the version field is at the same 149 * offset as in previous EEPROM layouts. This makes utilities that 150 * inspect the EEPROM contents work without looking at the PCI device 151 * id which may or may not be reliable. 152 */ 153typedef struct BaseEepHeader { --- 126 unchanged lines hidden --- | 156 * NB: The format in EEPROM has words 0 and 2 swapped (i.e. version 157 * and length are swapped). We reverse their position after reading 158 * the data into host memory so the version field is at the same 159 * offset as in previous EEPROM layouts. This makes utilities that 160 * inspect the EEPROM contents work without looking at the PCI device 161 * id which may or may not be reliable. 162 */ 163typedef struct BaseEepHeader { --- 126 unchanged lines hidden --- |