From owner-svn-src-all@FreeBSD.ORG Fri Apr 22 10:59:20 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 EF1B81065674; Fri, 22 Apr 2011 10:59:20 +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 DEAE08FC12; Fri, 22 Apr 2011 10:59:20 +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 p3MAxKVD039682; Fri, 22 Apr 2011 10:59:20 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3MAxKIu039680; Fri, 22 Apr 2011 10:59:20 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201104221059.p3MAxKIu039680@svn.freebsd.org> From: Adrian Chadd Date: Fri, 22 Apr 2011 10:59:20 +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: r220947 - head/sys/dev/ath/ath_hal 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: Fri, 22 Apr 2011 10:59:21 -0000 Author: adrian Date: Fri Apr 22 10:59:20 2011 New Revision: 220947 URL: http://svn.freebsd.org/changeset/base/220947 Log: The second regdomain word is a set of bitflags describing regulatory domain behaviour. Document what the v14 EEPROM flags are. Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.h Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.h ============================================================================== --- head/sys/dev/ath/ath_hal/ah_eeprom_v14.h Fri Apr 22 10:57:46 2011 (r220946) +++ head/sys/dev/ath/ath_hal/ah_eeprom_v14.h Fri Apr 22 10:59:20 2011 (r220947) @@ -143,6 +143,16 @@ typedef struct CalCtlEdges { } __packed CAL_CTL_EDGES; /* + * These are the secondary regulatory domain flags + * for regDmn[1]. + */ +#define AR5416_REGDMN_EN_FCC_MID 0x01 /* 5.47 - 5.7GHz operation */ +#define AR5416_REGDMN_EN_JAP_MID 0x02 /* 5.47 - 5.7GHz operation */ +#define AR5416_REGDMN_EN_FCC_DFS_HT40 0x04 /* FCC HT40 + DFS operation */ +#define AR5416_REGDMN_EN_JAP_HT40 0x08 /* JP HT40 operation */ +#define AR5416_REGDMN_EN_JAP_DFS_HT40 0x10 /* JP HT40 + DFS operation */ + +/* * NB: The format in EEPROM has words 0 and 2 swapped (i.e. version * and length are swapped). We reverse their position after reading * the data into host memory so the version field is at the same