summaryrefslogtreecommitdiffstats
path: root/sys/dev/mfi/mfireg.h
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2008-11-12 22:44:50 +0000
committerambrisko <ambrisko@FreeBSD.org>2008-11-12 22:44:50 +0000
commit13c44404b238af1070b494b7d268a4aa4a5a0ee0 (patch)
tree756bc15fb68d3f863768b7bbe9a5a9aabe238f27 /sys/dev/mfi/mfireg.h
parent8a2e5505edb61903e9ed697c4bc6e3479b9b0147 (diff)
downloadFreeBSD-src-13c44404b238af1070b494b7d268a4aa4a5a0ee0.zip
FreeBSD-src-13c44404b238af1070b494b7d268a4aa4a5a0ee0.tar.gz
- Fix from jhb for failing I/O request when bus_dmamap_load fails.
- Fix to ioctl path in which the length could be 0 which means no data in/out from LSI. - Fix to ioctl path in which the data in the sense data space of the ioctl packet is a really a pointer to some location in user-space. From LSI re-worked a bit by me. - Add HW support for next gen cards from LSI. Thanks to LSI for their support! Submitted by: jhb, LSI MFC after: 3 days
Diffstat (limited to 'sys/dev/mfi/mfireg.h')
-rw-r--r--sys/dev/mfi/mfireg.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/mfi/mfireg.h b/sys/dev/mfi/mfireg.h
index c546026..be56b48 100644
--- a/sys/dev/mfi/mfireg.h
+++ b/sys/dev/mfi/mfireg.h
@@ -89,10 +89,16 @@ __FBSDID("$FreeBSD$");
#define MFI_ODCR0 0xa0 /* outbound doorbell clear register0 */
#define MFI_OSP0 0xb0 /* outbound scratch pad0 */
#define MFI_1078_EIM 0x80000004 /* 1078 enable intrrupt mask */
-#define MFI_RMI 0x2 /* reply message interrupt */
+#define MFI_RMI 0x2 /* reply message interrupt */
#define MFI_1078_RM 0x80000000 /* reply 1078 message interrupt */
#define MFI_ODC 0x4 /* outbound doorbell change interrupt */
+/*
+ * GEN2 specific changes
+ */
+#define MFI_GEN2_EIM 0x00000005 /* GEN2 enable interrupt mask */
+#define MFI_GEN2_RM 0x00000001 /* reply GEN2 message interrupt */
+
/* Bits for MFI_OSTS */
#define MFI_OSTS_INTR_VALID 0x00000002
@@ -153,6 +159,7 @@ typedef enum {
MFI_DCMD_CFG_READ = 0x04010000,
MFI_DCMD_CFG_ADD = 0x04020000,
MFI_DCMD_CFG_CLEAR = 0x04030000,
+ MFI_DCMD_CFG_FOREIGN_IMPORT = 0x04060400,
MFI_DCMD_CLUSTER = 0x08000000,
MFI_DCMD_CLUSTER_RESET_ALL = 0x08010100,
MFI_DCMD_CLUSTER_RESET_LD = 0x08010200
OpenPOWER on IntegriCloud