ath_ee_v14_print.c (219901) | ath_ee_v14_print.c (232807) |
---|---|
1 2/* 3 * Copyright (c) 2010-2011 Adrian Chadd, Xenion Pty Ltd. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1 2/* 3 * Copyright (c) 2010-2011 Adrian Chadd, Xenion Pty Ltd. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c 219901 2011-03-23 11:16:06Z adrian $ | 26 * $FreeBSD: head/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c 232807 2012-03-11 02:00:59Z adrian $ |
27 */ 28 29#include <stdio.h> 30#include <stdlib.h> 31#include <unistd.h> 32#include <string.h> 33#include <sys/types.h> 34#include <err.h> --- 51 unchanged lines hidden (view full) --- 86eeprom_v14_base_print(uint16_t *buf) 87{ 88 HAL_EEPROM_v14 *eep = (HAL_EEPROM_v14 *) buf; 89 BASE_EEP_HEADER *eh = &eep->ee_base.baseEepHeader; 90 int i; 91 92 printf("| Version: 0x%.4x | Length: 0x%.4x | Checksum: 0x%.4x ", 93 eh->version, eh->length, eh->checksum); | 27 */ 28 29#include <stdio.h> 30#include <stdlib.h> 31#include <unistd.h> 32#include <string.h> 33#include <sys/types.h> 34#include <err.h> --- 51 unchanged lines hidden (view full) --- 86eeprom_v14_base_print(uint16_t *buf) 87{ 88 HAL_EEPROM_v14 *eep = (HAL_EEPROM_v14 *) buf; 89 BASE_EEP_HEADER *eh = &eep->ee_base.baseEepHeader; 90 int i; 91 92 printf("| Version: 0x%.4x | Length: 0x%.4x | Checksum: 0x%.4x ", 93 eh->version, eh->length, eh->checksum); |
94 printf("| CapFlags: 0x%.2x | eepMisc: 0x%.2x | RegDomain: 0x%.4x 0x%.4x | \n", 95 eh->opCapFlags, eh->eepMisc, eh->regDmn[0], eh->regDmn[1]); | 94 printf("| CapFlags: 0x%.2x\n", eh->opCapFlags); 95 96 printf("| eepMisc: 0x%.2x | RegDomain: 0x%.4x 0x%.4x | \n", 97 eh->eepMisc, eh->regDmn[0], eh->regDmn[1]); |
96 printf("| MAC: %.2x:%.2x:%.2x:%.2x:%.2x:%.2x ", 97 eh->macAddr[0], eh->macAddr[1], eh->macAddr[2], 98 eh->macAddr[3], eh->macAddr[4], eh->macAddr[5]); 99 printf("| RxMask: 0x%.2x | TxMask: 0x%.2x | RfSilent: 0x%.4x | btOptions: 0x%.4x |\n", 100 eh->rxMask, eh->txMask, eh->rfSilent, eh->blueToothOptions); 101 printf("| DeviceCap: 0x%.4x | binBuildNumber: %.8x | deviceType: 0x%.2x |\n", 102 eh->deviceCap, eh->binBuildNumber, eh->deviceType); 103 104 printf("| pwdclkind: 0x%.2x | fastClk5g: 0x%.2x | divChain: 0x%.2x | rxGainType: 0x%.2x |\n", 105 (int) eh->pwdclkind, (int) eh->fastClk5g, (int) eh->divChain, 106 (int) eh->rxGainType); 107 | 98 printf("| MAC: %.2x:%.2x:%.2x:%.2x:%.2x:%.2x ", 99 eh->macAddr[0], eh->macAddr[1], eh->macAddr[2], 100 eh->macAddr[3], eh->macAddr[4], eh->macAddr[5]); 101 printf("| RxMask: 0x%.2x | TxMask: 0x%.2x | RfSilent: 0x%.4x | btOptions: 0x%.4x |\n", 102 eh->rxMask, eh->txMask, eh->rfSilent, eh->blueToothOptions); 103 printf("| DeviceCap: 0x%.4x | binBuildNumber: %.8x | deviceType: 0x%.2x |\n", 104 eh->deviceCap, eh->binBuildNumber, eh->deviceType); 105 106 printf("| pwdclkind: 0x%.2x | fastClk5g: 0x%.2x | divChain: 0x%.2x | rxGainType: 0x%.2x |\n", 107 (int) eh->pwdclkind, (int) eh->fastClk5g, (int) eh->divChain, 108 (int) eh->rxGainType); 109 |
108 printf("| dacHiPwrMode_5G: 0x%.2x | openLoopPwrCntl: 0x%.2x | dacLpMode: 0x%.2x ", | 110 printf("| dacHiPwrMode_5G: 0x%.2x | openLoopPwrCntl: 0x%.2x | dacLpMode: 0x%.2x\n", |
109 (int) eh->dacHiPwrMode_5G, (int) eh->openLoopPwrCntl, (int) eh->dacLpMode); 110 printf("| txGainType: 0x%.2x | rcChainMask: 0x%.2x |\n", 111 (int) eh->txGainType, (int) eh->rcChainMask); 112 113 printf("| desiredScaleCCK: 0x%.2x | pwr_table_offset: 0x%.2x | frac_n_5g: %.2x\n", 114 (int) eh->desiredScaleCCK, (int) eh->pwr_table_offset, (int) eh->frac_n_5g); 115 116 /* because it's convienent */ --- 355 unchanged lines hidden --- | 111 (int) eh->dacHiPwrMode_5G, (int) eh->openLoopPwrCntl, (int) eh->dacLpMode); 112 printf("| txGainType: 0x%.2x | rcChainMask: 0x%.2x |\n", 113 (int) eh->txGainType, (int) eh->rcChainMask); 114 115 printf("| desiredScaleCCK: 0x%.2x | pwr_table_offset: 0x%.2x | frac_n_5g: %.2x\n", 116 (int) eh->desiredScaleCCK, (int) eh->pwr_table_offset, (int) eh->frac_n_5g); 117 118 /* because it's convienent */ --- 355 unchanged lines hidden --- |