aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>2011-11-30 21:13:37 -0500
committerJames Bottomley <JBottomley@Parallels.com>2011-12-15 01:57:32 -0500
commitc1bc0704e52f200bc747c6bddb970a3686e230ab (patch)
tree74dff33cef4d108ddc2cd3f208436bcc439cca06 /drivers/scsi
parent70e73f9945f80a5ad469d4d21b32209218aa51ac (diff)
[SCSI] mpt2sas: MPI next revision header update
1) Added product specific range of ImageType macros for the Extended Image Header. 2) Added Flags field and related defines to MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST to support automatic reserve/release and page addressing. Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/mpt2sas/mpi/mpi2.h9
-rw-r--r--drivers/scsi/mpt2sas/mpi/mpi2_cnfg.h12
-rw-r--r--drivers/scsi/mpt2sas/mpi/mpi2_ioc.h28
-rw-r--r--drivers/scsi/mpt2sas/mpi/mpi2_tool.h9
4 files changed, 36 insertions, 22 deletions
diff --git a/drivers/scsi/mpt2sas/mpi/mpi2.h b/drivers/scsi/mpt2sas/mpi/mpi2.h
index 8dc1b32918dd..985913304c3f 100644
--- a/drivers/scsi/mpt2sas/mpi/mpi2.h
+++ b/drivers/scsi/mpt2sas/mpi/mpi2.h
@@ -8,7 +8,7 @@
8 * scatter/gather formats. 8 * scatter/gather formats.
9 * Creation Date: June 21, 2006 9 * Creation Date: June 21, 2006
10 * 10 *
11 * mpi2.h Version: 02.00.20 11 * mpi2.h Version: 02.00.21
12 * 12 *
13 * Version History 13 * Version History
14 * --------------- 14 * ---------------
@@ -69,6 +69,7 @@
69 * 02-23-11 02.00.19 Bumped MPI2_HEADER_VERSION_UNIT. 69 * 02-23-11 02.00.19 Bumped MPI2_HEADER_VERSION_UNIT.
70 * Added MPI2_FUNCTION_SEND_HOST_MESSAGE. 70 * Added MPI2_FUNCTION_SEND_HOST_MESSAGE.
71 * 03-09-11 02.00.20 Bumped MPI2_HEADER_VERSION_UNIT. 71 * 03-09-11 02.00.20 Bumped MPI2_HEADER_VERSION_UNIT.
72 * 05-25-11 02.00.21 Bumped MPI2_HEADER_VERSION_UNIT.
72 * -------------------------------------------------------------------------- 73 * --------------------------------------------------------------------------
73 */ 74 */
74 75
@@ -94,7 +95,7 @@
94#define MPI2_VERSION_02_00 (0x0200) 95#define MPI2_VERSION_02_00 (0x0200)
95 96
96/* versioning for this MPI header set */ 97/* versioning for this MPI header set */
97#define MPI2_HEADER_VERSION_UNIT (0x14) 98#define MPI2_HEADER_VERSION_UNIT (0x15)
98#define MPI2_HEADER_VERSION_DEV (0x00) 99#define MPI2_HEADER_VERSION_DEV (0x00)
99#define MPI2_HEADER_VERSION_UNIT_MASK (0xFF00) 100#define MPI2_HEADER_VERSION_UNIT_MASK (0xFF00)
100#define MPI2_HEADER_VERSION_UNIT_SHIFT (8) 101#define MPI2_HEADER_VERSION_UNIT_SHIFT (8)
@@ -1073,8 +1074,10 @@ typedef struct _MPI2_IEEE_SGE_UNION
1073#define MPI2_IEEE_SGE_FLAGS_IOCPLB_ADDR (0x02) 1074#define MPI2_IEEE_SGE_FLAGS_IOCPLB_ADDR (0x02)
1074#define MPI2_IEEE_SGE_FLAGS_IOCPLBNTA_ADDR (0x03) 1075#define MPI2_IEEE_SGE_FLAGS_IOCPLBNTA_ADDR (0x03)
1075 /* IEEE Simple Element only */ 1076 /* IEEE Simple Element only */
1076#define MPI2_IEEE_SGE_FLAGS_SYSTEMPLBCPI_ADDR (0x03) 1077#define MPI2_IEEE_SGE_FLAGS_SYSTEMPLBPCI_ADDR (0x03)
1077 /* IEEE Chain Element only */ 1078 /* IEEE Chain Element only */
1079#define MPI2_IEEE_SGE_FLAGS_SYSTEMPLBCPI_ADDR \
1080 (MPI2_IEEE_SGE_FLAGS_SYSTEMPLBPCI_ADDR) /* typo in name */
1078 1081
1079/**************************************************************************** 1082/****************************************************************************
1080* IEEE SGE operation Macros 1083* IEEE SGE operation Macros
diff --git a/drivers/scsi/mpt2sas/mpi/mpi2_cnfg.h b/drivers/scsi/mpt2sas/mpi/mpi2_cnfg.h
index cfd95b4e3004..d237ab8028c8 100644
--- a/drivers/scsi/mpt2sas/mpi/mpi2_cnfg.h
+++ b/drivers/scsi/mpt2sas/mpi/mpi2_cnfg.h
@@ -6,7 +6,7 @@
6 * Title: MPI Configuration messages and pages 6 * Title: MPI Configuration messages and pages
7 * Creation Date: November 10, 2006 7 * Creation Date: November 10, 2006
8 * 8 *
9 * mpi2_cnfg.h Version: 02.00.19 9 * mpi2_cnfg.h Version: 02.00.20
10 * 10 *
11 * Version History 11 * Version History
12 * --------------- 12 * ---------------
@@ -140,6 +140,7 @@
140 * Added SASNotifyPrimitiveMasks field to 140 * Added SASNotifyPrimitiveMasks field to
141 * MPI2_CONFIG_PAGE_IOC_7. 141 * MPI2_CONFIG_PAGE_IOC_7.
142 * 03-09-11 02.00.19 Fixed IO Unit Page 10 (to match the spec). 142 * 03-09-11 02.00.19 Fixed IO Unit Page 10 (to match the spec).
143 * 05-25-11 02.00.20 Cleaned up a few comments.
143 * -------------------------------------------------------------------------- 144 * --------------------------------------------------------------------------
144 */ 145 */
145 146
@@ -2321,13 +2322,12 @@ typedef struct _MPI2_CONFIG_PAGE_EXPANDER_1
2321 2322
2322/* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */ 2323/* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */
2323 2324
2324/* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */
2325
2326/* values for SAS Expander Page 1 DiscoveryInfo field */ 2325/* values for SAS Expander Page 1 DiscoveryInfo field */
2327#define MPI2_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED (0x04) 2326#define MPI2_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED (0x04)
2328#define MPI2_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE (0x02) 2327#define MPI2_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE (0x02)
2329#define MPI2_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES (0x01) 2328#define MPI2_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES (0x01)
2330 2329
2330/* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */
2331 2331
2332/**************************************************************************** 2332/****************************************************************************
2333* SAS Device Config Pages 2333* SAS Device Config Pages
@@ -2447,6 +2447,8 @@ typedef struct _MPI2_CONFIG_PAGE_SAS_PHY_0
2447 2447
2448#define MPI2_SASPHY0_PAGEVERSION (0x03) 2448#define MPI2_SASPHY0_PAGEVERSION (0x03)
2449 2449
2450/* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */
2451
2450/* use MPI2_SAS_PRATE_ defines for the ProgrammedLinkRate field */ 2452/* use MPI2_SAS_PRATE_ defines for the ProgrammedLinkRate field */
2451 2453
2452/* use MPI2_SAS_HWRATE_ defines for the HwLinkRate field */ 2454/* use MPI2_SAS_HWRATE_ defines for the HwLinkRate field */
@@ -2454,12 +2456,10 @@ typedef struct _MPI2_CONFIG_PAGE_SAS_PHY_0
2454/* values for SAS PHY Page 0 Flags field */ 2456/* values for SAS PHY Page 0 Flags field */
2455#define MPI2_SAS_PHY0_FLAGS_SGPIO_DIRECT_ATTACH_ENC (0x01) 2457#define MPI2_SAS_PHY0_FLAGS_SGPIO_DIRECT_ATTACH_ENC (0x01)
2456 2458
2457/* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */ 2459/* use MPI2_SAS_PHYINFO_ for the PhyInfo field */
2458 2460
2459/* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */ 2461/* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */
2460 2462
2461/* use MPI2_SAS_PHYINFO_ for the PhyInfo field */
2462
2463 2463
2464/* SAS PHY Page 1 */ 2464/* SAS PHY Page 1 */
2465 2465
diff --git a/drivers/scsi/mpt2sas/mpi/mpi2_ioc.h b/drivers/scsi/mpt2sas/mpi/mpi2_ioc.h
index 93d9b6956d05..7b53be83e7e3 100644
--- a/drivers/scsi/mpt2sas/mpi/mpi2_ioc.h
+++ b/drivers/scsi/mpt2sas/mpi/mpi2_ioc.h
@@ -6,7 +6,7 @@
6 * Title: MPI IOC, Port, Event, FW Download, and FW Upload messages 6 * Title: MPI IOC, Port, Event, FW Download, and FW Upload messages
7 * Creation Date: October 11, 2006 7 * Creation Date: October 11, 2006
8 * 8 *
9 * mpi2_ioc.h Version: 02.00.17 9 * mpi2_ioc.h Version: 02.00.18
10 * 10 *
11 * Version History 11 * Version History
12 * --------------- 12 * ---------------
@@ -110,6 +110,10 @@
110 * Added Temperature Threshold Event. 110 * Added Temperature Threshold Event.
111 * Added Host Message Event. 111 * Added Host Message Event.
112 * Added Send Host Message request and reply. 112 * Added Send Host Message request and reply.
113 * 05-25-11 02.00.18 For Extended Image Header, added
114 * MPI2_EXT_IMAGE_TYPE_MIN_PRODUCT_SPECIFIC and
115 * MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC defines.
116 * Deprecated MPI2_EXT_IMAGE_TYPE_MAX define.
113 * -------------------------------------------------------------------------- 117 * --------------------------------------------------------------------------
114 */ 118 */
115 119
@@ -1366,16 +1370,18 @@ typedef struct _MPI2_EXT_IMAGE_HEADER
1366#define MPI2_EXT_IMAGE_HEADER_SIZE (0x40) 1370#define MPI2_EXT_IMAGE_HEADER_SIZE (0x40)
1367 1371
1368/* defines for the ImageType field */ 1372/* defines for the ImageType field */
1369#define MPI2_EXT_IMAGE_TYPE_UNSPECIFIED (0x00) 1373#define MPI2_EXT_IMAGE_TYPE_UNSPECIFIED (0x00)
1370#define MPI2_EXT_IMAGE_TYPE_FW (0x01) 1374#define MPI2_EXT_IMAGE_TYPE_FW (0x01)
1371#define MPI2_EXT_IMAGE_TYPE_NVDATA (0x03) 1375#define MPI2_EXT_IMAGE_TYPE_NVDATA (0x03)
1372#define MPI2_EXT_IMAGE_TYPE_BOOTLOADER (0x04) 1376#define MPI2_EXT_IMAGE_TYPE_BOOTLOADER (0x04)
1373#define MPI2_EXT_IMAGE_TYPE_INITIALIZATION (0x05) 1377#define MPI2_EXT_IMAGE_TYPE_INITIALIZATION (0x05)
1374#define MPI2_EXT_IMAGE_TYPE_FLASH_LAYOUT (0x06) 1378#define MPI2_EXT_IMAGE_TYPE_FLASH_LAYOUT (0x06)
1375#define MPI2_EXT_IMAGE_TYPE_SUPPORTED_DEVICES (0x07) 1379#define MPI2_EXT_IMAGE_TYPE_SUPPORTED_DEVICES (0x07)
1376#define MPI2_EXT_IMAGE_TYPE_MEGARAID (0x08) 1380#define MPI2_EXT_IMAGE_TYPE_MEGARAID (0x08)
1377 1381#define MPI2_EXT_IMAGE_TYPE_MIN_PRODUCT_SPECIFIC (0x80)
1378#define MPI2_EXT_IMAGE_TYPE_MAX (MPI2_EXT_IMAGE_TYPE_MEGARAID) 1382#define MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC (0xFF)
1383#define MPI2_EXT_IMAGE_TYPE_MAX \
1384 (MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC) /* deprecated */
1379 1385
1380 1386
1381 1387
diff --git a/drivers/scsi/mpt2sas/mpi/mpi2_tool.h b/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
index 2a4bceda364b..3cbe677c6886 100644
--- a/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
+++ b/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
@@ -6,7 +6,7 @@
6 * Title: MPI diagnostic tool structures and definitions 6 * Title: MPI diagnostic tool structures and definitions
7 * Creation Date: March 26, 2007 7 * Creation Date: March 26, 2007
8 * 8 *
9 * mpi2_tool.h Version: 02.00.06 9 * mpi2_tool.h Version: 02.00.07
10 * 10 *
11 * Version History 11 * Version History
12 * --------------- 12 * ---------------
@@ -25,6 +25,8 @@
25 * 05-12-10 02.00.05 Added Diagnostic Data Upload tool. 25 * 05-12-10 02.00.05 Added Diagnostic Data Upload tool.
26 * 08-11-10 02.00.06 Added defines that were missing for Diagnostic Buffer 26 * 08-11-10 02.00.06 Added defines that were missing for Diagnostic Buffer
27 * Post Request. 27 * Post Request.
28 * 05-25-11 02.00.07 Added Flags field and related defines to
29 * MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST.
28 * -------------------------------------------------------------------------- 30 * --------------------------------------------------------------------------
29 */ 31 */
30 32
@@ -181,7 +183,7 @@ typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST {
181 U8 DevIndex; /* 0x14 */ 183 U8 DevIndex; /* 0x14 */
182 U8 Action; /* 0x15 */ 184 U8 Action; /* 0x15 */
183 U8 SGLFlags; /* 0x16 */ 185 U8 SGLFlags; /* 0x16 */
184 U8 Reserved7; /* 0x17 */ 186 U8 Flags; /* 0x17 */
185 U16 TxDataLength; /* 0x18 */ 187 U16 TxDataLength; /* 0x18 */
186 U16 RxDataLength; /* 0x1A */ 188 U16 RxDataLength; /* 0x1A */
187 U32 Reserved8; /* 0x1C */ 189 U32 Reserved8; /* 0x1C */
@@ -205,6 +207,9 @@ typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST {
205 207
206/* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */ 208/* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
207 209
210/* values for the Flags field */
211#define MPI2_TOOL_ISTWI_FLAG_AUTO_RESERVE_RELEASE (0x80)
212#define MPI2_TOOL_ISTWI_FLAG_PAGE_ADDR_MASK (0x07)
208 213
209/* Toolbox ISTWI Read Write Tool reply message */ 214/* Toolbox ISTWI Read Write Tool reply message */
210typedef struct _MPI2_TOOLBOX_ISTWI_REPLY { 215typedef struct _MPI2_TOOLBOX_ISTWI_REPLY {