mpi.h (147883) | mpi.h (154603) |
---|---|
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi.h 147883 2005-07-10 15:05:39Z scottl $ */ | 1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi.h 154603 2006-01-21 00:29:52Z mjacob $ */ |
2/*- 3 * Copyright (c) 2000-2005, LSI Logic Corporation and its contributors. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: 9 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT 30 * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * | 2/*- 3 * Copyright (c) 2000-2005, LSI Logic Corporation and its contributors. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: 9 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT 30 * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 * |
32 * 33 * Name: MPI.H | 32 * Name: mpi.h |
34 * Title: MPI Message independent structures and definitions 35 * Creation Date: July 27, 2000 36 * | 33 * Title: MPI Message independent structures and definitions 34 * Creation Date: July 27, 2000 35 * |
37 * MPI.H Version: 01.02.11 | 36 * mpi.h Version: 01.05.09 |
38 * 39 * Version History 40 * --------------- 41 * 42 * Date Version Description 43 * -------- -------- ------------------------------------------------------ 44 * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000. 45 * 05-24-00 00.10.02 Added MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH definition. --- 30 unchanged lines hidden (view full) --- 76 * 05-31-02 01.02.05 Bumped MPI_HEADER_VERSION_UNIT. 77 * 07-12-02 01.02.06 Added define for MPI_FUNCTION_MAILBOX. 78 * 09-16-02 01.02.07 Bumped value for MPI_HEADER_VERSION_UNIT. 79 * 11-15-02 01.02.08 Added define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX and 80 * obsoleted define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX. 81 * 04-01-03 01.02.09 New IOCStatus code: MPI_IOCSTATUS_FC_EXCHANGE_CANCELED 82 * 06-26-03 01.02.10 Bumped MPI_HEADER_VERSION_UNIT value. 83 * 01-16-04 01.02.11 Added define for MPI_IOCLOGINFO_TYPE_SHIFT. | 37 * 38 * Version History 39 * --------------- 40 * 41 * Date Version Description 42 * -------- -------- ------------------------------------------------------ 43 * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000. 44 * 05-24-00 00.10.02 Added MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH definition. --- 30 unchanged lines hidden (view full) --- 75 * 05-31-02 01.02.05 Bumped MPI_HEADER_VERSION_UNIT. 76 * 07-12-02 01.02.06 Added define for MPI_FUNCTION_MAILBOX. 77 * 09-16-02 01.02.07 Bumped value for MPI_HEADER_VERSION_UNIT. 78 * 11-15-02 01.02.08 Added define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX and 79 * obsoleted define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX. 80 * 04-01-03 01.02.09 New IOCStatus code: MPI_IOCSTATUS_FC_EXCHANGE_CANCELED 81 * 06-26-03 01.02.10 Bumped MPI_HEADER_VERSION_UNIT value. 82 * 01-16-04 01.02.11 Added define for MPI_IOCLOGINFO_TYPE_SHIFT. |
83 * 04-29-04 01.02.12 Added function codes for MPI_FUNCTION_DIAG_BUFFER_POST 84 * and MPI_FUNCTION_DIAG_RELEASE. 85 * Added MPI_IOCSTATUS_DIAGNOSTIC_RELEASED define. 86 * Bumped MPI_HEADER_VERSION_UNIT value. 87 * 05-11-04 01.03.01 Bumped MPI_VERSION_MINOR for MPI v1.3. 88 * Added codes for Inband. 89 * 08-19-04 01.05.01 Added defines for Host Buffer Access Control doorbell. 90 * Added define for offset of High Priority Request Queue. 91 * Added new function codes and new IOCStatus codes. 92 * Added a IOCLogInfo type of SAS. 93 * 12-07-04 01.05.02 Bumped MPI_HEADER_VERSION_UNIT. 94 * 12-09-04 01.05.03 Bumped MPI_HEADER_VERSION_UNIT. 95 * 01-15-05 01.05.04 Bumped MPI_HEADER_VERSION_UNIT. 96 * 02-09-05 01.05.05 Bumped MPI_HEADER_VERSION_UNIT. 97 * 02-22-05 01.05.06 Bumped MPI_HEADER_VERSION_UNIT. 98 * 03-11-05 01.05.07 Removed function codes for SCSI IO 32 and 99 * TargetAssistExtended requests. 100 * Removed EEDP IOCStatus codes. 101 * 06-24-05 01.05.08 Added function codes for SCSI IO 32 and 102 * TargetAssistExtended requests. 103 * Added EEDP IOCStatus codes. 104 * 08-03-05 01.05.09 Bumped MPI_HEADER_VERSION_UNIT. |
|
84 * -------------------------------------------------------------------------- 85 */ 86 87#ifndef MPI_H 88#define MPI_H 89 90 91/***************************************************************************** 92* 93* M P I V e r s i o n D e f i n i t i o n s 94* 95*****************************************************************************/ 96 97#define MPI_VERSION_MAJOR (0x01) | 105 * -------------------------------------------------------------------------- 106 */ 107 108#ifndef MPI_H 109#define MPI_H 110 111 112/***************************************************************************** 113* 114* M P I V e r s i o n D e f i n i t i o n s 115* 116*****************************************************************************/ 117 118#define MPI_VERSION_MAJOR (0x01) |
98#define MPI_VERSION_MINOR (0x02) | 119#define MPI_VERSION_MINOR (0x05) |
99#define MPI_VERSION_MAJOR_MASK (0xFF00) 100#define MPI_VERSION_MAJOR_SHIFT (8) 101#define MPI_VERSION_MINOR_MASK (0x00FF) 102#define MPI_VERSION_MINOR_SHIFT (0) 103#define MPI_VERSION ((MPI_VERSION_MAJOR << MPI_VERSION_MAJOR_SHIFT) | \ 104 MPI_VERSION_MINOR) 105 106#define MPI_VERSION_01_00 (0x0100) 107#define MPI_VERSION_01_01 (0x0101) 108#define MPI_VERSION_01_02 (0x0102) | 120#define MPI_VERSION_MAJOR_MASK (0xFF00) 121#define MPI_VERSION_MAJOR_SHIFT (8) 122#define MPI_VERSION_MINOR_MASK (0x00FF) 123#define MPI_VERSION_MINOR_SHIFT (0) 124#define MPI_VERSION ((MPI_VERSION_MAJOR << MPI_VERSION_MAJOR_SHIFT) | \ 125 MPI_VERSION_MINOR) 126 127#define MPI_VERSION_01_00 (0x0100) 128#define MPI_VERSION_01_01 (0x0101) 129#define MPI_VERSION_01_02 (0x0102) |
130#define MPI_VERSION_01_03 (0x0103) 131#define MPI_VERSION_01_05 (0x0105) |
|
109/* Note: The major versions of 0xe0 through 0xff are reserved */ 110 111/* versioning for this MPI header set */ | 132/* Note: The major versions of 0xe0 through 0xff are reserved */ 133 134/* versioning for this MPI header set */ |
112#define MPI_HEADER_VERSION_UNIT (0x0D) | 135#define MPI_HEADER_VERSION_UNIT (0x0B) |
113#define MPI_HEADER_VERSION_DEV (0x00) 114#define MPI_HEADER_VERSION_UNIT_MASK (0xFF00) 115#define MPI_HEADER_VERSION_UNIT_SHIFT (8) 116#define MPI_HEADER_VERSION_DEV_MASK (0x00FF) 117#define MPI_HEADER_VERSION_DEV_SHIFT (0) 118#define MPI_HEADER_VERSION ((MPI_HEADER_VERSION_UNIT << 8) | MPI_HEADER_VERSION_DEV) 119 120/***************************************************************************** --- 23 unchanged lines hidden (view full) --- 144 145 146/***************************************************************************** 147* 148* P C I S y s t e m I n t e r f a c e R e g i s t e r s 149* 150*****************************************************************************/ 151 | 136#define MPI_HEADER_VERSION_DEV (0x00) 137#define MPI_HEADER_VERSION_UNIT_MASK (0xFF00) 138#define MPI_HEADER_VERSION_UNIT_SHIFT (8) 139#define MPI_HEADER_VERSION_DEV_MASK (0x00FF) 140#define MPI_HEADER_VERSION_DEV_SHIFT (0) 141#define MPI_HEADER_VERSION ((MPI_HEADER_VERSION_UNIT << 8) | MPI_HEADER_VERSION_DEV) 142 143/***************************************************************************** --- 23 unchanged lines hidden (view full) --- 167 168 169/***************************************************************************** 170* 171* P C I S y s t e m I n t e r f a c e R e g i s t e r s 172* 173*****************************************************************************/ 174 |
152/* S y s t e m D o o r b e l l */ | 175/* 176 * Defines for working with the System Doorbell register. 177 * Values for doorbell function codes are included in the section that defines 178 * all the function codes (further on in this file). 179 */ |
153#define MPI_DOORBELL_OFFSET (0x00000000) 154#define MPI_DOORBELL_ACTIVE (0x08000000) /* DoorbellUsed */ 155#define MPI_DOORBELL_USED (MPI_DOORBELL_ACTIVE) 156#define MPI_DOORBELL_ACTIVE_SHIFT (27) 157#define MPI_DOORBELL_WHO_INIT_MASK (0x07000000) 158#define MPI_DOORBELL_WHO_INIT_SHIFT (24) 159#define MPI_DOORBELL_FUNCTION_MASK (0xFF000000) 160#define MPI_DOORBELL_FUNCTION_SHIFT (24) 161#define MPI_DOORBELL_ADD_DWORDS_MASK (0x00FF0000) 162#define MPI_DOORBELL_ADD_DWORDS_SHIFT (16) 163#define MPI_DOORBELL_DATA_MASK (0x0000FFFF) | 180#define MPI_DOORBELL_OFFSET (0x00000000) 181#define MPI_DOORBELL_ACTIVE (0x08000000) /* DoorbellUsed */ 182#define MPI_DOORBELL_USED (MPI_DOORBELL_ACTIVE) 183#define MPI_DOORBELL_ACTIVE_SHIFT (27) 184#define MPI_DOORBELL_WHO_INIT_MASK (0x07000000) 185#define MPI_DOORBELL_WHO_INIT_SHIFT (24) 186#define MPI_DOORBELL_FUNCTION_MASK (0xFF000000) 187#define MPI_DOORBELL_FUNCTION_SHIFT (24) 188#define MPI_DOORBELL_ADD_DWORDS_MASK (0x00FF0000) 189#define MPI_DOORBELL_ADD_DWORDS_SHIFT (16) 190#define MPI_DOORBELL_DATA_MASK (0x0000FFFF) |
191#define MPI_DOORBELL_FUNCTION_SPECIFIC_MASK (0x0000FFFF) |
|
164 | 192 |
193/* values for Host Buffer Access Control doorbell function */ 194#define MPI_DB_HPBAC_VALUE_MASK (0x0000F000) 195#define MPI_DB_HPBAC_ENABLE_ACCESS (0x01) 196#define MPI_DB_HPBAC_DISABLE_ACCESS (0x02) 197#define MPI_DB_HPBAC_FREE_BUFFER (0x03) |
|
165 | 198 |
199 |
|
166#define MPI_WRITE_SEQUENCE_OFFSET (0x00000004) 167#define MPI_WRSEQ_KEY_VALUE_MASK (0x0000000F) 168#define MPI_WRSEQ_1ST_KEY_VALUE (0x04) 169#define MPI_WRSEQ_2ND_KEY_VALUE (0x0B) 170#define MPI_WRSEQ_3RD_KEY_VALUE (0x02) 171#define MPI_WRSEQ_4TH_KEY_VALUE (0x07) 172#define MPI_WRSEQ_5TH_KEY_VALUE (0x0D) 173 --- 25 unchanged lines hidden (view full) --- 199 200#define MPI_REQUEST_QUEUE_OFFSET (0x00000040) 201#define MPI_REQUEST_POST_FIFO_OFFSET (0x00000040) 202 203#define MPI_REPLY_QUEUE_OFFSET (0x00000044) 204#define MPI_REPLY_POST_FIFO_OFFSET (0x00000044) 205#define MPI_REPLY_FREE_FIFO_OFFSET (0x00000044) 206 | 200#define MPI_WRITE_SEQUENCE_OFFSET (0x00000004) 201#define MPI_WRSEQ_KEY_VALUE_MASK (0x0000000F) 202#define MPI_WRSEQ_1ST_KEY_VALUE (0x04) 203#define MPI_WRSEQ_2ND_KEY_VALUE (0x0B) 204#define MPI_WRSEQ_3RD_KEY_VALUE (0x02) 205#define MPI_WRSEQ_4TH_KEY_VALUE (0x07) 206#define MPI_WRSEQ_5TH_KEY_VALUE (0x0D) 207 --- 25 unchanged lines hidden (view full) --- 233 234#define MPI_REQUEST_QUEUE_OFFSET (0x00000040) 235#define MPI_REQUEST_POST_FIFO_OFFSET (0x00000040) 236 237#define MPI_REPLY_QUEUE_OFFSET (0x00000044) 238#define MPI_REPLY_POST_FIFO_OFFSET (0x00000044) 239#define MPI_REPLY_FREE_FIFO_OFFSET (0x00000044) 240 |
241#define MPI_HI_PRI_REQUEST_QUEUE_OFFSET (0x00000048) |
|
207 208 | 242 243 |
244 |
|
209/***************************************************************************** 210* 211* M e s s a g e F r a m e D e s c r i p t o r s 212* 213*****************************************************************************/ 214 215#define MPI_REQ_MF_DESCRIPTOR_NB_MASK (0x00000003) 216#define MPI_REQ_MF_DESCRIPTOR_F_BIT (0x00000004) --- 41 unchanged lines hidden (view full) --- 258#define MPI_FUNCTION_PORT_ENABLE (0x06) 259#define MPI_FUNCTION_EVENT_NOTIFICATION (0x07) 260#define MPI_FUNCTION_EVENT_ACK (0x08) 261#define MPI_FUNCTION_FW_DOWNLOAD (0x09) 262#define MPI_FUNCTION_TARGET_CMD_BUFFER_POST (0x0A) 263#define MPI_FUNCTION_TARGET_ASSIST (0x0B) 264#define MPI_FUNCTION_TARGET_STATUS_SEND (0x0C) 265#define MPI_FUNCTION_TARGET_MODE_ABORT (0x0D) | 245/***************************************************************************** 246* 247* M e s s a g e F r a m e D e s c r i p t o r s 248* 249*****************************************************************************/ 250 251#define MPI_REQ_MF_DESCRIPTOR_NB_MASK (0x00000003) 252#define MPI_REQ_MF_DESCRIPTOR_F_BIT (0x00000004) --- 41 unchanged lines hidden (view full) --- 294#define MPI_FUNCTION_PORT_ENABLE (0x06) 295#define MPI_FUNCTION_EVENT_NOTIFICATION (0x07) 296#define MPI_FUNCTION_EVENT_ACK (0x08) 297#define MPI_FUNCTION_FW_DOWNLOAD (0x09) 298#define MPI_FUNCTION_TARGET_CMD_BUFFER_POST (0x0A) 299#define MPI_FUNCTION_TARGET_ASSIST (0x0B) 300#define MPI_FUNCTION_TARGET_STATUS_SEND (0x0C) 301#define MPI_FUNCTION_TARGET_MODE_ABORT (0x0D) |
266#define MPI_FUNCTION_TARGET_FC_BUF_POST_LINK_SRVC (0x0E) /* obsolete name */ 267#define MPI_FUNCTION_TARGET_FC_RSP_LINK_SRVC (0x0F) /* obsolete name */ 268#define MPI_FUNCTION_TARGET_FC_EX_SEND_LINK_SRVC (0x10) /* obsolete name */ 269#define MPI_FUNCTION_TARGET_FC_ABORT (0x11) /* obsolete name */ | |
270#define MPI_FUNCTION_FC_LINK_SRVC_BUF_POST (0x0E) 271#define MPI_FUNCTION_FC_LINK_SRVC_RSP (0x0F) 272#define MPI_FUNCTION_FC_EX_LINK_SRVC_SEND (0x10) 273#define MPI_FUNCTION_FC_ABORT (0x11) 274#define MPI_FUNCTION_FW_UPLOAD (0x12) 275#define MPI_FUNCTION_FC_COMMON_TRANSPORT_SEND (0x13) 276#define MPI_FUNCTION_FC_PRIMITIVE_SEND (0x14) 277 278#define MPI_FUNCTION_RAID_ACTION (0x15) 279#define MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH (0x16) 280 281#define MPI_FUNCTION_TOOLBOX (0x17) 282 283#define MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR (0x18) 284 285#define MPI_FUNCTION_MAILBOX (0x19) 286 | 302#define MPI_FUNCTION_FC_LINK_SRVC_BUF_POST (0x0E) 303#define MPI_FUNCTION_FC_LINK_SRVC_RSP (0x0F) 304#define MPI_FUNCTION_FC_EX_LINK_SRVC_SEND (0x10) 305#define MPI_FUNCTION_FC_ABORT (0x11) 306#define MPI_FUNCTION_FW_UPLOAD (0x12) 307#define MPI_FUNCTION_FC_COMMON_TRANSPORT_SEND (0x13) 308#define MPI_FUNCTION_FC_PRIMITIVE_SEND (0x14) 309 310#define MPI_FUNCTION_RAID_ACTION (0x15) 311#define MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH (0x16) 312 313#define MPI_FUNCTION_TOOLBOX (0x17) 314 315#define MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR (0x18) 316 317#define MPI_FUNCTION_MAILBOX (0x19) 318 |
319#define MPI_FUNCTION_SMP_PASSTHROUGH (0x1A) 320#define MPI_FUNCTION_SAS_IO_UNIT_CONTROL (0x1B) 321#define MPI_FUNCTION_SATA_PASSTHROUGH (0x1C) 322 323#define MPI_FUNCTION_DIAG_BUFFER_POST (0x1D) 324#define MPI_FUNCTION_DIAG_RELEASE (0x1E) 325 326#define MPI_FUNCTION_SCSI_IO_32 (0x1F) 327 |
|
287#define MPI_FUNCTION_LAN_SEND (0x20) 288#define MPI_FUNCTION_LAN_RECEIVE (0x21) 289#define MPI_FUNCTION_LAN_RESET (0x22) 290 | 328#define MPI_FUNCTION_LAN_SEND (0x20) 329#define MPI_FUNCTION_LAN_RECEIVE (0x21) 330#define MPI_FUNCTION_LAN_RESET (0x22) 331 |
332#define MPI_FUNCTION_TARGET_ASSIST_EXTENDED (0x23) 333#define MPI_FUNCTION_TARGET_CMD_BUF_BASE_POST (0x24) 334#define MPI_FUNCTION_TARGET_CMD_BUF_LIST_POST (0x25) 335 336#define MPI_FUNCTION_INBAND_BUFFER_POST (0x28) 337#define MPI_FUNCTION_INBAND_SEND (0x29) 338#define MPI_FUNCTION_INBAND_RSP (0x2A) 339#define MPI_FUNCTION_INBAND_ABORT (0x2B) 340 |
|
291#define MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET (0x40) 292#define MPI_FUNCTION_IO_UNIT_RESET (0x41) 293#define MPI_FUNCTION_HANDSHAKE (0x42) 294#define MPI_FUNCTION_REPLY_FRAME_REMOVAL (0x43) | 341#define MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET (0x40) 342#define MPI_FUNCTION_IO_UNIT_RESET (0x41) 343#define MPI_FUNCTION_HANDSHAKE (0x42) 344#define MPI_FUNCTION_REPLY_FRAME_REMOVAL (0x43) |
345#define MPI_FUNCTION_HOST_PAGEBUF_ACCESS_CONTROL (0x44) |
|
295 296 | 346 347 |
348/* standard version format */ 349typedef struct _MPI_VERSION_STRUCT 350{ 351 U8 Dev; /* 00h */ 352 U8 Unit; /* 01h */ 353 U8 Minor; /* 02h */ 354 U8 Major; /* 03h */ 355} MPI_VERSION_STRUCT, MPI_POINTER PTR_MPI_VERSION_STRUCT, 356 MpiVersionStruct_t, MPI_POINTER pMpiVersionStruct; |
|
297 | 357 |
358typedef union _MPI_VERSION_FORMAT 359{ 360 MPI_VERSION_STRUCT Struct; 361 U32 Word; 362} MPI_VERSION_FORMAT, MPI_POINTER PTR_MPI_VERSION_FORMAT, 363 MpiVersionFormat_t, MPI_POINTER pMpiVersionFormat_t; 364 365 |
|
298/***************************************************************************** 299* 300* S c a t t e r G a t h e r E l e m e n t s 301* 302*****************************************************************************/ 303 304/****************************************************************************/ 305/* Simple element structures */ --- 16 unchanged lines hidden (view full) --- 322typedef struct _SGE_SIMPLE_UNION 323{ 324 U32 FlagsLength; 325 union 326 { 327 U32 Address32; 328 U64 Address64; 329 }u; | 366/***************************************************************************** 367* 368* S c a t t e r G a t h e r E l e m e n t s 369* 370*****************************************************************************/ 371 372/****************************************************************************/ 373/* Simple element structures */ --- 16 unchanged lines hidden (view full) --- 390typedef struct _SGE_SIMPLE_UNION 391{ 392 U32 FlagsLength; 393 union 394 { 395 U32 Address32; 396 U64 Address64; 397 }u; |
330} SGESimpleUnion_t, MPI_POINTER pSGESimpleUnion_t, 331 SGE_SIMPLE_UNION, MPI_POINTER PTR_SGE_SIMPLE_UNION; | 398} SGE_SIMPLE_UNION, MPI_POINTER PTR_SGE_SIMPLE_UNION, 399 SGESimpleUnion_t, MPI_POINTER pSGESimpleUnion_t; |
332 333/****************************************************************************/ 334/* Chain element structures */ 335/****************************************************************************/ 336 337typedef struct _SGE_CHAIN32 338{ 339 U16 Length; --- 270 unchanged lines hidden (view full) --- 610#define MPI_IOCSTATUS_INVALID_FUNCTION (0x0001) 611#define MPI_IOCSTATUS_BUSY (0x0002) 612#define MPI_IOCSTATUS_INVALID_SGL (0x0003) 613#define MPI_IOCSTATUS_INTERNAL_ERROR (0x0004) 614#define MPI_IOCSTATUS_RESERVED (0x0005) 615#define MPI_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006) 616#define MPI_IOCSTATUS_INVALID_FIELD (0x0007) 617#define MPI_IOCSTATUS_INVALID_STATE (0x0008) | 400 401/****************************************************************************/ 402/* Chain element structures */ 403/****************************************************************************/ 404 405typedef struct _SGE_CHAIN32 406{ 407 U16 Length; --- 270 unchanged lines hidden (view full) --- 678#define MPI_IOCSTATUS_INVALID_FUNCTION (0x0001) 679#define MPI_IOCSTATUS_BUSY (0x0002) 680#define MPI_IOCSTATUS_INVALID_SGL (0x0003) 681#define MPI_IOCSTATUS_INTERNAL_ERROR (0x0004) 682#define MPI_IOCSTATUS_RESERVED (0x0005) 683#define MPI_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006) 684#define MPI_IOCSTATUS_INVALID_FIELD (0x0007) 685#define MPI_IOCSTATUS_INVALID_STATE (0x0008) |
686#define MPI_IOCSTATUS_OP_STATE_NOT_SUPPORTED (0x0009) |
|
618 619/****************************************************************************/ 620/* Config IOCStatus values */ 621/****************************************************************************/ 622 623#define MPI_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020) 624#define MPI_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021) 625#define MPI_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022) --- 15 unchanged lines hidden (view full) --- 641#define MPI_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047) 642#define MPI_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048) 643#define MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049) 644#define MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004A) 645#define MPI_IOCSTATUS_SCSI_IOC_TERMINATED (0x004B) 646#define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C) 647 648/****************************************************************************/ | 687 688/****************************************************************************/ 689/* Config IOCStatus values */ 690/****************************************************************************/ 691 692#define MPI_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020) 693#define MPI_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021) 694#define MPI_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022) --- 15 unchanged lines hidden (view full) --- 710#define MPI_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047) 711#define MPI_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048) 712#define MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049) 713#define MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004A) 714#define MPI_IOCSTATUS_SCSI_IOC_TERMINATED (0x004B) 715#define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C) 716 717/****************************************************************************/ |
649/* SCSI (SPI & FCP) target values */ | 718/* For use by SCSI Initiator and SCSI Target end-to-end data protection */ |
650/****************************************************************************/ 651 | 719/****************************************************************************/ 720 |
721#define MPI_IOCSTATUS_EEDP_GUARD_ERROR (0x004D) 722#define MPI_IOCSTATUS_EEDP_REF_TAG_ERROR (0x004E) 723#define MPI_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004F) 724 725 726/****************************************************************************/ 727/* SCSI Target values */ 728/****************************************************************************/ 729 |
|
652#define MPI_IOCSTATUS_TARGET_PRIORITY_IO (0x0060) 653#define MPI_IOCSTATUS_TARGET_INVALID_PORT (0x0061) | 730#define MPI_IOCSTATUS_TARGET_PRIORITY_IO (0x0060) 731#define MPI_IOCSTATUS_TARGET_INVALID_PORT (0x0061) |
654#define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX (0x0062) /* obsolete */ | 732#define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX (0x0062) /* obsolete name */ |
655#define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062) 656#define MPI_IOCSTATUS_TARGET_ABORTED (0x0063) 657#define MPI_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064) 658#define MPI_IOCSTATUS_TARGET_NO_CONNECTION (0x0065) 659#define MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006A) 660#define MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT (0x006B) | 733#define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062) 734#define MPI_IOCSTATUS_TARGET_ABORTED (0x0063) 735#define MPI_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064) 736#define MPI_IOCSTATUS_TARGET_NO_CONNECTION (0x0065) 737#define MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006A) 738#define MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT (0x006B) |
739#define MPI_IOCSTATUS_TARGET_DATA_OFFSET_ERROR (0x006D) 740#define MPI_IOCSTATUS_TARGET_TOO_MUCH_WRITE_DATA (0x006E) 741#define MPI_IOCSTATUS_TARGET_IU_TOO_SHORT (0x006F) |
|
661 662/****************************************************************************/ | 742 743/****************************************************************************/ |
663/* Additional FCP target values */ | 744/* Additional FCP target values (obsolete) */ |
664/****************************************************************************/ 665 666#define MPI_IOCSTATUS_TARGET_FC_ABORTED (0x0066) /* obsolete */ 667#define MPI_IOCSTATUS_TARGET_FC_RX_ID_INVALID (0x0067) /* obsolete */ 668#define MPI_IOCSTATUS_TARGET_FC_DID_INVALID (0x0068) /* obsolete */ 669#define MPI_IOCSTATUS_TARGET_FC_NODE_LOGGED_OUT (0x0069) /* obsolete */ 670 671/****************************************************************************/ --- 14 unchanged lines hidden (view full) --- 686#define MPI_IOCSTATUS_LAN_DEVICE_FAILURE (0x0081) 687#define MPI_IOCSTATUS_LAN_TRANSMIT_ERROR (0x0082) 688#define MPI_IOCSTATUS_LAN_TRANSMIT_ABORTED (0x0083) 689#define MPI_IOCSTATUS_LAN_RECEIVE_ERROR (0x0084) 690#define MPI_IOCSTATUS_LAN_RECEIVE_ABORTED (0x0085) 691#define MPI_IOCSTATUS_LAN_PARTIAL_PACKET (0x0086) 692#define MPI_IOCSTATUS_LAN_CANCELED (0x0087) 693 | 745/****************************************************************************/ 746 747#define MPI_IOCSTATUS_TARGET_FC_ABORTED (0x0066) /* obsolete */ 748#define MPI_IOCSTATUS_TARGET_FC_RX_ID_INVALID (0x0067) /* obsolete */ 749#define MPI_IOCSTATUS_TARGET_FC_DID_INVALID (0x0068) /* obsolete */ 750#define MPI_IOCSTATUS_TARGET_FC_NODE_LOGGED_OUT (0x0069) /* obsolete */ 751 752/****************************************************************************/ --- 14 unchanged lines hidden (view full) --- 767#define MPI_IOCSTATUS_LAN_DEVICE_FAILURE (0x0081) 768#define MPI_IOCSTATUS_LAN_TRANSMIT_ERROR (0x0082) 769#define MPI_IOCSTATUS_LAN_TRANSMIT_ABORTED (0x0083) 770#define MPI_IOCSTATUS_LAN_RECEIVE_ERROR (0x0084) 771#define MPI_IOCSTATUS_LAN_RECEIVE_ABORTED (0x0085) 772#define MPI_IOCSTATUS_LAN_PARTIAL_PACKET (0x0086) 773#define MPI_IOCSTATUS_LAN_CANCELED (0x0087) 774 |
775/****************************************************************************/ 776/* Serial Attached SCSI values */ 777/****************************************************************************/ |
|
694 | 778 |
779#define MPI_IOCSTATUS_SAS_SMP_REQUEST_FAILED (0x0090) 780#define MPI_IOCSTATUS_SAS_SMP_DATA_OVERRUN (0x0091) 781 |
|
695/****************************************************************************/ | 782/****************************************************************************/ |
783/* Inband values */ 784/****************************************************************************/ 785 786#define MPI_IOCSTATUS_INBAND_ABORTED (0x0098) 787#define MPI_IOCSTATUS_INBAND_NO_CONNECTION (0x0099) 788 789/****************************************************************************/ 790/* Diagnostic Tools values */ 791/****************************************************************************/ 792 793#define MPI_IOCSTATUS_DIAGNOSTIC_RELEASED (0x00A0) 794 795 796/****************************************************************************/ |
|
696/* IOCStatus flag to indicate that log info is available */ 697/****************************************************************************/ 698 699#define MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE (0x8000) 700#define MPI_IOCSTATUS_MASK (0x7FFF) 701 702/****************************************************************************/ 703/* LogInfo Types */ 704/****************************************************************************/ 705 706#define MPI_IOCLOGINFO_TYPE_MASK (0xF0000000) 707#define MPI_IOCLOGINFO_TYPE_SHIFT (28) 708#define MPI_IOCLOGINFO_TYPE_NONE (0x0) 709#define MPI_IOCLOGINFO_TYPE_SCSI (0x1) 710#define MPI_IOCLOGINFO_TYPE_FC (0x2) | 797/* IOCStatus flag to indicate that log info is available */ 798/****************************************************************************/ 799 800#define MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE (0x8000) 801#define MPI_IOCSTATUS_MASK (0x7FFF) 802 803/****************************************************************************/ 804/* LogInfo Types */ 805/****************************************************************************/ 806 807#define MPI_IOCLOGINFO_TYPE_MASK (0xF0000000) 808#define MPI_IOCLOGINFO_TYPE_SHIFT (28) 809#define MPI_IOCLOGINFO_TYPE_NONE (0x0) 810#define MPI_IOCLOGINFO_TYPE_SCSI (0x1) 811#define MPI_IOCLOGINFO_TYPE_FC (0x2) |
812#define MPI_IOCLOGINFO_TYPE_SAS (0x3) 813#define MPI_IOCLOGINFO_TYPE_ISCSI (0x4) |
|
711#define MPI_IOCLOGINFO_LOG_DATA_MASK (0x0FFFFFFF) 712 713 714#endif | 814#define MPI_IOCLOGINFO_LOG_DATA_MASK (0x0FFFFFFF) 815 816 817#endif |