From owner-svn-src-head@FreeBSD.ORG Mon Feb 7 21:48:26 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 969331065697; Mon, 7 Feb 2011 21:48:26 +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 852028FC1D; Mon, 7 Feb 2011 21:48:26 +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 p17LmQ3X023682; Mon, 7 Feb 2011 21:48:26 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p17LmQ9r023679; Mon, 7 Feb 2011 21:48:26 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201102072148.p17LmQ9r023679@svn.freebsd.org> From: Adrian Chadd Date: Mon, 7 Feb 2011 21:48:26 +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: r218419 - head/sys/dev/ath/ath_hal X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2011 21:48:26 -0000 Author: adrian Date: Mon Feb 7 21:48:26 2011 New Revision: 218419 URL: http://svn.freebsd.org/changeset/base/218419 Log: Bring over some AR9280-specific v14 additions that exist in ath9k. Obtained from: Linux ath9k Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c head/sys/dev/ath/ath_hal/ah_eeprom_v14.h Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c ============================================================================== --- head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Mon Feb 7 21:45:22 2011 (r218418) +++ head/sys/dev/ath/ath_hal/ah_eeprom_v14.c Mon Feb 7 21:48:26 2011 (r218419) @@ -91,7 +91,7 @@ v14EepromGet(struct ath_hal *ah, int par return pBase->openLoopPwrCntl ? HAL_OK : HAL_EIO; case AR_EEP_DAC_HPWR_5G: if (IS_VERS(>=, AR5416_EEP_MINOR_VER_20)) { - *(uint8_t *) val = pBase->dacHiPwrMode; + *(uint8_t *) val = pBase->dacHiPwrMode_5G; return HAL_OK; } else return HAL_EIO; Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.h ============================================================================== --- head/sys/dev/ath/ath_hal/ah_eeprom_v14.h Mon Feb 7 21:45:22 2011 (r218418) +++ head/sys/dev/ath/ath_hal/ah_eeprom_v14.h Mon Feb 7 21:48:26 2011 (r218419) @@ -168,13 +168,16 @@ typedef struct BaseEepHeader { uint8_t fastClk5g; uint8_t divChain; uint8_t rxGainType; - uint8_t dacHiPwrMode; /* use the DAC high power mode (MB91) */ + uint8_t dacHiPwrMode_5G;/* use the DAC high power mode (MB91) */ uint8_t openLoopPwrCntl;/* 1: use open loop power control, 0: use closed loop power control */ uint8_t dacLpMode; uint8_t txGainType; /* high power tx gain table support */ uint8_t rcChainMask; /* "1" if the card is an HB93 1x2 */ - uint8_t futureBase[24]; + uint8_t desiredScaleCCK; + uint8_t pwr_table_offset; + uint8_t frac_n_5g; + uint8_t futureBase[21]; } __packed BASE_EEP_HEADER; // 64 B typedef struct ModalEepHeader {