forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/scsi/mpt3sas/mpi/mpi2_pci.h
....@@ -1,12 +1,12 @@
11 /*
2
- * Copyright 2012-2015 Avago Technologies. All rights reserved.
2
+ * Copyright 2000-2020 Broadcom Inc. All rights reserved.
33 *
44 *
55 * Name: mpi2_pci.h
66 * Title: MPI PCIe Attached Devices structures and definitions.
77 * Creation Date: October 9, 2012
88 *
9
- * mpi2_pci.h Version: 02.00.02
9
+ * mpi2_pci.h Version: 02.00.04
1010 *
1111 * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25
1212 * prefix are for use only on MPI v2.5 products, and must not be used
....@@ -23,6 +23,9 @@
2323 * Removed SOP support.
2424 * 07-01-16 02.00.02 Added MPI26_NVME_FLAGS_FORCE_ADMIN_ERR_RESP to
2525 * NVME Encapsulated Request.
26
+ * 07-22-18 02.00.03 Updted flags field for NVME Encapsulated req
27
+ * 12-17-18 02.00.04 Added MPI26_PCIE_DEVINFO_SCSI
28
+ * Shortten some defines to be compatible with DOS
2629 * --------------------------------------------------------------------------
2730 */
2831
....@@ -40,7 +43,7 @@
4043 #define MPI26_PCIE_DEVINFO_NO_DEVICE (0x00000000)
4144 #define MPI26_PCIE_DEVINFO_PCI_SWITCH (0x00000001)
4245 #define MPI26_PCIE_DEVINFO_NVME (0x00000003)
43
-
46
+#define MPI26_PCIE_DEVINFO_SCSI (0x00000004)
4447
4548 /****************************************************************************
4649 * NVMe Encapsulated message
....@@ -74,11 +77,10 @@
7477 #define MPI26_NVME_FLAGS_SUBMISSIONQ_IO (0x0000)
7578 #define MPI26_NVME_FLAGS_SUBMISSIONQ_ADMIN (0x0010)
7679 /*Error Response Address Space */
77
-#define MPI26_NVME_FLAGS_MASK_ERROR_RSP_ADDR (0x000C)
78
-#define MPI26_NVME_FLAGS_SYSTEM_RSP_ADDR (0x0000)
79
-#define MPI26_NVME_FLAGS_IOCPLB_RSP_ADDR (0x0008)
80
-#define MPI26_NVME_FLAGS_IOCPLBNTA_RSP_ADDR (0x000C)
81
-/*Data Direction*/
80
+#define MPI26_NVME_FLAGS_ERR_RSP_ADDR_MASK (0x000C)
81
+#define MPI26_NVME_FLAGS_ERR_RSP_ADDR_SYSTEM (0x0000)
82
+#define MPI26_NVME_FLAGS_ERR_RSP_ADDR_IOCTL (0x0008)
83
+/* Data Direction*/
8284 #define MPI26_NVME_FLAGS_DATADIRECTION_MASK (0x0003)
8385 #define MPI26_NVME_FLAGS_NODATATRANSFER (0x0000)
8486 #define MPI26_NVME_FLAGS_WRITE (0x0001)