summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ralreg.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2005-04-01 09:49:02 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2005-04-01 09:49:02 +0000
commitf746d21fca992d0aefc5934cfba5b37e816cca5e (patch)
treeee9937d74f6db92259f34cff185ea093e3278eb7 /sys/dev/ic/ralreg.h
parent22e2a8c41db9d1467cda0ab0562973d806dbbc75 (diff)
add antenna selection code. this ensures proper I/Q flip for RF RT2525e,
RT2526 and RT5222. based on ural code.
Diffstat (limited to 'sys/dev/ic/ralreg.h')
-rw-r--r--sys/dev/ic/ralreg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/ic/ralreg.h b/sys/dev/ic/ralreg.h
index 285399ab671..534f6d53b19 100644
--- a/sys/dev/ic/ralreg.h
+++ b/sys/dev/ic/ralreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ralreg.h,v 1.3 2005/04/01 09:40:43 damien Exp $ */
+/* $OpenBSD: ralreg.h,v 1.4 2005/04/01 09:49:01 damien Exp $ */
/*-
* Copyright (c) 2005
@@ -265,6 +265,14 @@ struct ral_rx_desc {
#define RAL_RF_5222 0x10
#define RAL_BBP_VERSION 0
+#define RAL_BBP_TX 2
+#define RAL_BBP_RX 14
+
+#define RAL_BBP_ANTA 0x00
+#define RAL_BBP_DIVERSITY 0x01
+#define RAL_BBP_ANTB 0x02
+#define RAL_BBP_ANTMASK 0x03
+#define RAL_BBP_FLIPIQ 0x04
#define RAL_LED_MODE_DEFAULT 0
#define RAL_LED_MODE_TXRX_ACTIVITY 1