aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ath/ath_hal
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2020-05-12 02:20:27 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2020-05-12 02:20:27 +0000
commit41137b0604193c3e4e0bc312e42af8108ce915d2 (patch)
treecd06269da1d606d9460197209964cbc1ef4579e9 /sys/dev/ath/ath_hal
parent16ade779ef63d3ee7629f1e19b74a8fb7f29d6f0 (diff)
Notes
Diffstat (limited to 'sys/dev/ath/ath_hal')
-rw-r--r--sys/dev/ath/ath_hal/ah.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah.h b/sys/dev/ath/ath_hal/ah.h
index 27fe9d2ffdae..412754bc7c2e 100644
--- a/sys/dev/ath/ath_hal/ah.h
+++ b/sys/dev/ath/ath_hal/ah.h
@@ -33,6 +33,18 @@
#include "ah_osdep.h"
/*
+ * Endianness macros; used by various structures and code.
+ */
+#define AH_BIG_ENDIAN 4321
+#define AH_LITTLE_ENDIAN 1234
+
+#if _BYTE_ORDER == _BIG_ENDIAN
+#define AH_BYTE_ORDER AH_BIG_ENDIAN
+#else
+#define AH_BYTE_ORDER AH_LITTLE_ENDIAN
+#endif
+
+/*
* The maximum number of TX/RX chains supported.
* This is intended to be used by various statistics gathering operations
* (NF, RSSI, EVM).