Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2012 23:45:06 +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: r243840 - in head/sys/dev/ath/ath_hal: . ar5416
Message-ID:  <201212032345.qB3Nj7AT086067@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Dec  3 23:45:06 2012
New Revision: 243840
URL: http://svnweb.freebsd.org/changeset/base/243840

Log:
  Add and tie in the AR5416 bluetooth coexistence methods into the HAL.

Modified:
  head/sys/dev/ath/ath_hal/ah.h
  head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c

Modified: head/sys/dev/ath/ath_hal/ah.h
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.h	Mon Dec  3 23:43:23 2012	(r243839)
+++ head/sys/dev/ath/ath_hal/ah.h	Mon Dec  3 23:45:06 2012	(r243840)
@@ -1514,6 +1514,22 @@ struct ath_hal {
 	HAL_BOOL  __ahdecl(*ah_getPendingInterrupts)(struct ath_hal*, HAL_INT*);
 	HAL_INT	  __ahdecl(*ah_getInterrupts)(struct ath_hal*);
 	HAL_INT	  __ahdecl(*ah_setInterrupts)(struct ath_hal*, HAL_INT);
+
+	/* Bluetooth Coexistence functions */
+	void	    __ahdecl(*ah_btCoexSetInfo)(struct ath_hal *,
+				HAL_BT_COEX_INFO *);
+	void	    __ahdecl(*ah_btCoexSetConfig)(struct ath_hal *,
+				HAL_BT_COEX_CONFIG *);
+	void	    __ahdecl(*ah_btCoexSetQcuThresh)(struct ath_hal *,
+				int);
+	void	    __ahdecl(*ah_btCoexSetWeights)(struct ath_hal *,
+				uint32_t);
+	void	    __ahdecl(*ah_btCoexSetBmissThresh)(struct ath_hal *,
+				uint32_t);
+	void	    __ahdecl(*ah_btcoexSetParameter)(struct ath_hal *,
+				uint32_t, uint32_t);
+	void	    __ahdecl(*ah_btCoexDisable)(struct ath_hal *);
+	int	    __ahdecl(*ah_btCoexEnable)(struct ath_hal *);
 };
 
 /* 

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c	Mon Dec  3 23:43:23 2012	(r243839)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c	Mon Dec  3 23:45:06 2012	(r243840)
@@ -191,6 +191,16 @@ ar5416InitState(struct ath_hal_5416 *ahp
 	ah->ah_getPendingInterrupts	= ar5416GetPendingInterrupts;
 	ah->ah_setInterrupts		= ar5416SetInterrupts;
 
+	/* Bluetooth Coexistence functions */
+	ah->ah_btCoexSetInfo		= ar5416SetBTCoexInfo;
+	ah->ah_btCoexSetConfig		= ar5416BTCoexConfig;
+	ah->ah_btCoexSetQcuThresh	= ar5416BTCoexSetQcuThresh;
+	ah->ah_btCoexSetWeights		= ar5416BTCoexSetWeights;
+	ah->ah_btCoexSetBmissThresh	= ar5416BTCoexSetupBmissThresh;
+	ah->ah_btcoexSetParameter	= ar5416BTCoexSetParameter;
+	ah->ah_btCoexDisable		= ar5416BTCoexDisable;
+	ah->ah_btCoexEnable		= ar5416BTCoexEnable;
+
 	ahp->ah_priv.ah_getWirelessModes= ar5416GetWirelessModes;
 	ahp->ah_priv.ah_eepromRead	= ar5416EepromRead;
 #ifdef AH_SUPPORT_WRITE_EEPROM



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