From owner-svn-src-user@FreeBSD.ORG Wed Jan 14 18:54:54 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20F0C1065677; Wed, 14 Jan 2009 18:54:54 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 101B58FC0C; Wed, 14 Jan 2009 18:54:54 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0EIsrxa051054; Wed, 14 Jan 2009 18:54:53 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0EIsr4N051053; Wed, 14 Jan 2009 18:54:53 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200901141854.n0EIsr4N051053@svn.freebsd.org> From: Sam Leffler Date: Wed, 14 Jan 2009 18:54:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187230 - user/sam/wifi/sys/dev/ath/ath_hal X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2009 18:54:55 -0000 Author: sam Date: Wed Jan 14 18:54:53 2009 New Revision: 187230 URL: http://svn.freebsd.org/changeset/base/187230 Log: Start cleaning up internal channel data structure: o purge unused bssSendHere o store iqCalValid's HAL_BOOL value in an uint8_t so it packs well o shuffle some members to improve struct packing; we still have a big hole at the end but it'll go away shortly Modified: user/sam/wifi/sys/dev/ath/ath_hal/ah_internal.h Modified: user/sam/wifi/sys/dev/ath/ath_hal/ah_internal.h ============================================================================== --- user/sam/wifi/sys/dev/ath/ath_hal/ah_internal.h Wed Jan 14 18:23:13 2009 (r187229) +++ user/sam/wifi/sys/dev/ath/ath_hal/ah_internal.h Wed Jan 14 18:54:53 2009 (r187230) @@ -120,18 +120,16 @@ typedef struct { int8_t maxTxPower; int8_t minTxPower; /* as above... */ - HAL_BOOL bssSendHere; - uint8_t gainI; - HAL_BOOL iqCalValid; - uint8_t calValid; /* bitmask of cal types */ + uint8_t iqCalValid; /* NB: really HAL_BOOL */ + uint8_t calValid; /* bitmask of cal types */ int8_t iCoff; int8_t qCoff; int16_t rawNoiseFloor; int16_t noiseFloorAdjust; - int8_t antennaMax; - uint32_t regDmnFlags; /* Flags for channel use in reg */ + uint16_t mainSpur; /* cached spur value for this cahnnel */ + uint32_t regDmnFlags; /* Flags for channel use in reg */ uint32_t conformanceTestLimit; /* conformance test limit from reg domain */ - uint16_t mainSpur; /* cached spur value for this cahnnel */ + int8_t antennaMax; } HAL_CHANNEL_INTERNAL; typedef struct {