diff options
-rw-r--r-- | drivers/message/fusion/lsi/mpi.h | 70 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_cnfg.h | 1007 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_fc.h | 7 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_history.txt | 451 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_inb.h | 7 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_init.h | 88 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_ioc.h | 246 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_lan.h | 6 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_raid.h | 17 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_sas.h | 171 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_targ.h | 160 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_tool.h | 57 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_type.h | 11 |
13 files changed, 1889 insertions, 409 deletions
diff --git a/drivers/message/fusion/lsi/mpi.h b/drivers/message/fusion/lsi/mpi.h index 9dbb061265fe..9f98334e5076 100644 --- a/drivers/message/fusion/lsi/mpi.h +++ b/drivers/message/fusion/lsi/mpi.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2005 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi.h | 5 | * Name: mpi.h |
6 | * Title: MPI Message independent structures and definitions | 6 | * Title: MPI Message independent structures and definitions |
7 | * Creation Date: July 27, 2000 | 7 | * Creation Date: July 27, 2000 |
8 | * | 8 | * |
9 | * mpi.h Version: 01.05.xx | 9 | * mpi.h Version: 01.05.07 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -52,6 +52,25 @@ | |||
52 | * obsoleted define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX. | 52 | * obsoleted define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX. |
53 | * 04-01-03 01.02.09 New IOCStatus code: MPI_IOCSTATUS_FC_EXCHANGE_CANCELED | 53 | * 04-01-03 01.02.09 New IOCStatus code: MPI_IOCSTATUS_FC_EXCHANGE_CANCELED |
54 | * 06-26-03 01.02.10 Bumped MPI_HEADER_VERSION_UNIT value. | 54 | * 06-26-03 01.02.10 Bumped MPI_HEADER_VERSION_UNIT value. |
55 | * 01-16-04 01.02.11 Added define for MPI_IOCLOGINFO_TYPE_SHIFT. | ||
56 | * 04-29-04 01.02.12 Added function codes for MPI_FUNCTION_DIAG_BUFFER_POST | ||
57 | * and MPI_FUNCTION_DIAG_RELEASE. | ||
58 | * Added MPI_IOCSTATUS_DIAGNOSTIC_RELEASED define. | ||
59 | * Bumped MPI_HEADER_VERSION_UNIT value. | ||
60 | * 05-11-04 01.03.01 Bumped MPI_VERSION_MINOR for MPI v1.3. | ||
61 | * Added codes for Inband. | ||
62 | * 08-19-04 01.05.01 Added defines for Host Buffer Access Control doorbell. | ||
63 | * Added define for offset of High Priority Request Queue. | ||
64 | * Added new function codes and new IOCStatus codes. | ||
65 | * Added a IOCLogInfo type of SAS. | ||
66 | * 12-07-04 01.05.02 Bumped MPI_HEADER_VERSION_UNIT. | ||
67 | * 12-09-04 01.05.03 Bumped MPI_HEADER_VERSION_UNIT. | ||
68 | * 01-15-05 01.05.04 Bumped MPI_HEADER_VERSION_UNIT. | ||
69 | * 02-09-05 01.05.05 Bumped MPI_HEADER_VERSION_UNIT. | ||
70 | * 02-22-05 01.05.06 Bumped MPI_HEADER_VERSION_UNIT. | ||
71 | * 03-11-05 01.05.07 Removed function codes for SCSI IO 32 and | ||
72 | * TargetAssistExtended requests. | ||
73 | * Removed EEDP IOCStatus codes. | ||
55 | * -------------------------------------------------------------------------- | 74 | * -------------------------------------------------------------------------- |
56 | */ | 75 | */ |
57 | 76 | ||
@@ -82,7 +101,7 @@ | |||
82 | /* Note: The major versions of 0xe0 through 0xff are reserved */ | 101 | /* Note: The major versions of 0xe0 through 0xff are reserved */ |
83 | 102 | ||
84 | /* versioning for this MPI header set */ | 103 | /* versioning for this MPI header set */ |
85 | #define MPI_HEADER_VERSION_UNIT (0x00) | 104 | #define MPI_HEADER_VERSION_UNIT (0x09) |
86 | #define MPI_HEADER_VERSION_DEV (0x00) | 105 | #define MPI_HEADER_VERSION_DEV (0x00) |
87 | #define MPI_HEADER_VERSION_UNIT_MASK (0xFF00) | 106 | #define MPI_HEADER_VERSION_UNIT_MASK (0xFF00) |
88 | #define MPI_HEADER_VERSION_UNIT_SHIFT (8) | 107 | #define MPI_HEADER_VERSION_UNIT_SHIFT (8) |
@@ -122,7 +141,11 @@ | |||
122 | * | 141 | * |
123 | *****************************************************************************/ | 142 | *****************************************************************************/ |
124 | 143 | ||
125 | /* S y s t e m D o o r b e l l */ | 144 | /* |
145 | * Defines for working with the System Doorbell register. | ||
146 | * Values for doorbell function codes are included in the section that defines | ||
147 | * all the function codes (further on in this file). | ||
148 | */ | ||
126 | #define MPI_DOORBELL_OFFSET (0x00000000) | 149 | #define MPI_DOORBELL_OFFSET (0x00000000) |
127 | #define MPI_DOORBELL_ACTIVE (0x08000000) /* DoorbellUsed */ | 150 | #define MPI_DOORBELL_ACTIVE (0x08000000) /* DoorbellUsed */ |
128 | #define MPI_DOORBELL_USED (MPI_DOORBELL_ACTIVE) | 151 | #define MPI_DOORBELL_USED (MPI_DOORBELL_ACTIVE) |
@@ -134,6 +157,13 @@ | |||
134 | #define MPI_DOORBELL_ADD_DWORDS_MASK (0x00FF0000) | 157 | #define MPI_DOORBELL_ADD_DWORDS_MASK (0x00FF0000) |
135 | #define MPI_DOORBELL_ADD_DWORDS_SHIFT (16) | 158 | #define MPI_DOORBELL_ADD_DWORDS_SHIFT (16) |
136 | #define MPI_DOORBELL_DATA_MASK (0x0000FFFF) | 159 | #define MPI_DOORBELL_DATA_MASK (0x0000FFFF) |
160 | #define MPI_DOORBELL_FUNCTION_SPECIFIC_MASK (0x0000FFFF) | ||
161 | |||
162 | /* values for Host Buffer Access Control doorbell function */ | ||
163 | #define MPI_DB_HPBAC_VALUE_MASK (0x0000F000) | ||
164 | #define MPI_DB_HPBAC_ENABLE_ACCESS (0x01) | ||
165 | #define MPI_DB_HPBAC_DISABLE_ACCESS (0x02) | ||
166 | #define MPI_DB_HPBAC_FREE_BUFFER (0x03) | ||
137 | 167 | ||
138 | 168 | ||
139 | #define MPI_WRITE_SEQUENCE_OFFSET (0x00000004) | 169 | #define MPI_WRITE_SEQUENCE_OFFSET (0x00000004) |
@@ -257,16 +287,18 @@ | |||
257 | 287 | ||
258 | #define MPI_FUNCTION_SMP_PASSTHROUGH (0x1A) | 288 | #define MPI_FUNCTION_SMP_PASSTHROUGH (0x1A) |
259 | #define MPI_FUNCTION_SAS_IO_UNIT_CONTROL (0x1B) | 289 | #define MPI_FUNCTION_SAS_IO_UNIT_CONTROL (0x1B) |
290 | #define MPI_FUNCTION_SATA_PASSTHROUGH (0x1C) | ||
260 | 291 | ||
261 | #define MPI_DIAG_BUFFER_POST (0x1D) | 292 | #define MPI_FUNCTION_DIAG_BUFFER_POST (0x1D) |
262 | #define MPI_DIAG_RELEASE (0x1E) | 293 | #define MPI_FUNCTION_DIAG_RELEASE (0x1E) |
263 | |||
264 | #define MPI_FUNCTION_SCSI_IO_32 (0x1F) | ||
265 | 294 | ||
266 | #define MPI_FUNCTION_LAN_SEND (0x20) | 295 | #define MPI_FUNCTION_LAN_SEND (0x20) |
267 | #define MPI_FUNCTION_LAN_RECEIVE (0x21) | 296 | #define MPI_FUNCTION_LAN_RECEIVE (0x21) |
268 | #define MPI_FUNCTION_LAN_RESET (0x22) | 297 | #define MPI_FUNCTION_LAN_RESET (0x22) |
269 | 298 | ||
299 | #define MPI_FUNCTION_TARGET_CMD_BUF_BASE_POST (0x24) | ||
300 | #define MPI_FUNCTION_TARGET_CMD_BUF_LIST_POST (0x25) | ||
301 | |||
270 | #define MPI_FUNCTION_INBAND_BUFFER_POST (0x28) | 302 | #define MPI_FUNCTION_INBAND_BUFFER_POST (0x28) |
271 | #define MPI_FUNCTION_INBAND_SEND (0x29) | 303 | #define MPI_FUNCTION_INBAND_SEND (0x29) |
272 | #define MPI_FUNCTION_INBAND_RSP (0x2A) | 304 | #define MPI_FUNCTION_INBAND_RSP (0x2A) |
@@ -276,6 +308,7 @@ | |||
276 | #define MPI_FUNCTION_IO_UNIT_RESET (0x41) | 308 | #define MPI_FUNCTION_IO_UNIT_RESET (0x41) |
277 | #define MPI_FUNCTION_HANDSHAKE (0x42) | 309 | #define MPI_FUNCTION_HANDSHAKE (0x42) |
278 | #define MPI_FUNCTION_REPLY_FRAME_REMOVAL (0x43) | 310 | #define MPI_FUNCTION_REPLY_FRAME_REMOVAL (0x43) |
311 | #define MPI_FUNCTION_HOST_PAGEBUF_ACCESS_CONTROL (0x44) | ||
279 | 312 | ||
280 | 313 | ||
281 | /* standard version format */ | 314 | /* standard version format */ |
@@ -328,8 +361,8 @@ typedef struct _SGE_SIMPLE_UNION | |||
328 | U32 Address32; | 361 | U32 Address32; |
329 | U64 Address64; | 362 | U64 Address64; |
330 | }u; | 363 | }u; |
331 | } SGESimpleUnion_t, MPI_POINTER pSGESimpleUnion_t, | 364 | } SGE_SIMPLE_UNION, MPI_POINTER PTR_SGE_SIMPLE_UNION, |
332 | SGE_SIMPLE_UNION, MPI_POINTER PTR_SGE_SIMPLE_UNION; | 365 | SGESimpleUnion_t, MPI_POINTER pSGESimpleUnion_t; |
333 | 366 | ||
334 | /****************************************************************************/ | 367 | /****************************************************************************/ |
335 | /* Chain element structures */ | 368 | /* Chain element structures */ |
@@ -648,27 +681,21 @@ typedef struct _MSG_DEFAULT_REPLY | |||
648 | #define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C) | 681 | #define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C) |
649 | 682 | ||
650 | /****************************************************************************/ | 683 | /****************************************************************************/ |
651 | /* For use by SCSI Initiator and SCSI Target end-to-end data protection */ | 684 | /* SCSI Target values */ |
652 | /****************************************************************************/ | ||
653 | |||
654 | #define MPI_IOCSTATUS_EEDP_CRC_ERROR (0x004D) | ||
655 | #define MPI_IOCSTATUS_EEDP_LBA_TAG_ERROR (0x004E) | ||
656 | #define MPI_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004F) | ||
657 | |||
658 | |||
659 | /****************************************************************************/ | ||
660 | /* SCSI (SPI & FCP) target values */ | ||
661 | /****************************************************************************/ | 685 | /****************************************************************************/ |
662 | 686 | ||
663 | #define MPI_IOCSTATUS_TARGET_PRIORITY_IO (0x0060) | 687 | #define MPI_IOCSTATUS_TARGET_PRIORITY_IO (0x0060) |
664 | #define MPI_IOCSTATUS_TARGET_INVALID_PORT (0x0061) | 688 | #define MPI_IOCSTATUS_TARGET_INVALID_PORT (0x0061) |
665 | #define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX (0x0062) /* obsolete */ | 689 | #define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX (0x0062) /* obsolete name */ |
666 | #define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062) | 690 | #define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062) |
667 | #define MPI_IOCSTATUS_TARGET_ABORTED (0x0063) | 691 | #define MPI_IOCSTATUS_TARGET_ABORTED (0x0063) |
668 | #define MPI_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064) | 692 | #define MPI_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064) |
669 | #define MPI_IOCSTATUS_TARGET_NO_CONNECTION (0x0065) | 693 | #define MPI_IOCSTATUS_TARGET_NO_CONNECTION (0x0065) |
670 | #define MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006A) | 694 | #define MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006A) |
671 | #define MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT (0x006B) | 695 | #define MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT (0x006B) |
696 | #define MPI_IOCSTATUS_TARGET_DATA_OFFSET_ERROR (0x006D) | ||
697 | #define MPI_IOCSTATUS_TARGET_TOO_MUCH_WRITE_DATA (0x006E) | ||
698 | #define MPI_IOCSTATUS_TARGET_IU_TOO_SHORT (0x006F) | ||
672 | 699 | ||
673 | /****************************************************************************/ | 700 | /****************************************************************************/ |
674 | /* Additional FCP target values (obsolete) */ | 701 | /* Additional FCP target values (obsolete) */ |
@@ -707,6 +734,7 @@ typedef struct _MSG_DEFAULT_REPLY | |||
707 | /****************************************************************************/ | 734 | /****************************************************************************/ |
708 | 735 | ||
709 | #define MPI_IOCSTATUS_SAS_SMP_REQUEST_FAILED (0x0090) | 736 | #define MPI_IOCSTATUS_SAS_SMP_REQUEST_FAILED (0x0090) |
737 | #define MPI_IOCSTATUS_SAS_SMP_DATA_OVERRUN (0x0091) | ||
710 | 738 | ||
711 | /****************************************************************************/ | 739 | /****************************************************************************/ |
712 | /* Inband values */ | 740 | /* Inband values */ |
diff --git a/drivers/message/fusion/lsi/mpi_cnfg.h b/drivers/message/fusion/lsi/mpi_cnfg.h index a5680d864bf0..15b12b06799d 100644 --- a/drivers/message/fusion/lsi/mpi_cnfg.h +++ b/drivers/message/fusion/lsi/mpi_cnfg.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2005 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_cnfg.h | 5 | * Name: mpi_cnfg.h |
6 | * Title: MPI Config message, structures, and Pages | 6 | * Title: MPI Config message, structures, and Pages |
7 | * Creation Date: July 27, 2000 | 7 | * Creation Date: July 27, 2000 |
8 | * | 8 | * |
9 | * mpi_cnfg.h Version: 01.05.xx | 9 | * mpi_cnfg.h Version: 01.05.08 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -145,6 +145,93 @@ | |||
145 | * In CONFIG_PAGE_FC_DEVICE_0, replaced Reserved1 field | 145 | * In CONFIG_PAGE_FC_DEVICE_0, replaced Reserved1 field |
146 | * with ADISCHardALPA. | 146 | * with ADISCHardALPA. |
147 | * Added MPI_FC_DEVICE_PAGE0_PROT_FCP_RETRY define. | 147 | * Added MPI_FC_DEVICE_PAGE0_PROT_FCP_RETRY define. |
148 | * 01-16-04 01.02.13 Added InitiatorDeviceTimeout and InitiatorIoPendTimeout | ||
149 | * fields and related defines to CONFIG_PAGE_FC_PORT_1. | ||
150 | * Added define for | ||
151 | * MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK. | ||
152 | * Added new fields to the substructures of | ||
153 | * CONFIG_PAGE_FC_PORT_10. | ||
154 | * 04-29-04 01.02.14 Added define for IDP bit for CONFIG_PAGE_SCSI_PORT_0, | ||
155 | * CONFIG_PAGE_SCSI_DEVICE_0, and | ||
156 | * CONFIG_PAGE_SCSI_DEVICE_1. Also bumped Page Version for | ||
157 | * these pages. | ||
158 | * 05-11-04 01.03.01 Added structure for CONFIG_PAGE_INBAND_0. | ||
159 | * 08-19-04 01.05.01 Modified MSG_CONFIG request to support extended config | ||
160 | * pages. | ||
161 | * Added a new structure for extended config page header. | ||
162 | * Added new extended config pages types and structures for | ||
163 | * SAS IO Unit, SAS Expander, SAS Device, and SAS PHY. | ||
164 | * Replaced a reserved byte in CONFIG_PAGE_MANUFACTURING_4 | ||
165 | * to add a Flags field. | ||
166 | * Two new Manufacturing config pages (5 and 6). | ||
167 | * Two new bits defined for IO Unit Page 1 Flags field. | ||
168 | * Modified CONFIG_PAGE_IO_UNIT_2 to add three new fields | ||
169 | * to specify the BIOS boot device. | ||
170 | * Four new Flags bits defined for IO Unit Page 2. | ||
171 | * Added IO Unit Page 4. | ||
172 | * Added EEDP Flags settings to IOC Page 1. | ||
173 | * Added new BIOS Page 1 config page. | ||
174 | * 10-05-04 01.05.02 Added define for | ||
175 | * MPI_IOCPAGE1_INITIATOR_CONTEXT_REPLY_DISABLE. | ||
176 | * Added new Flags field to CONFIG_PAGE_MANUFACTURING_5 and | ||
177 | * associated defines. | ||
178 | * Added more defines for SAS IO Unit Page 0 | ||
179 | * DiscoveryStatus field. | ||
180 | * Added define for MPI_SAS_IOUNIT0_DS_SUBTRACTIVE_LINK | ||
181 | * and MPI_SAS_IOUNIT0_DS_TABLE_LINK. | ||
182 | * Added defines for Physical Mapping Modes to SAS IO Unit | ||
183 | * Page 2. | ||
184 | * Added define for | ||
185 | * MPI_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH. | ||
186 | * 10-27-04 01.05.03 Added defines for new SAS PHY page addressing mode. | ||
187 | * Added defines for MaxTargetSpinUp to BIOS Page 1. | ||
188 | * Added 5 new ControlFlags defines for SAS IO Unit | ||
189 | * Page 1. | ||
190 | * Added MaxNumPhysicalMappedIDs field to SAS IO Unit | ||
191 | * Page 2. | ||
192 | * Added AccessStatus field to SAS Device Page 0 and added | ||
193 | * new Flags bits for supported SATA features. | ||
194 | * 12-07-04 01.05.04 Added config page structures for BIOS Page 2, RAID | ||
195 | * Volume Page 1, and RAID Physical Disk Page 1. | ||
196 | * Replaced IO Unit Page 1 BootTargetID,BootBus, and | ||
197 | * BootAdapterNum with reserved field. | ||
198 | * Added DataScrubRate and ResyncRate to RAID Volume | ||
199 | * Page 0. | ||
200 | * Added MPI_SAS_IOUNIT2_FLAGS_RESERVE_ID_0_FOR_BOOT | ||
201 | * define. | ||
202 | * 12-09-04 01.05.05 Added Target Mode Large CDB Enable to FC Port Page 1 | ||
203 | * Flags field. | ||
204 | * Added Auto Port Config flag define for SAS IOUNIT | ||
205 | * Page 1 ControlFlags. | ||
206 | * Added Disabled bad Phy define to Expander Page 1 | ||
207 | * Discovery Info field. | ||
208 | * Added SAS/SATA device support to SAS IOUnit Page 1 | ||
209 | * ControlFlags. | ||
210 | * Added Unsupported device to SAS Dev Page 0 Flags field | ||
211 | * Added disable use SATA Hash Address for SAS IOUNIT | ||
212 | * page 1 in ControlFields. | ||
213 | * 01-15-05 01.05.06 Added defaults for data scrub rate and resync rate to | ||
214 | * Manufacturing Page 4. | ||
215 | * Added new defines for BIOS Page 1 IOCSettings field. | ||
216 | * Added ExtDiskIdentifier field to RAID Physical Disk | ||
217 | * Page 0. | ||
218 | * Added new defines for SAS IO Unit Page 1 ControlFlags | ||
219 | * and to SAS Device Page 0 Flags to control SATA devices. | ||
220 | * Added defines and structures for the new Log Page 0, a | ||
221 | * new type of configuration page. | ||
222 | * 02-09-05 01.05.07 Added InactiveStatus field to RAID Volume Page 0. | ||
223 | * Added WWID field to RAID Volume Page 1. | ||
224 | * Added PhysicalPort field to SAS Expander pages 0 and 1. | ||
225 | * 03-11-05 01.05.08 Removed the EEDP flags from IOC Page 1. | ||
226 | * Added Enclosure/Slot boot device format to BIOS Page 2. | ||
227 | * New status value for RAID Volume Page 0 VolumeStatus | ||
228 | * (VolumeState subfield). | ||
229 | * New value for RAID Physical Page 0 InactiveStatus. | ||
230 | * Added Inactive Volume Member flag RAID Physical Disk | ||
231 | * Page 0 PhysDiskStatus field. | ||
232 | * New physical mapping mode in SAS IO Unit Page 2. | ||
233 | * Added CONFIG_PAGE_SAS_ENCLOSURE_0. | ||
234 | * Added Slot and Enclosure fields to SAS Device Page 0. | ||
148 | * -------------------------------------------------------------------------- | 235 | * -------------------------------------------------------------------------- |
149 | */ | 236 | */ |
150 | 237 | ||
@@ -164,7 +251,7 @@ typedef struct _CONFIG_PAGE_HEADER | |||
164 | U8 PageLength; /* 01h */ | 251 | U8 PageLength; /* 01h */ |
165 | U8 PageNumber; /* 02h */ | 252 | U8 PageNumber; /* 02h */ |
166 | U8 PageType; /* 03h */ | 253 | U8 PageType; /* 03h */ |
167 | } fCONFIG_PAGE_HEADER, MPI_POINTER PTR_CONFIG_PAGE_HEADER, | 254 | } CONFIG_PAGE_HEADER, MPI_POINTER PTR_CONFIG_PAGE_HEADER, |
168 | ConfigPageHeader_t, MPI_POINTER pConfigPageHeader_t; | 255 | ConfigPageHeader_t, MPI_POINTER pConfigPageHeader_t; |
169 | 256 | ||
170 | typedef union _CONFIG_PAGE_HEADER_UNION | 257 | typedef union _CONFIG_PAGE_HEADER_UNION |
@@ -174,7 +261,7 @@ typedef union _CONFIG_PAGE_HEADER_UNION | |||
174 | U16 Word16[2]; | 261 | U16 Word16[2]; |
175 | U32 Word32; | 262 | U32 Word32; |
176 | } ConfigPageHeaderUnion, MPI_POINTER pConfigPageHeaderUnion, | 263 | } ConfigPageHeaderUnion, MPI_POINTER pConfigPageHeaderUnion, |
177 | fCONFIG_PAGE_HEADER_UNION, MPI_POINTER PTR_CONFIG_PAGE_HEADER_UNION; | 264 | CONFIG_PAGE_HEADER_UNION, MPI_POINTER PTR_CONFIG_PAGE_HEADER_UNION; |
178 | 265 | ||
179 | typedef struct _CONFIG_EXTENDED_PAGE_HEADER | 266 | typedef struct _CONFIG_EXTENDED_PAGE_HEADER |
180 | { | 267 | { |
@@ -185,7 +272,7 @@ typedef struct _CONFIG_EXTENDED_PAGE_HEADER | |||
185 | U16 ExtPageLength; /* 04h */ | 272 | U16 ExtPageLength; /* 04h */ |
186 | U8 ExtPageType; /* 06h */ | 273 | U8 ExtPageType; /* 06h */ |
187 | U8 Reserved2; /* 07h */ | 274 | U8 Reserved2; /* 07h */ |
188 | } fCONFIG_EXTENDED_PAGE_HEADER, MPI_POINTER PTR_CONFIG_EXTENDED_PAGE_HEADER, | 275 | } CONFIG_EXTENDED_PAGE_HEADER, MPI_POINTER PTR_CONFIG_EXTENDED_PAGE_HEADER, |
189 | ConfigExtendedPageHeader_t, MPI_POINTER pConfigExtendedPageHeader_t; | 276 | ConfigExtendedPageHeader_t, MPI_POINTER pConfigExtendedPageHeader_t; |
190 | 277 | ||
191 | 278 | ||
@@ -224,6 +311,8 @@ typedef struct _CONFIG_EXTENDED_PAGE_HEADER | |||
224 | #define MPI_CONFIG_EXTPAGETYPE_SAS_EXPANDER (0x11) | 311 | #define MPI_CONFIG_EXTPAGETYPE_SAS_EXPANDER (0x11) |
225 | #define MPI_CONFIG_EXTPAGETYPE_SAS_DEVICE (0x12) | 312 | #define MPI_CONFIG_EXTPAGETYPE_SAS_DEVICE (0x12) |
226 | #define MPI_CONFIG_EXTPAGETYPE_SAS_PHY (0x13) | 313 | #define MPI_CONFIG_EXTPAGETYPE_SAS_PHY (0x13) |
314 | #define MPI_CONFIG_EXTPAGETYPE_LOG (0x14) | ||
315 | #define MPI_CONFIG_EXTPAGETYPE_ENCLOSURE (0x15) | ||
227 | 316 | ||
228 | 317 | ||
229 | /**************************************************************************** | 318 | /**************************************************************************** |
@@ -231,10 +320,19 @@ typedef struct _CONFIG_EXTENDED_PAGE_HEADER | |||
231 | ****************************************************************************/ | 320 | ****************************************************************************/ |
232 | #define MPI_SCSI_PORT_PGAD_PORT_MASK (0x000000FF) | 321 | #define MPI_SCSI_PORT_PGAD_PORT_MASK (0x000000FF) |
233 | 322 | ||
323 | #define MPI_SCSI_DEVICE_FORM_MASK (0xF0000000) | ||
324 | #define MPI_SCSI_DEVICE_FORM_BUS_TID (0x00000000) | ||
234 | #define MPI_SCSI_DEVICE_TARGET_ID_MASK (0x000000FF) | 325 | #define MPI_SCSI_DEVICE_TARGET_ID_MASK (0x000000FF) |
235 | #define MPI_SCSI_DEVICE_TARGET_ID_SHIFT (0) | 326 | #define MPI_SCSI_DEVICE_TARGET_ID_SHIFT (0) |
236 | #define MPI_SCSI_DEVICE_BUS_MASK (0x0000FF00) | 327 | #define MPI_SCSI_DEVICE_BUS_MASK (0x0000FF00) |
237 | #define MPI_SCSI_DEVICE_BUS_SHIFT (8) | 328 | #define MPI_SCSI_DEVICE_BUS_SHIFT (8) |
329 | #define MPI_SCSI_DEVICE_FORM_TARGET_MODE (0x10000000) | ||
330 | #define MPI_SCSI_DEVICE_TM_RESPOND_ID_MASK (0x000000FF) | ||
331 | #define MPI_SCSI_DEVICE_TM_RESPOND_ID_SHIFT (0) | ||
332 | #define MPI_SCSI_DEVICE_TM_BUS_MASK (0x0000FF00) | ||
333 | #define MPI_SCSI_DEVICE_TM_BUS_SHIFT (8) | ||
334 | #define MPI_SCSI_DEVICE_TM_INIT_ID_MASK (0x00FF0000) | ||
335 | #define MPI_SCSI_DEVICE_TM_INIT_ID_SHIFT (16) | ||
238 | 336 | ||
239 | #define MPI_FC_PORT_PGAD_PORT_MASK (0xF0000000) | 337 | #define MPI_FC_PORT_PGAD_PORT_MASK (0xF0000000) |
240 | #define MPI_FC_PORT_PGAD_PORT_SHIFT (28) | 338 | #define MPI_FC_PORT_PGAD_PORT_SHIFT (28) |
@@ -260,6 +358,20 @@ typedef struct _CONFIG_EXTENDED_PAGE_HEADER | |||
260 | #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_MASK (0x000000FF) | 358 | #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_MASK (0x000000FF) |
261 | #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_SHIFT (0) | 359 | #define MPI_PHYSDISK_PGAD_PHYSDISKNUM_SHIFT (0) |
262 | 360 | ||
361 | #define MPI_SAS_EXPAND_PGAD_FORM_MASK (0xF0000000) | ||
362 | #define MPI_SAS_EXPAND_PGAD_FORM_SHIFT (28) | ||
363 | #define MPI_SAS_EXPAND_PGAD_FORM_GET_NEXT_HANDLE (0x00000000) | ||
364 | #define MPI_SAS_EXPAND_PGAD_FORM_HANDLE_PHY_NUM (0x00000001) | ||
365 | #define MPI_SAS_EXPAND_PGAD_FORM_HANDLE (0x00000002) | ||
366 | #define MPI_SAS_EXPAND_PGAD_GNH_MASK_HANDLE (0x0000FFFF) | ||
367 | #define MPI_SAS_EXPAND_PGAD_GNH_SHIFT_HANDLE (0) | ||
368 | #define MPI_SAS_EXPAND_PGAD_HPN_MASK_PHY (0x00FF0000) | ||
369 | #define MPI_SAS_EXPAND_PGAD_HPN_SHIFT_PHY (16) | ||
370 | #define MPI_SAS_EXPAND_PGAD_HPN_MASK_HANDLE (0x0000FFFF) | ||
371 | #define MPI_SAS_EXPAND_PGAD_HPN_SHIFT_HANDLE (0) | ||
372 | #define MPI_SAS_EXPAND_PGAD_H_MASK_HANDLE (0x0000FFFF) | ||
373 | #define MPI_SAS_EXPAND_PGAD_H_SHIFT_HANDLE (0) | ||
374 | |||
263 | #define MPI_SAS_DEVICE_PGAD_FORM_MASK (0xF0000000) | 375 | #define MPI_SAS_DEVICE_PGAD_FORM_MASK (0xF0000000) |
264 | #define MPI_SAS_DEVICE_PGAD_FORM_SHIFT (28) | 376 | #define MPI_SAS_DEVICE_PGAD_FORM_SHIFT (28) |
265 | #define MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE (0x00000000) | 377 | #define MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE (0x00000000) |
@@ -274,10 +386,24 @@ typedef struct _CONFIG_EXTENDED_PAGE_HEADER | |||
274 | #define MPI_SAS_DEVICE_PGAD_H_HANDLE_MASK (0x0000FFFF) | 386 | #define MPI_SAS_DEVICE_PGAD_H_HANDLE_MASK (0x0000FFFF) |
275 | #define MPI_SAS_DEVICE_PGAD_H_HANDLE_SHIFT (0) | 387 | #define MPI_SAS_DEVICE_PGAD_H_HANDLE_SHIFT (0) |
276 | 388 | ||
277 | #define MPI_SAS_PHY_PGAD_PHY_NUMBER_MASK (0x00FF0000) | 389 | #define MPI_SAS_PHY_PGAD_FORM_MASK (0xF0000000) |
278 | #define MPI_SAS_PHY_PGAD_PHY_NUMBER_SHIFT (16) | 390 | #define MPI_SAS_PHY_PGAD_FORM_SHIFT (28) |
279 | #define MPI_SAS_PHY_PGAD_DEVHANDLE_MASK (0x0000FFFF) | 391 | #define MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER (0x0) |
280 | #define MPI_SAS_PHY_PGAD_DEVHANDLE_SHIFT (0) | 392 | #define MPI_SAS_PHY_PGAD_FORM_PHY_TBL_INDEX (0x1) |
393 | #define MPI_SAS_PHY_PGAD_PHY_NUMBER_MASK (0x000000FF) | ||
394 | #define MPI_SAS_PHY_PGAD_PHY_NUMBER_SHIFT (0) | ||
395 | #define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_MASK (0x0000FFFF) | ||
396 | #define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_SHIFT (0) | ||
397 | |||
398 | #define MPI_SAS_ENCLOS_PGAD_FORM_MASK (0xF0000000) | ||
399 | #define MPI_SAS_ENCLOS_PGAD_FORM_SHIFT (28) | ||
400 | #define MPI_SAS_ENCLOS_PGAD_FORM_GET_NEXT_HANDLE (0x00000000) | ||
401 | #define MPI_SAS_ENCLOS_PGAD_FORM_HANDLE (0x00000001) | ||
402 | #define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_MASK (0x0000FFFF) | ||
403 | #define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_SHIFT (0) | ||
404 | #define MPI_SAS_ENCLOS_PGAD_H_HANDLE_MASK (0x0000FFFF) | ||
405 | #define MPI_SAS_ENCLOS_PGAD_H_HANDLE_SHIFT (0) | ||
406 | |||
281 | 407 | ||
282 | 408 | ||
283 | /**************************************************************************** | 409 | /**************************************************************************** |
@@ -294,7 +420,7 @@ typedef struct _MSG_CONFIG | |||
294 | U8 MsgFlags; /* 07h */ | 420 | U8 MsgFlags; /* 07h */ |
295 | U32 MsgContext; /* 08h */ | 421 | U32 MsgContext; /* 08h */ |
296 | U8 Reserved2[8]; /* 0Ch */ | 422 | U8 Reserved2[8]; /* 0Ch */ |
297 | fCONFIG_PAGE_HEADER Header; /* 14h */ | 423 | CONFIG_PAGE_HEADER Header; /* 14h */ |
298 | U32 PageAddress; /* 18h */ | 424 | U32 PageAddress; /* 18h */ |
299 | SGE_IO_UNION PageBufferSGE; /* 1Ch */ | 425 | SGE_IO_UNION PageBufferSGE; /* 1Ch */ |
300 | } MSG_CONFIG, MPI_POINTER PTR_MSG_CONFIG, | 426 | } MSG_CONFIG, MPI_POINTER PTR_MSG_CONFIG, |
@@ -327,7 +453,7 @@ typedef struct _MSG_CONFIG_REPLY | |||
327 | U8 Reserved2[2]; /* 0Ch */ | 453 | U8 Reserved2[2]; /* 0Ch */ |
328 | U16 IOCStatus; /* 0Eh */ | 454 | U16 IOCStatus; /* 0Eh */ |
329 | U32 IOCLogInfo; /* 10h */ | 455 | U32 IOCLogInfo; /* 10h */ |
330 | fCONFIG_PAGE_HEADER Header; /* 14h */ | 456 | CONFIG_PAGE_HEADER Header; /* 14h */ |
331 | } MSG_CONFIG_REPLY, MPI_POINTER PTR_MSG_CONFIG_REPLY, | 457 | } MSG_CONFIG_REPLY, MPI_POINTER PTR_MSG_CONFIG_REPLY, |
332 | ConfigReply_t, MPI_POINTER pConfigReply_t; | 458 | ConfigReply_t, MPI_POINTER pConfigReply_t; |
333 | 459 | ||
@@ -349,6 +475,8 @@ typedef struct _MSG_CONFIG_REPLY | |||
349 | #define MPI_MANUFACTPAGE_DEVICEID_FC929 (0x0622) | 475 | #define MPI_MANUFACTPAGE_DEVICEID_FC929 (0x0622) |
350 | #define MPI_MANUFACTPAGE_DEVICEID_FC919X (0x0628) | 476 | #define MPI_MANUFACTPAGE_DEVICEID_FC919X (0x0628) |
351 | #define MPI_MANUFACTPAGE_DEVICEID_FC929X (0x0626) | 477 | #define MPI_MANUFACTPAGE_DEVICEID_FC929X (0x0626) |
478 | #define MPI_MANUFACTPAGE_DEVICEID_FC939X (0x0642) | ||
479 | #define MPI_MANUFACTPAGE_DEVICEID_FC949X (0x0640) | ||
352 | /* SCSI */ | 480 | /* SCSI */ |
353 | #define MPI_MANUFACTPAGE_DEVID_53C1030 (0x0030) | 481 | #define MPI_MANUFACTPAGE_DEVID_53C1030 (0x0030) |
354 | #define MPI_MANUFACTPAGE_DEVID_53C1030ZC (0x0031) | 482 | #define MPI_MANUFACTPAGE_DEVID_53C1030ZC (0x0031) |
@@ -358,18 +486,25 @@ typedef struct _MSG_CONFIG_REPLY | |||
358 | #define MPI_MANUFACTPAGE_DEVID_53C1035ZC (0x0041) | 486 | #define MPI_MANUFACTPAGE_DEVID_53C1035ZC (0x0041) |
359 | /* SAS */ | 487 | /* SAS */ |
360 | #define MPI_MANUFACTPAGE_DEVID_SAS1064 (0x0050) | 488 | #define MPI_MANUFACTPAGE_DEVID_SAS1064 (0x0050) |
489 | #define MPI_MANUFACTPAGE_DEVID_SAS1064A (0x005C) | ||
490 | #define MPI_MANUFACTPAGE_DEVID_SAS1064E (0x0056) | ||
491 | #define MPI_MANUFACTPAGE_DEVID_SAS1066 (0x005E) | ||
492 | #define MPI_MANUFACTPAGE_DEVID_SAS1066E (0x005A) | ||
493 | #define MPI_MANUFACTPAGE_DEVID_SAS1068 (0x0054) | ||
494 | #define MPI_MANUFACTPAGE_DEVID_SAS1068E (0x0058) | ||
495 | #define MPI_MANUFACTPAGE_DEVID_SAS1078 (0x0060) | ||
361 | 496 | ||
362 | 497 | ||
363 | typedef struct _CONFIG_PAGE_MANUFACTURING_0 | 498 | typedef struct _CONFIG_PAGE_MANUFACTURING_0 |
364 | { | 499 | { |
365 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 500 | CONFIG_PAGE_HEADER Header; /* 00h */ |
366 | U8 ChipName[16]; /* 04h */ | 501 | U8 ChipName[16]; /* 04h */ |
367 | U8 ChipRevision[8]; /* 14h */ | 502 | U8 ChipRevision[8]; /* 14h */ |
368 | U8 BoardName[16]; /* 1Ch */ | 503 | U8 BoardName[16]; /* 1Ch */ |
369 | U8 BoardAssembly[16]; /* 2Ch */ | 504 | U8 BoardAssembly[16]; /* 2Ch */ |
370 | U8 BoardTracerNumber[16]; /* 3Ch */ | 505 | U8 BoardTracerNumber[16]; /* 3Ch */ |
371 | 506 | ||
372 | } fCONFIG_PAGE_MANUFACTURING_0, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_0, | 507 | } CONFIG_PAGE_MANUFACTURING_0, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_0, |
373 | ManufacturingPage0_t, MPI_POINTER pManufacturingPage0_t; | 508 | ManufacturingPage0_t, MPI_POINTER pManufacturingPage0_t; |
374 | 509 | ||
375 | #define MPI_MANUFACTURING0_PAGEVERSION (0x00) | 510 | #define MPI_MANUFACTURING0_PAGEVERSION (0x00) |
@@ -377,9 +512,9 @@ typedef struct _CONFIG_PAGE_MANUFACTURING_0 | |||
377 | 512 | ||
378 | typedef struct _CONFIG_PAGE_MANUFACTURING_1 | 513 | typedef struct _CONFIG_PAGE_MANUFACTURING_1 |
379 | { | 514 | { |
380 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 515 | CONFIG_PAGE_HEADER Header; /* 00h */ |
381 | U8 VPD[256]; /* 04h */ | 516 | U8 VPD[256]; /* 04h */ |
382 | } fCONFIG_PAGE_MANUFACTURING_1, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_1, | 517 | } CONFIG_PAGE_MANUFACTURING_1, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_1, |
383 | ManufacturingPage1_t, MPI_POINTER pManufacturingPage1_t; | 518 | ManufacturingPage1_t, MPI_POINTER pManufacturingPage1_t; |
384 | 519 | ||
385 | #define MPI_MANUFACTURING1_PAGEVERSION (0x00) | 520 | #define MPI_MANUFACTURING1_PAGEVERSION (0x00) |
@@ -404,10 +539,10 @@ typedef struct _MPI_CHIP_REVISION_ID | |||
404 | 539 | ||
405 | typedef struct _CONFIG_PAGE_MANUFACTURING_2 | 540 | typedef struct _CONFIG_PAGE_MANUFACTURING_2 |
406 | { | 541 | { |
407 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 542 | CONFIG_PAGE_HEADER Header; /* 00h */ |
408 | MPI_CHIP_REVISION_ID ChipId; /* 04h */ | 543 | MPI_CHIP_REVISION_ID ChipId; /* 04h */ |
409 | U32 HwSettings[MPI_MAN_PAGE_2_HW_SETTINGS_WORDS];/* 08h */ | 544 | U32 HwSettings[MPI_MAN_PAGE_2_HW_SETTINGS_WORDS];/* 08h */ |
410 | } fCONFIG_PAGE_MANUFACTURING_2, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_2, | 545 | } CONFIG_PAGE_MANUFACTURING_2, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_2, |
411 | ManufacturingPage2_t, MPI_POINTER pManufacturingPage2_t; | 546 | ManufacturingPage2_t, MPI_POINTER pManufacturingPage2_t; |
412 | 547 | ||
413 | #define MPI_MANUFACTURING2_PAGEVERSION (0x00) | 548 | #define MPI_MANUFACTURING2_PAGEVERSION (0x00) |
@@ -423,10 +558,10 @@ typedef struct _CONFIG_PAGE_MANUFACTURING_2 | |||
423 | 558 | ||
424 | typedef struct _CONFIG_PAGE_MANUFACTURING_3 | 559 | typedef struct _CONFIG_PAGE_MANUFACTURING_3 |
425 | { | 560 | { |
426 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 561 | CONFIG_PAGE_HEADER Header; /* 00h */ |
427 | MPI_CHIP_REVISION_ID ChipId; /* 04h */ | 562 | MPI_CHIP_REVISION_ID ChipId; /* 04h */ |
428 | U32 Info[MPI_MAN_PAGE_3_INFO_WORDS];/* 08h */ | 563 | U32 Info[MPI_MAN_PAGE_3_INFO_WORDS];/* 08h */ |
429 | } fCONFIG_PAGE_MANUFACTURING_3, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_3, | 564 | } CONFIG_PAGE_MANUFACTURING_3, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_3, |
430 | ManufacturingPage3_t, MPI_POINTER pManufacturingPage3_t; | 565 | ManufacturingPage3_t, MPI_POINTER pManufacturingPage3_t; |
431 | 566 | ||
432 | #define MPI_MANUFACTURING3_PAGEVERSION (0x00) | 567 | #define MPI_MANUFACTURING3_PAGEVERSION (0x00) |
@@ -434,7 +569,7 @@ typedef struct _CONFIG_PAGE_MANUFACTURING_3 | |||
434 | 569 | ||
435 | typedef struct _CONFIG_PAGE_MANUFACTURING_4 | 570 | typedef struct _CONFIG_PAGE_MANUFACTURING_4 |
436 | { | 571 | { |
437 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 572 | CONFIG_PAGE_HEADER Header; /* 00h */ |
438 | U32 Reserved1; /* 04h */ | 573 | U32 Reserved1; /* 04h */ |
439 | U8 InfoOffset0; /* 08h */ | 574 | U8 InfoOffset0; /* 08h */ |
440 | U8 InfoSize0; /* 09h */ | 575 | U8 InfoSize0; /* 09h */ |
@@ -447,10 +582,23 @@ typedef struct _CONFIG_PAGE_MANUFACTURING_4 | |||
447 | U32 ISVolumeSettings; /* 48h */ | 582 | U32 ISVolumeSettings; /* 48h */ |
448 | U32 IMEVolumeSettings; /* 4Ch */ | 583 | U32 IMEVolumeSettings; /* 4Ch */ |
449 | U32 IMVolumeSettings; /* 50h */ | 584 | U32 IMVolumeSettings; /* 50h */ |
450 | } fCONFIG_PAGE_MANUFACTURING_4, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_4, | 585 | U32 Reserved3; /* 54h */ |
586 | U32 Reserved4; /* 58h */ | ||
587 | U8 ISDataScrubRate; /* 5Ch */ | ||
588 | U8 ISResyncRate; /* 5Dh */ | ||
589 | U16 Reserved5; /* 5Eh */ | ||
590 | U8 IMEDataScrubRate; /* 60h */ | ||
591 | U8 IMEResyncRate; /* 61h */ | ||
592 | U16 Reserved6; /* 62h */ | ||
593 | U8 IMDataScrubRate; /* 64h */ | ||
594 | U8 IMResyncRate; /* 65h */ | ||
595 | U16 Reserved7; /* 66h */ | ||
596 | U32 Reserved8; /* 68h */ | ||
597 | U32 Reserved9; /* 6Ch */ | ||
598 | } CONFIG_PAGE_MANUFACTURING_4, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_4, | ||
451 | ManufacturingPage4_t, MPI_POINTER pManufacturingPage4_t; | 599 | ManufacturingPage4_t, MPI_POINTER pManufacturingPage4_t; |
452 | 600 | ||
453 | #define MPI_MANUFACTURING4_PAGEVERSION (0x01) | 601 | #define MPI_MANUFACTURING4_PAGEVERSION (0x02) |
454 | 602 | ||
455 | /* defines for the Flags field */ | 603 | /* defines for the Flags field */ |
456 | #define MPI_MANPAGE4_IR_NO_MIX_SAS_SATA (0x01) | 604 | #define MPI_MANPAGE4_IR_NO_MIX_SAS_SATA (0x01) |
@@ -458,19 +606,25 @@ typedef struct _CONFIG_PAGE_MANUFACTURING_4 | |||
458 | 606 | ||
459 | typedef struct _CONFIG_PAGE_MANUFACTURING_5 | 607 | typedef struct _CONFIG_PAGE_MANUFACTURING_5 |
460 | { | 608 | { |
461 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 609 | CONFIG_PAGE_HEADER Header; /* 00h */ |
462 | U64 BaseWWID; /* 04h */ | 610 | U64 BaseWWID; /* 04h */ |
463 | } fCONFIG_PAGE_MANUFACTURING_5, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_5, | 611 | U8 Flags; /* 0Ch */ |
612 | U8 Reserved1; /* 0Dh */ | ||
613 | U16 Reserved2; /* 0Eh */ | ||
614 | } CONFIG_PAGE_MANUFACTURING_5, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_5, | ||
464 | ManufacturingPage5_t, MPI_POINTER pManufacturingPage5_t; | 615 | ManufacturingPage5_t, MPI_POINTER pManufacturingPage5_t; |
465 | 616 | ||
466 | #define MPI_MANUFACTURING5_PAGEVERSION (0x00) | 617 | #define MPI_MANUFACTURING5_PAGEVERSION (0x01) |
618 | |||
619 | /* defines for the Flags field */ | ||
620 | #define MPI_MANPAGE5_TWO_WWID_PER_PHY (0x01) | ||
467 | 621 | ||
468 | 622 | ||
469 | typedef struct _CONFIG_PAGE_MANUFACTURING_6 | 623 | typedef struct _CONFIG_PAGE_MANUFACTURING_6 |
470 | { | 624 | { |
471 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 625 | CONFIG_PAGE_HEADER Header; /* 00h */ |
472 | U32 ProductSpecificInfo;/* 04h */ | 626 | U32 ProductSpecificInfo;/* 04h */ |
473 | } fCONFIG_PAGE_MANUFACTURING_6, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_6, | 627 | } CONFIG_PAGE_MANUFACTURING_6, MPI_POINTER PTR_CONFIG_PAGE_MANUFACTURING_6, |
474 | ManufacturingPage6_t, MPI_POINTER pManufacturingPage6_t; | 628 | ManufacturingPage6_t, MPI_POINTER pManufacturingPage6_t; |
475 | 629 | ||
476 | #define MPI_MANUFACTURING6_PAGEVERSION (0x00) | 630 | #define MPI_MANUFACTURING6_PAGEVERSION (0x00) |
@@ -482,9 +636,9 @@ typedef struct _CONFIG_PAGE_MANUFACTURING_6 | |||
482 | 636 | ||
483 | typedef struct _CONFIG_PAGE_IO_UNIT_0 | 637 | typedef struct _CONFIG_PAGE_IO_UNIT_0 |
484 | { | 638 | { |
485 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 639 | CONFIG_PAGE_HEADER Header; /* 00h */ |
486 | U64 UniqueValue; /* 04h */ | 640 | U64 UniqueValue; /* 04h */ |
487 | } fCONFIG_PAGE_IO_UNIT_0, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_0, | 641 | } CONFIG_PAGE_IO_UNIT_0, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_0, |
488 | IOUnitPage0_t, MPI_POINTER pIOUnitPage0_t; | 642 | IOUnitPage0_t, MPI_POINTER pIOUnitPage0_t; |
489 | 643 | ||
490 | #define MPI_IOUNITPAGE0_PAGEVERSION (0x00) | 644 | #define MPI_IOUNITPAGE0_PAGEVERSION (0x00) |
@@ -492,9 +646,9 @@ typedef struct _CONFIG_PAGE_IO_UNIT_0 | |||
492 | 646 | ||
493 | typedef struct _CONFIG_PAGE_IO_UNIT_1 | 647 | typedef struct _CONFIG_PAGE_IO_UNIT_1 |
494 | { | 648 | { |
495 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 649 | CONFIG_PAGE_HEADER Header; /* 00h */ |
496 | U32 Flags; /* 04h */ | 650 | U32 Flags; /* 04h */ |
497 | } fCONFIG_PAGE_IO_UNIT_1, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_1, | 651 | } CONFIG_PAGE_IO_UNIT_1, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_1, |
498 | IOUnitPage1_t, MPI_POINTER pIOUnitPage1_t; | 652 | IOUnitPage1_t, MPI_POINTER pIOUnitPage1_t; |
499 | 653 | ||
500 | #define MPI_IOUNITPAGE1_PAGEVERSION (0x01) | 654 | #define MPI_IOUNITPAGE1_PAGEVERSION (0x01) |
@@ -524,14 +678,15 @@ typedef struct _MPI_ADAPTER_INFO | |||
524 | 678 | ||
525 | typedef struct _CONFIG_PAGE_IO_UNIT_2 | 679 | typedef struct _CONFIG_PAGE_IO_UNIT_2 |
526 | { | 680 | { |
527 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 681 | CONFIG_PAGE_HEADER Header; /* 00h */ |
528 | U32 Flags; /* 04h */ | 682 | U32 Flags; /* 04h */ |
529 | U32 BiosVersion; /* 08h */ | 683 | U32 BiosVersion; /* 08h */ |
530 | MPI_ADAPTER_INFO AdapterOrder[4]; /* 0Ch */ | 684 | MPI_ADAPTER_INFO AdapterOrder[4]; /* 0Ch */ |
531 | } fCONFIG_PAGE_IO_UNIT_2, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_2, | 685 | U32 Reserved1; /* 1Ch */ |
686 | } CONFIG_PAGE_IO_UNIT_2, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_2, | ||
532 | IOUnitPage2_t, MPI_POINTER pIOUnitPage2_t; | 687 | IOUnitPage2_t, MPI_POINTER pIOUnitPage2_t; |
533 | 688 | ||
534 | #define MPI_IOUNITPAGE2_PAGEVERSION (0x00) | 689 | #define MPI_IOUNITPAGE2_PAGEVERSION (0x02) |
535 | 690 | ||
536 | #define MPI_IOUNITPAGE2_FLAGS_PAUSE_ON_ERROR (0x00000002) | 691 | #define MPI_IOUNITPAGE2_FLAGS_PAUSE_ON_ERROR (0x00000002) |
537 | #define MPI_IOUNITPAGE2_FLAGS_VERBOSE_ENABLE (0x00000004) | 692 | #define MPI_IOUNITPAGE2_FLAGS_VERBOSE_ENABLE (0x00000004) |
@@ -554,12 +709,12 @@ typedef struct _CONFIG_PAGE_IO_UNIT_2 | |||
554 | 709 | ||
555 | typedef struct _CONFIG_PAGE_IO_UNIT_3 | 710 | typedef struct _CONFIG_PAGE_IO_UNIT_3 |
556 | { | 711 | { |
557 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 712 | CONFIG_PAGE_HEADER Header; /* 00h */ |
558 | U8 GPIOCount; /* 04h */ | 713 | U8 GPIOCount; /* 04h */ |
559 | U8 Reserved1; /* 05h */ | 714 | U8 Reserved1; /* 05h */ |
560 | U16 Reserved2; /* 06h */ | 715 | U16 Reserved2; /* 06h */ |
561 | U16 GPIOVal[MPI_IO_UNIT_PAGE_3_GPIO_VAL_MAX]; /* 08h */ | 716 | U16 GPIOVal[MPI_IO_UNIT_PAGE_3_GPIO_VAL_MAX]; /* 08h */ |
562 | } fCONFIG_PAGE_IO_UNIT_3, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_3, | 717 | } CONFIG_PAGE_IO_UNIT_3, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_3, |
563 | IOUnitPage3_t, MPI_POINTER pIOUnitPage3_t; | 718 | IOUnitPage3_t, MPI_POINTER pIOUnitPage3_t; |
564 | 719 | ||
565 | #define MPI_IOUNITPAGE3_PAGEVERSION (0x01) | 720 | #define MPI_IOUNITPAGE3_PAGEVERSION (0x01) |
@@ -570,13 +725,24 @@ typedef struct _CONFIG_PAGE_IO_UNIT_3 | |||
570 | #define MPI_IOUNITPAGE3_GPIO_SETTING_ON (0x01) | 725 | #define MPI_IOUNITPAGE3_GPIO_SETTING_ON (0x01) |
571 | 726 | ||
572 | 727 | ||
728 | typedef struct _CONFIG_PAGE_IO_UNIT_4 | ||
729 | { | ||
730 | CONFIG_PAGE_HEADER Header; /* 00h */ | ||
731 | U32 Reserved1; /* 04h */ | ||
732 | SGE_SIMPLE_UNION FWImageSGE; /* 08h */ | ||
733 | } CONFIG_PAGE_IO_UNIT_4, MPI_POINTER PTR_CONFIG_PAGE_IO_UNIT_4, | ||
734 | IOUnitPage4_t, MPI_POINTER pIOUnitPage4_t; | ||
735 | |||
736 | #define MPI_IOUNITPAGE4_PAGEVERSION (0x00) | ||
737 | |||
738 | |||
573 | /**************************************************************************** | 739 | /**************************************************************************** |
574 | * IOC Config Pages | 740 | * IOC Config Pages |
575 | ****************************************************************************/ | 741 | ****************************************************************************/ |
576 | 742 | ||
577 | typedef struct _CONFIG_PAGE_IOC_0 | 743 | typedef struct _CONFIG_PAGE_IOC_0 |
578 | { | 744 | { |
579 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 745 | CONFIG_PAGE_HEADER Header; /* 00h */ |
580 | U32 TotalNVStore; /* 04h */ | 746 | U32 TotalNVStore; /* 04h */ |
581 | U32 FreeNVStore; /* 08h */ | 747 | U32 FreeNVStore; /* 08h */ |
582 | U16 VendorID; /* 0Ch */ | 748 | U16 VendorID; /* 0Ch */ |
@@ -586,7 +752,7 @@ typedef struct _CONFIG_PAGE_IOC_0 | |||
586 | U32 ClassCode; /* 14h */ | 752 | U32 ClassCode; /* 14h */ |
587 | U16 SubsystemVendorID; /* 18h */ | 753 | U16 SubsystemVendorID; /* 18h */ |
588 | U16 SubsystemID; /* 1Ah */ | 754 | U16 SubsystemID; /* 1Ah */ |
589 | } fCONFIG_PAGE_IOC_0, MPI_POINTER PTR_CONFIG_PAGE_IOC_0, | 755 | } CONFIG_PAGE_IOC_0, MPI_POINTER PTR_CONFIG_PAGE_IOC_0, |
590 | IOCPage0_t, MPI_POINTER pIOCPage0_t; | 756 | IOCPage0_t, MPI_POINTER pIOCPage0_t; |
591 | 757 | ||
592 | #define MPI_IOCPAGE0_PAGEVERSION (0x01) | 758 | #define MPI_IOCPAGE0_PAGEVERSION (0x01) |
@@ -594,23 +760,19 @@ typedef struct _CONFIG_PAGE_IOC_0 | |||
594 | 760 | ||
595 | typedef struct _CONFIG_PAGE_IOC_1 | 761 | typedef struct _CONFIG_PAGE_IOC_1 |
596 | { | 762 | { |
597 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 763 | CONFIG_PAGE_HEADER Header; /* 00h */ |
598 | U32 Flags; /* 04h */ | 764 | U32 Flags; /* 04h */ |
599 | U32 CoalescingTimeout; /* 08h */ | 765 | U32 CoalescingTimeout; /* 08h */ |
600 | U8 CoalescingDepth; /* 0Ch */ | 766 | U8 CoalescingDepth; /* 0Ch */ |
601 | U8 PCISlotNum; /* 0Dh */ | 767 | U8 PCISlotNum; /* 0Dh */ |
602 | U8 Reserved[2]; /* 0Eh */ | 768 | U8 Reserved[2]; /* 0Eh */ |
603 | } fCONFIG_PAGE_IOC_1, MPI_POINTER PTR_CONFIG_PAGE_IOC_1, | 769 | } CONFIG_PAGE_IOC_1, MPI_POINTER PTR_CONFIG_PAGE_IOC_1, |
604 | IOCPage1_t, MPI_POINTER pIOCPage1_t; | 770 | IOCPage1_t, MPI_POINTER pIOCPage1_t; |
605 | 771 | ||
606 | #define MPI_IOCPAGE1_PAGEVERSION (0x01) | 772 | #define MPI_IOCPAGE1_PAGEVERSION (0x02) |
607 | 773 | ||
608 | /* defines for the Flags field */ | 774 | /* defines for the Flags field */ |
609 | #define MPI_IOCPAGE1_EEDP_HOST_SUPPORTS_DIF (0x08000000) | 775 | #define MPI_IOCPAGE1_INITIATOR_CONTEXT_REPLY_DISABLE (0x00000010) |
610 | #define MPI_IOCPAGE1_EEDP_MODE_MASK (0x07000000) | ||
611 | #define MPI_IOCPAGE1_EEDP_MODE_OFF (0x00000000) | ||
612 | #define MPI_IOCPAGE1_EEDP_MODE_T10 (0x01000000) | ||
613 | #define MPI_IOCPAGE1_EEDP_MODE_LSI_1 (0x02000000) | ||
614 | #define MPI_IOCPAGE1_REPLY_COALESCING (0x00000001) | 776 | #define MPI_IOCPAGE1_REPLY_COALESCING (0x00000001) |
615 | 777 | ||
616 | #define MPI_IOCPAGE1_PCISLOTNUM_UNKNOWN (0xFF) | 778 | #define MPI_IOCPAGE1_PCISLOTNUM_UNKNOWN (0xFF) |
@@ -625,7 +787,7 @@ typedef struct _CONFIG_PAGE_IOC_2_RAID_VOL | |||
625 | U8 VolumeType; /* 04h */ | 787 | U8 VolumeType; /* 04h */ |
626 | U8 Flags; /* 05h */ | 788 | U8 Flags; /* 05h */ |
627 | U16 Reserved3; /* 06h */ | 789 | U16 Reserved3; /* 06h */ |
628 | } fCONFIG_PAGE_IOC_2_RAID_VOL, MPI_POINTER PTR_CONFIG_PAGE_IOC_2_RAID_VOL, | 790 | } CONFIG_PAGE_IOC_2_RAID_VOL, MPI_POINTER PTR_CONFIG_PAGE_IOC_2_RAID_VOL, |
629 | ConfigPageIoc2RaidVol_t, MPI_POINTER pConfigPageIoc2RaidVol_t; | 791 | ConfigPageIoc2RaidVol_t, MPI_POINTER pConfigPageIoc2RaidVol_t; |
630 | 792 | ||
631 | /* IOC Page 2 Volume RAID Type values, also used in RAID Volume pages */ | 793 | /* IOC Page 2 Volume RAID Type values, also used in RAID Volume pages */ |
@@ -648,14 +810,14 @@ typedef struct _CONFIG_PAGE_IOC_2_RAID_VOL | |||
648 | 810 | ||
649 | typedef struct _CONFIG_PAGE_IOC_2 | 811 | typedef struct _CONFIG_PAGE_IOC_2 |
650 | { | 812 | { |
651 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 813 | CONFIG_PAGE_HEADER Header; /* 00h */ |
652 | U32 CapabilitiesFlags; /* 04h */ | 814 | U32 CapabilitiesFlags; /* 04h */ |
653 | U8 NumActiveVolumes; /* 08h */ | 815 | U8 NumActiveVolumes; /* 08h */ |
654 | U8 MaxVolumes; /* 09h */ | 816 | U8 MaxVolumes; /* 09h */ |
655 | U8 NumActivePhysDisks; /* 0Ah */ | 817 | U8 NumActivePhysDisks; /* 0Ah */ |
656 | U8 MaxPhysDisks; /* 0Bh */ | 818 | U8 MaxPhysDisks; /* 0Bh */ |
657 | fCONFIG_PAGE_IOC_2_RAID_VOL RaidVolume[MPI_IOC_PAGE_2_RAID_VOLUME_MAX];/* 0Ch */ | 819 | CONFIG_PAGE_IOC_2_RAID_VOL RaidVolume[MPI_IOC_PAGE_2_RAID_VOLUME_MAX];/* 0Ch */ |
658 | } fCONFIG_PAGE_IOC_2, MPI_POINTER PTR_CONFIG_PAGE_IOC_2, | 820 | } CONFIG_PAGE_IOC_2, MPI_POINTER PTR_CONFIG_PAGE_IOC_2, |
659 | IOCPage2_t, MPI_POINTER pIOCPage2_t; | 821 | IOCPage2_t, MPI_POINTER pIOCPage2_t; |
660 | 822 | ||
661 | #define MPI_IOCPAGE2_PAGEVERSION (0x02) | 823 | #define MPI_IOCPAGE2_PAGEVERSION (0x02) |
@@ -689,12 +851,12 @@ typedef struct _IOC_3_PHYS_DISK | |||
689 | 851 | ||
690 | typedef struct _CONFIG_PAGE_IOC_3 | 852 | typedef struct _CONFIG_PAGE_IOC_3 |
691 | { | 853 | { |
692 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 854 | CONFIG_PAGE_HEADER Header; /* 00h */ |
693 | U8 NumPhysDisks; /* 04h */ | 855 | U8 NumPhysDisks; /* 04h */ |
694 | U8 Reserved1; /* 05h */ | 856 | U8 Reserved1; /* 05h */ |
695 | U16 Reserved2; /* 06h */ | 857 | U16 Reserved2; /* 06h */ |
696 | IOC_3_PHYS_DISK PhysDisk[MPI_IOC_PAGE_3_PHYSDISK_MAX]; /* 08h */ | 858 | IOC_3_PHYS_DISK PhysDisk[MPI_IOC_PAGE_3_PHYSDISK_MAX]; /* 08h */ |
697 | } fCONFIG_PAGE_IOC_3, MPI_POINTER PTR_CONFIG_PAGE_IOC_3, | 859 | } CONFIG_PAGE_IOC_3, MPI_POINTER PTR_CONFIG_PAGE_IOC_3, |
698 | IOCPage3_t, MPI_POINTER pIOCPage3_t; | 860 | IOCPage3_t, MPI_POINTER pIOCPage3_t; |
699 | 861 | ||
700 | #define MPI_IOCPAGE3_PAGEVERSION (0x00) | 862 | #define MPI_IOCPAGE3_PAGEVERSION (0x00) |
@@ -718,12 +880,12 @@ typedef struct _IOC_4_SEP | |||
718 | 880 | ||
719 | typedef struct _CONFIG_PAGE_IOC_4 | 881 | typedef struct _CONFIG_PAGE_IOC_4 |
720 | { | 882 | { |
721 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 883 | CONFIG_PAGE_HEADER Header; /* 00h */ |
722 | U8 ActiveSEP; /* 04h */ | 884 | U8 ActiveSEP; /* 04h */ |
723 | U8 MaxSEP; /* 05h */ | 885 | U8 MaxSEP; /* 05h */ |
724 | U16 Reserved1; /* 06h */ | 886 | U16 Reserved1; /* 06h */ |
725 | IOC_4_SEP SEP[MPI_IOC_PAGE_4_SEP_MAX]; /* 08h */ | 887 | IOC_4_SEP SEP[MPI_IOC_PAGE_4_SEP_MAX]; /* 08h */ |
726 | } fCONFIG_PAGE_IOC_4, MPI_POINTER PTR_CONFIG_PAGE_IOC_4, | 888 | } CONFIG_PAGE_IOC_4, MPI_POINTER PTR_CONFIG_PAGE_IOC_4, |
727 | IOCPage4_t, MPI_POINTER pIOCPage4_t; | 889 | IOCPage4_t, MPI_POINTER pIOCPage4_t; |
728 | 890 | ||
729 | #define MPI_IOCPAGE4_PAGEVERSION (0x00) | 891 | #define MPI_IOCPAGE4_PAGEVERSION (0x00) |
@@ -751,25 +913,25 @@ typedef struct _IOC_5_HOT_SPARE | |||
751 | 913 | ||
752 | typedef struct _CONFIG_PAGE_IOC_5 | 914 | typedef struct _CONFIG_PAGE_IOC_5 |
753 | { | 915 | { |
754 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 916 | CONFIG_PAGE_HEADER Header; /* 00h */ |
755 | U32 Reserved1; /* 04h */ | 917 | U32 Reserved1; /* 04h */ |
756 | U8 NumHotSpares; /* 08h */ | 918 | U8 NumHotSpares; /* 08h */ |
757 | U8 Reserved2; /* 09h */ | 919 | U8 Reserved2; /* 09h */ |
758 | U16 Reserved3; /* 0Ah */ | 920 | U16 Reserved3; /* 0Ah */ |
759 | IOC_5_HOT_SPARE HotSpare[MPI_IOC_PAGE_5_HOT_SPARE_MAX]; /* 0Ch */ | 921 | IOC_5_HOT_SPARE HotSpare[MPI_IOC_PAGE_5_HOT_SPARE_MAX]; /* 0Ch */ |
760 | } fCONFIG_PAGE_IOC_5, MPI_POINTER PTR_CONFIG_PAGE_IOC_5, | 922 | } CONFIG_PAGE_IOC_5, MPI_POINTER PTR_CONFIG_PAGE_IOC_5, |
761 | IOCPage5_t, MPI_POINTER pIOCPage5_t; | 923 | IOCPage5_t, MPI_POINTER pIOCPage5_t; |
762 | 924 | ||
763 | #define MPI_IOCPAGE5_PAGEVERSION (0x00) | 925 | #define MPI_IOCPAGE5_PAGEVERSION (0x00) |
764 | 926 | ||
765 | 927 | ||
766 | /**************************************************************************** | 928 | /**************************************************************************** |
767 | * BIOS Port Config Pages | 929 | * BIOS Config Pages |
768 | ****************************************************************************/ | 930 | ****************************************************************************/ |
769 | 931 | ||
770 | typedef struct _CONFIG_PAGE_BIOS_1 | 932 | typedef struct _CONFIG_PAGE_BIOS_1 |
771 | { | 933 | { |
772 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 934 | CONFIG_PAGE_HEADER Header; /* 00h */ |
773 | U32 BiosOptions; /* 04h */ | 935 | U32 BiosOptions; /* 04h */ |
774 | U32 IOCSettings; /* 08h */ | 936 | U32 IOCSettings; /* 08h */ |
775 | U32 Reserved1; /* 0Ch */ | 937 | U32 Reserved1; /* 0Ch */ |
@@ -780,10 +942,10 @@ typedef struct _CONFIG_PAGE_BIOS_1 | |||
780 | U16 IOTimeoutSequential; /* 1Ah */ | 942 | U16 IOTimeoutSequential; /* 1Ah */ |
781 | U16 IOTimeoutOther; /* 1Ch */ | 943 | U16 IOTimeoutOther; /* 1Ch */ |
782 | U16 IOTimeoutBlockDevicesRM; /* 1Eh */ | 944 | U16 IOTimeoutBlockDevicesRM; /* 1Eh */ |
783 | } fCONFIG_PAGE_BIOS_1, MPI_POINTER PTR_CONFIG_PAGE_BIOS_1, | 945 | } CONFIG_PAGE_BIOS_1, MPI_POINTER PTR_CONFIG_PAGE_BIOS_1, |
784 | BIOSPage1_t, MPI_POINTER pBIOSPage1_t; | 946 | BIOSPage1_t, MPI_POINTER pBIOSPage1_t; |
785 | 947 | ||
786 | #define MPI_BIOSPAGE1_PAGEVERSION (0x00) | 948 | #define MPI_BIOSPAGE1_PAGEVERSION (0x01) |
787 | 949 | ||
788 | /* values for the BiosOptions field */ | 950 | /* values for the BiosOptions field */ |
789 | #define MPI_BIOSPAGE1_OPTIONS_SPI_ENABLE (0x00000400) | 951 | #define MPI_BIOSPAGE1_OPTIONS_SPI_ENABLE (0x00000400) |
@@ -792,6 +954,13 @@ typedef struct _CONFIG_PAGE_BIOS_1 | |||
792 | #define MPI_BIOSPAGE1_OPTIONS_DISABLE_BIOS (0x00000001) | 954 | #define MPI_BIOSPAGE1_OPTIONS_DISABLE_BIOS (0x00000001) |
793 | 955 | ||
794 | /* values for the IOCSettings field */ | 956 | /* values for the IOCSettings field */ |
957 | #define MPI_BIOSPAGE1_IOCSET_MASK_BOOT_PREFERENCE (0x00030000) | ||
958 | #define MPI_BIOSPAGE1_IOCSET_ENCLOSURE_SLOT_BOOT (0x00000000) | ||
959 | #define MPI_BIOSPAGE1_IOCSET_SAS_ADDRESS_BOOT (0x00010000) | ||
960 | |||
961 | #define MPI_BIOSPAGE1_IOCSET_MASK_MAX_TARGET_SPIN_UP (0x0000F000) | ||
962 | #define MPI_BIOSPAGE1_IOCSET_SHIFT_MAX_TARGET_SPIN_UP (12) | ||
963 | |||
795 | #define MPI_BIOSPAGE1_IOCSET_MASK_SPINUP_DELAY (0x00000F00) | 964 | #define MPI_BIOSPAGE1_IOCSET_MASK_SPINUP_DELAY (0x00000F00) |
796 | #define MPI_BIOSPAGE1_IOCSET_SHIFT_SPINUP_DELAY (8) | 965 | #define MPI_BIOSPAGE1_IOCSET_SHIFT_SPINUP_DELAY (8) |
797 | 966 | ||
@@ -814,6 +983,191 @@ typedef struct _CONFIG_PAGE_BIOS_1 | |||
814 | #define MPI_BIOSPAGE1_DEVSET_DISABLE_NON_RM_LUN (0x00000002) | 983 | #define MPI_BIOSPAGE1_DEVSET_DISABLE_NON_RM_LUN (0x00000002) |
815 | #define MPI_BIOSPAGE1_DEVSET_DISABLE_OTHER_LUN (0x00000001) | 984 | #define MPI_BIOSPAGE1_DEVSET_DISABLE_OTHER_LUN (0x00000001) |
816 | 985 | ||
986 | typedef struct _MPI_BOOT_DEVICE_ADAPTER_ORDER | ||
987 | { | ||
988 | U32 Reserved1; /* 00h */ | ||
989 | U32 Reserved2; /* 04h */ | ||
990 | U32 Reserved3; /* 08h */ | ||
991 | U32 Reserved4; /* 0Ch */ | ||
992 | U32 Reserved5; /* 10h */ | ||
993 | U32 Reserved6; /* 14h */ | ||
994 | U32 Reserved7; /* 18h */ | ||
995 | U32 Reserved8; /* 1Ch */ | ||
996 | U32 Reserved9; /* 20h */ | ||
997 | U32 Reserved10; /* 24h */ | ||
998 | U32 Reserved11; /* 28h */ | ||
999 | U32 Reserved12; /* 2Ch */ | ||
1000 | U32 Reserved13; /* 30h */ | ||
1001 | U32 Reserved14; /* 34h */ | ||
1002 | U32 Reserved15; /* 38h */ | ||
1003 | U32 Reserved16; /* 3Ch */ | ||
1004 | U32 Reserved17; /* 40h */ | ||
1005 | } MPI_BOOT_DEVICE_ADAPTER_ORDER, MPI_POINTER PTR_MPI_BOOT_DEVICE_ADAPTER_ORDER; | ||
1006 | |||
1007 | typedef struct _MPI_BOOT_DEVICE_ADAPTER_NUMBER | ||
1008 | { | ||
1009 | U8 TargetID; /* 00h */ | ||
1010 | U8 Bus; /* 01h */ | ||
1011 | U8 AdapterNumber; /* 02h */ | ||
1012 | U8 Reserved1; /* 03h */ | ||
1013 | U32 Reserved2; /* 04h */ | ||
1014 | U32 Reserved3; /* 08h */ | ||
1015 | U32 Reserved4; /* 0Ch */ | ||
1016 | U8 LUN[8]; /* 10h */ | ||
1017 | U32 Reserved5; /* 18h */ | ||
1018 | U32 Reserved6; /* 1Ch */ | ||
1019 | U32 Reserved7; /* 20h */ | ||
1020 | U32 Reserved8; /* 24h */ | ||
1021 | U32 Reserved9; /* 28h */ | ||
1022 | U32 Reserved10; /* 2Ch */ | ||
1023 | U32 Reserved11; /* 30h */ | ||
1024 | U32 Reserved12; /* 34h */ | ||
1025 | U32 Reserved13; /* 38h */ | ||
1026 | U32 Reserved14; /* 3Ch */ | ||
1027 | U32 Reserved15; /* 40h */ | ||
1028 | } MPI_BOOT_DEVICE_ADAPTER_NUMBER, MPI_POINTER PTR_MPI_BOOT_DEVICE_ADAPTER_NUMBER; | ||
1029 | |||
1030 | typedef struct _MPI_BOOT_DEVICE_PCI_ADDRESS | ||
1031 | { | ||
1032 | U8 TargetID; /* 00h */ | ||
1033 | U8 Bus; /* 01h */ | ||
1034 | U16 PCIAddress; /* 02h */ | ||
1035 | U32 Reserved1; /* 04h */ | ||
1036 | U32 Reserved2; /* 08h */ | ||
1037 | U32 Reserved3; /* 0Ch */ | ||
1038 | U8 LUN[8]; /* 10h */ | ||
1039 | U32 Reserved4; /* 18h */ | ||
1040 | U32 Reserved5; /* 1Ch */ | ||
1041 | U32 Reserved6; /* 20h */ | ||
1042 | U32 Reserved7; /* 24h */ | ||
1043 | U32 Reserved8; /* 28h */ | ||
1044 | U32 Reserved9; /* 2Ch */ | ||
1045 | U32 Reserved10; /* 30h */ | ||
1046 | U32 Reserved11; /* 34h */ | ||
1047 | U32 Reserved12; /* 38h */ | ||
1048 | U32 Reserved13; /* 3Ch */ | ||
1049 | U32 Reserved14; /* 40h */ | ||
1050 | } MPI_BOOT_DEVICE_PCI_ADDRESS, MPI_POINTER PTR_MPI_BOOT_DEVICE_PCI_ADDRESS; | ||
1051 | |||
1052 | typedef struct _MPI_BOOT_DEVICE_SLOT_NUMBER | ||
1053 | { | ||
1054 | U8 TargetID; /* 00h */ | ||
1055 | U8 Bus; /* 01h */ | ||
1056 | U8 PCISlotNumber; /* 02h */ | ||
1057 | U8 Reserved1; /* 03h */ | ||
1058 | U32 Reserved2; /* 04h */ | ||
1059 | U32 Reserved3; /* 08h */ | ||
1060 | U32 Reserved4; /* 0Ch */ | ||
1061 | U8 LUN[8]; /* 10h */ | ||
1062 | U32 Reserved5; /* 18h */ | ||
1063 | U32 Reserved6; /* 1Ch */ | ||
1064 | U32 Reserved7; /* 20h */ | ||
1065 | U32 Reserved8; /* 24h */ | ||
1066 | U32 Reserved9; /* 28h */ | ||
1067 | U32 Reserved10; /* 2Ch */ | ||
1068 | U32 Reserved11; /* 30h */ | ||
1069 | U32 Reserved12; /* 34h */ | ||
1070 | U32 Reserved13; /* 38h */ | ||
1071 | U32 Reserved14; /* 3Ch */ | ||
1072 | U32 Reserved15; /* 40h */ | ||
1073 | } MPI_BOOT_DEVICE_PCI_SLOT_NUMBER, MPI_POINTER PTR_MPI_BOOT_DEVICE_PCI_SLOT_NUMBER; | ||
1074 | |||
1075 | typedef struct _MPI_BOOT_DEVICE_FC_WWN | ||
1076 | { | ||
1077 | U64 WWPN; /* 00h */ | ||
1078 | U32 Reserved1; /* 08h */ | ||
1079 | U32 Reserved2; /* 0Ch */ | ||
1080 | U8 LUN[8]; /* 10h */ | ||
1081 | U32 Reserved3; /* 18h */ | ||
1082 | U32 Reserved4; /* 1Ch */ | ||
1083 | U32 Reserved5; /* 20h */ | ||
1084 | U32 Reserved6; /* 24h */ | ||
1085 | U32 Reserved7; /* 28h */ | ||
1086 | U32 Reserved8; /* 2Ch */ | ||
1087 | U32 Reserved9; /* 30h */ | ||
1088 | U32 Reserved10; /* 34h */ | ||
1089 | U32 Reserved11; /* 38h */ | ||
1090 | U32 Reserved12; /* 3Ch */ | ||
1091 | U32 Reserved13; /* 40h */ | ||
1092 | } MPI_BOOT_DEVICE_FC_WWN, MPI_POINTER PTR_MPI_BOOT_DEVICE_FC_WWN; | ||
1093 | |||
1094 | typedef struct _MPI_BOOT_DEVICE_SAS_WWN | ||
1095 | { | ||
1096 | U64 SASAddress; /* 00h */ | ||
1097 | U32 Reserved1; /* 08h */ | ||
1098 | U32 Reserved2; /* 0Ch */ | ||
1099 | U8 LUN[8]; /* 10h */ | ||
1100 | U32 Reserved3; /* 18h */ | ||
1101 | U32 Reserved4; /* 1Ch */ | ||
1102 | U32 Reserved5; /* 20h */ | ||
1103 | U32 Reserved6; /* 24h */ | ||
1104 | U32 Reserved7; /* 28h */ | ||
1105 | U32 Reserved8; /* 2Ch */ | ||
1106 | U32 Reserved9; /* 30h */ | ||
1107 | U32 Reserved10; /* 34h */ | ||
1108 | U32 Reserved11; /* 38h */ | ||
1109 | U32 Reserved12; /* 3Ch */ | ||
1110 | U32 Reserved13; /* 40h */ | ||
1111 | } MPI_BOOT_DEVICE_SAS_WWN, MPI_POINTER PTR_MPI_BOOT_DEVICE_SAS_WWN; | ||
1112 | |||
1113 | typedef struct _MPI_BOOT_DEVICE_ENCLOSURE_SLOT | ||
1114 | { | ||
1115 | U64 EnclosureLogicalID; /* 00h */ | ||
1116 | U32 Reserved1; /* 08h */ | ||
1117 | U32 Reserved2; /* 0Ch */ | ||
1118 | U8 LUN[8]; /* 10h */ | ||
1119 | U16 SlotNumber; /* 18h */ | ||
1120 | U16 Reserved3; /* 1Ah */ | ||
1121 | U32 Reserved4; /* 1Ch */ | ||
1122 | U32 Reserved5; /* 20h */ | ||
1123 | U32 Reserved6; /* 24h */ | ||
1124 | U32 Reserved7; /* 28h */ | ||
1125 | U32 Reserved8; /* 2Ch */ | ||
1126 | U32 Reserved9; /* 30h */ | ||
1127 | U32 Reserved10; /* 34h */ | ||
1128 | U32 Reserved11; /* 38h */ | ||
1129 | U32 Reserved12; /* 3Ch */ | ||
1130 | U32 Reserved13; /* 40h */ | ||
1131 | } MPI_BOOT_DEVICE_ENCLOSURE_SLOT, | ||
1132 | MPI_POINTER PTR_MPI_BOOT_DEVICE_ENCLOSURE_SLOT; | ||
1133 | |||
1134 | typedef union _MPI_BIOSPAGE2_BOOT_DEVICE | ||
1135 | { | ||
1136 | MPI_BOOT_DEVICE_ADAPTER_ORDER AdapterOrder; | ||
1137 | MPI_BOOT_DEVICE_ADAPTER_NUMBER AdapterNumber; | ||
1138 | MPI_BOOT_DEVICE_PCI_ADDRESS PCIAddress; | ||
1139 | MPI_BOOT_DEVICE_PCI_SLOT_NUMBER PCISlotNumber; | ||
1140 | MPI_BOOT_DEVICE_FC_WWN FcWwn; | ||
1141 | MPI_BOOT_DEVICE_SAS_WWN SasWwn; | ||
1142 | MPI_BOOT_DEVICE_ENCLOSURE_SLOT EnclosureSlot; | ||
1143 | } MPI_BIOSPAGE2_BOOT_DEVICE, MPI_POINTER PTR_MPI_BIOSPAGE2_BOOT_DEVICE; | ||
1144 | |||
1145 | typedef struct _CONFIG_PAGE_BIOS_2 | ||
1146 | { | ||
1147 | CONFIG_PAGE_HEADER Header; /* 00h */ | ||
1148 | U32 Reserved1; /* 04h */ | ||
1149 | U32 Reserved2; /* 08h */ | ||
1150 | U32 Reserved3; /* 0Ch */ | ||
1151 | U32 Reserved4; /* 10h */ | ||
1152 | U32 Reserved5; /* 14h */ | ||
1153 | U32 Reserved6; /* 18h */ | ||
1154 | U8 BootDeviceForm; /* 1Ch */ | ||
1155 | U8 Reserved7; /* 1Dh */ | ||
1156 | U16 Reserved8; /* 1Eh */ | ||
1157 | MPI_BIOSPAGE2_BOOT_DEVICE BootDevice; /* 20h */ | ||
1158 | } CONFIG_PAGE_BIOS_2, MPI_POINTER PTR_CONFIG_PAGE_BIOS_2, | ||
1159 | BIOSPage2_t, MPI_POINTER pBIOSPage2_t; | ||
1160 | |||
1161 | #define MPI_BIOSPAGE2_PAGEVERSION (0x01) | ||
1162 | |||
1163 | #define MPI_BIOSPAGE2_FORM_MASK (0x0F) | ||
1164 | #define MPI_BIOSPAGE2_FORM_ADAPTER_ORDER (0x00) | ||
1165 | #define MPI_BIOSPAGE2_FORM_ADAPTER_NUMBER (0x01) | ||
1166 | #define MPI_BIOSPAGE2_FORM_PCI_ADDRESS (0x02) | ||
1167 | #define MPI_BIOSPAGE2_FORM_PCI_SLOT_NUMBER (0x03) | ||
1168 | #define MPI_BIOSPAGE2_FORM_FC_WWN (0x04) | ||
1169 | #define MPI_BIOSPAGE2_FORM_SAS_WWN (0x05) | ||
1170 | |||
817 | 1171 | ||
818 | /**************************************************************************** | 1172 | /**************************************************************************** |
819 | * SCSI Port Config Pages | 1173 | * SCSI Port Config Pages |
@@ -821,13 +1175,13 @@ typedef struct _CONFIG_PAGE_BIOS_1 | |||
821 | 1175 | ||
822 | typedef struct _CONFIG_PAGE_SCSI_PORT_0 | 1176 | typedef struct _CONFIG_PAGE_SCSI_PORT_0 |
823 | { | 1177 | { |
824 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1178 | CONFIG_PAGE_HEADER Header; /* 00h */ |
825 | U32 Capabilities; /* 04h */ | 1179 | U32 Capabilities; /* 04h */ |
826 | U32 PhysicalInterface; /* 08h */ | 1180 | U32 PhysicalInterface; /* 08h */ |
827 | } fCONFIG_PAGE_SCSI_PORT_0, MPI_POINTER PTR_CONFIG_PAGE_SCSI_PORT_0, | 1181 | } CONFIG_PAGE_SCSI_PORT_0, MPI_POINTER PTR_CONFIG_PAGE_SCSI_PORT_0, |
828 | SCSIPortPage0_t, MPI_POINTER pSCSIPortPage0_t; | 1182 | SCSIPortPage0_t, MPI_POINTER pSCSIPortPage0_t; |
829 | 1183 | ||
830 | #define MPI_SCSIPORTPAGE0_PAGEVERSION (0x01) | 1184 | #define MPI_SCSIPORTPAGE0_PAGEVERSION (0x02) |
831 | 1185 | ||
832 | #define MPI_SCSIPORTPAGE0_CAP_IU (0x00000001) | 1186 | #define MPI_SCSIPORTPAGE0_CAP_IU (0x00000001) |
833 | #define MPI_SCSIPORTPAGE0_CAP_DT (0x00000002) | 1187 | #define MPI_SCSIPORTPAGE0_CAP_DT (0x00000002) |
@@ -854,6 +1208,7 @@ typedef struct _CONFIG_PAGE_SCSI_PORT_0 | |||
854 | ( ((Cap) & MPI_SCSIPORTPAGE0_CAP_MASK_MAX_SYNC_OFFSET) \ | 1208 | ( ((Cap) & MPI_SCSIPORTPAGE0_CAP_MASK_MAX_SYNC_OFFSET) \ |
855 | >> MPI_SCSIPORTPAGE0_CAP_SHIFT_MAX_SYNC_OFFSET \ | 1209 | >> MPI_SCSIPORTPAGE0_CAP_SHIFT_MAX_SYNC_OFFSET \ |
856 | ) | 1210 | ) |
1211 | #define MPI_SCSIPORTPAGE0_CAP_IDP (0x08000000) | ||
857 | #define MPI_SCSIPORTPAGE0_CAP_WIDE (0x20000000) | 1212 | #define MPI_SCSIPORTPAGE0_CAP_WIDE (0x20000000) |
858 | #define MPI_SCSIPORTPAGE0_CAP_AIP (0x80000000) | 1213 | #define MPI_SCSIPORTPAGE0_CAP_AIP (0x80000000) |
859 | 1214 | ||
@@ -869,13 +1224,13 @@ typedef struct _CONFIG_PAGE_SCSI_PORT_0 | |||
869 | 1224 | ||
870 | typedef struct _CONFIG_PAGE_SCSI_PORT_1 | 1225 | typedef struct _CONFIG_PAGE_SCSI_PORT_1 |
871 | { | 1226 | { |
872 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1227 | CONFIG_PAGE_HEADER Header; /* 00h */ |
873 | U32 Configuration; /* 04h */ | 1228 | U32 Configuration; /* 04h */ |
874 | U32 OnBusTimerValue; /* 08h */ | 1229 | U32 OnBusTimerValue; /* 08h */ |
875 | U8 TargetConfig; /* 0Ch */ | 1230 | U8 TargetConfig; /* 0Ch */ |
876 | U8 Reserved1; /* 0Dh */ | 1231 | U8 Reserved1; /* 0Dh */ |
877 | U16 IDConfig; /* 0Eh */ | 1232 | U16 IDConfig; /* 0Eh */ |
878 | } fCONFIG_PAGE_SCSI_PORT_1, MPI_POINTER PTR_CONFIG_PAGE_SCSI_PORT_1, | 1233 | } CONFIG_PAGE_SCSI_PORT_1, MPI_POINTER PTR_CONFIG_PAGE_SCSI_PORT_1, |
879 | SCSIPortPage1_t, MPI_POINTER pSCSIPortPage1_t; | 1234 | SCSIPortPage1_t, MPI_POINTER pSCSIPortPage1_t; |
880 | 1235 | ||
881 | #define MPI_SCSIPORTPAGE1_PAGEVERSION (0x03) | 1236 | #define MPI_SCSIPORTPAGE1_PAGEVERSION (0x03) |
@@ -900,11 +1255,11 @@ typedef struct _MPI_DEVICE_INFO | |||
900 | 1255 | ||
901 | typedef struct _CONFIG_PAGE_SCSI_PORT_2 | 1256 | typedef struct _CONFIG_PAGE_SCSI_PORT_2 |
902 | { | 1257 | { |
903 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1258 | CONFIG_PAGE_HEADER Header; /* 00h */ |
904 | U32 PortFlags; /* 04h */ | 1259 | U32 PortFlags; /* 04h */ |
905 | U32 PortSettings; /* 08h */ | 1260 | U32 PortSettings; /* 08h */ |
906 | MPI_DEVICE_INFO DeviceSettings[16]; /* 0Ch */ | 1261 | MPI_DEVICE_INFO DeviceSettings[16]; /* 0Ch */ |
907 | } fCONFIG_PAGE_SCSI_PORT_2, MPI_POINTER PTR_CONFIG_PAGE_SCSI_PORT_2, | 1262 | } CONFIG_PAGE_SCSI_PORT_2, MPI_POINTER PTR_CONFIG_PAGE_SCSI_PORT_2, |
908 | SCSIPortPage2_t, MPI_POINTER pSCSIPortPage2_t; | 1263 | SCSIPortPage2_t, MPI_POINTER pSCSIPortPage2_t; |
909 | 1264 | ||
910 | #define MPI_SCSIPORTPAGE2_PAGEVERSION (0x02) | 1265 | #define MPI_SCSIPORTPAGE2_PAGEVERSION (0x02) |
@@ -953,13 +1308,13 @@ typedef struct _CONFIG_PAGE_SCSI_PORT_2 | |||
953 | 1308 | ||
954 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_0 | 1309 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_0 |
955 | { | 1310 | { |
956 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1311 | CONFIG_PAGE_HEADER Header; /* 00h */ |
957 | U32 NegotiatedParameters; /* 04h */ | 1312 | U32 NegotiatedParameters; /* 04h */ |
958 | U32 Information; /* 08h */ | 1313 | U32 Information; /* 08h */ |
959 | } fCONFIG_PAGE_SCSI_DEVICE_0, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_0, | 1314 | } CONFIG_PAGE_SCSI_DEVICE_0, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_0, |
960 | SCSIDevicePage0_t, MPI_POINTER pSCSIDevicePage0_t; | 1315 | SCSIDevicePage0_t, MPI_POINTER pSCSIDevicePage0_t; |
961 | 1316 | ||
962 | #define MPI_SCSIDEVPAGE0_PAGEVERSION (0x03) | 1317 | #define MPI_SCSIDEVPAGE0_PAGEVERSION (0x04) |
963 | 1318 | ||
964 | #define MPI_SCSIDEVPAGE0_NP_IU (0x00000001) | 1319 | #define MPI_SCSIDEVPAGE0_NP_IU (0x00000001) |
965 | #define MPI_SCSIDEVPAGE0_NP_DT (0x00000002) | 1320 | #define MPI_SCSIDEVPAGE0_NP_DT (0x00000002) |
@@ -973,6 +1328,7 @@ typedef struct _CONFIG_PAGE_SCSI_DEVICE_0 | |||
973 | #define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_PERIOD (8) | 1328 | #define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_PERIOD (8) |
974 | #define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK (0x00FF0000) | 1329 | #define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK (0x00FF0000) |
975 | #define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_OFFSET (16) | 1330 | #define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_OFFSET (16) |
1331 | #define MPI_SCSIDEVPAGE0_NP_IDP (0x08000000) | ||
976 | #define MPI_SCSIDEVPAGE0_NP_WIDE (0x20000000) | 1332 | #define MPI_SCSIDEVPAGE0_NP_WIDE (0x20000000) |
977 | #define MPI_SCSIDEVPAGE0_NP_AIP (0x80000000) | 1333 | #define MPI_SCSIDEVPAGE0_NP_AIP (0x80000000) |
978 | 1334 | ||
@@ -984,14 +1340,14 @@ typedef struct _CONFIG_PAGE_SCSI_DEVICE_0 | |||
984 | 1340 | ||
985 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_1 | 1341 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_1 |
986 | { | 1342 | { |
987 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1343 | CONFIG_PAGE_HEADER Header; /* 00h */ |
988 | U32 RequestedParameters; /* 04h */ | 1344 | U32 RequestedParameters; /* 04h */ |
989 | U32 Reserved; /* 08h */ | 1345 | U32 Reserved; /* 08h */ |
990 | U32 Configuration; /* 0Ch */ | 1346 | U32 Configuration; /* 0Ch */ |
991 | } fCONFIG_PAGE_SCSI_DEVICE_1, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_1, | 1347 | } CONFIG_PAGE_SCSI_DEVICE_1, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_1, |
992 | SCSIDevicePage1_t, MPI_POINTER pSCSIDevicePage1_t; | 1348 | SCSIDevicePage1_t, MPI_POINTER pSCSIDevicePage1_t; |
993 | 1349 | ||
994 | #define MPI_SCSIDEVPAGE1_PAGEVERSION (0x04) | 1350 | #define MPI_SCSIDEVPAGE1_PAGEVERSION (0x05) |
995 | 1351 | ||
996 | #define MPI_SCSIDEVPAGE1_RP_IU (0x00000001) | 1352 | #define MPI_SCSIDEVPAGE1_RP_IU (0x00000001) |
997 | #define MPI_SCSIDEVPAGE1_RP_DT (0x00000002) | 1353 | #define MPI_SCSIDEVPAGE1_RP_DT (0x00000002) |
@@ -1005,6 +1361,7 @@ typedef struct _CONFIG_PAGE_SCSI_DEVICE_1 | |||
1005 | #define MPI_SCSIDEVPAGE1_RP_SHIFT_MIN_SYNC_PERIOD (8) | 1361 | #define MPI_SCSIDEVPAGE1_RP_SHIFT_MIN_SYNC_PERIOD (8) |
1006 | #define MPI_SCSIDEVPAGE1_RP_MAX_SYNC_OFFSET_MASK (0x00FF0000) | 1362 | #define MPI_SCSIDEVPAGE1_RP_MAX_SYNC_OFFSET_MASK (0x00FF0000) |
1007 | #define MPI_SCSIDEVPAGE1_RP_SHIFT_MAX_SYNC_OFFSET (16) | 1363 | #define MPI_SCSIDEVPAGE1_RP_SHIFT_MAX_SYNC_OFFSET (16) |
1364 | #define MPI_SCSIDEVPAGE1_RP_IDP (0x08000000) | ||
1008 | #define MPI_SCSIDEVPAGE1_RP_WIDE (0x20000000) | 1365 | #define MPI_SCSIDEVPAGE1_RP_WIDE (0x20000000) |
1009 | #define MPI_SCSIDEVPAGE1_RP_AIP (0x80000000) | 1366 | #define MPI_SCSIDEVPAGE1_RP_AIP (0x80000000) |
1010 | 1367 | ||
@@ -1016,11 +1373,11 @@ typedef struct _CONFIG_PAGE_SCSI_DEVICE_1 | |||
1016 | 1373 | ||
1017 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_2 | 1374 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_2 |
1018 | { | 1375 | { |
1019 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1376 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1020 | U32 DomainValidation; /* 04h */ | 1377 | U32 DomainValidation; /* 04h */ |
1021 | U32 ParityPipeSelect; /* 08h */ | 1378 | U32 ParityPipeSelect; /* 08h */ |
1022 | U32 DataPipeSelect; /* 0Ch */ | 1379 | U32 DataPipeSelect; /* 0Ch */ |
1023 | } fCONFIG_PAGE_SCSI_DEVICE_2, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_2, | 1380 | } CONFIG_PAGE_SCSI_DEVICE_2, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_2, |
1024 | SCSIDevicePage2_t, MPI_POINTER pSCSIDevicePage2_t; | 1381 | SCSIDevicePage2_t, MPI_POINTER pSCSIDevicePage2_t; |
1025 | 1382 | ||
1026 | #define MPI_SCSIDEVPAGE2_PAGEVERSION (0x01) | 1383 | #define MPI_SCSIDEVPAGE2_PAGEVERSION (0x01) |
@@ -1057,12 +1414,12 @@ typedef struct _CONFIG_PAGE_SCSI_DEVICE_2 | |||
1057 | 1414 | ||
1058 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_3 | 1415 | typedef struct _CONFIG_PAGE_SCSI_DEVICE_3 |
1059 | { | 1416 | { |
1060 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1417 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1061 | U16 MsgRejectCount; /* 04h */ | 1418 | U16 MsgRejectCount; /* 04h */ |
1062 | U16 PhaseErrorCount; /* 06h */ | 1419 | U16 PhaseErrorCount; /* 06h */ |
1063 | U16 ParityErrorCount; /* 08h */ | 1420 | U16 ParityErrorCount; /* 08h */ |
1064 | U16 Reserved; /* 0Ah */ | 1421 | U16 Reserved; /* 0Ah */ |
1065 | } fCONFIG_PAGE_SCSI_DEVICE_3, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_3, | 1422 | } CONFIG_PAGE_SCSI_DEVICE_3, MPI_POINTER PTR_CONFIG_PAGE_SCSI_DEVICE_3, |
1066 | SCSIDevicePage3_t, MPI_POINTER pSCSIDevicePage3_t; | 1423 | SCSIDevicePage3_t, MPI_POINTER pSCSIDevicePage3_t; |
1067 | 1424 | ||
1068 | #define MPI_SCSIDEVPAGE3_PAGEVERSION (0x00) | 1425 | #define MPI_SCSIDEVPAGE3_PAGEVERSION (0x00) |
@@ -1077,7 +1434,7 @@ typedef struct _CONFIG_PAGE_SCSI_DEVICE_3 | |||
1077 | 1434 | ||
1078 | typedef struct _CONFIG_PAGE_FC_PORT_0 | 1435 | typedef struct _CONFIG_PAGE_FC_PORT_0 |
1079 | { | 1436 | { |
1080 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1437 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1081 | U32 Flags; /* 04h */ | 1438 | U32 Flags; /* 04h */ |
1082 | U8 MPIPortNumber; /* 08h */ | 1439 | U8 MPIPortNumber; /* 08h */ |
1083 | U8 LinkType; /* 09h */ | 1440 | U8 LinkType; /* 09h */ |
@@ -1098,7 +1455,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_0 | |||
1098 | U8 MaxHardAliasesSupported; /* 49h */ | 1455 | U8 MaxHardAliasesSupported; /* 49h */ |
1099 | U8 NumCurrentAliases; /* 4Ah */ | 1456 | U8 NumCurrentAliases; /* 4Ah */ |
1100 | U8 Reserved1; /* 4Bh */ | 1457 | U8 Reserved1; /* 4Bh */ |
1101 | } fCONFIG_PAGE_FC_PORT_0, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_0, | 1458 | } CONFIG_PAGE_FC_PORT_0, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_0, |
1102 | FCPortPage0_t, MPI_POINTER pFCPortPage0_t; | 1459 | FCPortPage0_t, MPI_POINTER pFCPortPage0_t; |
1103 | 1460 | ||
1104 | #define MPI_FCPORTPAGE0_PAGEVERSION (0x02) | 1461 | #define MPI_FCPORTPAGE0_PAGEVERSION (0x02) |
@@ -1164,10 +1521,9 @@ typedef struct _CONFIG_PAGE_FC_PORT_0 | |||
1164 | #define MPI_FCPORTPAGE0_CURRENT_SPEED_NOT_NEGOTIATED (0x00008000) /* (SNIA)HBA_PORTSPEED_NOT_NEGOTIATED (1<<15) Speed not established */ | 1521 | #define MPI_FCPORTPAGE0_CURRENT_SPEED_NOT_NEGOTIATED (0x00008000) /* (SNIA)HBA_PORTSPEED_NOT_NEGOTIATED (1<<15) Speed not established */ |
1165 | 1522 | ||
1166 | 1523 | ||
1167 | |||
1168 | typedef struct _CONFIG_PAGE_FC_PORT_1 | 1524 | typedef struct _CONFIG_PAGE_FC_PORT_1 |
1169 | { | 1525 | { |
1170 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1526 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1171 | U32 Flags; /* 04h */ | 1527 | U32 Flags; /* 04h */ |
1172 | U64 NoSEEPROMWWNN; /* 08h */ | 1528 | U64 NoSEEPROMWWNN; /* 08h */ |
1173 | U64 NoSEEPROMWWPN; /* 10h */ | 1529 | U64 NoSEEPROMWWPN; /* 10h */ |
@@ -1179,7 +1535,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_1 | |||
1179 | U8 RR_TOV; /* 1Dh */ | 1535 | U8 RR_TOV; /* 1Dh */ |
1180 | U8 InitiatorDeviceTimeout; /* 1Eh */ | 1536 | U8 InitiatorDeviceTimeout; /* 1Eh */ |
1181 | U8 InitiatorIoPendTimeout; /* 1Fh */ | 1537 | U8 InitiatorIoPendTimeout; /* 1Fh */ |
1182 | } fCONFIG_PAGE_FC_PORT_1, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_1, | 1538 | } CONFIG_PAGE_FC_PORT_1, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_1, |
1183 | FCPortPage1_t, MPI_POINTER pFCPortPage1_t; | 1539 | FCPortPage1_t, MPI_POINTER pFCPortPage1_t; |
1184 | 1540 | ||
1185 | #define MPI_FCPORTPAGE1_PAGEVERSION (0x06) | 1541 | #define MPI_FCPORTPAGE1_PAGEVERSION (0x06) |
@@ -1191,6 +1547,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_1 | |||
1191 | #define MPI_FCPORTPAGE1_FLAGS_TARGET_MODE_OXID (0x00800000) | 1547 | #define MPI_FCPORTPAGE1_FLAGS_TARGET_MODE_OXID (0x00800000) |
1192 | #define MPI_FCPORTPAGE1_FLAGS_PORT_OFFLINE (0x00400000) | 1548 | #define MPI_FCPORTPAGE1_FLAGS_PORT_OFFLINE (0x00400000) |
1193 | #define MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK (0x00200000) | 1549 | #define MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK (0x00200000) |
1550 | #define MPI_FCPORTPAGE1_FLAGS_TARGET_LARGE_CDB_ENABLE (0x00000080) | ||
1194 | #define MPI_FCPORTPAGE1_FLAGS_MASK_RR_TOV_UNITS (0x00000070) | 1551 | #define MPI_FCPORTPAGE1_FLAGS_MASK_RR_TOV_UNITS (0x00000070) |
1195 | #define MPI_FCPORTPAGE1_FLAGS_SUPPRESS_PROT_REG (0x00000008) | 1552 | #define MPI_FCPORTPAGE1_FLAGS_SUPPRESS_PROT_REG (0x00000008) |
1196 | #define MPI_FCPORTPAGE1_FLAGS_PLOGI_ON_LOGO (0x00000004) | 1553 | #define MPI_FCPORTPAGE1_FLAGS_PLOGI_ON_LOGO (0x00000004) |
@@ -1227,14 +1584,15 @@ typedef struct _CONFIG_PAGE_FC_PORT_1 | |||
1227 | #define MPI_FCPORTPAGE1_ALT_CONN_UNKNOWN (0x00) | 1584 | #define MPI_FCPORTPAGE1_ALT_CONN_UNKNOWN (0x00) |
1228 | 1585 | ||
1229 | #define MPI_FCPORTPAGE1_INITIATOR_DEV_TIMEOUT_MASK (0x7F) | 1586 | #define MPI_FCPORTPAGE1_INITIATOR_DEV_TIMEOUT_MASK (0x7F) |
1587 | #define MPI_FCPORTPAGE1_INITIATOR_DEV_UNIT_16 (0x80) | ||
1230 | 1588 | ||
1231 | 1589 | ||
1232 | typedef struct _CONFIG_PAGE_FC_PORT_2 | 1590 | typedef struct _CONFIG_PAGE_FC_PORT_2 |
1233 | { | 1591 | { |
1234 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1592 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1235 | U8 NumberActive; /* 04h */ | 1593 | U8 NumberActive; /* 04h */ |
1236 | U8 ALPA[127]; /* 05h */ | 1594 | U8 ALPA[127]; /* 05h */ |
1237 | } fCONFIG_PAGE_FC_PORT_2, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_2, | 1595 | } CONFIG_PAGE_FC_PORT_2, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_2, |
1238 | FCPortPage2_t, MPI_POINTER pFCPortPage2_t; | 1596 | FCPortPage2_t, MPI_POINTER pFCPortPage2_t; |
1239 | 1597 | ||
1240 | #define MPI_FCPORTPAGE2_PAGEVERSION (0x01) | 1598 | #define MPI_FCPORTPAGE2_PAGEVERSION (0x01) |
@@ -1280,9 +1638,9 @@ typedef struct _FC_PORT_PERSISTENT | |||
1280 | 1638 | ||
1281 | typedef struct _CONFIG_PAGE_FC_PORT_3 | 1639 | typedef struct _CONFIG_PAGE_FC_PORT_3 |
1282 | { | 1640 | { |
1283 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1641 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1284 | FC_PORT_PERSISTENT Entry[MPI_FC_PORT_PAGE_3_ENTRY_MAX]; /* 04h */ | 1642 | FC_PORT_PERSISTENT Entry[MPI_FC_PORT_PAGE_3_ENTRY_MAX]; /* 04h */ |
1285 | } fCONFIG_PAGE_FC_PORT_3, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_3, | 1643 | } CONFIG_PAGE_FC_PORT_3, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_3, |
1286 | FCPortPage3_t, MPI_POINTER pFCPortPage3_t; | 1644 | FCPortPage3_t, MPI_POINTER pFCPortPage3_t; |
1287 | 1645 | ||
1288 | #define MPI_FCPORTPAGE3_PAGEVERSION (0x01) | 1646 | #define MPI_FCPORTPAGE3_PAGEVERSION (0x01) |
@@ -1290,10 +1648,10 @@ typedef struct _CONFIG_PAGE_FC_PORT_3 | |||
1290 | 1648 | ||
1291 | typedef struct _CONFIG_PAGE_FC_PORT_4 | 1649 | typedef struct _CONFIG_PAGE_FC_PORT_4 |
1292 | { | 1650 | { |
1293 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1651 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1294 | U32 PortFlags; /* 04h */ | 1652 | U32 PortFlags; /* 04h */ |
1295 | U32 PortSettings; /* 08h */ | 1653 | U32 PortSettings; /* 08h */ |
1296 | } fCONFIG_PAGE_FC_PORT_4, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_4, | 1654 | } CONFIG_PAGE_FC_PORT_4, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_4, |
1297 | FCPortPage4_t, MPI_POINTER pFCPortPage4_t; | 1655 | FCPortPage4_t, MPI_POINTER pFCPortPage4_t; |
1298 | 1656 | ||
1299 | #define MPI_FCPORTPAGE4_PAGEVERSION (0x00) | 1657 | #define MPI_FCPORTPAGE4_PAGEVERSION (0x00) |
@@ -1316,15 +1674,15 @@ typedef struct _CONFIG_PAGE_FC_PORT_5_ALIAS_INFO | |||
1316 | U16 Reserved; /* 02h */ | 1674 | U16 Reserved; /* 02h */ |
1317 | U64 AliasWWNN; /* 04h */ | 1675 | U64 AliasWWNN; /* 04h */ |
1318 | U64 AliasWWPN; /* 0Ch */ | 1676 | U64 AliasWWPN; /* 0Ch */ |
1319 | } fCONFIG_PAGE_FC_PORT_5_ALIAS_INFO, | 1677 | } CONFIG_PAGE_FC_PORT_5_ALIAS_INFO, |
1320 | MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_5_ALIAS_INFO, | 1678 | MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_5_ALIAS_INFO, |
1321 | FcPortPage5AliasInfo_t, MPI_POINTER pFcPortPage5AliasInfo_t; | 1679 | FcPortPage5AliasInfo_t, MPI_POINTER pFcPortPage5AliasInfo_t; |
1322 | 1680 | ||
1323 | typedef struct _CONFIG_PAGE_FC_PORT_5 | 1681 | typedef struct _CONFIG_PAGE_FC_PORT_5 |
1324 | { | 1682 | { |
1325 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1683 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1326 | fCONFIG_PAGE_FC_PORT_5_ALIAS_INFO AliasInfo; /* 04h */ | 1684 | CONFIG_PAGE_FC_PORT_5_ALIAS_INFO AliasInfo; /* 04h */ |
1327 | } fCONFIG_PAGE_FC_PORT_5, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_5, | 1685 | } CONFIG_PAGE_FC_PORT_5, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_5, |
1328 | FCPortPage5_t, MPI_POINTER pFCPortPage5_t; | 1686 | FCPortPage5_t, MPI_POINTER pFCPortPage5_t; |
1329 | 1687 | ||
1330 | #define MPI_FCPORTPAGE5_PAGEVERSION (0x02) | 1688 | #define MPI_FCPORTPAGE5_PAGEVERSION (0x02) |
@@ -1337,7 +1695,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_5 | |||
1337 | 1695 | ||
1338 | typedef struct _CONFIG_PAGE_FC_PORT_6 | 1696 | typedef struct _CONFIG_PAGE_FC_PORT_6 |
1339 | { | 1697 | { |
1340 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1698 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1341 | U32 Reserved; /* 04h */ | 1699 | U32 Reserved; /* 04h */ |
1342 | U64 TimeSinceReset; /* 08h */ | 1700 | U64 TimeSinceReset; /* 08h */ |
1343 | U64 TxFrames; /* 10h */ | 1701 | U64 TxFrames; /* 10h */ |
@@ -1355,7 +1713,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_6 | |||
1355 | U64 InvalidTxWordCount; /* 70h */ | 1713 | U64 InvalidTxWordCount; /* 70h */ |
1356 | U64 InvalidCrcCount; /* 78h */ | 1714 | U64 InvalidCrcCount; /* 78h */ |
1357 | U64 FcpInitiatorIoCount; /* 80h */ | 1715 | U64 FcpInitiatorIoCount; /* 80h */ |
1358 | } fCONFIG_PAGE_FC_PORT_6, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_6, | 1716 | } CONFIG_PAGE_FC_PORT_6, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_6, |
1359 | FCPortPage6_t, MPI_POINTER pFCPortPage6_t; | 1717 | FCPortPage6_t, MPI_POINTER pFCPortPage6_t; |
1360 | 1718 | ||
1361 | #define MPI_FCPORTPAGE6_PAGEVERSION (0x00) | 1719 | #define MPI_FCPORTPAGE6_PAGEVERSION (0x00) |
@@ -1363,10 +1721,10 @@ typedef struct _CONFIG_PAGE_FC_PORT_6 | |||
1363 | 1721 | ||
1364 | typedef struct _CONFIG_PAGE_FC_PORT_7 | 1722 | typedef struct _CONFIG_PAGE_FC_PORT_7 |
1365 | { | 1723 | { |
1366 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1724 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1367 | U32 Reserved; /* 04h */ | 1725 | U32 Reserved; /* 04h */ |
1368 | U8 PortSymbolicName[256]; /* 08h */ | 1726 | U8 PortSymbolicName[256]; /* 08h */ |
1369 | } fCONFIG_PAGE_FC_PORT_7, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_7, | 1727 | } CONFIG_PAGE_FC_PORT_7, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_7, |
1370 | FCPortPage7_t, MPI_POINTER pFCPortPage7_t; | 1728 | FCPortPage7_t, MPI_POINTER pFCPortPage7_t; |
1371 | 1729 | ||
1372 | #define MPI_FCPORTPAGE7_PAGEVERSION (0x00) | 1730 | #define MPI_FCPORTPAGE7_PAGEVERSION (0x00) |
@@ -1374,9 +1732,9 @@ typedef struct _CONFIG_PAGE_FC_PORT_7 | |||
1374 | 1732 | ||
1375 | typedef struct _CONFIG_PAGE_FC_PORT_8 | 1733 | typedef struct _CONFIG_PAGE_FC_PORT_8 |
1376 | { | 1734 | { |
1377 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1735 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1378 | U32 BitVector[8]; /* 04h */ | 1736 | U32 BitVector[8]; /* 04h */ |
1379 | } fCONFIG_PAGE_FC_PORT_8, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_8, | 1737 | } CONFIG_PAGE_FC_PORT_8, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_8, |
1380 | FCPortPage8_t, MPI_POINTER pFCPortPage8_t; | 1738 | FCPortPage8_t, MPI_POINTER pFCPortPage8_t; |
1381 | 1739 | ||
1382 | #define MPI_FCPORTPAGE8_PAGEVERSION (0x00) | 1740 | #define MPI_FCPORTPAGE8_PAGEVERSION (0x00) |
@@ -1384,7 +1742,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_8 | |||
1384 | 1742 | ||
1385 | typedef struct _CONFIG_PAGE_FC_PORT_9 | 1743 | typedef struct _CONFIG_PAGE_FC_PORT_9 |
1386 | { | 1744 | { |
1387 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1745 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1388 | U32 Reserved; /* 04h */ | 1746 | U32 Reserved; /* 04h */ |
1389 | U64 GlobalWWPN; /* 08h */ | 1747 | U64 GlobalWWPN; /* 08h */ |
1390 | U64 GlobalWWNN; /* 10h */ | 1748 | U64 GlobalWWNN; /* 10h */ |
@@ -1396,7 +1754,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_9 | |||
1396 | U8 IPAddress[16]; /* 28h */ | 1754 | U8 IPAddress[16]; /* 28h */ |
1397 | U16 Reserved1; /* 38h */ | 1755 | U16 Reserved1; /* 38h */ |
1398 | U16 TopologyDiscoveryFlags; /* 3Ah */ | 1756 | U16 TopologyDiscoveryFlags; /* 3Ah */ |
1399 | } fCONFIG_PAGE_FC_PORT_9, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_9, | 1757 | } CONFIG_PAGE_FC_PORT_9, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_9, |
1400 | FCPortPage9_t, MPI_POINTER pFCPortPage9_t; | 1758 | FCPortPage9_t, MPI_POINTER pFCPortPage9_t; |
1401 | 1759 | ||
1402 | #define MPI_FCPORTPAGE9_PAGEVERSION (0x00) | 1760 | #define MPI_FCPORTPAGE9_PAGEVERSION (0x00) |
@@ -1422,10 +1780,10 @@ typedef struct _CONFIG_PAGE_FC_PORT_10_BASE_SFP_DATA | |||
1422 | U8 VendorOUI[3]; /* 35h */ | 1780 | U8 VendorOUI[3]; /* 35h */ |
1423 | U8 VendorPN[16]; /* 38h */ | 1781 | U8 VendorPN[16]; /* 38h */ |
1424 | U8 VendorRev[4]; /* 48h */ | 1782 | U8 VendorRev[4]; /* 48h */ |
1425 | U16 Reserved4; /* 4Ch */ | 1783 | U16 Wavelength; /* 4Ch */ |
1426 | U8 Reserved5; /* 4Eh */ | 1784 | U8 Reserved4; /* 4Eh */ |
1427 | U8 CC_BASE; /* 4Fh */ | 1785 | U8 CC_BASE; /* 4Fh */ |
1428 | } fCONFIG_PAGE_FC_PORT_10_BASE_SFP_DATA, | 1786 | } CONFIG_PAGE_FC_PORT_10_BASE_SFP_DATA, |
1429 | MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_10_BASE_SFP_DATA, | 1787 | MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_10_BASE_SFP_DATA, |
1430 | FCPortPage10BaseSfpData_t, MPI_POINTER pFCPortPage10BaseSfpData_t; | 1788 | FCPortPage10BaseSfpData_t, MPI_POINTER pFCPortPage10BaseSfpData_t; |
1431 | 1789 | ||
@@ -1481,9 +1839,11 @@ typedef struct _CONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA | |||
1481 | U8 BitRateMin; /* 53h */ | 1839 | U8 BitRateMin; /* 53h */ |
1482 | U8 VendorSN[16]; /* 54h */ | 1840 | U8 VendorSN[16]; /* 54h */ |
1483 | U8 DateCode[8]; /* 64h */ | 1841 | U8 DateCode[8]; /* 64h */ |
1484 | U8 Reserved5[3]; /* 6Ch */ | 1842 | U8 DiagMonitoringType; /* 6Ch */ |
1843 | U8 EnhancedOptions; /* 6Dh */ | ||
1844 | U8 SFF8472Compliance; /* 6Eh */ | ||
1485 | U8 CC_EXT; /* 6Fh */ | 1845 | U8 CC_EXT; /* 6Fh */ |
1486 | } fCONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA, | 1846 | } CONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA, |
1487 | MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA, | 1847 | MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA, |
1488 | FCPortPage10ExtendedSfpData_t, MPI_POINTER pFCPortPage10ExtendedSfpData_t; | 1848 | FCPortPage10ExtendedSfpData_t, MPI_POINTER pFCPortPage10ExtendedSfpData_t; |
1489 | 1849 | ||
@@ -1496,19 +1856,19 @@ typedef struct _CONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA | |||
1496 | 1856 | ||
1497 | typedef struct _CONFIG_PAGE_FC_PORT_10 | 1857 | typedef struct _CONFIG_PAGE_FC_PORT_10 |
1498 | { | 1858 | { |
1499 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1859 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1500 | U8 Flags; /* 04h */ | 1860 | U8 Flags; /* 04h */ |
1501 | U8 Reserved1; /* 05h */ | 1861 | U8 Reserved1; /* 05h */ |
1502 | U16 Reserved2; /* 06h */ | 1862 | U16 Reserved2; /* 06h */ |
1503 | U32 HwConfig1; /* 08h */ | 1863 | U32 HwConfig1; /* 08h */ |
1504 | U32 HwConfig2; /* 0Ch */ | 1864 | U32 HwConfig2; /* 0Ch */ |
1505 | fCONFIG_PAGE_FC_PORT_10_BASE_SFP_DATA Base; /* 10h */ | 1865 | CONFIG_PAGE_FC_PORT_10_BASE_SFP_DATA Base; /* 10h */ |
1506 | fCONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA Extended; /* 50h */ | 1866 | CONFIG_PAGE_FC_PORT_10_EXTENDED_SFP_DATA Extended; /* 50h */ |
1507 | U8 VendorSpecific[32]; /* 70h */ | 1867 | U8 VendorSpecific[32]; /* 70h */ |
1508 | } fCONFIG_PAGE_FC_PORT_10, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_10, | 1868 | } CONFIG_PAGE_FC_PORT_10, MPI_POINTER PTR_CONFIG_PAGE_FC_PORT_10, |
1509 | FCPortPage10_t, MPI_POINTER pFCPortPage10_t; | 1869 | FCPortPage10_t, MPI_POINTER pFCPortPage10_t; |
1510 | 1870 | ||
1511 | #define MPI_FCPORTPAGE10_PAGEVERSION (0x00) | 1871 | #define MPI_FCPORTPAGE10_PAGEVERSION (0x01) |
1512 | 1872 | ||
1513 | /* standard MODDEF pin definitions (from GBIC spec.) */ | 1873 | /* standard MODDEF pin definitions (from GBIC spec.) */ |
1514 | #define MPI_FCPORTPAGE10_FLAGS_MODDEF_MASK (0x00000007) | 1874 | #define MPI_FCPORTPAGE10_FLAGS_MODDEF_MASK (0x00000007) |
@@ -1534,7 +1894,7 @@ typedef struct _CONFIG_PAGE_FC_PORT_10 | |||
1534 | 1894 | ||
1535 | typedef struct _CONFIG_PAGE_FC_DEVICE_0 | 1895 | typedef struct _CONFIG_PAGE_FC_DEVICE_0 |
1536 | { | 1896 | { |
1537 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 1897 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1538 | U64 WWNN; /* 04h */ | 1898 | U64 WWNN; /* 04h */ |
1539 | U64 WWPN; /* 0Ch */ | 1899 | U64 WWPN; /* 0Ch */ |
1540 | U32 PortIdentifier; /* 14h */ | 1900 | U32 PortIdentifier; /* 14h */ |
@@ -1548,7 +1908,7 @@ typedef struct _CONFIG_PAGE_FC_DEVICE_0 | |||
1548 | U8 FcPhHighestVersion; /* 21h */ | 1908 | U8 FcPhHighestVersion; /* 21h */ |
1549 | U8 CurrentTargetID; /* 22h */ | 1909 | U8 CurrentTargetID; /* 22h */ |
1550 | U8 CurrentBus; /* 23h */ | 1910 | U8 CurrentBus; /* 23h */ |
1551 | } fCONFIG_PAGE_FC_DEVICE_0, MPI_POINTER PTR_CONFIG_PAGE_FC_DEVICE_0, | 1911 | } CONFIG_PAGE_FC_DEVICE_0, MPI_POINTER PTR_CONFIG_PAGE_FC_DEVICE_0, |
1552 | FCDevicePage0_t, MPI_POINTER pFCDevicePage0_t; | 1912 | FCDevicePage0_t, MPI_POINTER pFCDevicePage0_t; |
1553 | 1913 | ||
1554 | #define MPI_FC_DEVICE_PAGE0_PAGEVERSION (0x03) | 1914 | #define MPI_FC_DEVICE_PAGE0_PAGEVERSION (0x03) |
@@ -1606,6 +1966,7 @@ typedef struct _RAID_VOL0_STATUS | |||
1606 | #define MPI_RAIDVOL0_STATUS_STATE_OPTIMAL (0x00) | 1966 | #define MPI_RAIDVOL0_STATUS_STATE_OPTIMAL (0x00) |
1607 | #define MPI_RAIDVOL0_STATUS_STATE_DEGRADED (0x01) | 1967 | #define MPI_RAIDVOL0_STATUS_STATE_DEGRADED (0x01) |
1608 | #define MPI_RAIDVOL0_STATUS_STATE_FAILED (0x02) | 1968 | #define MPI_RAIDVOL0_STATUS_STATE_FAILED (0x02) |
1969 | #define MPI_RAIDVOL0_STATUS_STATE_MISSING (0x03) | ||
1609 | 1970 | ||
1610 | typedef struct _RAID_VOL0_SETTINGS | 1971 | typedef struct _RAID_VOL0_SETTINGS |
1611 | { | 1972 | { |
@@ -1616,11 +1977,11 @@ typedef struct _RAID_VOL0_SETTINGS | |||
1616 | RaidVol0Settings, MPI_POINTER pRaidVol0Settings; | 1977 | RaidVol0Settings, MPI_POINTER pRaidVol0Settings; |
1617 | 1978 | ||
1618 | /* RAID Volume Page 0 VolumeSettings defines */ | 1979 | /* RAID Volume Page 0 VolumeSettings defines */ |
1619 | |||
1620 | #define MPI_RAIDVOL0_SETTING_WRITE_CACHING_ENABLE (0x0001) | 1980 | #define MPI_RAIDVOL0_SETTING_WRITE_CACHING_ENABLE (0x0001) |
1621 | #define MPI_RAIDVOL0_SETTING_OFFLINE_ON_SMART (0x0002) | 1981 | #define MPI_RAIDVOL0_SETTING_OFFLINE_ON_SMART (0x0002) |
1622 | #define MPI_RAIDVOL0_SETTING_AUTO_CONFIGURE (0x0004) | 1982 | #define MPI_RAIDVOL0_SETTING_AUTO_CONFIGURE (0x0004) |
1623 | #define MPI_RAIDVOL0_SETTING_PRIORITY_RESYNC (0x0008) | 1983 | #define MPI_RAIDVOL0_SETTING_PRIORITY_RESYNC (0x0008) |
1984 | #define MPI_RAIDVOL0_SETTING_FAST_DATA_SCRUBBING_0102 (0x0020) /* obsolete */ | ||
1624 | #define MPI_RAIDVOL0_SETTING_USE_PRODUCT_ID_SUFFIX (0x0010) | 1985 | #define MPI_RAIDVOL0_SETTING_USE_PRODUCT_ID_SUFFIX (0x0010) |
1625 | #define MPI_RAIDVOL0_SETTING_USE_DEFAULTS (0x8000) | 1986 | #define MPI_RAIDVOL0_SETTING_USE_DEFAULTS (0x8000) |
1626 | 1987 | ||
@@ -1644,7 +2005,7 @@ typedef struct _RAID_VOL0_SETTINGS | |||
1644 | 2005 | ||
1645 | typedef struct _CONFIG_PAGE_RAID_VOL_0 | 2006 | typedef struct _CONFIG_PAGE_RAID_VOL_0 |
1646 | { | 2007 | { |
1647 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 2008 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1648 | U8 VolumeID; /* 04h */ | 2009 | U8 VolumeID; /* 04h */ |
1649 | U8 VolumeBus; /* 05h */ | 2010 | U8 VolumeBus; /* 05h */ |
1650 | U8 VolumeIOC; /* 06h */ | 2011 | U8 VolumeIOC; /* 06h */ |
@@ -1657,13 +2018,41 @@ typedef struct _CONFIG_PAGE_RAID_VOL_0 | |||
1657 | U32 Reserved2; /* 1Ch */ | 2018 | U32 Reserved2; /* 1Ch */ |
1658 | U32 Reserved3; /* 20h */ | 2019 | U32 Reserved3; /* 20h */ |
1659 | U8 NumPhysDisks; /* 24h */ | 2020 | U8 NumPhysDisks; /* 24h */ |
1660 | U8 Reserved4; /* 25h */ | 2021 | U8 DataScrubRate; /* 25h */ |
1661 | U16 Reserved5; /* 26h */ | 2022 | U8 ResyncRate; /* 26h */ |
2023 | U8 InactiveStatus; /* 27h */ | ||
1662 | RAID_VOL0_PHYS_DISK PhysDisk[MPI_RAID_VOL_PAGE_0_PHYSDISK_MAX];/* 28h */ | 2024 | RAID_VOL0_PHYS_DISK PhysDisk[MPI_RAID_VOL_PAGE_0_PHYSDISK_MAX];/* 28h */ |
1663 | } fCONFIG_PAGE_RAID_VOL_0, MPI_POINTER PTR_CONFIG_PAGE_RAID_VOL_0, | 2025 | } CONFIG_PAGE_RAID_VOL_0, MPI_POINTER PTR_CONFIG_PAGE_RAID_VOL_0, |
1664 | RaidVolumePage0_t, MPI_POINTER pRaidVolumePage0_t; | 2026 | RaidVolumePage0_t, MPI_POINTER pRaidVolumePage0_t; |
1665 | 2027 | ||
1666 | #define MPI_RAIDVOLPAGE0_PAGEVERSION (0x01) | 2028 | #define MPI_RAIDVOLPAGE0_PAGEVERSION (0x04) |
2029 | |||
2030 | /* values for RAID Volume Page 0 InactiveStatus field */ | ||
2031 | #define MPI_RAIDVOLPAGE0_UNKNOWN_INACTIVE (0x00) | ||
2032 | #define MPI_RAIDVOLPAGE0_STALE_METADATA_INACTIVE (0x01) | ||
2033 | #define MPI_RAIDVOLPAGE0_FOREIGN_VOLUME_INACTIVE (0x02) | ||
2034 | #define MPI_RAIDVOLPAGE0_INSUFFICIENT_RESOURCE_INACTIVE (0x03) | ||
2035 | #define MPI_RAIDVOLPAGE0_CLONE_VOLUME_INACTIVE (0x04) | ||
2036 | #define MPI_RAIDVOLPAGE0_INSUFFICIENT_METADATA_INACTIVE (0x05) | ||
2037 | #define MPI_RAIDVOLPAGE0_PREVIOUSLY_DELETED (0x06) | ||
2038 | |||
2039 | |||
2040 | typedef struct _CONFIG_PAGE_RAID_VOL_1 | ||
2041 | { | ||
2042 | CONFIG_PAGE_HEADER Header; /* 00h */ | ||
2043 | U8 VolumeID; /* 01h */ | ||
2044 | U8 VolumeBus; /* 02h */ | ||
2045 | U8 VolumeIOC; /* 03h */ | ||
2046 | U8 Reserved0; /* 04h */ | ||
2047 | U8 GUID[24]; /* 05h */ | ||
2048 | U8 Name[32]; /* 20h */ | ||
2049 | U64 WWID; /* 40h */ | ||
2050 | U32 Reserved1; /* 48h */ | ||
2051 | U32 Reserved2; /* 4Ch */ | ||
2052 | } CONFIG_PAGE_RAID_VOL_1, MPI_POINTER PTR_CONFIG_PAGE_RAID_VOL_1, | ||
2053 | RaidVolumePage1_t, MPI_POINTER pRaidVolumePage1_t; | ||
2054 | |||
2055 | #define MPI_RAIDVOLPAGE1_PAGEVERSION (0x01) | ||
1667 | 2056 | ||
1668 | 2057 | ||
1669 | /**************************************************************************** | 2058 | /**************************************************************************** |
@@ -1714,6 +2103,7 @@ typedef struct _RAID_PHYS_DISK0_STATUS | |||
1714 | 2103 | ||
1715 | #define MPI_PHYSDISK0_STATUS_FLAG_OUT_OF_SYNC (0x01) | 2104 | #define MPI_PHYSDISK0_STATUS_FLAG_OUT_OF_SYNC (0x01) |
1716 | #define MPI_PHYSDISK0_STATUS_FLAG_QUIESCED (0x02) | 2105 | #define MPI_PHYSDISK0_STATUS_FLAG_QUIESCED (0x02) |
2106 | #define MPI_PHYSDISK0_STATUS_FLAG_INACTIVE_VOLUME (0x04) | ||
1717 | 2107 | ||
1718 | #define MPI_PHYSDISK0_STATUS_ONLINE (0x00) | 2108 | #define MPI_PHYSDISK0_STATUS_ONLINE (0x00) |
1719 | #define MPI_PHYSDISK0_STATUS_MISSING (0x01) | 2109 | #define MPI_PHYSDISK0_STATUS_MISSING (0x01) |
@@ -1726,24 +2116,54 @@ typedef struct _RAID_PHYS_DISK0_STATUS | |||
1726 | 2116 | ||
1727 | typedef struct _CONFIG_PAGE_RAID_PHYS_DISK_0 | 2117 | typedef struct _CONFIG_PAGE_RAID_PHYS_DISK_0 |
1728 | { | 2118 | { |
1729 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 2119 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1730 | U8 PhysDiskID; /* 04h */ | 2120 | U8 PhysDiskID; /* 04h */ |
1731 | U8 PhysDiskBus; /* 05h */ | 2121 | U8 PhysDiskBus; /* 05h */ |
1732 | U8 PhysDiskIOC; /* 06h */ | 2122 | U8 PhysDiskIOC; /* 06h */ |
1733 | U8 PhysDiskNum; /* 07h */ | 2123 | U8 PhysDiskNum; /* 07h */ |
1734 | RAID_PHYS_DISK0_SETTINGS PhysDiskSettings; /* 08h */ | 2124 | RAID_PHYS_DISK0_SETTINGS PhysDiskSettings; /* 08h */ |
1735 | U32 Reserved1; /* 0Ch */ | 2125 | U32 Reserved1; /* 0Ch */ |
1736 | U32 Reserved2; /* 10h */ | 2126 | U8 ExtDiskIdentifier[8]; /* 10h */ |
1737 | U32 Reserved3; /* 14h */ | ||
1738 | U8 DiskIdentifier[16]; /* 18h */ | 2127 | U8 DiskIdentifier[16]; /* 18h */ |
1739 | RAID_PHYS_DISK0_INQUIRY_DATA InquiryData; /* 28h */ | 2128 | RAID_PHYS_DISK0_INQUIRY_DATA InquiryData; /* 28h */ |
1740 | RAID_PHYS_DISK0_STATUS PhysDiskStatus; /* 64h */ | 2129 | RAID_PHYS_DISK0_STATUS PhysDiskStatus; /* 64h */ |
1741 | U32 MaxLBA; /* 68h */ | 2130 | U32 MaxLBA; /* 68h */ |
1742 | RAID_PHYS_DISK0_ERROR_DATA ErrorData; /* 6Ch */ | 2131 | RAID_PHYS_DISK0_ERROR_DATA ErrorData; /* 6Ch */ |
1743 | } fCONFIG_PAGE_RAID_PHYS_DISK_0, MPI_POINTER PTR_CONFIG_PAGE_RAID_PHYS_DISK_0, | 2132 | } CONFIG_PAGE_RAID_PHYS_DISK_0, MPI_POINTER PTR_CONFIG_PAGE_RAID_PHYS_DISK_0, |
1744 | RaidPhysDiskPage0_t, MPI_POINTER pRaidPhysDiskPage0_t; | 2133 | RaidPhysDiskPage0_t, MPI_POINTER pRaidPhysDiskPage0_t; |
1745 | 2134 | ||
1746 | #define MPI_RAIDPHYSDISKPAGE0_PAGEVERSION (0x00) | 2135 | #define MPI_RAIDPHYSDISKPAGE0_PAGEVERSION (0x01) |
2136 | |||
2137 | |||
2138 | typedef struct _RAID_PHYS_DISK1_PATH | ||
2139 | { | ||
2140 | U8 PhysDiskID; /* 00h */ | ||
2141 | U8 PhysDiskBus; /* 01h */ | ||
2142 | U16 Reserved1; /* 02h */ | ||
2143 | U64 WWID; /* 04h */ | ||
2144 | U64 OwnerWWID; /* 0Ch */ | ||
2145 | U8 OwnerIdentifier; /* 14h */ | ||
2146 | U8 Reserved2; /* 15h */ | ||
2147 | U16 Flags; /* 16h */ | ||
2148 | } RAID_PHYS_DISK1_PATH, MPI_POINTER PTR_RAID_PHYS_DISK1_PATH, | ||
2149 | RaidPhysDisk1Path_t, MPI_POINTER pRaidPhysDisk1Path_t; | ||
2150 | |||
2151 | /* RAID Physical Disk Page 1 Flags field defines */ | ||
2152 | #define MPI_RAID_PHYSDISK1_FLAG_BROKEN (0x0002) | ||
2153 | #define MPI_RAID_PHYSDISK1_FLAG_INVALID (0x0001) | ||
2154 | |||
2155 | typedef struct _CONFIG_PAGE_RAID_PHYS_DISK_1 | ||
2156 | { | ||
2157 | CONFIG_PAGE_HEADER Header; /* 00h */ | ||
2158 | U8 NumPhysDiskPaths; /* 04h */ | ||
2159 | U8 PhysDiskNum; /* 05h */ | ||
2160 | U16 Reserved2; /* 06h */ | ||
2161 | U32 Reserved1; /* 08h */ | ||
2162 | RAID_PHYS_DISK1_PATH Path[1]; /* 0Ch */ | ||
2163 | } CONFIG_PAGE_RAID_PHYS_DISK_1, MPI_POINTER PTR_CONFIG_PAGE_RAID_PHYS_DISK_1, | ||
2164 | RaidPhysDiskPage1_t, MPI_POINTER pRaidPhysDiskPage1_t; | ||
2165 | |||
2166 | #define MPI_RAIDPHYSDISKPAGE1_PAGEVERSION (0x00) | ||
1747 | 2167 | ||
1748 | 2168 | ||
1749 | /**************************************************************************** | 2169 | /**************************************************************************** |
@@ -1756,7 +2176,7 @@ typedef struct _CONFIG_PAGE_LAN_0 | |||
1756 | U16 TxRxModes; /* 04h */ | 2176 | U16 TxRxModes; /* 04h */ |
1757 | U16 Reserved; /* 06h */ | 2177 | U16 Reserved; /* 06h */ |
1758 | U32 PacketPrePad; /* 08h */ | 2178 | U32 PacketPrePad; /* 08h */ |
1759 | } fCONFIG_PAGE_LAN_0, MPI_POINTER PTR_CONFIG_PAGE_LAN_0, | 2179 | } CONFIG_PAGE_LAN_0, MPI_POINTER PTR_CONFIG_PAGE_LAN_0, |
1760 | LANPage0_t, MPI_POINTER pLANPage0_t; | 2180 | LANPage0_t, MPI_POINTER pLANPage0_t; |
1761 | 2181 | ||
1762 | #define MPI_LAN_PAGE0_PAGEVERSION (0x01) | 2182 | #define MPI_LAN_PAGE0_PAGEVERSION (0x01) |
@@ -1781,7 +2201,7 @@ typedef struct _CONFIG_PAGE_LAN_1 | |||
1781 | U32 MaxReplySize; /* 24h */ | 2201 | U32 MaxReplySize; /* 24h */ |
1782 | U32 NegWireSpeedLow; /* 28h */ | 2202 | U32 NegWireSpeedLow; /* 28h */ |
1783 | U32 NegWireSpeedHigh; /* 2Ch */ | 2203 | U32 NegWireSpeedHigh; /* 2Ch */ |
1784 | } fCONFIG_PAGE_LAN_1, MPI_POINTER PTR_CONFIG_PAGE_LAN_1, | 2204 | } CONFIG_PAGE_LAN_1, MPI_POINTER PTR_CONFIG_PAGE_LAN_1, |
1785 | LANPage1_t, MPI_POINTER pLANPage1_t; | 2205 | LANPage1_t, MPI_POINTER pLANPage1_t; |
1786 | 2206 | ||
1787 | #define MPI_LAN_PAGE1_PAGEVERSION (0x03) | 2207 | #define MPI_LAN_PAGE1_PAGEVERSION (0x03) |
@@ -1796,11 +2216,11 @@ typedef struct _CONFIG_PAGE_LAN_1 | |||
1796 | 2216 | ||
1797 | typedef struct _CONFIG_PAGE_INBAND_0 | 2217 | typedef struct _CONFIG_PAGE_INBAND_0 |
1798 | { | 2218 | { |
1799 | fCONFIG_PAGE_HEADER Header; /* 00h */ | 2219 | CONFIG_PAGE_HEADER Header; /* 00h */ |
1800 | MPI_VERSION_FORMAT InbandVersion; /* 04h */ | 2220 | MPI_VERSION_FORMAT InbandVersion; /* 04h */ |
1801 | U16 MaximumBuffers; /* 08h */ | 2221 | U16 MaximumBuffers; /* 08h */ |
1802 | U16 Reserved1; /* 0Ah */ | 2222 | U16 Reserved1; /* 0Ah */ |
1803 | } fCONFIG_PAGE_INBAND_0, MPI_POINTER PTR_CONFIG_PAGE_INBAND_0, | 2223 | } CONFIG_PAGE_INBAND_0, MPI_POINTER PTR_CONFIG_PAGE_INBAND_0, |
1804 | InbandPage0_t, MPI_POINTER pInbandPage0_t; | 2224 | InbandPage0_t, MPI_POINTER pInbandPage0_t; |
1805 | 2225 | ||
1806 | #define MPI_INBAND_PAGEVERSION (0x00) | 2226 | #define MPI_INBAND_PAGEVERSION (0x00) |
@@ -1820,7 +2240,7 @@ typedef struct _MPI_SAS_IO_UNIT0_PHY_DATA | |||
1820 | U32 ControllerPhyDeviceInfo;/* 04h */ | 2240 | U32 ControllerPhyDeviceInfo;/* 04h */ |
1821 | U16 AttachedDeviceHandle; /* 08h */ | 2241 | U16 AttachedDeviceHandle; /* 08h */ |
1822 | U16 ControllerDevHandle; /* 0Ah */ | 2242 | U16 ControllerDevHandle; /* 0Ah */ |
1823 | U32 Reserved2; /* 0Ch */ | 2243 | U32 DiscoveryStatus; /* 0Ch */ |
1824 | } MPI_SAS_IO_UNIT0_PHY_DATA, MPI_POINTER PTR_MPI_SAS_IO_UNIT0_PHY_DATA, | 2244 | } MPI_SAS_IO_UNIT0_PHY_DATA, MPI_POINTER PTR_MPI_SAS_IO_UNIT0_PHY_DATA, |
1825 | SasIOUnit0PhyData, MPI_POINTER pSasIOUnit0PhyData; | 2245 | SasIOUnit0PhyData, MPI_POINTER pSasIOUnit0PhyData; |
1826 | 2246 | ||
@@ -1834,22 +2254,21 @@ typedef struct _MPI_SAS_IO_UNIT0_PHY_DATA | |||
1834 | 2254 | ||
1835 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_0 | 2255 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_0 |
1836 | { | 2256 | { |
1837 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2257 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
1838 | U32 Reserved1; /* 08h */ | 2258 | U32 Reserved1; /* 08h */ |
1839 | U8 NumPhys; /* 0Ch */ | 2259 | U8 NumPhys; /* 0Ch */ |
1840 | U8 Reserved2; /* 0Dh */ | 2260 | U8 Reserved2; /* 0Dh */ |
1841 | U16 Reserved3; /* 0Eh */ | 2261 | U16 Reserved3; /* 0Eh */ |
1842 | MPI_SAS_IO_UNIT0_PHY_DATA PhyData[MPI_SAS_IOUNIT0_PHY_MAX]; /* 10h */ | 2262 | MPI_SAS_IO_UNIT0_PHY_DATA PhyData[MPI_SAS_IOUNIT0_PHY_MAX]; /* 10h */ |
1843 | } fCONFIG_PAGE_SAS_IO_UNIT_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_0, | 2263 | } CONFIG_PAGE_SAS_IO_UNIT_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_0, |
1844 | SasIOUnitPage0_t, MPI_POINTER pSasIOUnitPage0_t; | 2264 | SasIOUnitPage0_t, MPI_POINTER pSasIOUnitPage0_t; |
1845 | 2265 | ||
1846 | #define MPI_SASIOUNITPAGE0_PAGEVERSION (0x00) | 2266 | #define MPI_SASIOUNITPAGE0_PAGEVERSION (0x02) |
1847 | 2267 | ||
1848 | /* values for SAS IO Unit Page 0 PortFlags */ | 2268 | /* values for SAS IO Unit Page 0 PortFlags */ |
1849 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS (0x08) | 2269 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS (0x08) |
1850 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_0_TARGET_IOC_NUM (0x00) | 2270 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_0_TARGET_IOC_NUM (0x00) |
1851 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_1_TARGET_IOC_NUM (0x04) | 2271 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_1_TARGET_IOC_NUM (0x04) |
1852 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_WAIT_FOR_PORTENABLE (0x02) | ||
1853 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_AUTO_PORT_CONFIG (0x01) | 2272 | #define MPI_SAS_IOUNIT0_PORT_FLAGS_AUTO_PORT_CONFIG (0x01) |
1854 | 2273 | ||
1855 | /* values for SAS IO Unit Page 0 PhyFlags */ | 2274 | /* values for SAS IO Unit Page 0 PhyFlags */ |
@@ -1867,6 +2286,20 @@ typedef struct _CONFIG_PAGE_SAS_IO_UNIT_0 | |||
1867 | 2286 | ||
1868 | /* see mpi_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */ | 2287 | /* see mpi_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */ |
1869 | 2288 | ||
2289 | /* values for SAS IO Unit Page 0 DiscoveryStatus */ | ||
2290 | #define MPI_SAS_IOUNIT0_DS_LOOP_DETECTED (0x00000001) | ||
2291 | #define MPI_SAS_IOUNIT0_DS_UNADDRESSABLE_DEVICE (0x00000002) | ||
2292 | #define MPI_SAS_IOUNIT0_DS_MULTIPLE_PORTS (0x00000004) | ||
2293 | #define MPI_SAS_IOUNIT0_DS_EXPANDER_ERR (0x00000008) | ||
2294 | #define MPI_SAS_IOUNIT0_DS_SMP_TIMEOUT (0x00000010) | ||
2295 | #define MPI_SAS_IOUNIT0_DS_OUT_ROUTE_ENTRIES (0x00000020) | ||
2296 | #define MPI_SAS_IOUNIT0_DS_INDEX_NOT_EXIST (0x00000040) | ||
2297 | #define MPI_SAS_IOUNIT0_DS_SMP_FUNCTION_FAILED (0x00000080) | ||
2298 | #define MPI_SAS_IOUNIT0_DS_SMP_CRC_ERROR (0x00000100) | ||
2299 | #define MPI_SAS_IOUNIT0_DS_SUBTRACTIVE_LINK (0x00000200) | ||
2300 | #define MPI_SAS_IOUNIT0_DS_TABLE_LINK (0x00000400) | ||
2301 | #define MPI_SAS_IOUNIT0_DS_UNSUPPORTED_DEVICE (0x00000800) | ||
2302 | |||
1870 | 2303 | ||
1871 | typedef struct _MPI_SAS_IO_UNIT1_PHY_DATA | 2304 | typedef struct _MPI_SAS_IO_UNIT1_PHY_DATA |
1872 | { | 2305 | { |
@@ -1889,52 +2322,75 @@ typedef struct _MPI_SAS_IO_UNIT1_PHY_DATA | |||
1889 | 2322 | ||
1890 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_1 | 2323 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_1 |
1891 | { | 2324 | { |
1892 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2325 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
1893 | U32 Reserved1; /* 08h */ | 2326 | U16 ControlFlags; /* 08h */ |
1894 | U8 NumPhys; /* 0Ch */ | 2327 | U16 MaxNumSATATargets; /* 0Ah */ |
1895 | U8 Reserved2; /* 0Dh */ | 2328 | U32 Reserved1; /* 0Ch */ |
1896 | U16 Reserved3; /* 0Eh */ | 2329 | U8 NumPhys; /* 10h */ |
1897 | MPI_SAS_IO_UNIT1_PHY_DATA PhyData[MPI_SAS_IOUNIT1_PHY_MAX]; /* 10h */ | 2330 | U8 SATAMaxQDepth; /* 11h */ |
1898 | } fCONFIG_PAGE_SAS_IO_UNIT_1, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_1, | 2331 | U16 Reserved2; /* 12h */ |
2332 | MPI_SAS_IO_UNIT1_PHY_DATA PhyData[MPI_SAS_IOUNIT1_PHY_MAX]; /* 14h */ | ||
2333 | } CONFIG_PAGE_SAS_IO_UNIT_1, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_1, | ||
1899 | SasIOUnitPage1_t, MPI_POINTER pSasIOUnitPage1_t; | 2334 | SasIOUnitPage1_t, MPI_POINTER pSasIOUnitPage1_t; |
1900 | 2335 | ||
1901 | #define MPI_SASIOUNITPAGE1_PAGEVERSION (0x00) | 2336 | #define MPI_SASIOUNITPAGE1_PAGEVERSION (0x04) |
1902 | 2337 | ||
1903 | /* values for SAS IO Unit Page 0 PortFlags */ | 2338 | /* values for SAS IO Unit Page 1 ControlFlags */ |
1904 | #define MPI_SAS_IOUNIT1_PORT_FLAGS_0_TARGET_IOC_NUM (0x00) | 2339 | #define MPI_SAS_IOUNIT1_CONTROL_SATA_3_0_MAX (0x4000) |
1905 | #define MPI_SAS_IOUNIT1_PORT_FLAGS_1_TARGET_IOC_NUM (0x04) | 2340 | #define MPI_SAS_IOUNIT1_CONTROL_SATA_1_5_MAX (0x2000) |
1906 | #define MPI_SAS_IOUNIT1_PORT_FLAGS_WAIT_FOR_PORTENABLE (0x02) | 2341 | #define MPI_SAS_IOUNIT1_CONTROL_SATA_SW_PRESERVE (0x1000) |
1907 | #define MPI_SAS_IOUNIT1_PORT_FLAGS_AUTO_PORT_CONFIG (0x01) | 2342 | #define MPI_SAS_IOUNIT1_CONTROL_DISABLE_SAS_HASH (0x0800) |
2343 | |||
2344 | #define MPI_SAS_IOUNIT1_CONTROL_MASK_DEV_SUPPORT (0x0600) | ||
2345 | #define MPI_SAS_IOUNIT1_CONTROL_SHIFT_DEV_SUPPORT (9) | ||
2346 | #define MPI_SAS_IOUNIT1_CONTROL_DEV_SUPPORT_BOTH (0x00) | ||
2347 | #define MPI_SAS_IOUNIT1_CONTROL_DEV_SAS_SUPPORT (0x01) | ||
2348 | #define MPI_SAS_IOUNIT1_CONTROL_DEV_SATA_SUPPORT (0x10) | ||
2349 | |||
2350 | #define MPI_SAS_IOUNIT1_CONTROL_AUTO_PORT_SAME_SAS_ADDR (0x0100) | ||
2351 | #define MPI_SAS_IOUNIT1_CONTROL_SATA_48BIT_LBA_REQUIRED (0x0080) | ||
2352 | #define MPI_SAS_IOUNIT1_CONTROL_SATA_SMART_REQUIRED (0x0040) | ||
2353 | #define MPI_SAS_IOUNIT1_CONTROL_SATA_NCQ_REQUIRED (0x0020) | ||
2354 | #define MPI_SAS_IOUNIT1_CONTROL_SATA_FUA_REQUIRED (0x0010) | ||
2355 | #define MPI_SAS_IOUNIT1_CONTROL_PHY_ENABLE_ORDER_HIGH (0x0008) | ||
2356 | #define MPI_SAS_IOUNIT1_CONTROL_SUBTRACTIVE_ILLEGAL (0x0004) | ||
2357 | #define MPI_SAS_IOUNIT1_CONTROL_FIRST_LVL_DISC_ONLY (0x0002) | ||
2358 | #define MPI_SAS_IOUNIT1_CONTROL_CLEAR_AFFILIATION (0x0001) | ||
2359 | |||
2360 | /* values for SAS IO Unit Page 1 PortFlags */ | ||
2361 | #define MPI_SAS_IOUNIT1_PORT_FLAGS_0_TARGET_IOC_NUM (0x00) | ||
2362 | #define MPI_SAS_IOUNIT1_PORT_FLAGS_1_TARGET_IOC_NUM (0x04) | ||
2363 | #define MPI_SAS_IOUNIT1_PORT_FLAGS_AUTO_PORT_CONFIG (0x01) | ||
1908 | 2364 | ||
1909 | /* values for SAS IO Unit Page 0 PhyFlags */ | 2365 | /* values for SAS IO Unit Page 0 PhyFlags */ |
1910 | #define MPI_SAS_IOUNIT1_PHY_FLAGS_PHY_DISABLE (0x04) | 2366 | #define MPI_SAS_IOUNIT1_PHY_FLAGS_PHY_DISABLE (0x04) |
1911 | #define MPI_SAS_IOUNIT1_PHY_FLAGS_TX_INVERT (0x02) | 2367 | #define MPI_SAS_IOUNIT1_PHY_FLAGS_TX_INVERT (0x02) |
1912 | #define MPI_SAS_IOUNIT1_PHY_FLAGS_RX_INVERT (0x01) | 2368 | #define MPI_SAS_IOUNIT1_PHY_FLAGS_RX_INVERT (0x01) |
1913 | 2369 | ||
1914 | /* values for SAS IO Unit Page 0 MaxMinLinkRate */ | 2370 | /* values for SAS IO Unit Page 0 MaxMinLinkRate */ |
1915 | #define MPI_SAS_IOUNIT1_MAX_RATE_MASK (0xF0) | 2371 | #define MPI_SAS_IOUNIT1_MAX_RATE_MASK (0xF0) |
1916 | #define MPI_SAS_IOUNIT1_MAX_RATE_1_5 (0x80) | 2372 | #define MPI_SAS_IOUNIT1_MAX_RATE_1_5 (0x80) |
1917 | #define MPI_SAS_IOUNIT1_MAX_RATE_3_0 (0x90) | 2373 | #define MPI_SAS_IOUNIT1_MAX_RATE_3_0 (0x90) |
1918 | #define MPI_SAS_IOUNIT1_MIN_RATE_MASK (0x0F) | 2374 | #define MPI_SAS_IOUNIT1_MIN_RATE_MASK (0x0F) |
1919 | #define MPI_SAS_IOUNIT1_MIN_RATE_1_5 (0x08) | 2375 | #define MPI_SAS_IOUNIT1_MIN_RATE_1_5 (0x08) |
1920 | #define MPI_SAS_IOUNIT1_MIN_RATE_3_0 (0x09) | 2376 | #define MPI_SAS_IOUNIT1_MIN_RATE_3_0 (0x09) |
1921 | 2377 | ||
1922 | /* see mpi_sas.h for values for SAS IO Unit Page 1 ControllerPhyDeviceInfo values */ | 2378 | /* see mpi_sas.h for values for SAS IO Unit Page 1 ControllerPhyDeviceInfo values */ |
1923 | 2379 | ||
1924 | 2380 | ||
1925 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_2 | 2381 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_2 |
1926 | { | 2382 | { |
1927 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2383 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
1928 | U32 Reserved1; /* 08h */ | 2384 | U32 Reserved1; /* 08h */ |
1929 | U16 MaxPersistentIDs; /* 0Ch */ | 2385 | U16 MaxPersistentIDs; /* 0Ch */ |
1930 | U16 NumPersistentIDsUsed; /* 0Eh */ | 2386 | U16 NumPersistentIDsUsed; /* 0Eh */ |
1931 | U8 Status; /* 10h */ | 2387 | U8 Status; /* 10h */ |
1932 | U8 Flags; /* 11h */ | 2388 | U8 Flags; /* 11h */ |
1933 | U16 Reserved2; /* 12h */ | 2389 | U16 MaxNumPhysicalMappedIDs;/* 12h */ /* 12h */ |
1934 | } fCONFIG_PAGE_SAS_IO_UNIT_2, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_2, | 2390 | } CONFIG_PAGE_SAS_IO_UNIT_2, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_2, |
1935 | SasIOUnitPage2_t, MPI_POINTER pSasIOUnitPage2_t; | 2391 | SasIOUnitPage2_t, MPI_POINTER pSasIOUnitPage2_t; |
1936 | 2392 | ||
1937 | #define MPI_SASIOUNITPAGE2_PAGEVERSION (0x00) | 2393 | #define MPI_SASIOUNITPAGE2_PAGEVERSION (0x03) |
1938 | 2394 | ||
1939 | /* values for SAS IO Unit Page 2 Status field */ | 2395 | /* values for SAS IO Unit Page 2 Status field */ |
1940 | #define MPI_SAS_IOUNIT2_STATUS_DISABLED_PERSISTENT_MAPPINGS (0x02) | 2396 | #define MPI_SAS_IOUNIT2_STATUS_DISABLED_PERSISTENT_MAPPINGS (0x02) |
@@ -1942,11 +2398,19 @@ typedef struct _CONFIG_PAGE_SAS_IO_UNIT_2 | |||
1942 | 2398 | ||
1943 | /* values for SAS IO Unit Page 2 Flags field */ | 2399 | /* values for SAS IO Unit Page 2 Flags field */ |
1944 | #define MPI_SAS_IOUNIT2_FLAGS_DISABLE_PERSISTENT_MAPPINGS (0x01) | 2400 | #define MPI_SAS_IOUNIT2_FLAGS_DISABLE_PERSISTENT_MAPPINGS (0x01) |
2401 | /* Physical Mapping Modes */ | ||
2402 | #define MPI_SAS_IOUNIT2_FLAGS_MASK_PHYS_MAP_MODE (0x0E) | ||
2403 | #define MPI_SAS_IOUNIT2_FLAGS_SHIFT_PHYS_MAP_MODE (1) | ||
2404 | #define MPI_SAS_IOUNIT2_FLAGS_NO_PHYS_MAP (0x00) | ||
2405 | #define MPI_SAS_IOUNIT2_FLAGS_DIRECT_ATTACH_PHYS_MAP (0x01) | ||
2406 | #define MPI_SAS_IOUNIT2_FLAGS_ENCLOSURE_SLOT_PHYS_MAP (0x02) | ||
2407 | |||
2408 | #define MPI_SAS_IOUNIT2_FLAGS_RESERVE_ID_0_FOR_BOOT (0x10) | ||
1945 | 2409 | ||
1946 | 2410 | ||
1947 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_3 | 2411 | typedef struct _CONFIG_PAGE_SAS_IO_UNIT_3 |
1948 | { | 2412 | { |
1949 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2413 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
1950 | U32 Reserved1; /* 08h */ | 2414 | U32 Reserved1; /* 08h */ |
1951 | U32 MaxInvalidDwordCount; /* 0Ch */ | 2415 | U32 MaxInvalidDwordCount; /* 0Ch */ |
1952 | U32 InvalidDwordCountTime; /* 10h */ | 2416 | U32 InvalidDwordCountTime; /* 10h */ |
@@ -1956,18 +2420,24 @@ typedef struct _CONFIG_PAGE_SAS_IO_UNIT_3 | |||
1956 | U32 LossDwordSynchCountTime; /* 20h */ | 2420 | U32 LossDwordSynchCountTime; /* 20h */ |
1957 | U32 MaxPhyResetProblemCount; /* 24h */ | 2421 | U32 MaxPhyResetProblemCount; /* 24h */ |
1958 | U32 PhyResetProblemTime; /* 28h */ | 2422 | U32 PhyResetProblemTime; /* 28h */ |
1959 | } fCONFIG_PAGE_SAS_IO_UNIT_3, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_3, | 2423 | } CONFIG_PAGE_SAS_IO_UNIT_3, MPI_POINTER PTR_CONFIG_PAGE_SAS_IO_UNIT_3, |
1960 | SasIOUnitPage3_t, MPI_POINTER pSasIOUnitPage3_t; | 2424 | SasIOUnitPage3_t, MPI_POINTER pSasIOUnitPage3_t; |
1961 | 2425 | ||
1962 | #define MPI_SASIOUNITPAGE3_PAGEVERSION (0x00) | 2426 | #define MPI_SASIOUNITPAGE3_PAGEVERSION (0x00) |
1963 | 2427 | ||
1964 | 2428 | ||
2429 | /**************************************************************************** | ||
2430 | * SAS Expander Config Pages | ||
2431 | ****************************************************************************/ | ||
2432 | |||
1965 | typedef struct _CONFIG_PAGE_SAS_EXPANDER_0 | 2433 | typedef struct _CONFIG_PAGE_SAS_EXPANDER_0 |
1966 | { | 2434 | { |
1967 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2435 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
1968 | U32 Reserved1; /* 08h */ | 2436 | U8 PhysicalPort; /* 08h */ |
2437 | U8 Reserved1; /* 09h */ | ||
2438 | U16 Reserved2; /* 0Ah */ | ||
1969 | U64 SASAddress; /* 0Ch */ | 2439 | U64 SASAddress; /* 0Ch */ |
1970 | U32 Reserved2; /* 14h */ | 2440 | U32 DiscoveryStatus; /* 14h */ |
1971 | U16 DevHandle; /* 18h */ | 2441 | U16 DevHandle; /* 18h */ |
1972 | U16 ParentDevHandle; /* 1Ah */ | 2442 | U16 ParentDevHandle; /* 1Ah */ |
1973 | U16 ExpanderChangeCount; /* 1Ch */ | 2443 | U16 ExpanderChangeCount; /* 1Ch */ |
@@ -1976,45 +2446,127 @@ typedef struct _CONFIG_PAGE_SAS_EXPANDER_0 | |||
1976 | U8 SASLevel; /* 21h */ | 2446 | U8 SASLevel; /* 21h */ |
1977 | U8 Flags; /* 22h */ | 2447 | U8 Flags; /* 22h */ |
1978 | U8 Reserved3; /* 23h */ | 2448 | U8 Reserved3; /* 23h */ |
1979 | } fCONFIG_PAGE_SAS_EXPANDER_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_EXPANDER_0, | 2449 | } CONFIG_PAGE_SAS_EXPANDER_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_EXPANDER_0, |
1980 | SasExpanderPage0_t, MPI_POINTER pSasExpanderPage0_t; | 2450 | SasExpanderPage0_t, MPI_POINTER pSasExpanderPage0_t; |
1981 | 2451 | ||
1982 | #define MPI_SASEXPANDER0_PAGEVERSION (0x00) | 2452 | #define MPI_SASEXPANDER0_PAGEVERSION (0x02) |
2453 | |||
2454 | /* values for SAS Expander Page 0 DiscoveryStatus field */ | ||
2455 | #define MPI_SAS_EXPANDER0_DS_LOOP_DETECTED (0x00000001) | ||
2456 | #define MPI_SAS_EXPANDER0_DS_UNADDRESSABLE_DEVICE (0x00000002) | ||
2457 | #define MPI_SAS_EXPANDER0_DS_MULTIPLE_PORTS (0x00000004) | ||
2458 | #define MPI_SAS_EXPANDER0_DS_EXPANDER_ERR (0x00000008) | ||
2459 | #define MPI_SAS_EXPANDER0_DS_SMP_TIMEOUT (0x00000010) | ||
2460 | #define MPI_SAS_EXPANDER0_DS_OUT_ROUTE_ENTRIES (0x00000020) | ||
2461 | #define MPI_SAS_EXPANDER0_DS_INDEX_NOT_EXIST (0x00000040) | ||
2462 | #define MPI_SAS_EXPANDER0_DS_SMP_FUNCTION_FAILED (0x00000080) | ||
2463 | #define MPI_SAS_EXPANDER0_DS_SMP_CRC_ERROR (0x00000100) | ||
2464 | #define MPI_SAS_EXPANDER0_DS_SUBTRACTIVE_LINK (0x00000200) | ||
2465 | #define MPI_SAS_EXPANDER0_DS_TABLE_LINK (0x00000400) | ||
2466 | #define MPI_SAS_EXPANDER0_DS_UNSUPPORTED_DEVICE (0x00000800) | ||
1983 | 2467 | ||
1984 | /* values for SAS Expander Page 0 Flags field */ | 2468 | /* values for SAS Expander Page 0 Flags field */ |
1985 | #define MPI_SAS_EXPANDER0_FLAGS_ROUTE_TABLE_CONFIG (0x02) | 2469 | #define MPI_SAS_EXPANDER0_FLAGS_ROUTE_TABLE_CONFIG (0x02) |
1986 | #define MPI_SAS_EXPANDER0_FLAGS_CONFIG_IN_PROGRESS (0x01) | 2470 | #define MPI_SAS_EXPANDER0_FLAGS_CONFIG_IN_PROGRESS (0x01) |
1987 | 2471 | ||
1988 | 2472 | ||
2473 | typedef struct _CONFIG_PAGE_SAS_EXPANDER_1 | ||
2474 | { | ||
2475 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | ||
2476 | U8 PhysicalPort; /* 08h */ | ||
2477 | U8 Reserved1; /* 09h */ | ||
2478 | U16 Reserved2; /* 0Ah */ | ||
2479 | U8 NumPhys; /* 0Ch */ | ||
2480 | U8 Phy; /* 0Dh */ | ||
2481 | U16 NumTableEntriesProgrammed; /* 0Eh */ | ||
2482 | U8 ProgrammedLinkRate; /* 10h */ | ||
2483 | U8 HwLinkRate; /* 11h */ | ||
2484 | U16 AttachedDevHandle; /* 12h */ | ||
2485 | U32 PhyInfo; /* 14h */ | ||
2486 | U32 AttachedDeviceInfo; /* 18h */ | ||
2487 | U16 OwnerDevHandle; /* 1Ch */ | ||
2488 | U8 ChangeCount; /* 1Eh */ | ||
2489 | U8 NegotiatedLinkRate; /* 1Fh */ | ||
2490 | U8 PhyIdentifier; /* 20h */ | ||
2491 | U8 AttachedPhyIdentifier; /* 21h */ | ||
2492 | U8 NumTableEntriesProg; /* 22h */ | ||
2493 | U8 DiscoveryInfo; /* 23h */ | ||
2494 | U32 Reserved3; /* 24h */ | ||
2495 | } CONFIG_PAGE_SAS_EXPANDER_1, MPI_POINTER PTR_CONFIG_PAGE_SAS_EXPANDER_1, | ||
2496 | SasExpanderPage1_t, MPI_POINTER pSasExpanderPage1_t; | ||
2497 | |||
2498 | #define MPI_SASEXPANDER1_PAGEVERSION (0x01) | ||
2499 | |||
2500 | /* use MPI_SAS_PHY0_PRATE_ defines for ProgrammedLinkRate */ | ||
2501 | |||
2502 | /* use MPI_SAS_PHY0_HWRATE_ defines for HwLinkRate */ | ||
2503 | |||
2504 | /* use MPI_SAS_PHY0_PHYINFO_ defines for PhyInfo */ | ||
2505 | |||
2506 | /* see mpi_sas.h for values for SAS Expander Page 1 AttachedDeviceInfo values */ | ||
2507 | |||
2508 | /* values for SAS Expander Page 1 DiscoveryInfo field */ | ||
2509 | #define MPI_SAS_EXPANDER1_DISCINFO_BAD_PHY DISABLED (0x04) | ||
2510 | #define MPI_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE (0x02) | ||
2511 | #define MPI_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES (0x01) | ||
2512 | |||
2513 | /* values for SAS Expander Page 1 NegotiatedLinkRate field */ | ||
2514 | #define MPI_SAS_EXPANDER1_NEG_RATE_UNKNOWN (0x00) | ||
2515 | #define MPI_SAS_EXPANDER1_NEG_RATE_PHY_DISABLED (0x01) | ||
2516 | #define MPI_SAS_EXPANDER1_NEG_RATE_FAILED_NEGOTIATION (0x02) | ||
2517 | #define MPI_SAS_EXPANDER1_NEG_RATE_SATA_OOB_COMPLETE (0x03) | ||
2518 | #define MPI_SAS_EXPANDER1_NEG_RATE_1_5 (0x08) | ||
2519 | #define MPI_SAS_EXPANDER1_NEG_RATE_3_0 (0x09) | ||
2520 | |||
2521 | |||
2522 | /**************************************************************************** | ||
2523 | * SAS Device Config Pages | ||
2524 | ****************************************************************************/ | ||
2525 | |||
1989 | typedef struct _CONFIG_PAGE_SAS_DEVICE_0 | 2526 | typedef struct _CONFIG_PAGE_SAS_DEVICE_0 |
1990 | { | 2527 | { |
1991 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2528 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
1992 | U32 Reserved1; /* 08h */ | 2529 | U16 Slot; /* 08h */ |
2530 | U16 EnclosureHandle; /* 0Ah */ | ||
1993 | U64 SASAddress; /* 0Ch */ | 2531 | U64 SASAddress; /* 0Ch */ |
1994 | U32 Reserved2; /* 14h */ | 2532 | U16 ParentDevHandle; /* 14h */ |
2533 | U8 PhyNum; /* 16h */ | ||
2534 | U8 AccessStatus; /* 17h */ | ||
1995 | U16 DevHandle; /* 18h */ | 2535 | U16 DevHandle; /* 18h */ |
1996 | U8 TargetID; /* 1Ah */ | 2536 | U8 TargetID; /* 1Ah */ |
1997 | U8 Bus; /* 1Bh */ | 2537 | U8 Bus; /* 1Bh */ |
1998 | U32 DeviceInfo; /* 1Ch */ | 2538 | U32 DeviceInfo; /* 1Ch */ |
1999 | U16 Flags; /* 20h */ | 2539 | U16 Flags; /* 20h */ |
2000 | U8 PhysicalPort; /* 22h */ | 2540 | U8 PhysicalPort; /* 22h */ |
2001 | U8 Reserved3; /* 23h */ | 2541 | U8 Reserved2; /* 23h */ |
2002 | } fCONFIG_PAGE_SAS_DEVICE_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_DEVICE_0, | 2542 | } CONFIG_PAGE_SAS_DEVICE_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_DEVICE_0, |
2003 | SasDevicePage0_t, MPI_POINTER pSasDevicePage0_t; | 2543 | SasDevicePage0_t, MPI_POINTER pSasDevicePage0_t; |
2004 | 2544 | ||
2005 | #define MPI_SASDEVICE0_PAGEVERSION (0x00) | 2545 | #define MPI_SASDEVICE0_PAGEVERSION (0x04) |
2546 | |||
2547 | /* values for SAS Device Page 0 AccessStatus field */ | ||
2548 | #define MPI_SAS_DEVICE0_ASTATUS_NO_ERRORS (0x00) | ||
2549 | #define MPI_SAS_DEVICE0_ASTATUS_SATA_INIT_FAILED (0x01) | ||
2550 | #define MPI_SAS_DEVICE0_ASTATUS_SATA_CAPABILITY_FAILED (0x02) | ||
2006 | 2551 | ||
2007 | /* values for SAS Device Page 0 Flags field */ | 2552 | /* values for SAS Device Page 0 Flags field */ |
2008 | #define MPI_SAS_DEVICE0_FLAGS_MAPPING_PERSISTENT (0x04) | 2553 | #define MPI_SAS_DEVICE0_FLAGS_SATA_SW_PRESERVE (0x0200) |
2009 | #define MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED (0x02) | 2554 | #define MPI_SAS_DEVICE0_FLAGS_UNSUPPORTED_DEVICE (0x0100) |
2010 | #define MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT (0x01) | 2555 | #define MPI_SAS_DEVICE0_FLAGS_SATA_48BIT_LBA_SUPPORTED (0x0080) |
2556 | #define MPI_SAS_DEVICE0_FLAGS_SATA_SMART_SUPPORTED (0x0040) | ||
2557 | #define MPI_SAS_DEVICE0_FLAGS_SATA_NCQ_SUPPORTED (0x0020) | ||
2558 | #define MPI_SAS_DEVICE0_FLAGS_SATA_FUA_SUPPORTED (0x0010) | ||
2559 | #define MPI_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH (0x0008) | ||
2560 | #define MPI_SAS_DEVICE0_FLAGS_MAPPING_PERSISTENT (0x0004) | ||
2561 | #define MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED (0x0002) | ||
2562 | #define MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT (0x0001) | ||
2011 | 2563 | ||
2012 | /* see mpi_sas.h for values for SAS Device Page 0 DeviceInfo values */ | 2564 | /* see mpi_sas.h for values for SAS Device Page 0 DeviceInfo values */ |
2013 | 2565 | ||
2014 | 2566 | ||
2015 | typedef struct _CONFIG_PAGE_SAS_DEVICE_1 | 2567 | typedef struct _CONFIG_PAGE_SAS_DEVICE_1 |
2016 | { | 2568 | { |
2017 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2569 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
2018 | U32 Reserved1; /* 08h */ | 2570 | U32 Reserved1; /* 08h */ |
2019 | U64 SASAddress; /* 0Ch */ | 2571 | U64 SASAddress; /* 0Ch */ |
2020 | U32 Reserved2; /* 14h */ | 2572 | U32 Reserved2; /* 14h */ |
@@ -2022,15 +2574,30 @@ typedef struct _CONFIG_PAGE_SAS_DEVICE_1 | |||
2022 | U8 TargetID; /* 1Ah */ | 2574 | U8 TargetID; /* 1Ah */ |
2023 | U8 Bus; /* 1Bh */ | 2575 | U8 Bus; /* 1Bh */ |
2024 | U8 InitialRegDeviceFIS[20];/* 1Ch */ | 2576 | U8 InitialRegDeviceFIS[20];/* 1Ch */ |
2025 | } fCONFIG_PAGE_SAS_DEVICE_1, MPI_POINTER PTR_CONFIG_PAGE_SAS_DEVICE_1, | 2577 | } CONFIG_PAGE_SAS_DEVICE_1, MPI_POINTER PTR_CONFIG_PAGE_SAS_DEVICE_1, |
2026 | SasDevicePage1_t, MPI_POINTER pSasDevicePage1_t; | 2578 | SasDevicePage1_t, MPI_POINTER pSasDevicePage1_t; |
2027 | 2579 | ||
2028 | #define MPI_SASDEVICE1_PAGEVERSION (0x00) | 2580 | #define MPI_SASDEVICE1_PAGEVERSION (0x00) |
2029 | 2581 | ||
2030 | 2582 | ||
2583 | typedef struct _CONFIG_PAGE_SAS_DEVICE_2 | ||
2584 | { | ||
2585 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | ||
2586 | U64 PhysicalIdentifier; /* 08h */ | ||
2587 | U32 Reserved1; /* 10h */ | ||
2588 | } CONFIG_PAGE_SAS_DEVICE_2, MPI_POINTER PTR_CONFIG_PAGE_SAS_DEVICE_2, | ||
2589 | SasDevicePage2_t, MPI_POINTER pSasDevicePage2_t; | ||
2590 | |||
2591 | #define MPI_SASDEVICE2_PAGEVERSION (0x00) | ||
2592 | |||
2593 | |||
2594 | /**************************************************************************** | ||
2595 | * SAS PHY Config Pages | ||
2596 | ****************************************************************************/ | ||
2597 | |||
2031 | typedef struct _CONFIG_PAGE_SAS_PHY_0 | 2598 | typedef struct _CONFIG_PAGE_SAS_PHY_0 |
2032 | { | 2599 | { |
2033 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2600 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
2034 | U32 Reserved1; /* 08h */ | 2601 | U32 Reserved1; /* 08h */ |
2035 | U64 SASAddress; /* 0Ch */ | 2602 | U64 SASAddress; /* 0Ch */ |
2036 | U16 AttachedDevHandle; /* 14h */ | 2603 | U16 AttachedDevHandle; /* 14h */ |
@@ -2042,7 +2609,7 @@ typedef struct _CONFIG_PAGE_SAS_PHY_0 | |||
2042 | U8 ChangeCount; /* 22h */ | 2609 | U8 ChangeCount; /* 22h */ |
2043 | U8 Reserved3; /* 23h */ | 2610 | U8 Reserved3; /* 23h */ |
2044 | U32 PhyInfo; /* 24h */ | 2611 | U32 PhyInfo; /* 24h */ |
2045 | } fCONFIG_PAGE_SAS_PHY_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_PHY_0, | 2612 | } CONFIG_PAGE_SAS_PHY_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_PHY_0, |
2046 | SasPhyPage0_t, MPI_POINTER pSasPhyPage0_t; | 2613 | SasPhyPage0_t, MPI_POINTER pSasPhyPage0_t; |
2047 | 2614 | ||
2048 | #define MPI_SASPHY0_PAGEVERSION (0x00) | 2615 | #define MPI_SASPHY0_PAGEVERSION (0x00) |
@@ -2089,17 +2656,95 @@ typedef struct _CONFIG_PAGE_SAS_PHY_0 | |||
2089 | 2656 | ||
2090 | typedef struct _CONFIG_PAGE_SAS_PHY_1 | 2657 | typedef struct _CONFIG_PAGE_SAS_PHY_1 |
2091 | { | 2658 | { |
2092 | fCONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | 2659 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ |
2093 | U32 Reserved1; /* 08h */ | 2660 | U32 Reserved1; /* 08h */ |
2094 | U32 InvalidDwordCount; /* 0Ch */ | 2661 | U32 InvalidDwordCount; /* 0Ch */ |
2095 | U32 RunningDisparityErrorCount; /* 10h */ | 2662 | U32 RunningDisparityErrorCount; /* 10h */ |
2096 | U32 LossDwordSynchCount; /* 14h */ | 2663 | U32 LossDwordSynchCount; /* 14h */ |
2097 | U32 PhyResetProblemCount; /* 18h */ | 2664 | U32 PhyResetProblemCount; /* 18h */ |
2098 | } fCONFIG_PAGE_SAS_PHY_1, MPI_POINTER PTR_CONFIG_PAGE_SAS_PHY_1, | 2665 | } CONFIG_PAGE_SAS_PHY_1, MPI_POINTER PTR_CONFIG_PAGE_SAS_PHY_1, |
2099 | SasPhyPage1_t, MPI_POINTER pSasPhyPage1_t; | 2666 | SasPhyPage1_t, MPI_POINTER pSasPhyPage1_t; |
2100 | 2667 | ||
2101 | #define MPI_SASPHY1_PAGEVERSION (0x00) | 2668 | #define MPI_SASPHY1_PAGEVERSION (0x00) |
2102 | 2669 | ||
2103 | 2670 | ||
2671 | /**************************************************************************** | ||
2672 | * SAS Enclosure Config Pages | ||
2673 | ****************************************************************************/ | ||
2674 | |||
2675 | typedef struct _CONFIG_PAGE_SAS_ENCLOSURE_0 | ||
2676 | { | ||
2677 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | ||
2678 | U32 Reserved1; /* 08h */ | ||
2679 | U64 EnclosureLogicalID; /* 0Ch */ | ||
2680 | U16 Flags; /* 14h */ | ||
2681 | U16 EnclosureHandle; /* 16h */ | ||
2682 | U16 NumSlots; /* 18h */ | ||
2683 | U16 StartSlot; /* 1Ah */ | ||
2684 | U8 StartTargetID; /* 1Ch */ | ||
2685 | U8 StartBus; /* 1Dh */ | ||
2686 | U8 SEPTargetID; /* 1Eh */ | ||
2687 | U8 SEPBus; /* 1Fh */ | ||
2688 | U32 Reserved2; /* 20h */ | ||
2689 | U32 Reserved3; /* 24h */ | ||
2690 | } CONFIG_PAGE_SAS_ENCLOSURE_0, MPI_POINTER PTR_CONFIG_PAGE_SAS_ENCLOSURE_0, | ||
2691 | SasEnclosurePage0_t, MPI_POINTER pSasEnclosurePage0_t; | ||
2692 | |||
2693 | #define MPI_SASENCLOSURE0_PAGEVERSION (0x00) | ||
2694 | |||
2695 | /* values for SAS Enclosure Page 0 Flags field */ | ||
2696 | #define MPI_SAS_ENCLS0_FLAGS_SEP_BUS_ID_VALID (0x0020) | ||
2697 | #define MPI_SAS_ENCLS0_FLAGS_START_BUS_ID_VALID (0x0010) | ||
2698 | |||
2699 | #define MPI_SAS_ENCLS0_FLAGS_MNG_MASK (0x000F) | ||
2700 | #define MPI_SAS_ENCLS0_FLAGS_MNG_UNKNOWN (0x0000) | ||
2701 | #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SES (0x0001) | ||
2702 | #define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SGPIO (0x0002) | ||
2703 | #define MPI_SAS_ENCLS0_FLAGS_MNG_EXP_SGPIO (0x0003) | ||
2704 | #define MPI_SAS_ENCLS0_FLAGS_MNG_SES_ENCLOSURE (0x0004) | ||
2705 | |||
2706 | |||
2707 | /**************************************************************************** | ||
2708 | * Log Config Pages | ||
2709 | ****************************************************************************/ | ||
2710 | /* | ||
2711 | * Host code (drivers, BIOS, utilities, etc.) should leave this define set to | ||
2712 | * one and check NumLogEntries at runtime. | ||
2713 | */ | ||
2714 | #ifndef MPI_LOG_0_NUM_LOG_ENTRIES | ||
2715 | #define MPI_LOG_0_NUM_LOG_ENTRIES (1) | ||
2716 | #endif | ||
2717 | |||
2718 | #define MPI_LOG_0_LOG_DATA_LENGTH (20) | ||
2719 | |||
2720 | typedef struct _MPI_LOG_0_ENTRY | ||
2721 | { | ||
2722 | U64 WWID; /* 00h */ | ||
2723 | U32 TimeStamp; /* 08h */ | ||
2724 | U32 Reserved1; /* 0Ch */ | ||
2725 | U16 LogSequence; /* 10h */ | ||
2726 | U16 LogEntryQualifier; /* 12h */ | ||
2727 | U8 LogData[MPI_LOG_0_LOG_DATA_LENGTH]; /* 14h */ | ||
2728 | } MPI_LOG_0_ENTRY, MPI_POINTER PTR_MPI_LOG_0_ENTRY, | ||
2729 | MpiLog0Entry_t, MPI_POINTER pMpiLog0Entry_t; | ||
2730 | |||
2731 | /* values for Log Page 0 LogEntry LogEntryQualifier field */ | ||
2732 | #define MPI_LOG_0_ENTRY_QUAL_ENTRY_UNUSED (0x0000) | ||
2733 | #define MPI_LOG_0_ENTRY_QUAL_POWER_ON_RESET (0x0001) | ||
2734 | |||
2735 | typedef struct _CONFIG_PAGE_LOG_0 | ||
2736 | { | ||
2737 | CONFIG_EXTENDED_PAGE_HEADER Header; /* 00h */ | ||
2738 | U32 Reserved1; /* 08h */ | ||
2739 | U32 Reserved2; /* 0Ch */ | ||
2740 | U16 NumLogEntries; /* 10h */ | ||
2741 | U16 Reserved3; /* 12h */ | ||
2742 | MPI_LOG_0_ENTRY LogEntry[MPI_LOG_0_NUM_LOG_ENTRIES]; /* 14h */ | ||
2743 | } CONFIG_PAGE_LOG_0, MPI_POINTER PTR_CONFIG_PAGE_LOG_0, | ||
2744 | LogPage0_t, MPI_POINTER pLogPage0_t; | ||
2745 | |||
2746 | #define MPI_LOG_0_PAGEVERSION (0x00) | ||
2747 | |||
2748 | |||
2104 | #endif | 2749 | #endif |
2105 | 2750 | ||
diff --git a/drivers/message/fusion/lsi/mpi_fc.h b/drivers/message/fusion/lsi/mpi_fc.h index ea266b236c1f..51a6aeb990ba 100644 --- a/drivers/message/fusion/lsi/mpi_fc.h +++ b/drivers/message/fusion/lsi/mpi_fc.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2004 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_fc.h | 5 | * Name: mpi_fc.h |
6 | * Title: MPI Fibre Channel messages and structures | 6 | * Title: MPI Fibre Channel messages and structures |
7 | * Creation Date: June 12, 2000 | 7 | * Creation Date: June 12, 2000 |
8 | * | 8 | * |
9 | * mpi_fc.h Version: 01.05.xx | 9 | * mpi_fc.h Version: 01.05.01 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -36,6 +36,9 @@ | |||
36 | * 09-28-01 01.02.02 Change name of reserved field in | 36 | * 09-28-01 01.02.02 Change name of reserved field in |
37 | * MSG_LINK_SERVICE_RSP_REPLY. | 37 | * MSG_LINK_SERVICE_RSP_REPLY. |
38 | * 05-31-02 01.02.03 Adding AliasIndex to FC Direct Access requests. | 38 | * 05-31-02 01.02.03 Adding AliasIndex to FC Direct Access requests. |
39 | * 01-16-04 01.02.04 Added define for MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK. | ||
40 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
41 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
39 | * -------------------------------------------------------------------------- | 42 | * -------------------------------------------------------------------------- |
40 | */ | 43 | */ |
41 | 44 | ||
diff --git a/drivers/message/fusion/lsi/mpi_history.txt b/drivers/message/fusion/lsi/mpi_history.txt index 0deb7721e936..c9edbee41edf 100644 --- a/drivers/message/fusion/lsi/mpi_history.txt +++ b/drivers/message/fusion/lsi/mpi_history.txt | |||
@@ -3,25 +3,28 @@ | |||
3 | MPI Header File Change History | 3 | MPI Header File Change History |
4 | ============================== | 4 | ============================== |
5 | 5 | ||
6 | Copyright (c) 2000-2001 LSI Logic Corporation. | 6 | Copyright (c) 2000-2005 LSI Logic Corporation. |
7 | 7 | ||
8 | --------------------------------------- | 8 | --------------------------------------- |
9 | Header Set Release Version: 01.01.10 | 9 | Header Set Release Version: 01.05.09 |
10 | Header Set Release Date: 04-09-01 | 10 | Header Set Release Date: 03-11-05 |
11 | --------------------------------------- | 11 | --------------------------------------- |
12 | 12 | ||
13 | Filename Current version Prior version | 13 | Filename Current version Prior version |
14 | ---------- --------------- ------------- | 14 | ---------- --------------- ------------- |
15 | mpi.h 01.01.07 01.01.06 | 15 | mpi.h 01.05.07 01.05.06 |
16 | mpi_ioc.h 01.01.07 01.01.06 | 16 | mpi_ioc.h 01.05.08 01.05.07 |
17 | mpi_cnfg.h 01.01.11 01.01.10 | 17 | mpi_cnfg.h 01.05.08 01.05.07 |
18 | mpi_init.h 01.01.05 01.01.04 | 18 | mpi_init.h 01.05.04 01.05.03 |
19 | mpi_targ.h 01.01.04 01.01.04 | 19 | mpi_targ.h 01.05.04 01.05.03 |
20 | mpi_fc.h 01.01.07 01.01.06 | 20 | mpi_fc.h 01.05.01 01.05.01 |
21 | mpi_lan.h 01.01.03 01.01.03 | 21 | mpi_lan.h 01.05.01 01.05.01 |
22 | mpi_raid.h 01.01.02 01.01.02 | 22 | mpi_raid.h 01.05.02 01.05.02 |
23 | mpi_type.h 01.01.02 01.01.02 | 23 | mpi_tool.h 01.05.03 01.05.03 |
24 | mpi_history.txt 01.01.09 01.01.09 | 24 | mpi_inb.h 01.05.01 01.05.01 |
25 | mpi_sas.h 01.05.01 01.05.01 | ||
26 | mpi_type.h 01.05.01 01.05.01 | ||
27 | mpi_history.txt 01.05.09 01.05.08 | ||
25 | 28 | ||
26 | 29 | ||
27 | * Date Version Description | 30 | * Date Version Description |
@@ -53,6 +56,38 @@ mpi.h | |||
53 | * Added function codes for RAID. | 56 | * Added function codes for RAID. |
54 | * 04-09-01 01.01.07 Added alternate define for MPI_DOORBELL_ACTIVE, | 57 | * 04-09-01 01.01.07 Added alternate define for MPI_DOORBELL_ACTIVE, |
55 | * MPI_DOORBELL_USED, to better match the spec. | 58 | * MPI_DOORBELL_USED, to better match the spec. |
59 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
60 | * Changed MPI_VERSION_MINOR from 0x01 to 0x02. | ||
61 | * Added define MPI_FUNCTION_TOOLBOX. | ||
62 | * 09-28-01 01.02.02 New function code MPI_SCSI_ENCLOSURE_PROCESSOR. | ||
63 | * 11-01-01 01.02.03 Changed name to MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR. | ||
64 | * 03-14-02 01.02.04 Added MPI_HEADER_VERSION_ defines. | ||
65 | * 05-31-02 01.02.05 Bumped MPI_HEADER_VERSION_UNIT. | ||
66 | * 07-12-02 01.02.06 Added define for MPI_FUNCTION_MAILBOX. | ||
67 | * 09-16-02 01.02.07 Bumped value for MPI_HEADER_VERSION_UNIT. | ||
68 | * 11-15-02 01.02.08 Added define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX and | ||
69 | * obsoleted define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX. | ||
70 | * 04-01-03 01.02.09 New IOCStatus code: MPI_IOCSTATUS_FC_EXCHANGE_CANCELED | ||
71 | * 06-26-03 01.02.10 Bumped MPI_HEADER_VERSION_UNIT value. | ||
72 | * 01-16-04 01.02.11 Added define for MPI_IOCLOGINFO_TYPE_SHIFT. | ||
73 | * 04-29-04 01.02.12 Added function codes for MPI_FUNCTION_DIAG_BUFFER_POST | ||
74 | * and MPI_FUNCTION_DIAG_RELEASE. | ||
75 | * Added MPI_IOCSTATUS_DIAGNOSTIC_RELEASED define. | ||
76 | * Bumped MPI_HEADER_VERSION_UNIT value. | ||
77 | * 05-11-04 01.03.01 Bumped MPI_VERSION_MINOR for MPI v1.3. | ||
78 | * Added codes for Inband. | ||
79 | * 08-19-04 01.05.01 Added defines for Host Buffer Access Control doorbell. | ||
80 | * Added define for offset of High Priority Request Queue. | ||
81 | * Added new function codes and new IOCStatus codes. | ||
82 | * Added a IOCLogInfo type of SAS. | ||
83 | * 12-07-04 01.05.02 Bumped MPI_HEADER_VERSION_UNIT. | ||
84 | * 12-09-04 01.05.03 Bumped MPI_HEADER_VERSION_UNIT. | ||
85 | * 01-15-05 01.05.04 Bumped MPI_HEADER_VERSION_UNIT. | ||
86 | * 02-09-05 01.05.05 Bumped MPI_HEADER_VERSION_UNIT. | ||
87 | * 02-22-05 01.05.06 Bumped MPI_HEADER_VERSION_UNIT. | ||
88 | * 03-11-05 01.05.07 Removed function codes for SCSI IO 32 and | ||
89 | * TargetAssistExtended requests. | ||
90 | * Removed EEDP IOCStatus codes. | ||
56 | * -------------------------------------------------------------------------- | 91 | * -------------------------------------------------------------------------- |
57 | 92 | ||
58 | mpi_ioc.h | 93 | mpi_ioc.h |
@@ -81,6 +116,49 @@ mpi_ioc.h | |||
81 | * 03-27-01 01.01.06 Added defines for ProductId field of MPI_FW_HEADER. | 116 | * 03-27-01 01.01.06 Added defines for ProductId field of MPI_FW_HEADER. |
82 | * Added structure offset comments. | 117 | * Added structure offset comments. |
83 | * 04-09-01 01.01.07 Added structure EVENT_DATA_EVENT_CHANGE. | 118 | * 04-09-01 01.01.07 Added structure EVENT_DATA_EVENT_CHANGE. |
119 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
120 | * New format for FWVersion and ProductId in | ||
121 | * MSG_IOC_FACTS_REPLY and MPI_FW_HEADER. | ||
122 | * 08-31-01 01.02.02 Addded event MPI_EVENT_SCSI_DEVICE_STATUS_CHANGE and | ||
123 | * related structure and defines. | ||
124 | * Added event MPI_EVENT_ON_BUS_TIMER_EXPIRED. | ||
125 | * Added MPI_IOCINIT_FLAGS_DISCARD_FW_IMAGE. | ||
126 | * Replaced a reserved field in MSG_IOC_FACTS_REPLY with | ||
127 | * IOCExceptions and changed DataImageSize to reserved. | ||
128 | * Added MPI_FW_DOWNLOAD_ITYPE_NVSTORE_DATA and | ||
129 | * MPI_FW_UPLOAD_ITYPE_NVDATA. | ||
130 | * 09-28-01 01.02.03 Modified Event Data for Integrated RAID. | ||
131 | * 11-01-01 01.02.04 Added defines for MPI_EXT_IMAGE_HEADER ImageType field. | ||
132 | * 03-14-02 01.02.05 Added HeaderVersion field to MSG_IOC_FACTS_REPLY. | ||
133 | * 05-31-02 01.02.06 Added define for | ||
134 | * MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID. | ||
135 | * Added AliasIndex to EVENT_DATA_LOGOUT structure. | ||
136 | * 04-01-03 01.02.07 Added defines for MPI_FW_HEADER_SIGNATURE_. | ||
137 | * 06-26-03 01.02.08 Added new values to the product family defines. | ||
138 | * 04-29-04 01.02.09 Added IOCCapabilities field to MSG_IOC_FACTS_REPLY and | ||
139 | * added related defines. | ||
140 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
141 | * 08-19-04 01.05.01 Added four new fields to MSG_IOC_INIT. | ||
142 | * Added three new fields to MSG_IOC_FACTS_REPLY. | ||
143 | * Defined four new bits for the IOCCapabilities field of | ||
144 | * the IOCFacts reply. | ||
145 | * Added two new PortTypes for the PortFacts reply. | ||
146 | * Added six new events along with their EventData | ||
147 | * structures. | ||
148 | * Added a new MsgFlag to the FwDownload request to | ||
149 | * indicate last segment. | ||
150 | * Defined a new image type of boot loader. | ||
151 | * Added FW family codes for SAS product families. | ||
152 | * 10-05-04 01.05.02 Added ReplyFifoHostSignalingAddr field to | ||
153 | * MSG_IOC_FACTS_REPLY. | ||
154 | * 12-07-04 01.05.03 Added more defines for SAS Discovery Error event. | ||
155 | * 12-09-04 01.05.04 Added Unsupported device to SAS Device event. | ||
156 | * 01-15-05 01.05.05 Added event data for SAS SES Event. | ||
157 | * 02-09-05 01.05.06 Added MPI_FW_UPLOAD_ITYPE_FW_BACKUP define. | ||
158 | * 02-22-05 01.05.07 Added Host Page Buffer Persistent flag to IOC Facts | ||
159 | * Reply and IOC Init Request. | ||
160 | * 03-11-05 01.05.08 Added family code for 1068E family. | ||
161 | * Removed IOCFacts Reply EEDP Capability bit. | ||
84 | * -------------------------------------------------------------------------- | 162 | * -------------------------------------------------------------------------- |
85 | 163 | ||
86 | mpi_cnfg.h | 164 | mpi_cnfg.h |
@@ -142,6 +220,166 @@ mpi_cnfg.h | |||
142 | * Added IO Unit Page 3. | 220 | * Added IO Unit Page 3. |
143 | * Modified defines for Scsi Port Page 2. | 221 | * Modified defines for Scsi Port Page 2. |
144 | * Modified RAID Volume Pages. | 222 | * Modified RAID Volume Pages. |
223 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
224 | * Added SepID and SepBus to RVP2 IMPhysicalDisk struct. | ||
225 | * Added defines for the SEP bits in RVP2 VolumeSettings. | ||
226 | * Modified the DeviceSettings field in RVP2 to use the | ||
227 | * proper structure. | ||
228 | * Added defines for SES, SAF-TE, and cross channel for | ||
229 | * IOCPage2 CapabilitiesFlags. | ||
230 | * Removed define for MPI_IOUNITPAGE2_FLAGS_RAID_DISABLE. | ||
231 | * Removed define for | ||
232 | * MPI_SCSIPORTPAGE2_PORT_FLAGS_PARITY_ENABLE. | ||
233 | * Added define for MPI_CONFIG_PAGEATTR_RO_PERSISTENT. | ||
234 | * 08-29-01 01.02.02 Fixed value for MPI_MANUFACTPAGE_DEVID_53C1035. | ||
235 | * Added defines for MPI_FCPORTPAGE1_FLAGS_HARD_ALPA_ONLY | ||
236 | * and MPI_FCPORTPAGE1_FLAGS_IMMEDIATE_ERROR_REPLY. | ||
237 | * Removed MPI_SCSIPORTPAGE0_CAP_PACING_TRANSFERS, | ||
238 | * MPI_SCSIDEVPAGE0_NP_PACING_TRANSFERS, and | ||
239 | * MPI_SCSIDEVPAGE1_RP_PACING_TRANSFERS, and | ||
240 | * MPI_SCSIDEVPAGE1_CONF_PPR_ALLOWED. | ||
241 | * Added defines for MPI_SCSIDEVPAGE1_CONF_WDTR_DISALLOWED | ||
242 | * and MPI_SCSIDEVPAGE1_CONF_SDTR_DISALLOWED. | ||
243 | * Added OnBusTimerValue to CONFIG_PAGE_SCSI_PORT_1. | ||
244 | * Added rejected bits to SCSI Device Page 0 Information. | ||
245 | * Increased size of ALPA array in FC Port Page 2 by one | ||
246 | * and removed a one byte reserved field. | ||
247 | * 09-28-01 01.02.03 Swapped NegWireSpeedLow and NegWireSpeedLow in | ||
248 | * CONFIG_PAGE_LAN_1 to match preferred 64-bit ordering. | ||
249 | * Added structures for Manufacturing Page 4, IO Unit | ||
250 | * Page 3, IOC Page 3, IOC Page 4, RAID Volume Page 0, and | ||
251 | * RAID PhysDisk Page 0. | ||
252 | * 10-04-01 01.02.04 Added define for MPI_CONFIG_PAGETYPE_RAID_PHYSDISK. | ||
253 | * Modified some of the new defines to make them 32 | ||
254 | * character unique. | ||
255 | * Modified how variable length pages (arrays) are defined. | ||
256 | * Added generic defines for hot spare pools and RAID | ||
257 | * volume types. | ||
258 | * 11-01-01 01.02.05 Added define for MPI_IOUNITPAGE1_DISABLE_IR. | ||
259 | * 03-14-02 01.02.06 Added PCISlotNum field to CONFIG_PAGE_IOC_1 along with | ||
260 | * related define, and bumped the page version define. | ||
261 | * 05-31-02 01.02.07 Added a Flags field to CONFIG_PAGE_IOC_2_RAID_VOL in a | ||
262 | * reserved byte and added a define. | ||
263 | * Added define for | ||
264 | * MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE. | ||
265 | * Added new config page: CONFIG_PAGE_IOC_5. | ||
266 | * Added MaxAliases, MaxHardAliases, and NumCurrentAliases | ||
267 | * fields to CONFIG_PAGE_FC_PORT_0. | ||
268 | * Added AltConnector and NumRequestedAliases fields to | ||
269 | * CONFIG_PAGE_FC_PORT_1. | ||
270 | * Added new config page: CONFIG_PAGE_FC_PORT_10. | ||
271 | * 07-12-02 01.02.08 Added more MPI_MANUFACTPAGE_DEVID_ defines. | ||
272 | * Added additional MPI_SCSIDEVPAGE0_NP_ defines. | ||
273 | * Added more MPI_SCSIDEVPAGE1_RP_ defines. | ||
274 | * Added define for | ||
275 | * MPI_SCSIDEVPAGE1_CONF_EXTENDED_PARAMS_ENABLE. | ||
276 | * Added new config page: CONFIG_PAGE_SCSI_DEVICE_3. | ||
277 | * Modified MPI_FCPORTPAGE5_FLAGS_ defines. | ||
278 | * 09-16-02 01.02.09 Added MPI_SCSIDEVPAGE1_CONF_FORCE_PPR_MSG define. | ||
279 | * 11-15-02 01.02.10 Added ConnectedID defines for CONFIG_PAGE_SCSI_PORT_0. | ||
280 | * Added more Flags defines for CONFIG_PAGE_FC_PORT_1. | ||
281 | * Added more Flags defines for CONFIG_PAGE_FC_DEVICE_0. | ||
282 | * 04-01-03 01.02.11 Added RR_TOV field and additional Flags defines for | ||
283 | * CONFIG_PAGE_FC_PORT_1. | ||
284 | * Added define MPI_FCPORTPAGE5_FLAGS_DISABLE to disable | ||
285 | * an alias. | ||
286 | * Added more device id defines. | ||
287 | * 06-26-03 01.02.12 Added MPI_IOUNITPAGE1_IR_USE_STATIC_VOLUME_ID define. | ||
288 | * Added TargetConfig and IDConfig fields to | ||
289 | * CONFIG_PAGE_SCSI_PORT_1. | ||
290 | * Added more PortFlags defines for CONFIG_PAGE_SCSI_PORT_2 | ||
291 | * to control DV. | ||
292 | * Added more Flags defines for CONFIG_PAGE_FC_PORT_1. | ||
293 | * In CONFIG_PAGE_FC_DEVICE_0, replaced Reserved1 field | ||
294 | * with ADISCHardALPA. | ||
295 | * Added MPI_FC_DEVICE_PAGE0_PROT_FCP_RETRY define. | ||
296 | * 01-16-04 01.02.13 Added InitiatorDeviceTimeout and InitiatorIoPendTimeout | ||
297 | * fields and related defines to CONFIG_PAGE_FC_PORT_1. | ||
298 | * Added define for | ||
299 | * MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK. | ||
300 | * Added new fields to the substructures of | ||
301 | * CONFIG_PAGE_FC_PORT_10. | ||
302 | * 04-29-04 01.02.14 Added define for IDP bit for CONFIG_PAGE_SCSI_PORT_0, | ||
303 | * CONFIG_PAGE_SCSI_DEVICE_0, and | ||
304 | * CONFIG_PAGE_SCSI_DEVICE_1. Also bumped Page Version for | ||
305 | * these pages. | ||
306 | * 05-11-04 01.03.01 Added structure for CONFIG_PAGE_INBAND_0. | ||
307 | * 08-19-04 01.05.01 Modified MSG_CONFIG request to support extended config | ||
308 | * pages. | ||
309 | * Added a new structure for extended config page header. | ||
310 | * Added new extended config pages types and structures for | ||
311 | * SAS IO Unit, SAS Expander, SAS Device, and SAS PHY. | ||
312 | * Replaced a reserved byte in CONFIG_PAGE_MANUFACTURING_4 | ||
313 | * to add a Flags field. | ||
314 | * Two new Manufacturing config pages (5 and 6). | ||
315 | * Two new bits defined for IO Unit Page 1 Flags field. | ||
316 | * Modified CONFIG_PAGE_IO_UNIT_2 to add three new fields | ||
317 | * to specify the BIOS boot device. | ||
318 | * Four new Flags bits defined for IO Unit Page 2. | ||
319 | * Added IO Unit Page 4. | ||
320 | * Added EEDP Flags settings to IOC Page 1. | ||
321 | * Added new BIOS Page 1 config page. | ||
322 | * 10-05-04 01.05.02 Added define for | ||
323 | * MPI_IOCPAGE1_INITIATOR_CONTEXT_REPLY_DISABLE. | ||
324 | * Added new Flags field to CONFIG_PAGE_MANUFACTURING_5 and | ||
325 | * associated defines. | ||
326 | * Added more defines for SAS IO Unit Page 0 | ||
327 | * DiscoveryStatus field. | ||
328 | * Added define for MPI_SAS_IOUNIT0_DS_SUBTRACTIVE_LINK | ||
329 | * and MPI_SAS_IOUNIT0_DS_TABLE_LINK. | ||
330 | * Added defines for Physical Mapping Modes to SAS IO Unit | ||
331 | * Page 2. | ||
332 | * Added define for | ||
333 | * MPI_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH. | ||
334 | * 10-27-04 01.05.03 Added defines for new SAS PHY page addressing mode. | ||
335 | * Added defines for MaxTargetSpinUp to BIOS Page 1. | ||
336 | * Added 5 new ControlFlags defines for SAS IO Unit | ||
337 | * Page 1. | ||
338 | * Added MaxNumPhysicalMappedIDs field to SAS IO Unit | ||
339 | * Page 2. | ||
340 | * Added AccessStatus field to SAS Device Page 0 and added | ||
341 | * new Flags bits for supported SATA features. | ||
342 | * 12-07-04 01.05.04 Added config page structures for BIOS Page 2, RAID | ||
343 | * Volume Page 1, and RAID Physical Disk Page 1. | ||
344 | * Replaced IO Unit Page 1 BootTargetID,BootBus, and | ||
345 | * BootAdapterNum with reserved field. | ||
346 | * Added DataScrubRate and ResyncRate to RAID Volume | ||
347 | * Page 0. | ||
348 | * Added MPI_SAS_IOUNIT2_FLAGS_RESERVE_ID_0_FOR_BOOT | ||
349 | * define. | ||
350 | * 12-09-04 01.05.05 Added Target Mode Large CDB Enable to FC Port Page 1 | ||
351 | * Flags field. | ||
352 | * Added Auto Port Config flag define for SAS IOUNIT | ||
353 | * Page 1 ControlFlags. | ||
354 | * Added Disabled bad Phy define to Expander Page 1 | ||
355 | * Discovery Info field. | ||
356 | * Added SAS/SATA device support to SAS IOUnit Page 1 | ||
357 | * ControlFlags. | ||
358 | * Added Unsupported device to SAS Dev Page 0 Flags field | ||
359 | * Added disable use SATA Hash Address for SAS IOUNIT | ||
360 | * page 1 in ControlFields. | ||
361 | * 01-15-05 01.05.06 Added defaults for data scrub rate and resync rate to | ||
362 | * Manufacturing Page 4. | ||
363 | * Added new defines for BIOS Page 1 IOCSettings field. | ||
364 | * Added ExtDiskIdentifier field to RAID Physical Disk | ||
365 | * Page 0. | ||
366 | * Added new defines for SAS IO Unit Page 1 ControlFlags | ||
367 | * and to SAS Device Page 0 Flags to control SATA devices. | ||
368 | * Added defines and structures for the new Log Page 0, a | ||
369 | * new type of configuration page. | ||
370 | * 02-09-05 01.05.07 Added InactiveStatus field to RAID Volume Page 0. | ||
371 | * Added WWID field to RAID Volume Page 1. | ||
372 | * Added PhysicalPort field to SAS Expander pages 0 and 1. | ||
373 | * 03-11-05 01.05.08 Removed the EEDP flags from IOC Page 1. | ||
374 | * Added Enclosure/Slot boot device format to BIOS Page 2. | ||
375 | * New status value for RAID Volume Page 0 VolumeStatus | ||
376 | * (VolumeState subfield). | ||
377 | * New value for RAID Physical Page 0 InactiveStatus. | ||
378 | * Added Inactive Volume Member flag RAID Physical Disk | ||
379 | * Page 0 PhysDiskStatus field. | ||
380 | * New physical mapping mode in SAS IO Unit Page 2. | ||
381 | * Added CONFIG_PAGE_SAS_ENCLOSURE_0. | ||
382 | * Added Slot and Enclosure fields to SAS Device Page 0. | ||
145 | * -------------------------------------------------------------------------- | 383 | * -------------------------------------------------------------------------- |
146 | 384 | ||
147 | mpi_init.h | 385 | mpi_init.h |
@@ -154,6 +392,32 @@ mpi_init.h | |||
154 | * 02-20-01 01.01.03 Started using MPI_POINTER. | 392 | * 02-20-01 01.01.03 Started using MPI_POINTER. |
155 | * 03-27-01 01.01.04 Added structure offset comments. | 393 | * 03-27-01 01.01.04 Added structure offset comments. |
156 | * 04-10-01 01.01.05 Added new MsgFlag for MSG_SCSI_TASK_MGMT. | 394 | * 04-10-01 01.01.05 Added new MsgFlag for MSG_SCSI_TASK_MGMT. |
395 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
396 | * 08-29-01 01.02.02 Added MPI_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET. | ||
397 | * Added MPI_SCSI_STATE_QUEUE_TAG_REJECTED for | ||
398 | * MSG_SCSI_IO_REPLY. | ||
399 | * 09-28-01 01.02.03 Added structures and defines for SCSI Enclosure | ||
400 | * Processor messages. | ||
401 | * 10-04-01 01.02.04 Added defines for SEP request Action field. | ||
402 | * 05-31-02 01.02.05 Added MPI_SCSIIO_MSGFLGS_CMD_DETERMINES_DATA_DIR define | ||
403 | * for SCSI IO requests. | ||
404 | * 11-15-02 01.02.06 Added special extended SCSI Status defines for FCP. | ||
405 | * 06-26-03 01.02.07 Added MPI_SCSI_STATUS_FCPEXT_UNASSIGNED define. | ||
406 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
407 | * 08-19-04 01.05.01 Added MsgFlags defines for EEDP to SCSI IO request. | ||
408 | * Added new word to MSG_SCSI_IO_REPLY to add TaskTag field | ||
409 | * and a reserved U16. | ||
410 | * Added new MSG_SCSI_IO32_REQUEST structure. | ||
411 | * Added a TaskType of Clear Task Set to SCSI | ||
412 | * Task Management request. | ||
413 | * 12-07-04 01.05.02 Added support for Task Management Query Task. | ||
414 | * 01-15-05 01.05.03 Modified SCSI Enclosure Processor Request to support | ||
415 | * WWID addressing. | ||
416 | * 03-11-05 01.05.04 Removed EEDP flags from SCSI IO Request. | ||
417 | * Removed SCSI IO 32 Request. | ||
418 | * Modified SCSI Enclosure Processor Request and Reply to | ||
419 | * support Enclosure/Slot addressing rather than WWID | ||
420 | * addressing. | ||
157 | * -------------------------------------------------------------------------- | 421 | * -------------------------------------------------------------------------- |
158 | 422 | ||
159 | mpi_targ.h | 423 | mpi_targ.h |
@@ -170,6 +434,33 @@ mpi_targ.h | |||
170 | * Added structures for MPI_TARGET_SCSI_SPI_CMD_BUFFER and | 434 | * Added structures for MPI_TARGET_SCSI_SPI_CMD_BUFFER and |
171 | * MPI_TARGET_FCP_CMD_BUFFER. | 435 | * MPI_TARGET_FCP_CMD_BUFFER. |
172 | * 03-27-01 01.01.04 Added structure offset comments. | 436 | * 03-27-01 01.01.04 Added structure offset comments. |
437 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
438 | * 09-28-01 01.02.02 Added structure for MPI_TARGET_SCSI_SPI_STATUS_IU. | ||
439 | * Added PriorityReason field to some replies and | ||
440 | * defined more PriorityReason codes. | ||
441 | * Added some defines for to support previous version | ||
442 | * of MPI. | ||
443 | * 10-04-01 01.02.03 Added PriorityReason to MSG_TARGET_ERROR_REPLY. | ||
444 | * 11-01-01 01.02.04 Added define for TARGET_STATUS_SEND_FLAGS_HIGH_PRIORITY. | ||
445 | * 03-14-02 01.02.05 Modified MPI_TARGET_FCP_RSP_BUFFER to get the proper | ||
446 | * byte ordering. | ||
447 | * 05-31-02 01.02.06 Modified TARGET_MODE_REPLY_ALIAS_MASK to only include | ||
448 | * one bit. | ||
449 | * Added AliasIndex field to MPI_TARGET_FCP_CMD_BUFFER. | ||
450 | * 09-16-02 01.02.07 Added flags for confirmed completion. | ||
451 | * Added PRIORITY_REASON_TARGET_BUSY. | ||
452 | * 11-15-02 01.02.08 Added AliasID field to MPI_TARGET_SCSI_SPI_CMD_BUFFER. | ||
453 | * 04-01-03 01.02.09 Added OptionalOxid field to MPI_TARGET_FCP_CMD_BUFFER. | ||
454 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
455 | * 08-19-04 01.05.01 Added new request message structures for | ||
456 | * MSG_TARGET_CMD_BUF_POST_BASE_REQUEST, | ||
457 | * MSG_TARGET_CMD_BUF_POST_LIST_REQUEST, and | ||
458 | * MSG_TARGET_ASSIST_EXT_REQUEST. | ||
459 | * Added new structures for SAS SSP Command buffer, SSP | ||
460 | * Task buffer, and SSP Status IU. | ||
461 | * 10-05-04 01.05.02 MSG_TARGET_CMD_BUFFER_POST_BASE_LIST_REPLY added. | ||
462 | * 02-22-05 01.05.03 Changed a comment. | ||
463 | * 03-11-05 01.05.04 Removed TargetAssistExtended Request. | ||
173 | * -------------------------------------------------------------------------- | 464 | * -------------------------------------------------------------------------- |
174 | 465 | ||
175 | mpi_fc.h | 466 | mpi_fc.h |
@@ -192,6 +483,13 @@ mpi_fc.h | |||
192 | * Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define. | 483 | * Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define. |
193 | * Added structure offset comments. | 484 | * Added structure offset comments. |
194 | * 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST. | 485 | * 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST. |
486 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
487 | * 09-28-01 01.02.02 Change name of reserved field in | ||
488 | * MSG_LINK_SERVICE_RSP_REPLY. | ||
489 | * 05-31-02 01.02.03 Adding AliasIndex to FC Direct Access requests. | ||
490 | * 01-16-04 01.02.04 Added define for MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK. | ||
491 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
492 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
195 | * -------------------------------------------------------------------------- | 493 | * -------------------------------------------------------------------------- |
196 | 494 | ||
197 | mpi_lan.h | 495 | mpi_lan.h |
@@ -209,11 +507,56 @@ mpi_lan.h | |||
209 | * 11-02-00 01.01.01 Original release for post 1.0 work | 507 | * 11-02-00 01.01.01 Original release for post 1.0 work |
210 | * 02-20-01 01.01.02 Started using MPI_POINTER. | 508 | * 02-20-01 01.01.02 Started using MPI_POINTER. |
211 | * 03-27-01 01.01.03 Added structure offset comments. | 509 | * 03-27-01 01.01.03 Added structure offset comments. |
510 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
511 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
512 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
212 | * -------------------------------------------------------------------------- | 513 | * -------------------------------------------------------------------------- |
213 | 514 | ||
214 | mpi_raid.h | 515 | mpi_raid.h |
215 | * 02-27-01 01.01.01 Original release for this file. | 516 | * 02-27-01 01.01.01 Original release for this file. |
216 | * 03-27-01 01.01.02 Added structure offset comments. | 517 | * 03-27-01 01.01.02 Added structure offset comments. |
518 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
519 | * 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines. | ||
520 | * 09-28-01 01.02.02 Major rework for MPI v1.2 Integrated RAID changes. | ||
521 | * 10-04-01 01.02.03 Added ActionData defines for | ||
522 | * MPI_RAID_ACTION_DELETE_VOLUME action. | ||
523 | * 11-01-01 01.02.04 Added define for MPI_RAID_ACTION_ADATA_DO_NOT_SYNC. | ||
524 | * 03-14-02 01.02.05 Added define for MPI_RAID_ACTION_ADATA_LOW_LEVEL_INIT. | ||
525 | * 05-07-02 01.02.06 Added define for MPI_RAID_ACTION_ACTIVATE_VOLUME, | ||
526 | * MPI_RAID_ACTION_INACTIVATE_VOLUME, and | ||
527 | * MPI_RAID_ACTION_ADATA_INACTIVATE_ALL. | ||
528 | * 07-12-02 01.02.07 Added structures for Mailbox request and reply. | ||
529 | * 11-15-02 01.02.08 Added missing MsgContext field to MSG_MAILBOX_REQUEST. | ||
530 | * 04-01-03 01.02.09 New action data option flag for | ||
531 | * MPI_RAID_ACTION_DELETE_VOLUME. | ||
532 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
533 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
534 | * 01-15-05 01.05.02 Added defines for the two new RAID Actions for | ||
535 | * _SET_RESYNC_RATE and _SET_DATA_SCRUB_RATE. | ||
536 | * -------------------------------------------------------------------------- | ||
537 | |||
538 | mpi_tool.h | ||
539 | * 08-08-01 01.02.01 Original release. | ||
540 | * 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines. | ||
541 | * 01-16-04 01.02.03 Added defines and structures for new tools | ||
542 | *. MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL and | ||
543 | * MPI_TOOLBOX_FC_MANAGEMENT_TOOL. | ||
544 | * 04-29-04 01.02.04 Added message structures for Diagnostic Buffer Post and | ||
545 | * Diagnostic Release requests and replies. | ||
546 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
547 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
548 | * 10-06-04 01.05.02 Added define for MPI_DIAG_BUF_TYPE_COUNT. | ||
549 | * 02-09-05 01.05.03 Added frame size option to FC management tool. | ||
550 | * Added Beacon tool to the Toolbox. | ||
551 | * -------------------------------------------------------------------------- | ||
552 | |||
553 | mpi_inb.h | ||
554 | * 05-11-04 01.03.01 Original release. | ||
555 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
556 | * -------------------------------------------------------------------------- | ||
557 | |||
558 | mpi_sas.h | ||
559 | * 08-19-04 01.05.01 Original release. | ||
217 | * -------------------------------------------------------------------------- | 560 | * -------------------------------------------------------------------------- |
218 | 561 | ||
219 | mpi_type.h | 562 | mpi_type.h |
@@ -221,21 +564,83 @@ mpi_type.h | |||
221 | * 06-06-00 01.00.01 Update version number for 1.0 release. | 564 | * 06-06-00 01.00.01 Update version number for 1.0 release. |
222 | * 11-02-00 01.01.01 Original release for post 1.0 work | 565 | * 11-02-00 01.01.01 Original release for post 1.0 work |
223 | * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER. | 566 | * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER. |
567 | * 08-08-01 01.02.01 Original release for v1.2 work. | ||
568 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
569 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
224 | * -------------------------------------------------------------------------- | 570 | * -------------------------------------------------------------------------- |
225 | 571 | ||
226 | mpi_history.txt Parts list history | 572 | mpi_history.txt Parts list history |
227 | 573 | ||
228 | Filename 01.01.10 | 574 | Filename 01.05.09 |
229 | ---------- -------- | 575 | ---------- -------- |
230 | mpi.h 01.01.07 | 576 | mpi.h 01.05.07 |
231 | mpi_ioc.h 01.01.07 | 577 | mpi_ioc.h 01.05.08 |
232 | mpi_cnfg.h 01.01.11 | 578 | mpi_cnfg.h 01.05.08 |
233 | mpi_init.h 01.01.05 | 579 | mpi_init.h 01.05.04 |
234 | mpi_targ.h 01.01.04 | 580 | mpi_targ.h 01.05.04 |
235 | mpi_fc.h 01.01.07 | 581 | mpi_fc.h 01.05.01 |
236 | mpi_lan.h 01.01.03 | 582 | mpi_lan.h 01.05.01 |
237 | mpi_raid.h 01.01.02 | 583 | mpi_raid.h 01.05.02 |
238 | mpi_type.h 01.01.02 | 584 | mpi_tool.h 01.05.03 |
585 | mpi_inb.h 01.05.01 | ||
586 | mpi_sas.h 01.05.01 | ||
587 | mpi_type.h 01.05.01 | ||
588 | |||
589 | Filename 01.05.08 01.05.07 01.05.06 01.05.05 01.05.04 01.05.03 | ||
590 | ---------- -------- -------- -------- -------- -------- -------- | ||
591 | mpi.h 01.05.06 01.05.05 01.05.04 01.05.03 01.05.02 01.05.01 | ||
592 | mpi_ioc.h 01.05.07 01.05.06 01.05.05 01.05.04 01.05.03 01.05.02 | ||
593 | mpi_cnfg.h 01.05.07 01.05.07 01.05.06 01.05.05 01.05.04 01.05.03 | ||
594 | mpi_init.h 01.05.03 01.05.03 01.05.03 01.05.02 01.05.02 01.05.01 | ||
595 | mpi_targ.h 01.05.03 01.05.02 01.05.02 01.05.02 01.05.02 01.05.02 | ||
596 | mpi_fc.h 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 | ||
597 | mpi_lan.h 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 | ||
598 | mpi_raid.h 01.05.02 01.05.02 01.05.02 01.05.01 01.05.01 01.05.01 | ||
599 | mpi_tool.h 01.05.03 01.05.03 01.05.02 01.05.02 01.05.02 01.05.02 | ||
600 | mpi_inb.h 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 | ||
601 | mpi_sas.h 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 | ||
602 | mpi_type.h 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 01.05.01 | ||
603 | |||
604 | Filename 01.05.02 01.05.01 01.03.01 01.02.14 01.02.13 01.02.12 | ||
605 | ---------- -------- -------- -------- -------- -------- -------- | ||
606 | mpi.h 01.05.01 01.05.01 01.03.01 01.02.12 01.02.11 01.02.10 | ||
607 | mpi_ioc.h 01.05.02 01.05.01 01.03.01 01.02.09 01.02.08 01.02.08 | ||
608 | mpi_cnfg.h 01.05.02 01.05.01 01.03.01 01.02.14 01.02.13 01.02.12 | ||
609 | mpi_init.h 01.05.01 01.05.01 01.03.01 01.02.07 01.02.07 01.02.07 | ||
610 | mpi_targ.h 01.05.02 01.05.01 01.03.01 01.02.09 01.02.09 01.02.09 | ||
611 | mpi_fc.h 01.05.01 01.05.01 01.03.01 01.02.04 01.02.04 01.02.03 | ||
612 | mpi_lan.h 01.05.01 01.05.01 01.03.01 01.02.01 01.02.01 01.02.01 | ||
613 | mpi_raid.h 01.05.01 01.05.01 01.03.01 01.02.09 01.02.09 01.02.09 | ||
614 | mpi_tool.h 01.05.02 01.05.01 01.03.01 01.02.01 01.02.01 01.02.01 | ||
615 | mpi_inb.h 01.05.01 01.05.01 01.03.01 | ||
616 | mpi_sas.h 01.05.01 01.05.01 | ||
617 | mpi_type.h 01.05.01 01.05.01 01.03.01 01.02.04 01.02.03 01.02.02 | ||
618 | |||
619 | Filename 01.02.11 01.02.10 01.02.09 01.02.08 01.02.07 01.02.06 | ||
620 | ---------- -------- -------- -------- -------- -------- -------- | ||
621 | mpi.h 01.02.09 01.02.08 01.02.07 01.02.06 01.02.05 01.02.04 | ||
622 | mpi_ioc.h 01.02.07 01.02.06 01.02.06 01.02.06 01.02.06 01.02.05 | ||
623 | mpi_cnfg.h 01.02.11 01.02.10 01.02.09 01.02.08 01.02.07 01.02.06 | ||
624 | mpi_init.h 01.02.06 01.02.06 01.02.05 01.02.05 01.02.05 01.02.04 | ||
625 | mpi_targ.h 01.02.09 01.02.08 01.02.07 01.02.06 01.02.06 01.02.05 | ||
626 | mpi_fc.h 01.02.03 01.02.03 01.02.03 01.02.03 01.02.03 01.02.02 | ||
627 | mpi_lan.h 01.02.01 01.02.01 01.02.01 01.02.01 01.02.01 01.02.01 | ||
628 | mpi_raid.h 01.02.09 01.02.08 01.02.07 01.02.07 01.02.06 01.02.05 | ||
629 | mpi_tool.h 01.02.01 01.02.01 01.02.01 01.02.01 01.02.01 01.02.01 | ||
630 | mpi_type.h 01.02.02 01.02.02 01.02.02 01.02.02 01.02.02 01.02.02 | ||
631 | |||
632 | Filename 01.02.05 01.02.04 01.02.03 01.02.02 01.02.01 01.01.10 | ||
633 | ---------- -------- -------- -------- -------- -------- -------- | ||
634 | mpi.h 01.02.03 01.02.02 01.02.02 01.02.01 01.02.01 01.01.07 | ||
635 | mpi_ioc.h 01.02.04 01.02.03 01.02.03 01.02.02 01.02.01 01.01.07 | ||
636 | mpi_cnfg.h 01.02.05 01.02.04 01.02.03 01.02.02 01.02.01 01.01.11 | ||
637 | mpi_init.h 01.02.04 01.02.04 01.02.03 01.02.02 01.02.01 01.01.05 | ||
638 | mpi_targ.h 01.02.04 01.02.03 01.02.02 01.02.01 01.02.01 01.01.04 | ||
639 | mpi_fc.h 01.02.02 01.02.02 01.02.02 01.02.01 01.02.01 01.01.07 | ||
640 | mpi_lan.h 01.02.01 01.02.01 01.02.01 01.02.01 01.02.01 01.01.03 | ||
641 | mpi_raid.h 01.02.04 01.02.03 01.02.02 01.02.01 01.02.01 01.01.02 | ||
642 | mpi_tool.h 01.02.02 01.02.02 01.02.02 01.02.02 01.02.01 | ||
643 | mpi_type.h 01.02.02 01.02.02 01.02.02 01.02.02 01.02.01 01.01.02 | ||
239 | 644 | ||
240 | Filename 01.01.09 01.01.08 01.01.07 01.01.06 01.01.05 01.01.04 | 645 | Filename 01.01.09 01.01.08 01.01.07 01.01.06 01.01.05 01.01.04 |
241 | ---------- -------- -------- -------- -------- -------- -------- | 646 | ---------- -------- -------- -------- -------- -------- -------- |
diff --git a/drivers/message/fusion/lsi/mpi_inb.h b/drivers/message/fusion/lsi/mpi_inb.h index dae29fbed56f..ff167309ba27 100644 --- a/drivers/message/fusion/lsi/mpi_inb.h +++ b/drivers/message/fusion/lsi/mpi_inb.h | |||
@@ -1,19 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2003 LSI Logic Corporation. | 2 | * Copyright (c) 2003-2004 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_inb.h | 5 | * Name: mpi_inb.h |
6 | * Title: MPI Inband structures and definitions | 6 | * Title: MPI Inband structures and definitions |
7 | * Creation Date: September 30, 2003 | 7 | * Creation Date: September 30, 2003 |
8 | * | 8 | * |
9 | * mpi_inb.h Version: 01.03.xx | 9 | * mpi_inb.h Version: 01.05.01 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
13 | * | 13 | * |
14 | * Date Version Description | 14 | * Date Version Description |
15 | * -------- -------- ------------------------------------------------------ | 15 | * -------- -------- ------------------------------------------------------ |
16 | * ??-??-?? 01.03.01 Original release. | 16 | * 05-11-04 01.03.01 Original release. |
17 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
17 | * -------------------------------------------------------------------------- | 18 | * -------------------------------------------------------------------------- |
18 | */ | 19 | */ |
19 | 20 | ||
diff --git a/drivers/message/fusion/lsi/mpi_init.h b/drivers/message/fusion/lsi/mpi_init.h index b3c95fd7256f..aca035801a86 100644 --- a/drivers/message/fusion/lsi/mpi_init.h +++ b/drivers/message/fusion/lsi/mpi_init.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2005 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_init.h | 5 | * Name: mpi_init.h |
6 | * Title: MPI initiator mode messages and structures | 6 | * Title: MPI initiator mode messages and structures |
7 | * Creation Date: June 8, 2000 | 7 | * Creation Date: June 8, 2000 |
8 | * | 8 | * |
9 | * mpi_init.h Version: 01.05.xx | 9 | * mpi_init.h Version: 01.05.04 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -33,6 +33,21 @@ | |||
33 | * for SCSI IO requests. | 33 | * for SCSI IO requests. |
34 | * 11-15-02 01.02.06 Added special extended SCSI Status defines for FCP. | 34 | * 11-15-02 01.02.06 Added special extended SCSI Status defines for FCP. |
35 | * 06-26-03 01.02.07 Added MPI_SCSI_STATUS_FCPEXT_UNASSIGNED define. | 35 | * 06-26-03 01.02.07 Added MPI_SCSI_STATUS_FCPEXT_UNASSIGNED define. |
36 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
37 | * 08-19-04 01.05.01 Added MsgFlags defines for EEDP to SCSI IO request. | ||
38 | * Added new word to MSG_SCSI_IO_REPLY to add TaskTag field | ||
39 | * and a reserved U16. | ||
40 | * Added new MSG_SCSI_IO32_REQUEST structure. | ||
41 | * Added a TaskType of Clear Task Set to SCSI | ||
42 | * Task Management request. | ||
43 | * 12-07-04 01.05.02 Added support for Task Management Query Task. | ||
44 | * 01-15-05 01.05.03 Modified SCSI Enclosure Processor Request to support | ||
45 | * WWID addressing. | ||
46 | * 03-11-05 01.05.04 Removed EEDP flags from SCSI IO Request. | ||
47 | * Removed SCSI IO 32 Request. | ||
48 | * Modified SCSI Enclosure Processor Request and Reply to | ||
49 | * support Enclosure/Slot addressing rather than WWID | ||
50 | * addressing. | ||
36 | * -------------------------------------------------------------------------- | 51 | * -------------------------------------------------------------------------- |
37 | */ | 52 | */ |
38 | 53 | ||
@@ -76,20 +91,12 @@ typedef struct _MSG_SCSI_IO_REQUEST | |||
76 | #define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH (0x01) | 91 | #define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH (0x01) |
77 | #define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_32 (0x00) | 92 | #define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_32 (0x00) |
78 | #define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_64 (0x01) | 93 | #define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_64 (0x01) |
94 | |||
79 | #define MPI_SCSIIO_MSGFLGS_SENSE_LOCATION (0x02) | 95 | #define MPI_SCSIIO_MSGFLGS_SENSE_LOCATION (0x02) |
80 | #define MPI_SCSIIO_MSGFLGS_SENSE_LOC_HOST (0x00) | 96 | #define MPI_SCSIIO_MSGFLGS_SENSE_LOC_HOST (0x00) |
81 | #define MPI_SCSIIO_MSGFLGS_SENSE_LOC_IOC (0x02) | 97 | #define MPI_SCSIIO_MSGFLGS_SENSE_LOC_IOC (0x02) |
82 | #define MPI_SCSIIO_MSGFLGS_CMD_DETERMINES_DATA_DIR (0x04) | ||
83 | #define MPI_SCSIIO_MSGFLGS_EEDP_TYPE_MASK (0xE0) | ||
84 | #define MPI_SCSIIO_MSGFLGS_EEDP_NONE (0x00) | ||
85 | #define MPI_SCSIIO_MSGFLGS_EEDP_RDPROTECT_T10 (0x20) | ||
86 | #define MPI_SCSIIO_MSGFLGS_EEDP_VRPROTECT_T10 (0x40) | ||
87 | #define MPI_SCSIIO_MSGFLGS_EEDP_WRPROTECT_T10 (0x60) | ||
88 | #define MPI_SCSIIO_MSGFLGS_EEDP_520_READ_MODE1 (0x20) | ||
89 | #define MPI_SCSIIO_MSGFLGS_EEDP_520_WRITE_MODE1 (0x40) | ||
90 | #define MPI_SCSIIO_MSGFLGS_EEDP_8_9_READ_MODE1 (0x60) | ||
91 | #define MPI_SCSIIO_MSGFLGS_EEDP_8_9_WRITE_MODE1 (0x80) | ||
92 | 98 | ||
99 | #define MPI_SCSIIO_MSGFLGS_CMD_DETERMINES_DATA_DIR (0x04) | ||
93 | 100 | ||
94 | /* SCSI IO LUN fields */ | 101 | /* SCSI IO LUN fields */ |
95 | 102 | ||
@@ -148,6 +155,8 @@ typedef struct _MSG_SCSI_IO_REPLY | |||
148 | U32 TransferCount; /* 14h */ | 155 | U32 TransferCount; /* 14h */ |
149 | U32 SenseCount; /* 18h */ | 156 | U32 SenseCount; /* 18h */ |
150 | U32 ResponseInfo; /* 1Ch */ | 157 | U32 ResponseInfo; /* 1Ch */ |
158 | U16 TaskTag; /* 20h */ | ||
159 | U16 Reserved1; /* 22h */ | ||
151 | } MSG_SCSI_IO_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_REPLY, | 160 | } MSG_SCSI_IO_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_REPLY, |
152 | SCSIIOReply_t, MPI_POINTER pSCSIIOReply_t; | 161 | SCSIIOReply_t, MPI_POINTER pSCSIIOReply_t; |
153 | 162 | ||
@@ -190,32 +199,7 @@ typedef struct _MSG_SCSI_IO_REPLY | |||
190 | #define MPI_SCSI_RSP_INFO_TASK_MGMT_FAILED (0x05000000) | 199 | #define MPI_SCSI_RSP_INFO_TASK_MGMT_FAILED (0x05000000) |
191 | #define MPI_SCSI_RSP_INFO_SPI_LQ_INVALID_TYPE (0x06000000) | 200 | #define MPI_SCSI_RSP_INFO_SPI_LQ_INVALID_TYPE (0x06000000) |
192 | 201 | ||
193 | 202 | #define MPI_SCSI_TASKTAG_UNKNOWN (0xFFFF) | |
194 | /****************************************************************************/ | ||
195 | /* SCSI IO 32 Request message structure */ | ||
196 | /****************************************************************************/ | ||
197 | |||
198 | typedef struct _MSG_SCSI_IO32_REQUEST | ||
199 | { | ||
200 | U8 TargetID; /* 00h */ | ||
201 | U8 Bus; /* 01h */ | ||
202 | U8 ChainOffset; /* 02h */ | ||
203 | U8 Function; /* 03h */ | ||
204 | U8 CDBLength; /* 04h */ | ||
205 | U8 SenseBufferLength; /* 05h */ | ||
206 | U8 Reserved; /* 06h */ | ||
207 | U8 MsgFlags; /* 07h */ | ||
208 | U32 MsgContext; /* 08h */ | ||
209 | U8 LUN[8]; /* 0Ch */ | ||
210 | U32 Control; /* 14h */ | ||
211 | U8 CDB[32]; /* 18h */ | ||
212 | U32 DataLength; /* 38h */ | ||
213 | U32 SenseBufferLowAddr; /* 3Ch */ | ||
214 | SGE_IO_UNION SGL; /* 40h */ | ||
215 | } MSG_SCSI_IO32_REQUEST, MPI_POINTER PTR_MSG_SCSI_IO32_REQUEST, | ||
216 | SCSIIO32Request_t, MPI_POINTER pSCSIIO32Request_t; | ||
217 | |||
218 | /* SCSI IO 32 uses the same defines as above for SCSI IO */ | ||
219 | 203 | ||
220 | 204 | ||
221 | /****************************************************************************/ | 205 | /****************************************************************************/ |
@@ -247,6 +231,7 @@ typedef struct _MSG_SCSI_TASK_MGMT | |||
247 | #define MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS (0x04) | 231 | #define MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS (0x04) |
248 | #define MPI_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET (0x05) | 232 | #define MPI_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET (0x05) |
249 | #define MPI_SCSITASKMGMT_TASKTYPE_CLEAR_TASK_SET (0x06) | 233 | #define MPI_SCSITASKMGMT_TASKTYPE_CLEAR_TASK_SET (0x06) |
234 | #define MPI_SCSITASKMGMT_TASKTYPE_QUERY_TASK (0x07) | ||
250 | 235 | ||
251 | /* MsgFlags bits */ | 236 | /* MsgFlags bits */ |
252 | #define MPI_SCSITASKMGMT_MSGFLAGS_TARGET_RESET_OPTION (0x00) | 237 | #define MPI_SCSITASKMGMT_MSGFLAGS_TARGET_RESET_OPTION (0x00) |
@@ -260,7 +245,7 @@ typedef struct _MSG_SCSI_TASK_MGMT_REPLY | |||
260 | U8 Bus; /* 01h */ | 245 | U8 Bus; /* 01h */ |
261 | U8 MsgLength; /* 02h */ | 246 | U8 MsgLength; /* 02h */ |
262 | U8 Function; /* 03h */ | 247 | U8 Function; /* 03h */ |
263 | U8 Reserved; /* 04h */ | 248 | U8 ResponseCode; /* 04h */ |
264 | U8 TaskType; /* 05h */ | 249 | U8 TaskType; /* 05h */ |
265 | U8 Reserved1; /* 06h */ | 250 | U8 Reserved1; /* 06h */ |
266 | U8 MsgFlags; /* 07h */ | 251 | U8 MsgFlags; /* 07h */ |
@@ -272,6 +257,15 @@ typedef struct _MSG_SCSI_TASK_MGMT_REPLY | |||
272 | } MSG_SCSI_TASK_MGMT_REPLY, MPI_POINTER PTR_MSG_SCSI_TASK_MGMT_REPLY, | 257 | } MSG_SCSI_TASK_MGMT_REPLY, MPI_POINTER PTR_MSG_SCSI_TASK_MGMT_REPLY, |
273 | SCSITaskMgmtReply_t, MPI_POINTER pSCSITaskMgmtReply_t; | 258 | SCSITaskMgmtReply_t, MPI_POINTER pSCSITaskMgmtReply_t; |
274 | 259 | ||
260 | /* ResponseCode values */ | ||
261 | #define MPI_SCSITASKMGMT_RSP_TM_COMPLETE (0x00) | ||
262 | #define MPI_SCSITASKMGMT_RSP_INVALID_FRAME (0x02) | ||
263 | #define MPI_SCSITASKMGMT_RSP_TM_NOT_SUPPORTED (0x04) | ||
264 | #define MPI_SCSITASKMGMT_RSP_TM_FAILED (0x05) | ||
265 | #define MPI_SCSITASKMGMT_RSP_TM_SUCCEEDED (0x08) | ||
266 | #define MPI_SCSITASKMGMT_RSP_TM_INVALID_LUN (0x09) | ||
267 | #define MPI_SCSITASKMGMT_RSP_IO_QUEUED_ON_IOC (0x80) | ||
268 | |||
275 | 269 | ||
276 | /****************************************************************************/ | 270 | /****************************************************************************/ |
277 | /* SCSI Enclosure Processor messages */ | 271 | /* SCSI Enclosure Processor messages */ |
@@ -284,11 +278,16 @@ typedef struct _MSG_SEP_REQUEST | |||
284 | U8 ChainOffset; /* 02h */ | 278 | U8 ChainOffset; /* 02h */ |
285 | U8 Function; /* 03h */ | 279 | U8 Function; /* 03h */ |
286 | U8 Action; /* 04h */ | 280 | U8 Action; /* 04h */ |
287 | U8 Reserved1; /* 05h */ | 281 | U8 Flags; /* 05h */ |
288 | U8 Reserved2; /* 06h */ | 282 | U8 Reserved1; /* 06h */ |
289 | U8 MsgFlags; /* 07h */ | 283 | U8 MsgFlags; /* 07h */ |
290 | U32 MsgContext; /* 08h */ | 284 | U32 MsgContext; /* 08h */ |
291 | U32 SlotStatus; /* 0Ch */ | 285 | U32 SlotStatus; /* 0Ch */ |
286 | U32 Reserved2; /* 10h */ | ||
287 | U32 Reserved3; /* 14h */ | ||
288 | U32 Reserved4; /* 18h */ | ||
289 | U16 Slot; /* 1Ch */ | ||
290 | U16 EnclosureHandle; /* 1Eh */ | ||
292 | } MSG_SEP_REQUEST, MPI_POINTER PTR_MSG_SEP_REQUEST, | 291 | } MSG_SEP_REQUEST, MPI_POINTER PTR_MSG_SEP_REQUEST, |
293 | SEPRequest_t, MPI_POINTER pSEPRequest_t; | 292 | SEPRequest_t, MPI_POINTER pSEPRequest_t; |
294 | 293 | ||
@@ -296,6 +295,10 @@ typedef struct _MSG_SEP_REQUEST | |||
296 | #define MPI_SEP_REQ_ACTION_WRITE_STATUS (0x00) | 295 | #define MPI_SEP_REQ_ACTION_WRITE_STATUS (0x00) |
297 | #define MPI_SEP_REQ_ACTION_READ_STATUS (0x01) | 296 | #define MPI_SEP_REQ_ACTION_READ_STATUS (0x01) |
298 | 297 | ||
298 | /* Flags defines */ | ||
299 | #define MPI_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS (0x01) | ||
300 | #define MPI_SEP_REQ_FLAGS_BUS_TARGETID_ADDRESS (0x00) | ||
301 | |||
299 | /* SlotStatus bits for MSG_SEP_REQUEST */ | 302 | /* SlotStatus bits for MSG_SEP_REQUEST */ |
300 | #define MPI_SEP_REQ_SLOTSTATUS_NO_ERROR (0x00000001) | 303 | #define MPI_SEP_REQ_SLOTSTATUS_NO_ERROR (0x00000001) |
301 | #define MPI_SEP_REQ_SLOTSTATUS_DEV_FAULTY (0x00000002) | 304 | #define MPI_SEP_REQ_SLOTSTATUS_DEV_FAULTY (0x00000002) |
@@ -332,6 +335,9 @@ typedef struct _MSG_SEP_REPLY | |||
332 | U16 IOCStatus; /* 0Eh */ | 335 | U16 IOCStatus; /* 0Eh */ |
333 | U32 IOCLogInfo; /* 10h */ | 336 | U32 IOCLogInfo; /* 10h */ |
334 | U32 SlotStatus; /* 14h */ | 337 | U32 SlotStatus; /* 14h */ |
338 | U32 Reserved4; /* 18h */ | ||
339 | U16 Slot; /* 1Ch */ | ||
340 | U16 EnclosureHandle; /* 1Eh */ | ||
335 | } MSG_SEP_REPLY, MPI_POINTER PTR_MSG_SEP_REPLY, | 341 | } MSG_SEP_REPLY, MPI_POINTER PTR_MSG_SEP_REPLY, |
336 | SEPReply_t, MPI_POINTER pSEPReply_t; | 342 | SEPReply_t, MPI_POINTER pSEPReply_t; |
337 | 343 | ||
diff --git a/drivers/message/fusion/lsi/mpi_ioc.h b/drivers/message/fusion/lsi/mpi_ioc.h index 82445d18b4d5..f91eb4efe8cc 100644 --- a/drivers/message/fusion/lsi/mpi_ioc.h +++ b/drivers/message/fusion/lsi/mpi_ioc.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2005 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_ioc.h | 5 | * Name: mpi_ioc.h |
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: August 11, 2000 | 7 | * Creation Date: August 11, 2000 |
8 | * | 8 | * |
9 | * mpi_ioc.h Version: 01.05.xx | 9 | * mpi_ioc.h Version: 01.05.08 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -57,6 +57,30 @@ | |||
57 | * Added AliasIndex to EVENT_DATA_LOGOUT structure. | 57 | * Added AliasIndex to EVENT_DATA_LOGOUT structure. |
58 | * 04-01-03 01.02.07 Added defines for MPI_FW_HEADER_SIGNATURE_. | 58 | * 04-01-03 01.02.07 Added defines for MPI_FW_HEADER_SIGNATURE_. |
59 | * 06-26-03 01.02.08 Added new values to the product family defines. | 59 | * 06-26-03 01.02.08 Added new values to the product family defines. |
60 | * 04-29-04 01.02.09 Added IOCCapabilities field to MSG_IOC_FACTS_REPLY and | ||
61 | * added related defines. | ||
62 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
63 | * 08-19-04 01.05.01 Added four new fields to MSG_IOC_INIT. | ||
64 | * Added three new fields to MSG_IOC_FACTS_REPLY. | ||
65 | * Defined four new bits for the IOCCapabilities field of | ||
66 | * the IOCFacts reply. | ||
67 | * Added two new PortTypes for the PortFacts reply. | ||
68 | * Added six new events along with their EventData | ||
69 | * structures. | ||
70 | * Added a new MsgFlag to the FwDownload request to | ||
71 | * indicate last segment. | ||
72 | * Defined a new image type of boot loader. | ||
73 | * Added FW family codes for SAS product families. | ||
74 | * 10-05-04 01.05.02 Added ReplyFifoHostSignalingAddr field to | ||
75 | * MSG_IOC_FACTS_REPLY. | ||
76 | * 12-07-04 01.05.03 Added more defines for SAS Discovery Error event. | ||
77 | * 12-09-04 01.05.04 Added Unsupported device to SAS Device event. | ||
78 | * 01-15-05 01.05.05 Added event data for SAS SES Event. | ||
79 | * 02-09-05 01.05.06 Added MPI_FW_UPLOAD_ITYPE_FW_BACKUP define. | ||
80 | * 02-22-05 01.05.07 Added Host Page Buffer Persistent flag to IOC Facts | ||
81 | * Reply and IOC Init Request. | ||
82 | * 03-11-05 01.05.08 Added family code for 1068E family. | ||
83 | * Removed IOCFacts Reply EEDP Capability bit. | ||
60 | * -------------------------------------------------------------------------- | 84 | * -------------------------------------------------------------------------- |
61 | */ | 85 | */ |
62 | 86 | ||
@@ -90,20 +114,37 @@ typedef struct _MSG_IOC_INIT | |||
90 | U32 HostMfaHighAddr; /* 10h */ | 114 | U32 HostMfaHighAddr; /* 10h */ |
91 | U32 SenseBufferHighAddr; /* 14h */ | 115 | U32 SenseBufferHighAddr; /* 14h */ |
92 | U32 ReplyFifoHostSignalingAddr; /* 18h */ | 116 | U32 ReplyFifoHostSignalingAddr; /* 18h */ |
117 | SGE_SIMPLE_UNION HostPageBufferSGE; /* 1Ch */ | ||
118 | U16 MsgVersion; /* 28h */ | ||
119 | U16 HeaderVersion; /* 2Ah */ | ||
93 | } MSG_IOC_INIT, MPI_POINTER PTR_MSG_IOC_INIT, | 120 | } MSG_IOC_INIT, MPI_POINTER PTR_MSG_IOC_INIT, |
94 | IOCInit_t, MPI_POINTER pIOCInit_t; | 121 | IOCInit_t, MPI_POINTER pIOCInit_t; |
95 | 122 | ||
96 | /* WhoInit values */ | 123 | /* WhoInit values */ |
97 | #define MPI_WHOINIT_NO_ONE (0x00) | 124 | #define MPI_WHOINIT_NO_ONE (0x00) |
98 | #define MPI_WHOINIT_SYSTEM_BIOS (0x01) | 125 | #define MPI_WHOINIT_SYSTEM_BIOS (0x01) |
99 | #define MPI_WHOINIT_ROM_BIOS (0x02) | 126 | #define MPI_WHOINIT_ROM_BIOS (0x02) |
100 | #define MPI_WHOINIT_PCI_PEER (0x03) | 127 | #define MPI_WHOINIT_PCI_PEER (0x03) |
101 | #define MPI_WHOINIT_HOST_DRIVER (0x04) | 128 | #define MPI_WHOINIT_HOST_DRIVER (0x04) |
102 | #define MPI_WHOINIT_MANUFACTURER (0x05) | 129 | #define MPI_WHOINIT_MANUFACTURER (0x05) |
103 | 130 | ||
104 | /* Flags values */ | 131 | /* Flags values */ |
105 | #define MPI_IOCINIT_FLAGS_DISCARD_FW_IMAGE (0x01) | 132 | #define MPI_IOCINIT_FLAGS_HOST_PAGE_BUFFER_PERSISTENT (0x04) |
106 | #define MPI_IOCINIT_FLAGS_REPLY_FIFO_HOST_SIGNAL (0x02) | 133 | #define MPI_IOCINIT_FLAGS_REPLY_FIFO_HOST_SIGNAL (0x02) |
134 | #define MPI_IOCINIT_FLAGS_DISCARD_FW_IMAGE (0x01) | ||
135 | |||
136 | /* MsgVersion */ | ||
137 | #define MPI_IOCINIT_MSGVERSION_MAJOR_MASK (0xFF00) | ||
138 | #define MPI_IOCINIT_MSGVERSION_MAJOR_SHIFT (8) | ||
139 | #define MPI_IOCINIT_MSGVERSION_MINOR_MASK (0x00FF) | ||
140 | #define MPI_IOCINIT_MSGVERSION_MINOR_SHIFT (0) | ||
141 | |||
142 | /* HeaderVersion */ | ||
143 | #define MPI_IOCINIT_HEADERVERSION_UNIT_MASK (0xFF00) | ||
144 | #define MPI_IOCINIT_HEADERVERSION_UNIT_SHIFT (8) | ||
145 | #define MPI_IOCINIT_HEADERVERSION_DEV_MASK (0x00FF) | ||
146 | #define MPI_IOCINIT_HEADERVERSION_DEV_SHIFT (0) | ||
147 | |||
107 | 148 | ||
108 | typedef struct _MSG_IOC_INIT_REPLY | 149 | typedef struct _MSG_IOC_INIT_REPLY |
109 | { | 150 | { |
@@ -187,32 +228,39 @@ typedef struct _MSG_IOC_FACTS_REPLY | |||
187 | MPI_FW_VERSION FWVersion; /* 38h */ | 228 | MPI_FW_VERSION FWVersion; /* 38h */ |
188 | U16 HighPriorityQueueDepth; /* 3Ch */ | 229 | U16 HighPriorityQueueDepth; /* 3Ch */ |
189 | U16 Reserved2; /* 3Eh */ | 230 | U16 Reserved2; /* 3Eh */ |
231 | SGE_SIMPLE_UNION HostPageBufferSGE; /* 40h */ | ||
232 | U32 ReplyFifoHostSignalingAddr; /* 4Ch */ | ||
190 | } MSG_IOC_FACTS_REPLY, MPI_POINTER PTR_MSG_IOC_FACTS_REPLY, | 233 | } MSG_IOC_FACTS_REPLY, MPI_POINTER PTR_MSG_IOC_FACTS_REPLY, |
191 | IOCFactsReply_t, MPI_POINTER pIOCFactsReply_t; | 234 | IOCFactsReply_t, MPI_POINTER pIOCFactsReply_t; |
192 | 235 | ||
193 | #define MPI_IOCFACTS_MSGVERSION_MAJOR_MASK (0xFF00) | 236 | #define MPI_IOCFACTS_MSGVERSION_MAJOR_MASK (0xFF00) |
194 | #define MPI_IOCFACTS_MSGVERSION_MINOR_MASK (0x00FF) | 237 | #define MPI_IOCFACTS_MSGVERSION_MAJOR_SHIFT (8) |
238 | #define MPI_IOCFACTS_MSGVERSION_MINOR_MASK (0x00FF) | ||
239 | #define MPI_IOCFACTS_MSGVERSION_MINOR_SHIFT (0) | ||
195 | 240 | ||
196 | #define MPI_IOCFACTS_HEADERVERSION_UNIT_MASK (0xFF00) | 241 | #define MPI_IOCFACTS_HDRVERSION_UNIT_MASK (0xFF00) |
197 | #define MPI_IOCFACTS_HEADERVERSION_DEV_MASK (0x00FF) | 242 | #define MPI_IOCFACTS_HDRVERSION_UNIT_SHIFT (8) |
243 | #define MPI_IOCFACTS_HDRVERSION_DEV_MASK (0x00FF) | ||
244 | #define MPI_IOCFACTS_HDRVERSION_DEV_SHIFT (0) | ||
198 | 245 | ||
199 | #define MPI_IOCFACTS_EXCEPT_CONFIG_CHECKSUM_FAIL (0x0001) | 246 | #define MPI_IOCFACTS_EXCEPT_CONFIG_CHECKSUM_FAIL (0x0001) |
200 | #define MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID (0x0002) | 247 | #define MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID (0x0002) |
201 | #define MPI_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL (0x0004) | 248 | #define MPI_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL (0x0004) |
202 | #define MPI_IOCFACTS_EXCEPT_PERSISTENT_TABLE_FULL (0x0008) | 249 | #define MPI_IOCFACTS_EXCEPT_PERSISTENT_TABLE_FULL (0x0008) |
203 | 250 | ||
204 | #define MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT (0x01) | 251 | #define MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT (0x01) |
252 | #define MPI_IOCFACTS_FLAGS_REPLY_FIFO_HOST_SIGNAL (0x02) | ||
253 | #define MPI_IOCFACTS_FLAGS_HOST_PAGE_BUFFER_PERSISTENT (0x04) | ||
205 | 254 | ||
206 | #define MPI_IOCFACTS_EVENTSTATE_DISABLED (0x00) | 255 | #define MPI_IOCFACTS_EVENTSTATE_DISABLED (0x00) |
207 | #define MPI_IOCFACTS_EVENTSTATE_ENABLED (0x01) | 256 | #define MPI_IOCFACTS_EVENTSTATE_ENABLED (0x01) |
208 | 257 | ||
209 | #define MPI_IOCFACTS_CAPABILITY_HIGH_PRI_Q (0x00000001) | 258 | #define MPI_IOCFACTS_CAPABILITY_HIGH_PRI_Q (0x00000001) |
210 | #define MPI_IOCFACTS_CAPABILITY_REPLY_HOST_SIGNAL (0x00000002) | 259 | #define MPI_IOCFACTS_CAPABILITY_REPLY_HOST_SIGNAL (0x00000002) |
211 | #define MPI_IOCFACTS_CAPABILITY_QUEUE_FULL_HANDLING (0x00000004) | 260 | #define MPI_IOCFACTS_CAPABILITY_QUEUE_FULL_HANDLING (0x00000004) |
212 | #define MPI_IOCFACTS_CAPABILITY_DIAG_TRACE_BUFFER (0x00000008) | 261 | #define MPI_IOCFACTS_CAPABILITY_DIAG_TRACE_BUFFER (0x00000008) |
213 | #define MPI_IOCFACTS_CAPABILITY_SNAPSHOT_BUFFER (0x00000010) | 262 | #define MPI_IOCFACTS_CAPABILITY_SNAPSHOT_BUFFER (0x00000010) |
214 | #define MPI_IOCFACTS_CAPABILITY_EXTENDED_BUFFER (0x00000020) | 263 | #define MPI_IOCFACTS_CAPABILITY_EXTENDED_BUFFER (0x00000020) |
215 | #define MPI_IOCFACTS_CAPABILITY_EEDP (0x00000040) | ||
216 | 264 | ||
217 | 265 | ||
218 | 266 | ||
@@ -408,6 +456,8 @@ typedef struct _MSG_EVENT_ACK_REPLY | |||
408 | #define MPI_EVENT_SAS_DEVICE_STATUS_CHANGE (0x0000000F) | 456 | #define MPI_EVENT_SAS_DEVICE_STATUS_CHANGE (0x0000000F) |
409 | #define MPI_EVENT_SAS_SES (0x00000010) | 457 | #define MPI_EVENT_SAS_SES (0x00000010) |
410 | #define MPI_EVENT_PERSISTENT_TABLE_FULL (0x00000011) | 458 | #define MPI_EVENT_PERSISTENT_TABLE_FULL (0x00000011) |
459 | #define MPI_EVENT_SAS_PHY_LINK_STATUS (0x00000012) | ||
460 | #define MPI_EVENT_SAS_DISCOVERY_ERROR (0x00000013) | ||
411 | 461 | ||
412 | /* AckRequired field values */ | 462 | /* AckRequired field values */ |
413 | 463 | ||
@@ -467,6 +517,10 @@ typedef struct _EVENT_DATA_SAS_DEVICE_STATUS_CHANGE | |||
467 | U8 ASCQ; /* 05h */ | 517 | U8 ASCQ; /* 05h */ |
468 | U16 DevHandle; /* 06h */ | 518 | U16 DevHandle; /* 06h */ |
469 | U32 DeviceInfo; /* 08h */ | 519 | U32 DeviceInfo; /* 08h */ |
520 | U16 ParentDevHandle; /* 0Ch */ | ||
521 | U8 PhyNum; /* 0Eh */ | ||
522 | U8 Reserved1; /* 0Fh */ | ||
523 | U64 SASAddress; /* 10h */ | ||
470 | } EVENT_DATA_SAS_DEVICE_STATUS_CHANGE, | 524 | } EVENT_DATA_SAS_DEVICE_STATUS_CHANGE, |
471 | MPI_POINTER PTR_EVENT_DATA_SAS_DEVICE_STATUS_CHANGE, | 525 | MPI_POINTER PTR_EVENT_DATA_SAS_DEVICE_STATUS_CHANGE, |
472 | MpiEventDataSasDeviceStatusChange_t, | 526 | MpiEventDataSasDeviceStatusChange_t, |
@@ -477,6 +531,8 @@ typedef struct _EVENT_DATA_SAS_DEVICE_STATUS_CHANGE | |||
477 | #define MPI_EVENT_SAS_DEV_STAT_RC_NOT_RESPONDING (0x04) | 531 | #define MPI_EVENT_SAS_DEV_STAT_RC_NOT_RESPONDING (0x04) |
478 | #define MPI_EVENT_SAS_DEV_STAT_RC_SMART_DATA (0x05) | 532 | #define MPI_EVENT_SAS_DEV_STAT_RC_SMART_DATA (0x05) |
479 | #define MPI_EVENT_SAS_DEV_STAT_RC_NO_PERSIST_ADDED (0x06) | 533 | #define MPI_EVENT_SAS_DEV_STAT_RC_NO_PERSIST_ADDED (0x06) |
534 | #define MPI_EVENT_SAS_DEV_STAT_RC_UNSUPPORTED (0x07) | ||
535 | |||
480 | 536 | ||
481 | /* SCSI Event data for Queue Full event */ | 537 | /* SCSI Event data for Queue Full event */ |
482 | 538 | ||
@@ -488,6 +544,35 @@ typedef struct _EVENT_DATA_QUEUE_FULL | |||
488 | } EVENT_DATA_QUEUE_FULL, MPI_POINTER PTR_EVENT_DATA_QUEUE_FULL, | 544 | } EVENT_DATA_QUEUE_FULL, MPI_POINTER PTR_EVENT_DATA_QUEUE_FULL, |
489 | EventDataQueueFull_t, MPI_POINTER pEventDataQueueFull_t; | 545 | EventDataQueueFull_t, MPI_POINTER pEventDataQueueFull_t; |
490 | 546 | ||
547 | /* MPI Integrated RAID Event data */ | ||
548 | |||
549 | typedef struct _EVENT_DATA_RAID | ||
550 | { | ||
551 | U8 VolumeID; /* 00h */ | ||
552 | U8 VolumeBus; /* 01h */ | ||
553 | U8 ReasonCode; /* 02h */ | ||
554 | U8 PhysDiskNum; /* 03h */ | ||
555 | U8 ASC; /* 04h */ | ||
556 | U8 ASCQ; /* 05h */ | ||
557 | U16 Reserved; /* 06h */ | ||
558 | U32 SettingsStatus; /* 08h */ | ||
559 | } EVENT_DATA_RAID, MPI_POINTER PTR_EVENT_DATA_RAID, | ||
560 | MpiEventDataRaid_t, MPI_POINTER pMpiEventDataRaid_t; | ||
561 | |||
562 | /* MPI Integrated RAID Event data ReasonCode values */ | ||
563 | #define MPI_EVENT_RAID_RC_VOLUME_CREATED (0x00) | ||
564 | #define MPI_EVENT_RAID_RC_VOLUME_DELETED (0x01) | ||
565 | #define MPI_EVENT_RAID_RC_VOLUME_SETTINGS_CHANGED (0x02) | ||
566 | #define MPI_EVENT_RAID_RC_VOLUME_STATUS_CHANGED (0x03) | ||
567 | #define MPI_EVENT_RAID_RC_VOLUME_PHYSDISK_CHANGED (0x04) | ||
568 | #define MPI_EVENT_RAID_RC_PHYSDISK_CREATED (0x05) | ||
569 | #define MPI_EVENT_RAID_RC_PHYSDISK_DELETED (0x06) | ||
570 | #define MPI_EVENT_RAID_RC_PHYSDISK_SETTINGS_CHANGED (0x07) | ||
571 | #define MPI_EVENT_RAID_RC_PHYSDISK_STATUS_CHANGED (0x08) | ||
572 | #define MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED (0x09) | ||
573 | #define MPI_EVENT_RAID_RC_SMART_DATA (0x0A) | ||
574 | #define MPI_EVENT_RAID_RC_REPLACE_ACTION_STARTED (0x0B) | ||
575 | |||
491 | /* MPI Link Status Change Event data */ | 576 | /* MPI Link Status Change Event data */ |
492 | 577 | ||
493 | typedef struct _EVENT_DATA_LINK_STATUS | 578 | typedef struct _EVENT_DATA_LINK_STATUS |
@@ -535,35 +620,63 @@ typedef struct _EVENT_DATA_LOGOUT | |||
535 | 620 | ||
536 | #define MPI_EVENT_LOGOUT_ALL_ALIASES (0xFF) | 621 | #define MPI_EVENT_LOGOUT_ALL_ALIASES (0xFF) |
537 | 622 | ||
623 | /* SAS SES Event data */ | ||
538 | 624 | ||
539 | /* MPI Integrated RAID Event data */ | 625 | typedef struct _EVENT_DATA_SAS_SES |
540 | |||
541 | typedef struct _EVENT_DATA_RAID | ||
542 | { | 626 | { |
543 | U8 VolumeID; /* 00h */ | 627 | U8 PhyNum; /* 00h */ |
544 | U8 VolumeBus; /* 01h */ | 628 | U8 Port; /* 01h */ |
545 | U8 ReasonCode; /* 02h */ | 629 | U8 PortWidth; /* 02h */ |
546 | U8 PhysDiskNum; /* 03h */ | 630 | U8 Reserved1; /* 04h */ |
547 | U8 ASC; /* 04h */ | 631 | } EVENT_DATA_SAS_SES, MPI_POINTER PTR_EVENT_DATA_SAS_SES, |
548 | U8 ASCQ; /* 05h */ | 632 | MpiEventDataSasSes_t, MPI_POINTER pMpiEventDataSasSes_t; |
549 | U16 Reserved; /* 06h */ | ||
550 | U32 SettingsStatus; /* 08h */ | ||
551 | } EVENT_DATA_RAID, MPI_POINTER PTR_EVENT_DATA_RAID, | ||
552 | MpiEventDataRaid_t, MPI_POINTER pMpiEventDataRaid_t; | ||
553 | 633 | ||
554 | /* MPI Integrated RAID Event data ReasonCode values */ | 634 | /* SAS Phy Link Status Event data */ |
555 | #define MPI_EVENT_RAID_RC_VOLUME_CREATED (0x00) | 635 | |
556 | #define MPI_EVENT_RAID_RC_VOLUME_DELETED (0x01) | 636 | typedef struct _EVENT_DATA_SAS_PHY_LINK_STATUS |
557 | #define MPI_EVENT_RAID_RC_VOLUME_SETTINGS_CHANGED (0x02) | 637 | { |
558 | #define MPI_EVENT_RAID_RC_VOLUME_STATUS_CHANGED (0x03) | 638 | U8 PhyNum; /* 00h */ |
559 | #define MPI_EVENT_RAID_RC_VOLUME_PHYSDISK_CHANGED (0x04) | 639 | U8 LinkRates; /* 01h */ |
560 | #define MPI_EVENT_RAID_RC_PHYSDISK_CREATED (0x05) | 640 | U16 DevHandle; /* 02h */ |
561 | #define MPI_EVENT_RAID_RC_PHYSDISK_DELETED (0x06) | 641 | U64 SASAddress; /* 04h */ |
562 | #define MPI_EVENT_RAID_RC_PHYSDISK_SETTINGS_CHANGED (0x07) | 642 | } EVENT_DATA_SAS_PHY_LINK_STATUS, MPI_POINTER PTR_EVENT_DATA_SAS_PHY_LINK_STATUS, |
563 | #define MPI_EVENT_RAID_RC_PHYSDISK_STATUS_CHANGED (0x08) | 643 | MpiEventDataSasPhyLinkStatus_t, MPI_POINTER pMpiEventDataSasPhyLinkStatus_t; |
564 | #define MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED (0x09) | 644 | |
565 | #define MPI_EVENT_RAID_RC_SMART_DATA (0x0A) | 645 | /* defines for the LinkRates field of the SAS PHY Link Status event */ |
566 | #define MPI_EVENT_RAID_RC_REPLACE_ACTION_STARTED (0x0B) | 646 | #define MPI_EVENT_SAS_PLS_LR_CURRENT_MASK (0xF0) |
647 | #define MPI_EVENT_SAS_PLS_LR_CURRENT_SHIFT (4) | ||
648 | #define MPI_EVENT_SAS_PLS_LR_PREVIOUS_MASK (0x0F) | ||
649 | #define MPI_EVENT_SAS_PLS_LR_PREVIOUS_SHIFT (0) | ||
650 | #define MPI_EVENT_SAS_PLS_LR_RATE_UNKNOWN (0x00) | ||
651 | #define MPI_EVENT_SAS_PLS_LR_RATE_PHY_DISABLED (0x01) | ||
652 | #define MPI_EVENT_SAS_PLS_LR_RATE_FAILED_SPEED_NEGOTIATION (0x02) | ||
653 | #define MPI_EVENT_SAS_PLS_LR_RATE_SATA_OOB_COMPLETE (0x03) | ||
654 | #define MPI_EVENT_SAS_PLS_LR_RATE_1_5 (0x08) | ||
655 | #define MPI_EVENT_SAS_PLS_LR_RATE_3_0 (0x09) | ||
656 | |||
657 | /* SAS Discovery Errror Event data */ | ||
658 | |||
659 | typedef struct _EVENT_DATA_DISCOVERY_ERROR | ||
660 | { | ||
661 | U32 DiscoveryStatus; /* 00h */ | ||
662 | U8 Port; /* 04h */ | ||
663 | U8 Reserved1; /* 05h */ | ||
664 | U16 Reserved2; /* 06h */ | ||
665 | } EVENT_DATA_DISCOVERY_ERROR, MPI_POINTER PTR_EVENT_DATA_DISCOVERY_ERROR, | ||
666 | EventDataDiscoveryError_t, MPI_POINTER pEventDataDiscoveryError_t; | ||
667 | |||
668 | #define MPI_EVENT_DSCVRY_ERR_DS_LOOP_DETECTED (0x00000001) | ||
669 | #define MPI_EVENT_DSCVRY_ERR_DS_UNADDRESSABLE_DEVICE (0x00000002) | ||
670 | #define MPI_EVENT_DSCVRY_ERR_DS_MULTIPLE_PORTS (0x00000004) | ||
671 | #define MPI_EVENT_DSCVRY_ERR_DS_EXPANDER_ERR (0x00000008) | ||
672 | #define MPI_EVENT_DSCVRY_ERR_DS_SMP_TIMEOUT (0x00000010) | ||
673 | #define MPI_EVENT_DSCVRY_ERR_DS_OUT_ROUTE_ENTRIES (0x00000020) | ||
674 | #define MPI_EVENT_DSCVRY_ERR_DS_INDEX_NOT_EXIST (0x00000040) | ||
675 | #define MPI_EVENT_DSCVRY_ERR_DS_SMP_FUNCTION_FAILED (0x00000080) | ||
676 | #define MPI_EVENT_DSCVRY_ERR_DS_SMP_CRC_ERROR (0x00000100) | ||
677 | #define MPI_EVENT_DSCVRY_ERR_DS_MULTPL_SUBTRACTIVE (0x00000200) | ||
678 | #define MPI_EVENT_DSCVRY_ERR_DS_TABLE_TO_TABLE (0x00000400) | ||
679 | #define MPI_EVENT_DSCVRY_ERR_DS_MULTPL_PATHS (0x00000800) | ||
567 | 680 | ||
568 | 681 | ||
569 | /***************************************************************************** | 682 | /***************************************************************************** |
@@ -589,11 +702,13 @@ typedef struct _MSG_FW_DOWNLOAD | |||
589 | } MSG_FW_DOWNLOAD, MPI_POINTER PTR_MSG_FW_DOWNLOAD, | 702 | } MSG_FW_DOWNLOAD, MPI_POINTER PTR_MSG_FW_DOWNLOAD, |
590 | FWDownload_t, MPI_POINTER pFWDownload_t; | 703 | FWDownload_t, MPI_POINTER pFWDownload_t; |
591 | 704 | ||
592 | #define MPI_FW_DOWNLOAD_ITYPE_RESERVED (0x00) | 705 | #define MPI_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT (0x01) |
593 | #define MPI_FW_DOWNLOAD_ITYPE_FW (0x01) | 706 | |
594 | #define MPI_FW_DOWNLOAD_ITYPE_BIOS (0x02) | 707 | #define MPI_FW_DOWNLOAD_ITYPE_RESERVED (0x00) |
595 | #define MPI_FW_DOWNLOAD_ITYPE_NVDATA (0x03) | 708 | #define MPI_FW_DOWNLOAD_ITYPE_FW (0x01) |
596 | #define MPI_FW_DOWNLOAD_ITYPE_BOOTLOADER (0x04) | 709 | #define MPI_FW_DOWNLOAD_ITYPE_BIOS (0x02) |
710 | #define MPI_FW_DOWNLOAD_ITYPE_NVDATA (0x03) | ||
711 | #define MPI_FW_DOWNLOAD_ITYPE_BOOTLOADER (0x04) | ||
597 | 712 | ||
598 | 713 | ||
599 | typedef struct _FWDownloadTCSGE | 714 | typedef struct _FWDownloadTCSGE |
@@ -647,6 +762,7 @@ typedef struct _MSG_FW_UPLOAD | |||
647 | #define MPI_FW_UPLOAD_ITYPE_BIOS_FLASH (0x02) | 762 | #define MPI_FW_UPLOAD_ITYPE_BIOS_FLASH (0x02) |
648 | #define MPI_FW_UPLOAD_ITYPE_NVDATA (0x03) | 763 | #define MPI_FW_UPLOAD_ITYPE_NVDATA (0x03) |
649 | #define MPI_FW_UPLOAD_ITYPE_BOOTLOADER (0x04) | 764 | #define MPI_FW_UPLOAD_ITYPE_BOOTLOADER (0x04) |
765 | #define MPI_FW_UPLOAD_ITYPE_FW_BACKUP (0x05) | ||
650 | 766 | ||
651 | typedef struct _FWUploadTCSGE | 767 | typedef struct _FWUploadTCSGE |
652 | { | 768 | { |
@@ -723,6 +839,7 @@ typedef struct _MPI_FW_HEADER | |||
723 | #define MPI_FW_HEADER_PID_PROD_IM_SCSI (0x0400) | 839 | #define MPI_FW_HEADER_PID_PROD_IM_SCSI (0x0400) |
724 | #define MPI_FW_HEADER_PID_PROD_IS_SCSI (0x0500) | 840 | #define MPI_FW_HEADER_PID_PROD_IS_SCSI (0x0500) |
725 | #define MPI_FW_HEADER_PID_PROD_CTX_SCSI (0x0600) | 841 | #define MPI_FW_HEADER_PID_PROD_CTX_SCSI (0x0600) |
842 | #define MPI_FW_HEADER_PID_PROD_IR_SCSI (0x0700) | ||
726 | 843 | ||
727 | #define MPI_FW_HEADER_PID_FAMILY_MASK (0x00FF) | 844 | #define MPI_FW_HEADER_PID_FAMILY_MASK (0x00FF) |
728 | /* SCSI */ | 845 | /* SCSI */ |
@@ -740,13 +857,16 @@ typedef struct _MPI_FW_HEADER | |||
740 | #define MPI_FW_HEADER_PID_FAMILY_1020TA0_SCSI (0x000C) | 857 | #define MPI_FW_HEADER_PID_FAMILY_1020TA0_SCSI (0x000C) |
741 | /* Fibre Channel */ | 858 | /* Fibre Channel */ |
742 | #define MPI_FW_HEADER_PID_FAMILY_909_FC (0x0000) | 859 | #define MPI_FW_HEADER_PID_FAMILY_909_FC (0x0000) |
743 | #define MPI_FW_HEADER_PID_FAMILY_919_FC (0x0001) | 860 | #define MPI_FW_HEADER_PID_FAMILY_919_FC (0x0001) /* 919 and 929 */ |
744 | #define MPI_FW_HEADER_PID_FAMILY_919X_FC (0x0002) | 861 | #define MPI_FW_HEADER_PID_FAMILY_919X_FC (0x0002) /* 919X and 929X */ |
745 | #define MPI_FW_HEADER_PID_FAMILY_919XL_FC (0x0003) | 862 | #define MPI_FW_HEADER_PID_FAMILY_919XL_FC (0x0003) /* 919XL and 929XL */ |
746 | #define MPI_FW_HEADER_PID_FAMILY_949_FC (0x0004) | 863 | #define MPI_FW_HEADER_PID_FAMILY_939X_FC (0x0004) /* 939X and 949X */ |
747 | #define MPI_FW_HEADER_PID_FAMILY_959_FC (0x0005) | 864 | #define MPI_FW_HEADER_PID_FAMILY_959_FC (0x0005) |
748 | /* SAS */ | 865 | /* SAS */ |
749 | #define MPI_FW_HEADER_PID_FAMILY_1064_SAS (0x0001) | 866 | #define MPI_FW_HEADER_PID_FAMILY_1064_SAS (0x0001) |
867 | #define MPI_FW_HEADER_PID_FAMILY_1068_SAS (0x0002) | ||
868 | #define MPI_FW_HEADER_PID_FAMILY_1078_SAS (0x0003) | ||
869 | #define MPI_FW_HEADER_PID_FAMILY_106xE_SAS (0x0004) /* 1068E, 1066E, and 1064E */ | ||
750 | 870 | ||
751 | typedef struct _MPI_EXT_IMAGE_HEADER | 871 | typedef struct _MPI_EXT_IMAGE_HEADER |
752 | { | 872 | { |
diff --git a/drivers/message/fusion/lsi/mpi_lan.h b/drivers/message/fusion/lsi/mpi_lan.h index 3ced12784ee8..dc0b52ae83dd 100644 --- a/drivers/message/fusion/lsi/mpi_lan.h +++ b/drivers/message/fusion/lsi/mpi_lan.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2004 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_lan.h | 5 | * Name: mpi_lan.h |
6 | * Title: MPI LAN messages and structures | 6 | * Title: MPI LAN messages and structures |
7 | * Creation Date: June 30, 2000 | 7 | * Creation Date: June 30, 2000 |
8 | * | 8 | * |
9 | * mpi_lan.h Version: 01.05.xx | 9 | * mpi_lan.h Version: 01.05.01 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -28,6 +28,8 @@ | |||
28 | * 02-20-01 01.01.02 Started using MPI_POINTER. | 28 | * 02-20-01 01.01.02 Started using MPI_POINTER. |
29 | * 03-27-01 01.01.03 Added structure offset comments. | 29 | * 03-27-01 01.01.03 Added structure offset comments. |
30 | * 08-08-01 01.02.01 Original release for v1.2 work. | 30 | * 08-08-01 01.02.01 Original release for v1.2 work. |
31 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
32 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
31 | * -------------------------------------------------------------------------- | 33 | * -------------------------------------------------------------------------- |
32 | */ | 34 | */ |
33 | 35 | ||
diff --git a/drivers/message/fusion/lsi/mpi_raid.h b/drivers/message/fusion/lsi/mpi_raid.h index 9580a9de7fd2..802255d2747c 100644 --- a/drivers/message/fusion/lsi/mpi_raid.h +++ b/drivers/message/fusion/lsi/mpi_raid.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2001-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2001-2005 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_raid.h | 5 | * Name: mpi_raid.h |
6 | * Title: MPI RAID message and structures | 6 | * Title: MPI RAID message and structures |
7 | * Creation Date: February 27, 2001 | 7 | * Creation Date: February 27, 2001 |
8 | * | 8 | * |
9 | * mpi_raid.h Version: 01.05.xx | 9 | * mpi_raid.h Version: 01.05.02 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -28,6 +28,10 @@ | |||
28 | * 11-15-02 01.02.08 Added missing MsgContext field to MSG_MAILBOX_REQUEST. | 28 | * 11-15-02 01.02.08 Added missing MsgContext field to MSG_MAILBOX_REQUEST. |
29 | * 04-01-03 01.02.09 New action data option flag for | 29 | * 04-01-03 01.02.09 New action data option flag for |
30 | * MPI_RAID_ACTION_DELETE_VOLUME. | 30 | * MPI_RAID_ACTION_DELETE_VOLUME. |
31 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
32 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
33 | * 01-15-05 01.05.02 Added defines for the two new RAID Actions for | ||
34 | * _SET_RESYNC_RATE and _SET_DATA_SCRUB_RATE. | ||
31 | * -------------------------------------------------------------------------- | 35 | * -------------------------------------------------------------------------- |
32 | */ | 36 | */ |
33 | 37 | ||
@@ -84,6 +88,8 @@ typedef struct _MSG_RAID_ACTION | |||
84 | #define MPI_RAID_ACTION_REPLACE_PHYSDISK (0x10) | 88 | #define MPI_RAID_ACTION_REPLACE_PHYSDISK (0x10) |
85 | #define MPI_RAID_ACTION_ACTIVATE_VOLUME (0x11) | 89 | #define MPI_RAID_ACTION_ACTIVATE_VOLUME (0x11) |
86 | #define MPI_RAID_ACTION_INACTIVATE_VOLUME (0x12) | 90 | #define MPI_RAID_ACTION_INACTIVATE_VOLUME (0x12) |
91 | #define MPI_RAID_ACTION_SET_RESYNC_RATE (0x13) | ||
92 | #define MPI_RAID_ACTION_SET_DATA_SCRUB_RATE (0x14) | ||
87 | 93 | ||
88 | /* ActionDataWord defines for use with MPI_RAID_ACTION_CREATE_VOLUME action */ | 94 | /* ActionDataWord defines for use with MPI_RAID_ACTION_CREATE_VOLUME action */ |
89 | #define MPI_RAID_ACTION_ADATA_DO_NOT_SYNC (0x00000001) | 95 | #define MPI_RAID_ACTION_ADATA_DO_NOT_SYNC (0x00000001) |
@@ -99,6 +105,13 @@ typedef struct _MSG_RAID_ACTION | |||
99 | /* ActionDataWord defines for use with MPI_RAID_ACTION_ACTIVATE_VOLUME action */ | 105 | /* ActionDataWord defines for use with MPI_RAID_ACTION_ACTIVATE_VOLUME action */ |
100 | #define MPI_RAID_ACTION_ADATA_INACTIVATE_ALL (0x00000001) | 106 | #define MPI_RAID_ACTION_ADATA_INACTIVATE_ALL (0x00000001) |
101 | 107 | ||
108 | /* ActionDataWord defines for use with MPI_RAID_ACTION_SET_RESYNC_RATE action */ | ||
109 | #define MPI_RAID_ACTION_ADATA_RESYNC_RATE_MASK (0x000000FF) | ||
110 | |||
111 | /* ActionDataWord defines for use with MPI_RAID_ACTION_SET_DATA_SCRUB_RATE action */ | ||
112 | #define MPI_RAID_ACTION_ADATA_DATA_SCRUB_RATE_MASK (0x000000FF) | ||
113 | |||
114 | |||
102 | 115 | ||
103 | /* RAID Action reply message */ | 116 | /* RAID Action reply message */ |
104 | 117 | ||
diff --git a/drivers/message/fusion/lsi/mpi_sas.h b/drivers/message/fusion/lsi/mpi_sas.h index cb878f9c65de..230fa69b5353 100644 --- a/drivers/message/fusion/lsi/mpi_sas.h +++ b/drivers/message/fusion/lsi/mpi_sas.h | |||
@@ -1,25 +1,76 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2003 LSI Logic Corporation. | 2 | * Copyright (c) 2004 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_sas.h | 5 | * Name: mpi_sas.h |
6 | * Title: MPI Serial Attached SCSI structures and definitions | 6 | * Title: MPI Serial Attached SCSI structures and definitions |
7 | * Creation Date: April 23, 2003 | 7 | * Creation Date: August 19, 2004 |
8 | * | 8 | * |
9 | * mpi_sas.h Version: 01.05.xx | 9 | * mpi_sas.h Version: 01.05.01 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
13 | * | 13 | * |
14 | * Date Version Description | 14 | * Date Version Description |
15 | * -------- -------- ------------------------------------------------------ | 15 | * -------- -------- ------------------------------------------------------ |
16 | * xx-yy-zz 01.05.01 Original release. | 16 | * 08-19-04 01.05.01 Original release. |
17 | * -------------------------------------------------------------------------- | 17 | * -------------------------------------------------------------------------- |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #ifndef MPI_SAS_H | 20 | #ifndef MPI_SAS_H |
21 | #define MPI_SAS_H | 21 | #define MPI_SAS_H |
22 | 22 | ||
23 | |||
24 | /* | ||
25 | * Values for SASStatus. | ||
26 | */ | ||
27 | #define MPI_SASSTATUS_SUCCESS (0x00) | ||
28 | #define MPI_SASSTATUS_UNKNOWN_ERROR (0x01) | ||
29 | #define MPI_SASSTATUS_INVALID_FRAME (0x02) | ||
30 | #define MPI_SASSTATUS_UTC_BAD_DEST (0x03) | ||
31 | #define MPI_SASSTATUS_UTC_BREAK_RECEIVED (0x04) | ||
32 | #define MPI_SASSTATUS_UTC_CONNECT_RATE_NOT_SUPPORTED (0x05) | ||
33 | #define MPI_SASSTATUS_UTC_PORT_LAYER_REQUEST (0x06) | ||
34 | #define MPI_SASSTATUS_UTC_PROTOCOL_NOT_SUPPORTED (0x07) | ||
35 | #define MPI_SASSTATUS_UTC_STP_RESOURCES_BUSY (0x08) | ||
36 | #define MPI_SASSTATUS_UTC_WRONG_DESTINATION (0x09) | ||
37 | #define MPI_SASSTATUS_SHORT_INFORMATION_UNIT (0x0A) | ||
38 | #define MPI_SASSTATUS_LONG_INFORMATION_UNIT (0x0B) | ||
39 | #define MPI_SASSTATUS_XFER_RDY_INCORRECT_WRITE_DATA (0x0C) | ||
40 | #define MPI_SASSTATUS_XFER_RDY_REQUEST_OFFSET_ERROR (0x0D) | ||
41 | #define MPI_SASSTATUS_XFER_RDY_NOT_EXPECTED (0x0E) | ||
42 | #define MPI_SASSTATUS_DATA_INCORRECT_DATA_LENGTH (0x0F) | ||
43 | #define MPI_SASSTATUS_DATA_TOO_MUCH_READ_DATA (0x10) | ||
44 | #define MPI_SASSTATUS_DATA_OFFSET_ERROR (0x11) | ||
45 | #define MPI_SASSTATUS_SDSF_NAK_RECEIVED (0x12) | ||
46 | #define MPI_SASSTATUS_SDSF_CONNECTION_FAILED (0x13) | ||
47 | #define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT (0x14) | ||
48 | |||
49 | |||
50 | /* | ||
51 | * Values for the SAS DeviceInfo field used in SAS Device Status Change Event | ||
52 | * data and SAS IO Unit Configuration pages. | ||
53 | */ | ||
54 | #define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE (0x00002000) | ||
55 | #define MPI_SAS_DEVICE_INFO_LSI_DEVICE (0x00001000) | ||
56 | #define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH (0x00000800) | ||
57 | #define MPI_SAS_DEVICE_INFO_SSP_TARGET (0x00000400) | ||
58 | #define MPI_SAS_DEVICE_INFO_STP_TARGET (0x00000200) | ||
59 | #define MPI_SAS_DEVICE_INFO_SMP_TARGET (0x00000100) | ||
60 | #define MPI_SAS_DEVICE_INFO_SATA_DEVICE (0x00000080) | ||
61 | #define MPI_SAS_DEVICE_INFO_SSP_INITIATOR (0x00000040) | ||
62 | #define MPI_SAS_DEVICE_INFO_STP_INITIATOR (0x00000020) | ||
63 | #define MPI_SAS_DEVICE_INFO_SMP_INITIATOR (0x00000010) | ||
64 | #define MPI_SAS_DEVICE_INFO_SATA_HOST (0x00000008) | ||
65 | |||
66 | #define MPI_SAS_DEVICE_INFO_MASK_DEVICE_TYPE (0x00000007) | ||
67 | #define MPI_SAS_DEVICE_INFO_NO_DEVICE (0x00000000) | ||
68 | #define MPI_SAS_DEVICE_INFO_END_DEVICE (0x00000001) | ||
69 | #define MPI_SAS_DEVICE_INFO_EDGE_EXPANDER (0x00000002) | ||
70 | #define MPI_SAS_DEVICE_INFO_FANOUT_EXPANDER (0x00000003) | ||
71 | |||
72 | |||
73 | |||
23 | /***************************************************************************** | 74 | /***************************************************************************** |
24 | * | 75 | * |
25 | * S e r i a l A t t a c h e d S C S I M e s s a g e s | 76 | * S e r i a l A t t a c h e d S C S I M e s s a g e s |
@@ -48,8 +99,10 @@ typedef struct _MSG_SMP_PASSTHROUGH_REQUEST | |||
48 | } MSG_SMP_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REQUEST, | 99 | } MSG_SMP_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REQUEST, |
49 | SmpPassthroughRequest_t, MPI_POINTER pSmpPassthroughRequest_t; | 100 | SmpPassthroughRequest_t, MPI_POINTER pSmpPassthroughRequest_t; |
50 | 101 | ||
102 | /* values for PassthroughFlags field */ | ||
51 | #define MPI_SMP_PT_REQ_PT_FLAGS_IMMEDIATE (0x80) | 103 | #define MPI_SMP_PT_REQ_PT_FLAGS_IMMEDIATE (0x80) |
52 | 104 | ||
105 | /* values for ConnectionRate field */ | ||
53 | #define MPI_SMP_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00) | 106 | #define MPI_SMP_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00) |
54 | #define MPI_SMP_PT_REQ_CONNECT_RATE_1_5 (0x08) | 107 | #define MPI_SMP_PT_REQ_CONNECT_RATE_1_5 (0x08) |
55 | #define MPI_SMP_PT_REQ_CONNECT_RATE_3_0 (0x09) | 108 | #define MPI_SMP_PT_REQ_CONNECT_RATE_3_0 (0x09) |
@@ -77,51 +130,69 @@ typedef struct _MSG_SMP_PASSTHROUGH_REPLY | |||
77 | 130 | ||
78 | #define MPI_SMP_PT_REPLY_PT_FLAGS_IMMEDIATE (0x80) | 131 | #define MPI_SMP_PT_REPLY_PT_FLAGS_IMMEDIATE (0x80) |
79 | 132 | ||
80 | /* values for the SASStatus field */ | ||
81 | #define MPI_SASSTATUS_SUCCESS (0x00) | ||
82 | #define MPI_SASSTATUS_UNKNOWN_ERROR (0x01) | ||
83 | #define MPI_SASSTATUS_INVALID_FRAME (0x02) | ||
84 | #define MPI_SASSTATUS_UTC_BAD_DEST (0x03) | ||
85 | #define MPI_SASSTATUS_UTC_BREAK_RECEIVED (0x04) | ||
86 | #define MPI_SASSTATUS_UTC_CONNECT_RATE_NOT_SUPPORTED (0x05) | ||
87 | #define MPI_SASSTATUS_UTC_PORT_LAYER_REQUEST (0x06) | ||
88 | #define MPI_SASSTATUS_UTC_PROTOCOL_NOT_SUPPORTED (0x07) | ||
89 | #define MPI_SASSTATUS_UTC_STP_RESOURCES_BUSY (0x08) | ||
90 | #define MPI_SASSTATUS_UTC_WRONG_DESTINATION (0x09) | ||
91 | #define MPI_SASSTATUS_SHORT_INFORMATION_UNIT (0x0A) | ||
92 | #define MPI_SASSTATUS_LONG_INFORMATION_UNIT (0x0B) | ||
93 | #define MPI_SASSTATUS_XFER_RDY_INCORRECT_WRITE_DATA (0x0C) | ||
94 | #define MPI_SASSTATUS_XFER_RDY_REQUEST_OFFSET_ERROR (0x0D) | ||
95 | #define MPI_SASSTATUS_XFER_RDY_NOT_EXPECTED (0x0E) | ||
96 | #define MPI_SASSTATUS_DATA_INCORRECT_DATA_LENGTH (0x0F) | ||
97 | #define MPI_SASSTATUS_DATA_TOO_MUCH_READ_DATA (0x10) | ||
98 | #define MPI_SASSTATUS_DATA_OFFSET_ERROR (0x11) | ||
99 | #define MPI_SASSTATUS_SDSF_NAK_RECEIVED (0x12) | ||
100 | #define MPI_SASSTATUS_SDSF_CONNECTION_FAILED (0x13) | ||
101 | #define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT (0x14) | ||
102 | 133 | ||
134 | /****************************************************************************/ | ||
135 | /* SATA Passthrough Request */ | ||
136 | /****************************************************************************/ | ||
137 | |||
138 | typedef struct _MSG_SATA_PASSTHROUGH_REQUEST | ||
139 | { | ||
140 | U8 TargetID; /* 00h */ | ||
141 | U8 Bus; /* 01h */ | ||
142 | U8 ChainOffset; /* 02h */ | ||
143 | U8 Function; /* 03h */ | ||
144 | U16 PassthroughFlags; /* 04h */ | ||
145 | U8 ConnectionRate; /* 06h */ | ||
146 | U8 MsgFlags; /* 07h */ | ||
147 | U32 MsgContext; /* 08h */ | ||
148 | U32 Reserved1; /* 0Ch */ | ||
149 | U32 Reserved2; /* 10h */ | ||
150 | U32 Reserved3; /* 14h */ | ||
151 | U32 DataLength; /* 18h */ | ||
152 | U8 CommandFIS[20]; /* 1Ch */ | ||
153 | SGE_SIMPLE_UNION SGL; /* 30h */ | ||
154 | } MSG_SATA_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REQUEST, | ||
155 | SataPassthroughRequest_t, MPI_POINTER pSataPassthroughRequest_t; | ||
156 | |||
157 | /* values for PassthroughFlags field */ | ||
158 | #define MPI_SATA_PT_REQ_PT_FLAGS_RESET_DEVICE (0x0200) | ||
159 | #define MPI_SATA_PT_REQ_PT_FLAGS_EXECUTE_DIAG (0x0100) | ||
160 | #define MPI_SATA_PT_REQ_PT_FLAGS_DMA_QUEUED (0x0080) | ||
161 | #define MPI_SATA_PT_REQ_PT_FLAGS_PACKET_COMMAND (0x0040) | ||
162 | #define MPI_SATA_PT_REQ_PT_FLAGS_DMA (0x0020) | ||
163 | #define MPI_SATA_PT_REQ_PT_FLAGS_PIO (0x0010) | ||
164 | #define MPI_SATA_PT_REQ_PT_FLAGS_UNSPECIFIED_VU (0x0004) | ||
165 | #define MPI_SATA_PT_REQ_PT_FLAGS_WRITE (0x0002) | ||
166 | #define MPI_SATA_PT_REQ_PT_FLAGS_READ (0x0001) | ||
167 | |||
168 | /* values for ConnectionRate field */ | ||
169 | #define MPI_SATA_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00) | ||
170 | #define MPI_SATA_PT_REQ_CONNECT_RATE_1_5 (0x08) | ||
171 | #define MPI_SATA_PT_REQ_CONNECT_RATE_3_0 (0x09) | ||
172 | |||
173 | |||
174 | /* SATA Passthrough Reply */ | ||
175 | typedef struct _MSG_SATA_PASSTHROUGH_REPLY | ||
176 | { | ||
177 | U8 TargetID; /* 00h */ | ||
178 | U8 Bus; /* 01h */ | ||
179 | U8 MsgLength; /* 02h */ | ||
180 | U8 Function; /* 03h */ | ||
181 | U16 PassthroughFlags; /* 04h */ | ||
182 | U8 Reserved1; /* 06h */ | ||
183 | U8 MsgFlags; /* 07h */ | ||
184 | U32 MsgContext; /* 08h */ | ||
185 | U8 Reserved2; /* 0Ch */ | ||
186 | U8 SASStatus; /* 0Dh */ | ||
187 | U16 IOCStatus; /* 0Eh */ | ||
188 | U32 IOCLogInfo; /* 10h */ | ||
189 | U8 StatusFIS[20]; /* 14h */ | ||
190 | U32 StatusControlRegisters; /* 28h */ | ||
191 | U32 TransferCount; /* 2Ch */ | ||
192 | } MSG_SATA_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REPLY, | ||
193 | SataPassthroughReply_t, MPI_POINTER pSataPassthroughReply_t; | ||
103 | 194 | ||
104 | /* | ||
105 | * Values for the SAS DeviceInfo field used in SAS Device Status Change Event | ||
106 | * data and SAS IO Unit Configuration pages. | ||
107 | */ | ||
108 | #define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE (0x00002000) | ||
109 | #define MPI_SAS_DEVICE_INFO_LSI_DEVICE (0x00001000) | ||
110 | #define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH (0x00000800) | ||
111 | #define MPI_SAS_DEVICE_INFO_SSP_TARGET (0x00000400) | ||
112 | #define MPI_SAS_DEVICE_INFO_STP_TARGET (0x00000200) | ||
113 | #define MPI_SAS_DEVICE_INFO_SMP_TARGET (0x00000100) | ||
114 | #define MPI_SAS_DEVICE_INFO_SATA_DEVICE (0x00000080) | ||
115 | #define MPI_SAS_DEVICE_INFO_SSP_INITIATOR (0x00000040) | ||
116 | #define MPI_SAS_DEVICE_INFO_STP_INITIATOR (0x00000020) | ||
117 | #define MPI_SAS_DEVICE_INFO_SMP_INITIATOR (0x00000010) | ||
118 | #define MPI_SAS_DEVICE_INFO_SATA_HOST (0x00000008) | ||
119 | 195 | ||
120 | #define MPI_SAS_DEVICE_INFO_MASK_DEVICE_TYPE (0x00000007) | ||
121 | #define MPI_SAS_DEVICE_INFO_NO_DEVICE (0x00000000) | ||
122 | #define MPI_SAS_DEVICE_INFO_END_DEVICE (0x00000001) | ||
123 | #define MPI_SAS_DEVICE_INFO_EDGE_EXPANDER (0x00000002) | ||
124 | #define MPI_SAS_DEVICE_INFO_FANOUT_EXPANDER (0x00000003) | ||
125 | 196 | ||
126 | 197 | ||
127 | /****************************************************************************/ | 198 | /****************************************************************************/ |
@@ -148,15 +219,13 @@ typedef struct _MSG_SAS_IOUNIT_CONTROL_REQUEST | |||
148 | } MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST, | 219 | } MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST, |
149 | SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t; | 220 | SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t; |
150 | 221 | ||
151 | /* values for the ... field */ | 222 | /* values for the Operation field */ |
152 | #define MPI_SAS_OP_CLEAR_NOT_PRESENT (0x01) | 223 | #define MPI_SAS_OP_CLEAR_NOT_PRESENT (0x01) |
153 | #define MPI_SAS_OP_CLEAR_ALL (0x02) | 224 | #define MPI_SAS_OP_CLEAR_ALL_PERSISTENT (0x02) |
154 | #define MPI_SAS_OP_MAP (0x03) | ||
155 | #define MPI_SAS_OP_MOVE (0x04) | ||
156 | #define MPI_SAS_OP_CLEAR (0x05) | ||
157 | #define MPI_SAS_OP_PHY_LINK_RESET (0x06) | 225 | #define MPI_SAS_OP_PHY_LINK_RESET (0x06) |
158 | #define MPI_SAS_OP_PHY_HARD_RESET (0x07) | 226 | #define MPI_SAS_OP_PHY_HARD_RESET (0x07) |
159 | #define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG (0x08) | 227 | #define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG (0x08) |
228 | #define MPI_SAS_OP_MAP_CURRENT (0x09) | ||
160 | 229 | ||
161 | 230 | ||
162 | /* SAS IO Unit Control Reply */ | 231 | /* SAS IO Unit Control Reply */ |
diff --git a/drivers/message/fusion/lsi/mpi_targ.h b/drivers/message/fusion/lsi/mpi_targ.h index 804dc85426c1..623901fd82be 100644 --- a/drivers/message/fusion/lsi/mpi_targ.h +++ b/drivers/message/fusion/lsi/mpi_targ.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2004 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_targ.h | 5 | * Name: mpi_targ.h |
6 | * Title: MPI Target mode messages and structures | 6 | * Title: MPI Target mode messages and structures |
7 | * Creation Date: June 22, 2000 | 7 | * Creation Date: June 22, 2000 |
8 | * | 8 | * |
9 | * mpi_targ.h Version: 01.05.xx | 9 | * mpi_targ.h Version: 01.05.04 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -43,6 +43,16 @@ | |||
43 | * Added PRIORITY_REASON_TARGET_BUSY. | 43 | * Added PRIORITY_REASON_TARGET_BUSY. |
44 | * 11-15-02 01.02.08 Added AliasID field to MPI_TARGET_SCSI_SPI_CMD_BUFFER. | 44 | * 11-15-02 01.02.08 Added AliasID field to MPI_TARGET_SCSI_SPI_CMD_BUFFER. |
45 | * 04-01-03 01.02.09 Added OptionalOxid field to MPI_TARGET_FCP_CMD_BUFFER. | 45 | * 04-01-03 01.02.09 Added OptionalOxid field to MPI_TARGET_FCP_CMD_BUFFER. |
46 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
47 | * 08-19-04 01.05.01 Added new request message structures for | ||
48 | * MSG_TARGET_CMD_BUF_POST_BASE_REQUEST, | ||
49 | * MSG_TARGET_CMD_BUF_POST_LIST_REQUEST, and | ||
50 | * MSG_TARGET_ASSIST_EXT_REQUEST. | ||
51 | * Added new structures for SAS SSP Command buffer, SSP | ||
52 | * Task buffer, and SSP Status IU. | ||
53 | * 10-05-04 01.05.02 MSG_TARGET_CMD_BUFFER_POST_BASE_LIST_REPLY added. | ||
54 | * 02-22-05 01.05.03 Changed a comment. | ||
55 | * 03-11-05 01.05.04 Removed TargetAssistExtended Request. | ||
46 | * -------------------------------------------------------------------------- | 56 | * -------------------------------------------------------------------------- |
47 | */ | 57 | */ |
48 | 58 | ||
@@ -133,6 +143,25 @@ typedef struct _MSG_PRIORITY_CMD_RECEIVED_REPLY | |||
133 | } MSG_PRIORITY_CMD_RECEIVED_REPLY, MPI_POINTER PTR_MSG_PRIORITY_CMD_RECEIVED_REPLY, | 143 | } MSG_PRIORITY_CMD_RECEIVED_REPLY, MPI_POINTER PTR_MSG_PRIORITY_CMD_RECEIVED_REPLY, |
134 | PriorityCommandReceivedReply_t, MPI_POINTER pPriorityCommandReceivedReply_t; | 144 | PriorityCommandReceivedReply_t, MPI_POINTER pPriorityCommandReceivedReply_t; |
135 | 145 | ||
146 | |||
147 | typedef struct _MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY | ||
148 | { | ||
149 | U16 Reserved; /* 00h */ | ||
150 | U8 MsgLength; /* 02h */ | ||
151 | U8 Function; /* 03h */ | ||
152 | U16 Reserved1; /* 04h */ | ||
153 | U8 Reserved2; /* 06h */ | ||
154 | U8 MsgFlags; /* 07h */ | ||
155 | U32 MsgContext; /* 08h */ | ||
156 | U8 PriorityReason; /* 0Ch */ | ||
157 | U8 Reserved3; /* 0Dh */ | ||
158 | U16 IOCStatus; /* 0Eh */ | ||
159 | U32 IOCLogInfo; /* 10h */ | ||
160 | U32 ReplyWord; /* 14h */ | ||
161 | } MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY, | ||
162 | MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY, | ||
163 | TargetCmdBufferPostErrorReply_t, MPI_POINTER pTargetCmdBufferPostErrorReply_t; | ||
164 | |||
136 | #define PRIORITY_REASON_NO_DISCONNECT (0x00) | 165 | #define PRIORITY_REASON_NO_DISCONNECT (0x00) |
137 | #define PRIORITY_REASON_SCSI_TASK_MANAGEMENT (0x01) | 166 | #define PRIORITY_REASON_SCSI_TASK_MANAGEMENT (0x01) |
138 | #define PRIORITY_REASON_CMD_PARITY_ERR (0x02) | 167 | #define PRIORITY_REASON_CMD_PARITY_ERR (0x02) |
@@ -146,7 +175,34 @@ typedef struct _MSG_PRIORITY_CMD_RECEIVED_REPLY | |||
146 | #define PRIORITY_REASON_UNKNOWN (0xFF) | 175 | #define PRIORITY_REASON_UNKNOWN (0xFF) |
147 | 176 | ||
148 | 177 | ||
149 | typedef struct _MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY | 178 | /****************************************************************************/ |
179 | /* Target Command Buffer Post Base Request */ | ||
180 | /****************************************************************************/ | ||
181 | |||
182 | typedef struct _MSG_TARGET_CMD_BUF_POST_BASE_REQUEST | ||
183 | { | ||
184 | U8 BufferPostFlags; /* 00h */ | ||
185 | U8 PortNumber; /* 01h */ | ||
186 | U8 ChainOffset; /* 02h */ | ||
187 | U8 Function; /* 03h */ | ||
188 | U16 TotalCmdBuffers; /* 04h */ | ||
189 | U8 Reserved; /* 06h */ | ||
190 | U8 MsgFlags; /* 07h */ | ||
191 | U32 MsgContext; /* 08h */ | ||
192 | U32 Reserved1; /* 0Ch */ | ||
193 | U16 CmdBufferLength; /* 10h */ | ||
194 | U16 NextCmdBufferOffset; /* 12h */ | ||
195 | U32 BaseAddressLow; /* 14h */ | ||
196 | U32 BaseAddressHigh; /* 18h */ | ||
197 | } MSG_TARGET_CMD_BUF_POST_BASE_REQUEST, | ||
198 | MPI_POINTER PTR__MSG_TARGET_CMD_BUF_POST_BASE_REQUEST, | ||
199 | TargetCmdBufferPostBaseRequest_t, | ||
200 | MPI_POINTER pTargetCmdBufferPostBaseRequest_t; | ||
201 | |||
202 | #define CMD_BUFFER_POST_BASE_FLAGS_AUTO_POST_ALL (0x01) | ||
203 | |||
204 | |||
205 | typedef struct _MSG_TARGET_CMD_BUFFER_POST_BASE_LIST_REPLY | ||
150 | { | 206 | { |
151 | U16 Reserved; /* 00h */ | 207 | U16 Reserved; /* 00h */ |
152 | U8 MsgLength; /* 02h */ | 208 | U8 MsgLength; /* 02h */ |
@@ -155,16 +211,41 @@ typedef struct _MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY | |||
155 | U8 Reserved2; /* 06h */ | 211 | U8 Reserved2; /* 06h */ |
156 | U8 MsgFlags; /* 07h */ | 212 | U8 MsgFlags; /* 07h */ |
157 | U32 MsgContext; /* 08h */ | 213 | U32 MsgContext; /* 08h */ |
158 | U8 PriorityReason; /* 0Ch */ | 214 | U16 Reserved3; /* 0Ch */ |
159 | U8 Reserved3; /* 0Dh */ | ||
160 | U16 IOCStatus; /* 0Eh */ | 215 | U16 IOCStatus; /* 0Eh */ |
161 | U32 IOCLogInfo; /* 10h */ | 216 | U32 IOCLogInfo; /* 10h */ |
162 | U32 ReplyWord; /* 14h */ | 217 | } MSG_TARGET_CMD_BUFFER_POST_BASE_LIST_REPLY, |
163 | } MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY, | 218 | MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_BASE_LIST_REPLY, |
164 | MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY, | 219 | TargetCmdBufferPostBaseListReply_t, |
165 | TargetCmdBufferPostErrorReply_t, MPI_POINTER pTargetCmdBufferPostErrorReply_t; | 220 | MPI_POINTER pTargetCmdBufferPostBaseListReply_t; |
221 | |||
222 | |||
223 | /****************************************************************************/ | ||
224 | /* Target Command Buffer Post List Request */ | ||
225 | /****************************************************************************/ | ||
226 | |||
227 | typedef struct _MSG_TARGET_CMD_BUF_POST_LIST_REQUEST | ||
228 | { | ||
229 | U8 Reserved; /* 00h */ | ||
230 | U8 PortNumber; /* 01h */ | ||
231 | U8 ChainOffset; /* 02h */ | ||
232 | U8 Function; /* 03h */ | ||
233 | U16 CmdBufferCount; /* 04h */ | ||
234 | U8 Reserved1; /* 06h */ | ||
235 | U8 MsgFlags; /* 07h */ | ||
236 | U32 MsgContext; /* 08h */ | ||
237 | U32 Reserved2; /* 0Ch */ | ||
238 | U16 IoIndex[2]; /* 10h */ | ||
239 | } MSG_TARGET_CMD_BUF_POST_LIST_REQUEST, | ||
240 | MPI_POINTER PTR_MSG_TARGET_CMD_BUF_POST_LIST_REQUEST, | ||
241 | TargetCmdBufferPostListRequest_t, | ||
242 | MPI_POINTER pTargetCmdBufferPostListRequest_t; | ||
166 | 243 | ||
167 | 244 | ||
245 | /****************************************************************************/ | ||
246 | /* Command Buffer Formats (with 16 byte CDB) */ | ||
247 | /****************************************************************************/ | ||
248 | |||
168 | typedef struct _MPI_TARGET_FCP_CMD_BUFFER | 249 | typedef struct _MPI_TARGET_FCP_CMD_BUFFER |
169 | { | 250 | { |
170 | U8 FcpLun[8]; /* 00h */ | 251 | U8 FcpLun[8]; /* 00h */ |
@@ -201,6 +282,46 @@ typedef struct _MPI_TARGET_SCSI_SPI_CMD_BUFFER | |||
201 | MpiTargetScsiSpiCmdBuffer, MPI_POINTER pMpiTargetScsiSpiCmdBuffer; | 282 | MpiTargetScsiSpiCmdBuffer, MPI_POINTER pMpiTargetScsiSpiCmdBuffer; |
202 | 283 | ||
203 | 284 | ||
285 | typedef struct _MPI_TARGET_SSP_CMD_BUFFER | ||
286 | { | ||
287 | U8 FrameType; /* 00h */ | ||
288 | U8 Reserved1; /* 01h */ | ||
289 | U16 Reserved2; /* 02h */ | ||
290 | U16 InitiatorTag; /* 04h */ | ||
291 | U16 DevHandle; /* 06h */ | ||
292 | /* COMMAND information unit starts here */ | ||
293 | U8 LogicalUnitNumber[8]; /* 08h */ | ||
294 | U8 Reserved3; /* 10h */ | ||
295 | U8 TaskAttribute; /* lower 3 bits */ /* 11h */ | ||
296 | U8 Reserved4; /* 12h */ | ||
297 | U8 AdditionalCDBLength; /* upper 5 bits */ /* 13h */ | ||
298 | U8 CDB[16]; /* 14h */ | ||
299 | /* Additional CDB bytes extend past the CDB field */ | ||
300 | } MPI_TARGET_SSP_CMD_BUFFER, MPI_POINTER PTR_MPI_TARGET_SSP_CMD_BUFFER, | ||
301 | MpiTargetSspCmdBuffer, MPI_POINTER pMpiTargetSspCmdBuffer; | ||
302 | |||
303 | typedef struct _MPI_TARGET_SSP_TASK_BUFFER | ||
304 | { | ||
305 | U8 FrameType; /* 00h */ | ||
306 | U8 Reserved1; /* 01h */ | ||
307 | U16 Reserved2; /* 02h */ | ||
308 | U16 InitiatorTag; /* 04h */ | ||
309 | U16 DevHandle; /* 06h */ | ||
310 | /* TASK information unit starts here */ | ||
311 | U8 LogicalUnitNumber[8]; /* 08h */ | ||
312 | U8 Reserved3; /* 10h */ | ||
313 | U8 Reserved4; /* 11h */ | ||
314 | U8 TaskManagementFunction; /* 12h */ | ||
315 | U8 Reserved5; /* 13h */ | ||
316 | U16 ManagedTaskTag; /* 14h */ | ||
317 | U16 Reserved6; /* 16h */ | ||
318 | U32 Reserved7; /* 18h */ | ||
319 | U32 Reserved8; /* 1Ch */ | ||
320 | U32 Reserved9; /* 20h */ | ||
321 | } MPI_TARGET_SSP_TASK_BUFFER, MPI_POINTER PTR_MPI_TARGET_SSP_TASK_BUFFER, | ||
322 | MpiTargetSspTaskBuffer, MPI_POINTER pMpiTargetSspTaskBuffer; | ||
323 | |||
324 | |||
204 | /****************************************************************************/ | 325 | /****************************************************************************/ |
205 | /* Target Assist Request */ | 326 | /* Target Assist Request */ |
206 | /****************************************************************************/ | 327 | /****************************************************************************/ |
@@ -308,6 +429,27 @@ typedef struct _MPI_TARGET_SCSI_SPI_STATUS_IU | |||
308 | } MPI_TARGET_SCSI_SPI_STATUS_IU, MPI_POINTER PTR_MPI_TARGET_SCSI_SPI_STATUS_IU, | 429 | } MPI_TARGET_SCSI_SPI_STATUS_IU, MPI_POINTER PTR_MPI_TARGET_SCSI_SPI_STATUS_IU, |
309 | TargetScsiSpiStatusIU_t, MPI_POINTER pTargetScsiSpiStatusIU_t; | 430 | TargetScsiSpiStatusIU_t, MPI_POINTER pTargetScsiSpiStatusIU_t; |
310 | 431 | ||
432 | /* | ||
433 | * NOTE: The SSP status IU is big-endian. When used on a little-endian system, | ||
434 | * this structure properly orders the bytes. | ||
435 | */ | ||
436 | typedef struct _MPI_TARGET_SSP_RSP_IU | ||
437 | { | ||
438 | U32 Reserved0[6]; /* reserved for SSP header */ /* 00h */ | ||
439 | /* start of RESPONSE information unit */ | ||
440 | U32 Reserved1; /* 18h */ | ||
441 | U32 Reserved2; /* 1Ch */ | ||
442 | U16 Reserved3; /* 20h */ | ||
443 | U8 DataPres; /* lower 2 bits */ /* 22h */ | ||
444 | U8 Status; /* 23h */ | ||
445 | U32 Reserved4; /* 24h */ | ||
446 | U32 SenseDataLength; /* 28h */ | ||
447 | U32 ResponseDataLength; /* 2Ch */ | ||
448 | U8 ResponseSenseData[4]; /* 30h */ | ||
449 | } MPI_TARGET_SSP_RSP_IU, MPI_POINTER PTR_MPI_TARGET_SSP_RSP_IU, | ||
450 | MpiTargetSspRspIu_t, MPI_POINTER pMpiTargetSspRspIu_t; | ||
451 | |||
452 | |||
311 | /****************************************************************************/ | 453 | /****************************************************************************/ |
312 | /* Target Mode Abort Request */ | 454 | /* Target Mode Abort Request */ |
313 | /****************************************************************************/ | 455 | /****************************************************************************/ |
diff --git a/drivers/message/fusion/lsi/mpi_tool.h b/drivers/message/fusion/lsi/mpi_tool.h index 536d197c4142..aa9053da1f58 100644 --- a/drivers/message/fusion/lsi/mpi_tool.h +++ b/drivers/message/fusion/lsi/mpi_tool.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2001-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2001-2005 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_tool.h | 5 | * Name: mpi_tool.h |
6 | * Title: MPI Toolbox structures and definitions | 6 | * Title: MPI Toolbox structures and definitions |
7 | * Creation Date: July 30, 2001 | 7 | * Creation Date: July 30, 2001 |
8 | * | 8 | * |
9 | * mpi_tool.h Version: 01.05.xx | 9 | * mpi_tool.h Version: 01.05.03 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -15,6 +15,16 @@ | |||
15 | * -------- -------- ------------------------------------------------------ | 15 | * -------- -------- ------------------------------------------------------ |
16 | * 08-08-01 01.02.01 Original release. | 16 | * 08-08-01 01.02.01 Original release. |
17 | * 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines. | 17 | * 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines. |
18 | * 01-16-04 01.02.03 Added defines and structures for new tools | ||
19 | *. MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL and | ||
20 | * MPI_TOOLBOX_FC_MANAGEMENT_TOOL. | ||
21 | * 04-29-04 01.02.04 Added message structures for Diagnostic Buffer Post and | ||
22 | * Diagnostic Release requests and replies. | ||
23 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
24 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
25 | * 10-06-04 01.05.02 Added define for MPI_DIAG_BUF_TYPE_COUNT. | ||
26 | * 02-09-05 01.05.03 Added frame size option to FC management tool. | ||
27 | * Added Beacon tool to the Toolbox. | ||
18 | * -------------------------------------------------------------------------- | 28 | * -------------------------------------------------------------------------- |
19 | */ | 29 | */ |
20 | 30 | ||
@@ -26,6 +36,7 @@ | |||
26 | #define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02) | 36 | #define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02) |
27 | #define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03) | 37 | #define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03) |
28 | #define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04) | 38 | #define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04) |
39 | #define MPI_TOOLBOX_BEACON_TOOL (0x05) | ||
29 | 40 | ||
30 | 41 | ||
31 | /****************************************************************************/ | 42 | /****************************************************************************/ |
@@ -185,11 +196,21 @@ typedef struct _MPI_TB_FC_MANAGE_PID_AI | |||
185 | } MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI, | 196 | } MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI, |
186 | MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t; | 197 | MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t; |
187 | 198 | ||
199 | /* ActionInfo for set max frame size */ | ||
200 | typedef struct _MPI_TB_FC_MANAGE_FRAME_SIZE_AI | ||
201 | { | ||
202 | U16 FrameSize; /* 00h */ | ||
203 | U8 PortNum; /* 02h */ | ||
204 | U8 Reserved1; /* 03h */ | ||
205 | } MPI_TB_FC_MANAGE_FRAME_SIZE_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_FRAME_SIZE_AI, | ||
206 | MpiTbFcManageFrameSizeAi_t, MPI_POINTER pMpiTbFcManageFrameSizeAi_t; | ||
207 | |||
188 | /* union of ActionInfo */ | 208 | /* union of ActionInfo */ |
189 | typedef union _MPI_TB_FC_MANAGE_AI_UNION | 209 | typedef union _MPI_TB_FC_MANAGE_AI_UNION |
190 | { | 210 | { |
191 | MPI_TB_FC_MANAGE_BUS_TID_AI BusTid; | 211 | MPI_TB_FC_MANAGE_BUS_TID_AI BusTid; |
192 | MPI_TB_FC_MANAGE_PID_AI Port; | 212 | MPI_TB_FC_MANAGE_PID_AI Port; |
213 | MPI_TB_FC_MANAGE_FRAME_SIZE_AI FrameSize; | ||
193 | } MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION, | 214 | } MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION, |
194 | MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t; | 215 | MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t; |
195 | 216 | ||
@@ -214,6 +235,32 @@ typedef struct _MSG_TOOLBOX_FC_MANAGE_REQUEST | |||
214 | #define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00) | 235 | #define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00) |
215 | #define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01) | 236 | #define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01) |
216 | #define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02) | 237 | #define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02) |
238 | #define MPI_TB_FC_MANAGE_ACTION_SET_MAX_FRAME_SIZE (0x03) | ||
239 | |||
240 | |||
241 | /****************************************************************************/ | ||
242 | /* Toolbox Beacon Tool request */ | ||
243 | /****************************************************************************/ | ||
244 | |||
245 | typedef struct _MSG_TOOLBOX_BEACON_REQUEST | ||
246 | { | ||
247 | U8 Tool; /* 00h */ | ||
248 | U8 Reserved; /* 01h */ | ||
249 | U8 ChainOffset; /* 02h */ | ||
250 | U8 Function; /* 03h */ | ||
251 | U16 Reserved1; /* 04h */ | ||
252 | U8 Reserved2; /* 06h */ | ||
253 | U8 MsgFlags; /* 07h */ | ||
254 | U32 MsgContext; /* 08h */ | ||
255 | U8 ConnectNum; /* 0Ch */ | ||
256 | U8 PortNum; /* 0Dh */ | ||
257 | U8 Reserved3; /* 0Eh */ | ||
258 | U8 Flags; /* 0Fh */ | ||
259 | } MSG_TOOLBOX_BEACON_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_BEACON_REQUEST, | ||
260 | ToolboxBeaconRequest_t, MPI_POINTER pToolboxBeaconRequest_t; | ||
261 | |||
262 | #define MPI_TOOLBOX_FLAGS_BEACON_MODE_OFF (0x00) | ||
263 | #define MPI_TOOLBOX_FLAGS_BEACON_MODE_ON (0x01) | ||
217 | 264 | ||
218 | 265 | ||
219 | /****************************************************************************/ | 266 | /****************************************************************************/ |
@@ -233,14 +280,16 @@ typedef struct _MSG_DIAG_BUFFER_POST_REQUEST | |||
233 | U32 ExtendedType; /* 0Ch */ | 280 | U32 ExtendedType; /* 0Ch */ |
234 | U32 BufferLength; /* 10h */ | 281 | U32 BufferLength; /* 10h */ |
235 | U32 ProductSpecific[4]; /* 14h */ | 282 | U32 ProductSpecific[4]; /* 14h */ |
236 | U32 Reserved3; /* 18h */ | 283 | U32 Reserved3; /* 24h */ |
237 | SGE_SIMPLE_UNION SGL; /* 28h */ | 284 | U64 BufferAddress; /* 28h */ |
238 | } MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST, | 285 | } MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST, |
239 | DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t; | 286 | DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t; |
240 | 287 | ||
241 | #define MPI_DIAG_BUF_TYPE_TRACE (0x00) | 288 | #define MPI_DIAG_BUF_TYPE_TRACE (0x00) |
242 | #define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01) | 289 | #define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01) |
243 | #define MPI_DIAG_BUF_TYPE_EXTENDED (0x02) | 290 | #define MPI_DIAG_BUF_TYPE_EXTENDED (0x02) |
291 | /* count of the number of buffer types */ | ||
292 | #define MPI_DIAG_BUF_TYPE_COUNT (0x03) | ||
244 | 293 | ||
245 | #define MPI_DIAG_EXTENDED_QTAG (0x00000001) | 294 | #define MPI_DIAG_EXTENDED_QTAG (0x00000001) |
246 | 295 | ||
diff --git a/drivers/message/fusion/lsi/mpi_type.h b/drivers/message/fusion/lsi/mpi_type.h index 239328a7689c..32cc9b1151b8 100644 --- a/drivers/message/fusion/lsi/mpi_type.h +++ b/drivers/message/fusion/lsi/mpi_type.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2000-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2000-2004 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_type.h | 5 | * Name: mpi_type.h |
6 | * Title: MPI Basic type definitions | 6 | * Title: MPI Basic type definitions |
7 | * Creation Date: June 6, 2000 | 7 | * Creation Date: June 6, 2000 |
8 | * | 8 | * |
9 | * mpi_type.h Version: 01.05.xx | 9 | * mpi_type.h Version: 01.05.01 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -18,6 +18,8 @@ | |||
18 | * 11-02-00 01.01.01 Original release for post 1.0 work | 18 | * 11-02-00 01.01.01 Original release for post 1.0 work |
19 | * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER. | 19 | * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER. |
20 | * 08-08-01 01.02.01 Original release for v1.2 work. | 20 | * 08-08-01 01.02.01 Original release for v1.2 work. |
21 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
22 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
21 | * -------------------------------------------------------------------------- | 23 | * -------------------------------------------------------------------------- |
22 | */ | 24 | */ |
23 | 25 | ||
@@ -50,11 +52,6 @@ typedef unsigned short U16; | |||
50 | typedef int32_t S32; | 52 | typedef int32_t S32; |
51 | typedef u_int32_t U32; | 53 | typedef u_int32_t U32; |
52 | 54 | ||
53 | /* | ||
54 | * The only way crap below could work on big-endian boxen would be if it | ||
55 | * wasn't used at all. | ||
56 | */ | ||
57 | |||
58 | typedef struct _S64 | 55 | typedef struct _S64 |
59 | { | 56 | { |
60 | U32 Low; | 57 | U32 Low; |