summaryrefslogtreecommitdiff
path: root/sys/dev/pcmcia/if_maloreg.h
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2007-08-09 08:53:23 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2007-08-09 08:53:23 +0000
commitc932241a1954996c40c29ab699a0f5841bab84dc (patch)
tree1027dabbf1b958a0abc210c8b29160aeb8d82b2c /sys/dev/pcmcia/if_maloreg.h
parent7018f7cbac92f3162dc997d337a9fc4d24d4faaa (diff)
Add event handler. Events notify us about things like when a
disassociation frame has arrived. Nice side effect; As we acknowledge the event reason after receiving a disassociation frame (which happens pretty often by wi(4) hostap) now, the FW issues an automatic reassociation, and we do not loose network connectivity anymore.
Diffstat (limited to 'sys/dev/pcmcia/if_maloreg.h')
-rw-r--r--sys/dev/pcmcia/if_maloreg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_maloreg.h b/sys/dev/pcmcia/if_maloreg.h
index 0ec05cd0d8d..2f359034c86 100644
--- a/sys/dev/pcmcia/if_maloreg.h
+++ b/sys/dev/pcmcia/if_maloreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_maloreg.h,v 1.11 2007/08/05 10:05:57 mglocker Exp $ */
+/* $OpenBSD: if_maloreg.h,v 1.12 2007/08/09 08:53:22 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -41,11 +41,13 @@
#define MALO_VAL_TX_DL_OVER 0x01
#define MALO_VAL_RX_DL_OVER 0x02
#define MALO_VAL_CMD_DL_OVER 0x04
+#define MALO_VAL_CARD_STATUS_MASK 0x7f00
/* interrupt reasons */
#define MALO_VAL_HOST_INTR_TX (1 << 0)
#define MALO_VAL_HOST_INTR_RX (1 << 1)
#define MALO_VAL_HOST_INTR_CMD (1 << 3)
+#define MALO_VAL_HOST_INTR_EVENT (1 << 4)
/* FW commands */
#define MALO_CMD_RESP 0x8000
@@ -75,3 +77,6 @@
#define MALO_CMD_MACCTRL_RX_ON 0x0001
#define MALO_CMD_MACCTRL_TX_ON 0x0002
#define MALO_CMD_MACCTRL_PROMISC_ON 0x0080
+
+/* events */
+#define MALO_EVENT_DISSASOC 0x0009