From owner-svn-src-all@FreeBSD.ORG Sun Feb 13 13:11:01 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A6A31065674; Sun, 13 Feb 2011 13:11:01 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 275468FC1F; Sun, 13 Feb 2011 13:11:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p1DDB10R039707; Sun, 13 Feb 2011 13:11:01 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p1DDB1l8039705; Sun, 13 Feb 2011 13:11:01 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201102131311.p1DDB1l8039705@svn.freebsd.org> From: Adrian Chadd Date: Sun, 13 Feb 2011 13:11:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218637 - head/tools/tools/ath/ath_ee_v14_print X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2011 13:11:01 -0000 Author: adrian Date: Sun Feb 13 13:11:00 2011 New Revision: 218637 URL: http://svn.freebsd.org/changeset/base/218637 Log: * add in new EEPROM fields from later revisions * add in printing futureBase Modified: head/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c Modified: head/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c ============================================================================== --- head/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c Sun Feb 13 11:10:57 2011 (r218636) +++ head/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c Sun Feb 13 13:11:00 2011 (r218637) @@ -87,6 +87,7 @@ eeprom_v14_base_print(uint16_t *buf) { HAL_EEPROM_v14 *eep = (HAL_EEPROM_v14 *) buf; BASE_EEP_HEADER *eh = &eep->ee_base.baseEepHeader; + int i; printf("| Version: 0x%.4x | Length: 0x%.4x | Checksum: 0x%.4x ", eh->version, eh->length, eh->checksum); @@ -104,14 +105,22 @@ eeprom_v14_base_print(uint16_t *buf) (int) eh->pwdclkind, (int) eh->fastClk5g, (int) eh->divChain, (int) eh->rxGainType); - printf("| dacHiPwrMode: 0x%.2x | openLoopPwrCntl: 0x%.2x | dacLpMode: 0x%.2x ", - (int) eh->dacHiPwrMode, (int) eh->openLoopPwrCntl, (int) eh->dacLpMode); + printf("| dacHiPwrMode_5G: 0x%.2x | openLoopPwrCntl: 0x%.2x | dacLpMode: 0x%.2x ", + (int) eh->dacHiPwrMode_5G, (int) eh->openLoopPwrCntl, (int) eh->dacLpMode); printf("| txGainType: 0x%.2x | rcChainMask: 0x%.2x |\n", (int) eh->txGainType, (int) eh->rcChainMask); + printf("| desiredScaleCCK: 0x%.2x | pwr_table_offset: 0x%.2x | frac_n_5g: %.2x\n", + (int) eh->desiredScaleCCK, (int) eh->pwr_table_offset, (int) eh->frac_n_5g); + /* because it's convienent */ printf("| antennaGainMax[0]: 0x%.2x antennaGainMax[1]: 0x%.2x |\n", eep->ee_antennaGainMax[0], eep->ee_antennaGainMax[1]); + + printf(" | futureBase:"); + for (i = 0; i < sizeof(eh->futureBase) / sizeof(uint8_t); i++) + printf(" %.2x", (int) eh->futureBase[i]); + printf("\n"); } static void