summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ar5xxx.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/ar5xxx.h')
-rw-r--r--sys/dev/ic/ar5xxx.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/ar5xxx.h b/sys/dev/ic/ar5xxx.h
index d617a2ac9c7..a602263f76a 100644
--- a/sys/dev/ic/ar5xxx.h
+++ b/sys/dev/ic/ar5xxx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5xxx.h,v 1.37 2007/03/05 16:54:33 deraadt Exp $ */
+/* $OpenBSD: ar5xxx.h,v 1.38 2007/03/12 00:41:32 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org>
@@ -1405,6 +1405,11 @@ typedef HAL_BOOL (ar5k_rfgain_t)
_reg &= ~(1 << _queue); \
} while (0)
+#define AR5K_LOW_ID(_a) ( \
+ (_a)[0] | (_a)[1] << 8 | (_a)[2] << 16 | (_a)[3] << 24 \
+)
+#define AR5K_HIGH_ID(_a) ((_a)[4] | (_a)[5] << 8)
+
/*
* Unaligned little endian access
*/