hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/scsi/mpt3sas/mpi/mpi2.h
....@@ -1,6 +1,6 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
22 /*
3
- * Copyright 2000-2015 Avago Technologies. All rights reserved.
3
+ * Copyright 2000-2020 Broadcom Inc. All rights reserved.
44 *
55 *
66 * Name: mpi2.h
....@@ -9,7 +9,7 @@
99 * scatter/gather formats.
1010 * Creation Date: June 21, 2006
1111 *
12
- * mpi2.h Version: 02.00.50
12
+ * mpi2.h Version: 02.00.54
1313 *
1414 * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25
1515 * prefix are for use only on MPI v2.5 products, and must not be used
....@@ -116,7 +116,16 @@
116116 * 02-03-17 02.00.48 Bumped MPI2_HEADER_VERSION_UNIT.
117117 * 06-13-17 02.00.49 Bumped MPI2_HEADER_VERSION_UNIT.
118118 * 09-29-17 02.00.50 Bumped MPI2_HEADER_VERSION_UNIT.
119
- * --------------------------------------------------------------------------
119
+ * 07-22-18 02.00.51 Added SECURE_BOOT define.
120
+ * Bumped MPI2_HEADER_VERSION_UNIT
121
+ * 08-15-18 02.00.52 Bumped MPI2_HEADER_VERSION_UNIT.
122
+ * 08-28-18 02.00.53 Bumped MPI2_HEADER_VERSION_UNIT.
123
+ * Added MPI2_IOCSTATUS_FAILURE
124
+ * 12-17-18 02.00.54 Bumped MPI2_HEADER_VERSION_UNIT
125
+ * 06-24-19 02.00.55 Bumped MPI2_HEADER_VERSION_UNIT
126
+ * 08-01-19 02.00.56 Bumped MPI2_HEADER_VERSION_UNIT
127
+ * 10-02-19 02.00.57 Bumped MPI2_HEADER_VERSION_UNIT
128
+ * --------------------------------------------------------------------------
120129 */
121130
122131 #ifndef MPI2_H
....@@ -156,7 +165,7 @@
156165
157166
158167 /* Unit and Dev versioning for this MPI header set */
159
-#define MPI2_HEADER_VERSION_UNIT (0x32)
168
+#define MPI2_HEADER_VERSION_UNIT (0x39)
160169 #define MPI2_HEADER_VERSION_DEV (0x00)
161170 #define MPI2_HEADER_VERSION_UNIT_MASK (0xFF00)
162171 #define MPI2_HEADER_VERSION_UNIT_SHIFT (8)
....@@ -175,6 +184,7 @@
175184 #define MPI2_IOC_STATE_READY (0x10000000)
176185 #define MPI2_IOC_STATE_OPERATIONAL (0x20000000)
177186 #define MPI2_IOC_STATE_FAULT (0x40000000)
187
+#define MPI2_IOC_STATE_COREDUMP (0x50000000)
178188
179189 #define MPI2_IOC_STATE_MASK (0xF0000000)
180190 #define MPI2_IOC_STATE_SHIFT (28)
....@@ -256,6 +266,8 @@
256266 *Defines for the HostDiagnostic register
257267 */
258268 #define MPI2_HOST_DIAGNOSTIC_OFFSET (0x00000008)
269
+
270
+#define MPI26_DIAG_SECURE_BOOT (0x80000000)
259271
260272 #define MPI2_DIAG_SBR_RELOAD (0x00002000)
261273
....@@ -687,7 +699,9 @@
687699 #define MPI2_IOCSTATUS_INVALID_FIELD (0x0007)
688700 #define MPI2_IOCSTATUS_INVALID_STATE (0x0008)
689701 #define MPI2_IOCSTATUS_OP_STATE_NOT_SUPPORTED (0x0009)
702
+/*MPI v2.6 and later */
690703 #define MPI2_IOCSTATUS_INSUFFICIENT_POWER (0x000A)
704
+#define MPI2_IOCSTATUS_FAILURE (0x000F)
691705
692706 /****************************************************************************
693707 * Config IOCStatus values