Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2012 00:09:50 +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: r239627 - head/sys/dev/ath/ath_hal
Message-ID:  <201208240009.q7O09o3u021005@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Fri Aug 24 00:09:49 2012
New Revision: 239627
URL: http://svn.freebsd.org/changeset/base/239627

Log:
  Add some new flags:
  
  * mfp support;
  * 4.9ghz support in the HAL;
  * device type - specifically, the bus type and whether it's a HB63
    NIC (which requires some subtle chainmask handling differences
    in the AR5416 HAL.)
  
  Obtained from:	Qualcomm Atheros

Modified:
  head/sys/dev/ath/ath_hal/ah_internal.h

Modified: head/sys/dev/ath/ath_hal/ah_internal.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_internal.h	Thu Aug 23 22:38:37 2012	(r239626)
+++ head/sys/dev/ath/ath_hal/ah_internal.h	Fri Aug 24 00:09:49 2012	(r239627)
@@ -228,7 +228,8 @@ typedef struct {
 			halEnhancedDmaSupport		: 1;
 	uint32_t	halIsrRacSupport		: 1,
 			halApmEnable			: 1,
-			halIntrMitigation		: 1;
+			halIntrMitigation		: 1,
+			hal49GhzSupport			: 1;
 
 	uint32_t	halWirelessModes;
 	uint16_t	halTotalQueues;
@@ -245,7 +246,7 @@ typedef struct {
 	uint32_t	halIntrMask;
 	uint8_t		halTxStreams;
 	uint8_t		halRxStreams;
-
+	HAL_MFP_OPT_T	halMfpSupport;
 	int		halNumTxMaps;
 	int		halTxDescLen;
 	int		halTxStatusLen;
@@ -258,6 +259,12 @@ typedef struct {
 struct regDomain;
 
 /*
+ * Definitions for ah_flags in ath_hal_private
+ */
+#define		AH_USE_EEPROM	0x1
+#define		AH_IS_HB63	0x2
+
+/*
  * The ``private area'' follows immediately after the ``public area''
  * in the data structure returned by ath_hal_attach.  Private data are
  * used by device-independent code such as the regulatory domain support.
@@ -316,7 +323,9 @@ struct ath_hal_private {
 	uint16_t	ah_phyRev;		/* PHY revision */
 	uint16_t	ah_analog5GhzRev;	/* 2GHz radio revision */
 	uint16_t	ah_analog2GhzRev;	/* 5GHz radio revision */
+	uint32_t	ah_flags;		/* misc flags */
 	uint8_t		ah_ispcie;		/* PCIE, special treatment */
+	uint8_t		ah_devType;		/* card type - CB, PCI, PCIe */
 
 	HAL_OPMODE	ah_opmode;		/* operating mode from reset */
 	const struct ieee80211_channel *ah_curchan;/* operating channel */



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