summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfireg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/mfireg.h')
-rw-r--r--sys/dev/ic/mfireg.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/dev/ic/mfireg.h b/sys/dev/ic/mfireg.h
index 7f6e34e00b5..17676bd141a 100644
--- a/sys/dev/ic/mfireg.h
+++ b/sys/dev/ic/mfireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfireg.h,v 1.4 2006/04/16 16:34:35 marco Exp $ */
+/* $OpenBSD: mfireg.h,v 1.5 2006/04/16 16:41:29 marco Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -17,6 +17,9 @@
#define MFI_FRAME_SIZE 64
+#define MFI_OSTS_INTR_VALID 0x00000002 /* valid interrupt */
+#define MFI_INVALID_CTX 0xffffffff
+#define MFI_ENABLE_INTR 0x01
/* register offsets */
#define MFI_IMSG0 0x10 /* inbound msg 0 */
@@ -32,11 +35,6 @@
#define MFI_IQP 0x40 /* inbound queue port */
#define MFI_OQP 0x44 /* outbound queue port */
-/* valid interrupt */
-#define MFI_OSTS_INTR_VALID 0x00000002
-
-#define MFI_INVALID_CTX 0xffffffff
-
/* * firmware states */
#define MFI_STATE_MASK 0xf0000000
#define MFI_STATE_UNDEFINED 0x00000000
@@ -100,7 +98,6 @@
/* mailbox bytes in direct command */
#define MFI_MBOX_SIZE 12
-
/* mfi completion codes */
typedef enum {
MFI_STAT_OK = 0x00,