diff options
author | adrian <adrian@FreeBSD.org> | 2012-08-24 00:43:10 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-08-24 00:43:10 +0000 |
commit | 64e8e7127d2c0c87f4da21f8685f628a1bcc8ca2 (patch) | |
tree | cf66d625d1f8ea943f45947f56f78f850882a8b5 /sys/dev | |
parent | 25d46b5c9a1f2c674dfacf9e4967dfc6f831aed5 (diff) | |
download | FreeBSD-src-64e8e7127d2c0c87f4da21f8685f628a1bcc8ca2.zip FreeBSD-src-64e8e7127d2c0c87f4da21f8685f628a1bcc8ca2.tar.gz |
Add rfkill HAL accessor methods.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/ath_hal/ah_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah_internal.h b/sys/dev/ath/ath_hal/ah_internal.h index 3b94d3a..0a6f97d 100644 --- a/sys/dev/ath/ath_hal/ah_internal.h +++ b/sys/dev/ath/ath_hal/ah_internal.h @@ -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); \ |