Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2011 13:11:01 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218637 - head/tools/tools/ath/ath_ee_v14_print
Message-ID:  <201102131311.p1DDB1l8039705@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102131311.p1DDB1l8039705>