Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2012 00:43:11 +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: r239633 - head/sys/dev/ath/ath_hal
Message-ID:  <201208240043.q7O0hBCZ027238@svn.freebsd.org>

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

Log:
  Add rfkill HAL accessor methods.

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	Fri Aug 24 00:40:01 2012	(r239632)
+++ head/sys/dev/ath/ath_hal/ah_internal.h	Fri Aug 24 00:43:10 2012	(r239633)
@@ -393,6 +393,13 @@ struct ath_hal_private {
 #define	ath_hal_setInterrupts(_ah, _mask) \
 	(_ah)->ah_setInterrupts(_ah, _mask)
 
+#define ath_hal_isrfkillenabled(_ah)  \
+    (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 1, AH_NULL) == HAL_OK)
+#define ath_hal_enable_rfkill(_ah, _v) \
+    ath_hal_setcapability(_ah, HAL_CAP_RFSILENT, 1, _v, AH_NULL)
+#define ath_hal_hasrfkill_int(_ah)  \
+    (ath_hal_getcapability(_ah, HAL_CAP_RFSILENT, 3, AH_NULL) == HAL_OK)
+
 #define	ath_hal_eepromDetach(_ah) do {				\
 	if (AH_PRIVATE(_ah)->ah_eepromDetach != AH_NULL)	\
 		AH_PRIVATE(_ah)->ah_eepromDetach(_ah);		\



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