Imported Upstream version 1.72
This commit is contained in:
800
source/lsi/mpi.h
Executable file
800
source/lsi/mpi.h
Executable file
@@ -0,0 +1,800 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2008 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi.h
|
||||
* Title: MPI Message independent structures and definitions
|
||||
* Creation Date: July 27, 2000
|
||||
*
|
||||
* mpi.h Version: 01.05.17
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH definition.
|
||||
* 06-06-00 01.00.01 Update MPI_VERSION_MAJOR and MPI_VERSION_MINOR.
|
||||
* 06-22-00 01.00.02 Added MPI_IOCSTATUS_LAN_ definitions.
|
||||
* Removed LAN_SUSPEND function definition.
|
||||
* Added MPI_MSGFLAGS_CONTINUATION_REPLY definition.
|
||||
* 06-30-00 01.00.03 Added MPI_CONTEXT_REPLY_TYPE_LAN definition.
|
||||
* Added MPI_GET/SET_CONTEXT_REPLY_TYPE macros.
|
||||
* 07-27-00 01.00.04 Added MPI_FAULT_ definitions.
|
||||
* Removed MPI_IOCSTATUS_MSG/DATA_XFER_ERROR definitions.
|
||||
* Added MPI_IOCSTATUS_INTERNAL_ERROR definition.
|
||||
* Added MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work.
|
||||
* 12-04-00 01.01.02 Added new function codes.
|
||||
* 01-09-01 01.01.03 Added more definitions to the system interface section
|
||||
* Added MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT.
|
||||
* 01-25-01 01.01.04 Changed MPI_VERSION_MINOR from 0x00 to 0x01.
|
||||
* 02-20-01 01.01.05 Started using MPI_POINTER.
|
||||
* Fixed value for MPI_DIAG_RW_ENABLE.
|
||||
* Added defines for MPI_DIAG_PREVENT_IOC_BOOT and
|
||||
* MPI_DIAG_CLEAR_FLASH_BAD_SIG.
|
||||
* Obsoleted MPI_IOCSTATUS_TARGET_FC_ defines.
|
||||
* 02-27-01 01.01.06 Removed MPI_HOST_INDEX_REGISTER define.
|
||||
* Added function codes for RAID.
|
||||
* 04-09-01 01.01.07 Added alternate define for MPI_DOORBELL_ACTIVE,
|
||||
* MPI_DOORBELL_USED, to better match the spec.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* Changed MPI_VERSION_MINOR from 0x01 to 0x02.
|
||||
* Added define MPI_FUNCTION_TOOLBOX.
|
||||
* 09-28-01 01.02.02 New function code MPI_SCSI_ENCLOSURE_PROCESSOR.
|
||||
* 11-01-01 01.02.03 Changed name to MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR.
|
||||
* 03-14-02 01.02.04 Added MPI_HEADER_VERSION_ defines.
|
||||
* 05-31-02 01.02.05 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 07-12-02 01.02.06 Added define for MPI_FUNCTION_MAILBOX.
|
||||
* 09-16-02 01.02.07 Bumped value for MPI_HEADER_VERSION_UNIT.
|
||||
* 11-15-02 01.02.08 Added define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX and
|
||||
* obsoleted define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX.
|
||||
* 04-01-03 01.02.09 New IOCStatus code: MPI_IOCSTATUS_FC_EXCHANGE_CANCELED
|
||||
* 06-26-03 01.02.10 Bumped MPI_HEADER_VERSION_UNIT value.
|
||||
* 01-16-04 01.02.11 Added define for MPI_IOCLOGINFO_TYPE_SHIFT.
|
||||
* 04-29-04 01.02.12 Added function codes for MPI_FUNCTION_DIAG_BUFFER_POST
|
||||
* and MPI_FUNCTION_DIAG_RELEASE.
|
||||
* Added MPI_IOCSTATUS_DIAGNOSTIC_RELEASED define.
|
||||
* Bumped MPI_HEADER_VERSION_UNIT value.
|
||||
* 05-11-04 01.03.01 Bumped MPI_VERSION_MINOR for MPI v1.3.
|
||||
* Added codes for Inband.
|
||||
* 08-19-04 01.05.01 Added defines for Host Buffer Access Control doorbell.
|
||||
* Added define for offset of High Priority Request Queue.
|
||||
* Added new function codes and new IOCStatus codes.
|
||||
* Added a IOCLogInfo type of SAS.
|
||||
* 12-07-04 01.05.02 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 12-09-04 01.05.03 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 01-15-05 01.05.04 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 02-09-05 01.05.05 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 02-22-05 01.05.06 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 03-11-05 01.05.07 Removed function codes for SCSI IO 32 and
|
||||
* TargetAssistExtended requests.
|
||||
* Removed EEDP IOCStatus codes.
|
||||
* 06-24-05 01.05.08 Added function codes for SCSI IO 32 and
|
||||
* TargetAssistExtended requests.
|
||||
* Added EEDP IOCStatus codes.
|
||||
* 08-03-05 01.05.09 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 08-30-05 01.05.10 Added 2 new IOCStatus codes for Target.
|
||||
* 03-27-06 01.05.11 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 10-11-06 01.05.12 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 05-24-07 01.05.13 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 08-07-07 01.05.14 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 01-15-08 01.05.15 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 03-28-08 01.05.16 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 07-11-08 01.05.17 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_H
|
||||
#define MPI_H
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* M P I V e r s i o n D e f i n i t i o n s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_VERSION_MAJOR (0x01)
|
||||
#define MPI_VERSION_MINOR (0x05)
|
||||
#define MPI_VERSION_MAJOR_MASK (0xFF00)
|
||||
#define MPI_VERSION_MAJOR_SHIFT (8)
|
||||
#define MPI_VERSION_MINOR_MASK (0x00FF)
|
||||
#define MPI_VERSION_MINOR_SHIFT (0)
|
||||
#define MPI_VERSION ((MPI_VERSION_MAJOR << MPI_VERSION_MAJOR_SHIFT) | \
|
||||
MPI_VERSION_MINOR)
|
||||
|
||||
#define MPI_VERSION_01_00 (0x0100)
|
||||
#define MPI_VERSION_01_01 (0x0101)
|
||||
#define MPI_VERSION_01_02 (0x0102)
|
||||
#define MPI_VERSION_01_03 (0x0103)
|
||||
#define MPI_VERSION_01_05 (0x0105)
|
||||
/* Note: The major versions of 0xe0 through 0xff are reserved */
|
||||
|
||||
/* versioning for this MPI header set */
|
||||
#define MPI_HEADER_VERSION_UNIT (0x14)
|
||||
#define MPI_HEADER_VERSION_DEV (0x00)
|
||||
#define MPI_HEADER_VERSION_UNIT_MASK (0xFF00)
|
||||
#define MPI_HEADER_VERSION_UNIT_SHIFT (8)
|
||||
#define MPI_HEADER_VERSION_DEV_MASK (0x00FF)
|
||||
#define MPI_HEADER_VERSION_DEV_SHIFT (0)
|
||||
#define MPI_HEADER_VERSION ((MPI_HEADER_VERSION_UNIT << 8) | MPI_HEADER_VERSION_DEV)
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* I O C S t a t e D e f i n i t i o n s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_IOC_STATE_RESET (0x00000000)
|
||||
#define MPI_IOC_STATE_READY (0x10000000)
|
||||
#define MPI_IOC_STATE_OPERATIONAL (0x20000000)
|
||||
#define MPI_IOC_STATE_FAULT (0x40000000)
|
||||
|
||||
#define MPI_IOC_STATE_MASK (0xF0000000)
|
||||
#define MPI_IOC_STATE_SHIFT (28)
|
||||
|
||||
/* Fault state codes (product independent range 0x8000-0xFFFF) */
|
||||
|
||||
#define MPI_FAULT_REQUEST_MESSAGE_PCI_PARITY_ERROR (0x8111)
|
||||
#define MPI_FAULT_REQUEST_MESSAGE_PCI_BUS_FAULT (0x8112)
|
||||
#define MPI_FAULT_REPLY_MESSAGE_PCI_PARITY_ERROR (0x8113)
|
||||
#define MPI_FAULT_REPLY_MESSAGE_PCI_BUS_FAULT (0x8114)
|
||||
#define MPI_FAULT_DATA_SEND_PCI_PARITY_ERROR (0x8115)
|
||||
#define MPI_FAULT_DATA_SEND_PCI_BUS_FAULT (0x8116)
|
||||
#define MPI_FAULT_DATA_RECEIVE_PCI_PARITY_ERROR (0x8117)
|
||||
#define MPI_FAULT_DATA_RECEIVE_PCI_BUS_FAULT (0x8118)
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/*
|
||||
* Defines for working with the System Doorbell register.
|
||||
* Values for doorbell function codes are included in the section that defines
|
||||
* all the function codes (further on in this file).
|
||||
*/
|
||||
#define MPI_DOORBELL_OFFSET (0x00000000)
|
||||
#define MPI_DOORBELL_ACTIVE (0x08000000) /* DoorbellUsed */
|
||||
#define MPI_DOORBELL_USED (MPI_DOORBELL_ACTIVE)
|
||||
#define MPI_DOORBELL_ACTIVE_SHIFT (27)
|
||||
#define MPI_DOORBELL_WHO_INIT_MASK (0x07000000)
|
||||
#define MPI_DOORBELL_WHO_INIT_SHIFT (24)
|
||||
#define MPI_DOORBELL_FUNCTION_MASK (0xFF000000)
|
||||
#define MPI_DOORBELL_FUNCTION_SHIFT (24)
|
||||
#define MPI_DOORBELL_ADD_DWORDS_MASK (0x00FF0000)
|
||||
#define MPI_DOORBELL_ADD_DWORDS_SHIFT (16)
|
||||
#define MPI_DOORBELL_DATA_MASK (0x0000FFFF)
|
||||
#define MPI_DOORBELL_FUNCTION_SPECIFIC_MASK (0x0000FFFF)
|
||||
|
||||
/* values for Host Buffer Access Control doorbell function */
|
||||
#define MPI_DB_HPBAC_VALUE_MASK (0x0000F000)
|
||||
#define MPI_DB_HPBAC_ENABLE_ACCESS (0x01)
|
||||
#define MPI_DB_HPBAC_DISABLE_ACCESS (0x02)
|
||||
#define MPI_DB_HPBAC_FREE_BUFFER (0x03)
|
||||
|
||||
|
||||
#define MPI_WRITE_SEQUENCE_OFFSET (0x00000004)
|
||||
#define MPI_WRSEQ_KEY_VALUE_MASK (0x0000000F)
|
||||
#define MPI_WRSEQ_1ST_KEY_VALUE (0x04)
|
||||
#define MPI_WRSEQ_2ND_KEY_VALUE (0x0B)
|
||||
#define MPI_WRSEQ_3RD_KEY_VALUE (0x02)
|
||||
#define MPI_WRSEQ_4TH_KEY_VALUE (0x07)
|
||||
#define MPI_WRSEQ_5TH_KEY_VALUE (0x0D)
|
||||
|
||||
#define MPI_DIAGNOSTIC_OFFSET (0x00000008)
|
||||
#define MPI_DIAG_CLEAR_FLASH_BAD_SIG (0x00000400)
|
||||
#define MPI_DIAG_PREVENT_IOC_BOOT (0x00000200)
|
||||
#define MPI_DIAG_DRWE (0x00000080)
|
||||
#define MPI_DIAG_FLASH_BAD_SIG (0x00000040)
|
||||
#define MPI_DIAG_RESET_HISTORY (0x00000020)
|
||||
#define MPI_DIAG_RW_ENABLE (0x00000010)
|
||||
#define MPI_DIAG_RESET_ADAPTER (0x00000004)
|
||||
#define MPI_DIAG_DISABLE_ARM (0x00000002)
|
||||
#define MPI_DIAG_MEM_ENABLE (0x00000001)
|
||||
|
||||
#define MPI_TEST_BASE_ADDRESS_OFFSET (0x0000000C)
|
||||
|
||||
#define MPI_DIAG_RW_DATA_OFFSET (0x00000010)
|
||||
|
||||
#define MPI_DIAG_RW_ADDRESS_OFFSET (0x00000014)
|
||||
|
||||
#define MPI_HOST_INTERRUPT_STATUS_OFFSET (0x00000030)
|
||||
#define MPI_HIS_IOP_DOORBELL_STATUS (0x80000000)
|
||||
#define MPI_HIS_REPLY_MESSAGE_INTERRUPT (0x00000008)
|
||||
#define MPI_HIS_DOORBELL_INTERRUPT (0x00000001)
|
||||
|
||||
#define MPI_HOST_INTERRUPT_MASK_OFFSET (0x00000034)
|
||||
#define MPI_HIM_RIM (0x00000008)
|
||||
#define MPI_HIM_DIM (0x00000001)
|
||||
|
||||
#define MPI_REQUEST_QUEUE_OFFSET (0x00000040)
|
||||
#define MPI_REQUEST_POST_FIFO_OFFSET (0x00000040)
|
||||
|
||||
#define MPI_REPLY_QUEUE_OFFSET (0x00000044)
|
||||
#define MPI_REPLY_POST_FIFO_OFFSET (0x00000044)
|
||||
#define MPI_REPLY_FREE_FIFO_OFFSET (0x00000044)
|
||||
|
||||
#define MPI_HI_PRI_REQUEST_QUEUE_OFFSET (0x00000048)
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* M e s s a g e F r a m e D e s c r i p t o r s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_REQ_MF_DESCRIPTOR_NB_MASK (0x00000003)
|
||||
#define MPI_REQ_MF_DESCRIPTOR_F_BIT (0x00000004)
|
||||
#define MPI_REQ_MF_DESCRIPTOR_ADDRESS_MASK (0xFFFFFFF8)
|
||||
|
||||
#define MPI_ADDRESS_REPLY_A_BIT (0x80000000)
|
||||
#define MPI_ADDRESS_REPLY_ADDRESS_MASK (0x7FFFFFFF)
|
||||
|
||||
#define MPI_CONTEXT_REPLY_A_BIT (0x80000000)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_MASK (0x60000000)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_SCSI_INIT (0x00)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_SCSI_TARGET (0x01)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_LAN (0x02)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_SHIFT (29)
|
||||
#define MPI_CONTEXT_REPLY_CONTEXT_MASK (0x1FFFFFFF)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Context Reply macros */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_GET_CONTEXT_REPLY_TYPE(x) (((x) & MPI_CONTEXT_REPLY_TYPE_MASK) \
|
||||
>> MPI_CONTEXT_REPLY_TYPE_SHIFT)
|
||||
|
||||
#define MPI_SET_CONTEXT_REPLY_TYPE(x, typ) \
|
||||
((x) = ((x) & ~MPI_CONTEXT_REPLY_TYPE_MASK) | \
|
||||
(((typ) << MPI_CONTEXT_REPLY_TYPE_SHIFT) & \
|
||||
MPI_CONTEXT_REPLY_TYPE_MASK))
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* M e s s a g e F u n c t i o n s
|
||||
* 0x80 -> 0x8F reserved for private message use per product
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_FUNCTION_SCSI_IO_REQUEST (0x00)
|
||||
#define MPI_FUNCTION_SCSI_TASK_MGMT (0x01)
|
||||
#define MPI_FUNCTION_IOC_INIT (0x02)
|
||||
#define MPI_FUNCTION_IOC_FACTS (0x03)
|
||||
#define MPI_FUNCTION_CONFIG (0x04)
|
||||
#define MPI_FUNCTION_PORT_FACTS (0x05)
|
||||
#define MPI_FUNCTION_PORT_ENABLE (0x06)
|
||||
#define MPI_FUNCTION_EVENT_NOTIFICATION (0x07)
|
||||
#define MPI_FUNCTION_EVENT_ACK (0x08)
|
||||
#define MPI_FUNCTION_FW_DOWNLOAD (0x09)
|
||||
#define MPI_FUNCTION_TARGET_CMD_BUFFER_POST (0x0A)
|
||||
#define MPI_FUNCTION_TARGET_ASSIST (0x0B)
|
||||
#define MPI_FUNCTION_TARGET_STATUS_SEND (0x0C)
|
||||
#define MPI_FUNCTION_TARGET_MODE_ABORT (0x0D)
|
||||
#define MPI_FUNCTION_FC_LINK_SRVC_BUF_POST (0x0E)
|
||||
#define MPI_FUNCTION_FC_LINK_SRVC_RSP (0x0F)
|
||||
#define MPI_FUNCTION_FC_EX_LINK_SRVC_SEND (0x10)
|
||||
#define MPI_FUNCTION_FC_ABORT (0x11)
|
||||
#define MPI_FUNCTION_FW_UPLOAD (0x12)
|
||||
#define MPI_FUNCTION_FC_COMMON_TRANSPORT_SEND (0x13)
|
||||
#define MPI_FUNCTION_FC_PRIMITIVE_SEND (0x14)
|
||||
|
||||
#define MPI_FUNCTION_RAID_ACTION (0x15)
|
||||
#define MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH (0x16)
|
||||
|
||||
#define MPI_FUNCTION_TOOLBOX (0x17)
|
||||
|
||||
#define MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR (0x18)
|
||||
|
||||
#define MPI_FUNCTION_MAILBOX (0x19)
|
||||
|
||||
#define MPI_FUNCTION_SMP_PASSTHROUGH (0x1A)
|
||||
#define MPI_FUNCTION_SAS_IO_UNIT_CONTROL (0x1B)
|
||||
#define MPI_FUNCTION_SATA_PASSTHROUGH (0x1C)
|
||||
|
||||
#define MPI_FUNCTION_DIAG_BUFFER_POST (0x1D)
|
||||
#define MPI_FUNCTION_DIAG_RELEASE (0x1E)
|
||||
|
||||
#define MPI_FUNCTION_SCSI_IO_32 (0x1F)
|
||||
|
||||
#define MPI_FUNCTION_LAN_SEND (0x20)
|
||||
#define MPI_FUNCTION_LAN_RECEIVE (0x21)
|
||||
#define MPI_FUNCTION_LAN_RESET (0x22)
|
||||
|
||||
#define MPI_FUNCTION_TARGET_ASSIST_EXTENDED (0x23)
|
||||
#define MPI_FUNCTION_TARGET_CMD_BUF_BASE_POST (0x24)
|
||||
#define MPI_FUNCTION_TARGET_CMD_BUF_LIST_POST (0x25)
|
||||
|
||||
#define MPI_FUNCTION_INBAND_BUFFER_POST (0x28)
|
||||
#define MPI_FUNCTION_INBAND_SEND (0x29)
|
||||
#define MPI_FUNCTION_INBAND_RSP (0x2A)
|
||||
#define MPI_FUNCTION_INBAND_ABORT (0x2B)
|
||||
|
||||
#define MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET (0x40)
|
||||
#define MPI_FUNCTION_IO_UNIT_RESET (0x41)
|
||||
#define MPI_FUNCTION_HANDSHAKE (0x42)
|
||||
#define MPI_FUNCTION_REPLY_FRAME_REMOVAL (0x43)
|
||||
#define MPI_FUNCTION_HOST_PAGEBUF_ACCESS_CONTROL (0x44)
|
||||
|
||||
|
||||
/* standard version format */
|
||||
typedef struct _MPI_VERSION_STRUCT
|
||||
{
|
||||
U8 Dev; /* 00h */
|
||||
U8 Unit; /* 01h */
|
||||
U8 Minor; /* 02h */
|
||||
U8 Major; /* 03h */
|
||||
} MPI_VERSION_STRUCT, MPI_POINTER PTR_MPI_VERSION_STRUCT,
|
||||
MpiVersionStruct_t, MPI_POINTER pMpiVersionStruct;
|
||||
|
||||
typedef union _MPI_VERSION_FORMAT
|
||||
{
|
||||
MPI_VERSION_STRUCT Struct;
|
||||
U32 Word;
|
||||
} MPI_VERSION_FORMAT, MPI_POINTER PTR_MPI_VERSION_FORMAT,
|
||||
MpiVersionFormat_t, MPI_POINTER pMpiVersionFormat_t;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* S c a t t e r G a t h e r E l e m e n t s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Simple element structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_SIMPLE32
|
||||
{
|
||||
U32 FlagsLength;
|
||||
U32 Address;
|
||||
} SGE_SIMPLE32, MPI_POINTER PTR_SGE_SIMPLE32,
|
||||
SGESimple32_t, MPI_POINTER pSGESimple32_t;
|
||||
|
||||
typedef struct _SGE_SIMPLE64
|
||||
{
|
||||
U32 FlagsLength;
|
||||
U64 Address;
|
||||
} SGE_SIMPLE64, MPI_POINTER PTR_SGE_SIMPLE64,
|
||||
SGESimple64_t, MPI_POINTER pSGESimple64_t;
|
||||
|
||||
typedef struct _SGE_SIMPLE_UNION
|
||||
{
|
||||
U32 FlagsLength;
|
||||
union
|
||||
{
|
||||
U32 Address32;
|
||||
U64 Address64;
|
||||
}u;
|
||||
} SGE_SIMPLE_UNION, MPI_POINTER PTR_SGE_SIMPLE_UNION,
|
||||
SGESimpleUnion_t, MPI_POINTER pSGESimpleUnion_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* Chain element structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_CHAIN32
|
||||
{
|
||||
U16 Length;
|
||||
U8 NextChainOffset;
|
||||
U8 Flags;
|
||||
U32 Address;
|
||||
} SGE_CHAIN32, MPI_POINTER PTR_SGE_CHAIN32,
|
||||
SGEChain32_t, MPI_POINTER pSGEChain32_t;
|
||||
|
||||
typedef struct _SGE_CHAIN64
|
||||
{
|
||||
U16 Length;
|
||||
U8 NextChainOffset;
|
||||
U8 Flags;
|
||||
U64 Address;
|
||||
} SGE_CHAIN64, MPI_POINTER PTR_SGE_CHAIN64,
|
||||
SGEChain64_t, MPI_POINTER pSGEChain64_t;
|
||||
|
||||
typedef struct _SGE_CHAIN_UNION
|
||||
{
|
||||
U16 Length;
|
||||
U8 NextChainOffset;
|
||||
U8 Flags;
|
||||
union
|
||||
{
|
||||
U32 Address32;
|
||||
U64 Address64;
|
||||
}u;
|
||||
} SGE_CHAIN_UNION, MPI_POINTER PTR_SGE_CHAIN_UNION,
|
||||
SGEChainUnion_t, MPI_POINTER pSGEChainUnion_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* Transaction Context element */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_TRANSACTION32
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[1];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION32, MPI_POINTER PTR_SGE_TRANSACTION32,
|
||||
SGETransaction32_t, MPI_POINTER pSGETransaction32_t;
|
||||
|
||||
typedef struct _SGE_TRANSACTION64
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[2];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION64, MPI_POINTER PTR_SGE_TRANSACTION64,
|
||||
SGETransaction64_t, MPI_POINTER pSGETransaction64_t;
|
||||
|
||||
typedef struct _SGE_TRANSACTION96
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[3];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION96, MPI_POINTER PTR_SGE_TRANSACTION96,
|
||||
SGETransaction96_t, MPI_POINTER pSGETransaction96_t;
|
||||
|
||||
typedef struct _SGE_TRANSACTION128
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[4];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION128, MPI_POINTER PTR_SGE_TRANSACTION128,
|
||||
SGETransaction_t128, MPI_POINTER pSGETransaction_t128;
|
||||
|
||||
typedef struct _SGE_TRANSACTION_UNION
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
union
|
||||
{
|
||||
U32 TransactionContext32[1];
|
||||
U32 TransactionContext64[2];
|
||||
U32 TransactionContext96[3];
|
||||
U32 TransactionContext128[4];
|
||||
}u;
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION_UNION, MPI_POINTER PTR_SGE_TRANSACTION_UNION,
|
||||
SGETransactionUnion_t, MPI_POINTER pSGETransactionUnion_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE IO types union for IO SGL's */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_IO_UNION
|
||||
{
|
||||
union
|
||||
{
|
||||
SGE_SIMPLE_UNION Simple;
|
||||
SGE_CHAIN_UNION Chain;
|
||||
} u;
|
||||
} SGE_IO_UNION, MPI_POINTER PTR_SGE_IO_UNION,
|
||||
SGEIOUnion_t, MPI_POINTER pSGEIOUnion_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE union for SGL's with Simple and Transaction elements */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_TRANS_SIMPLE_UNION
|
||||
{
|
||||
union
|
||||
{
|
||||
SGE_SIMPLE_UNION Simple;
|
||||
SGE_TRANSACTION_UNION Transaction;
|
||||
} u;
|
||||
} SGE_TRANS_SIMPLE_UNION, MPI_POINTER PTR_SGE_TRANS_SIMPLE_UNION,
|
||||
SGETransSimpleUnion_t, MPI_POINTER pSGETransSimpleUnion_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* All SGE types union */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_MPI_UNION
|
||||
{
|
||||
union
|
||||
{
|
||||
SGE_SIMPLE_UNION Simple;
|
||||
SGE_CHAIN_UNION Chain;
|
||||
SGE_TRANSACTION_UNION Transaction;
|
||||
} u;
|
||||
} SGE_MPI_UNION, MPI_POINTER PTR_SGE_MPI_UNION,
|
||||
MPI_SGE_UNION_t, MPI_POINTER pMPI_SGE_UNION_t,
|
||||
SGEAllUnion_t, MPI_POINTER pSGEAllUnion_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE field definition and masks */
|
||||
/****************************************************************************/
|
||||
|
||||
/* Flags field bit definitions */
|
||||
|
||||
#define MPI_SGE_FLAGS_LAST_ELEMENT (0x80)
|
||||
#define MPI_SGE_FLAGS_END_OF_BUFFER (0x40)
|
||||
#define MPI_SGE_FLAGS_ELEMENT_TYPE_MASK (0x30)
|
||||
#define MPI_SGE_FLAGS_LOCAL_ADDRESS (0x08)
|
||||
#define MPI_SGE_FLAGS_DIRECTION (0x04)
|
||||
#define MPI_SGE_FLAGS_ADDRESS_SIZE (0x02)
|
||||
#define MPI_SGE_FLAGS_END_OF_LIST (0x01)
|
||||
|
||||
#define MPI_SGE_FLAGS_SHIFT (24)
|
||||
|
||||
#define MPI_SGE_LENGTH_MASK (0x00FFFFFF)
|
||||
#define MPI_SGE_CHAIN_LENGTH_MASK (0x0000FFFF)
|
||||
|
||||
/* Element Type */
|
||||
|
||||
#define MPI_SGE_FLAGS_TRANSACTION_ELEMENT (0x00)
|
||||
#define MPI_SGE_FLAGS_SIMPLE_ELEMENT (0x10)
|
||||
#define MPI_SGE_FLAGS_CHAIN_ELEMENT (0x30)
|
||||
#define MPI_SGE_FLAGS_ELEMENT_MASK (0x30)
|
||||
|
||||
/* Address location */
|
||||
|
||||
#define MPI_SGE_FLAGS_SYSTEM_ADDRESS (0x00)
|
||||
|
||||
/* Direction */
|
||||
|
||||
#define MPI_SGE_FLAGS_IOC_TO_HOST (0x00)
|
||||
#define MPI_SGE_FLAGS_HOST_TO_IOC (0x04)
|
||||
|
||||
/* Address Size */
|
||||
|
||||
#define MPI_SGE_FLAGS_32_BIT_ADDRESSING (0x00)
|
||||
#define MPI_SGE_FLAGS_64_BIT_ADDRESSING (0x02)
|
||||
|
||||
/* Context Size */
|
||||
|
||||
#define MPI_SGE_FLAGS_32_BIT_CONTEXT (0x00)
|
||||
#define MPI_SGE_FLAGS_64_BIT_CONTEXT (0x02)
|
||||
#define MPI_SGE_FLAGS_96_BIT_CONTEXT (0x04)
|
||||
#define MPI_SGE_FLAGS_128_BIT_CONTEXT (0x06)
|
||||
|
||||
#define MPI_SGE_CHAIN_OFFSET_MASK (0x00FF0000)
|
||||
#define MPI_SGE_CHAIN_OFFSET_SHIFT (16)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE operation Macros */
|
||||
/****************************************************************************/
|
||||
|
||||
/* SIMPLE FlagsLength manipulations... */
|
||||
#define MPI_SGE_SET_FLAGS(f) ((U32)(f) << MPI_SGE_FLAGS_SHIFT)
|
||||
#define MPI_SGE_GET_FLAGS(fl) (((fl) & ~MPI_SGE_LENGTH_MASK) >> MPI_SGE_FLAGS_SHIFT)
|
||||
#define MPI_SGE_LENGTH(fl) ((fl) & MPI_SGE_LENGTH_MASK)
|
||||
#define MPI_SGE_CHAIN_LENGTH(fl) ((fl) & MPI_SGE_CHAIN_LENGTH_MASK)
|
||||
|
||||
#define MPI_SGE_SET_FLAGS_LENGTH(f,l) (MPI_SGE_SET_FLAGS(f) | MPI_SGE_LENGTH(l))
|
||||
|
||||
#define MPI_pSGE_GET_FLAGS(psg) MPI_SGE_GET_FLAGS((psg)->FlagsLength)
|
||||
#define MPI_pSGE_GET_LENGTH(psg) MPI_SGE_LENGTH((psg)->FlagsLength)
|
||||
#define MPI_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI_SGE_SET_FLAGS_LENGTH(f,l)
|
||||
/* CAUTION - The following are READ-MODIFY-WRITE! */
|
||||
#define MPI_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI_SGE_SET_FLAGS(f)
|
||||
#define MPI_pSGE_SET_LENGTH(psg,l) (psg)->FlagsLength |= MPI_SGE_LENGTH(l)
|
||||
|
||||
#define MPI_GET_CHAIN_OFFSET(x) ((x&MPI_SGE_CHAIN_OFFSET_MASK)>>MPI_SGE_CHAIN_OFFSET_SHIFT)
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* S t a n d a r d M e s s a g e S t r u c t u r e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Standard message request header for all request messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_REQUEST_HEADER
|
||||
{
|
||||
U8 Reserved[2]; /* function specific */
|
||||
U8 ChainOffset;
|
||||
U8 Function;
|
||||
U8 Reserved1[3]; /* function specific */
|
||||
U8 MsgFlags;
|
||||
U32 MsgContext;
|
||||
} MSG_REQUEST_HEADER, MPI_POINTER PTR_MSG_REQUEST_HEADER,
|
||||
MPIHeader_t, MPI_POINTER pMPIHeader_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Default Reply */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_DEFAULT_REPLY
|
||||
{
|
||||
U8 Reserved[2]; /* function specific */
|
||||
U8 MsgLength;
|
||||
U8 Function;
|
||||
U8 Reserved1[3]; /* function specific */
|
||||
U8 MsgFlags;
|
||||
U32 MsgContext;
|
||||
U8 Reserved2[2]; /* function specific */
|
||||
U16 IOCStatus;
|
||||
U32 IOCLogInfo;
|
||||
} MSG_DEFAULT_REPLY, MPI_POINTER PTR_MSG_DEFAULT_REPLY,
|
||||
MPIDefaultReply_t, MPI_POINTER pMPIDefaultReply_t;
|
||||
|
||||
|
||||
/* MsgFlags definition for all replies */
|
||||
|
||||
#define MPI_MSGFLAGS_CONTINUATION_REPLY (0x80)
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* I O C S t a t u s V a l u e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Common IOCStatus values for all replies */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_SUCCESS (0x0000)
|
||||
#define MPI_IOCSTATUS_INVALID_FUNCTION (0x0001)
|
||||
#define MPI_IOCSTATUS_BUSY (0x0002)
|
||||
#define MPI_IOCSTATUS_INVALID_SGL (0x0003)
|
||||
#define MPI_IOCSTATUS_INTERNAL_ERROR (0x0004)
|
||||
#define MPI_IOCSTATUS_RESERVED (0x0005)
|
||||
#define MPI_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006)
|
||||
#define MPI_IOCSTATUS_INVALID_FIELD (0x0007)
|
||||
#define MPI_IOCSTATUS_INVALID_STATE (0x0008)
|
||||
#define MPI_IOCSTATUS_OP_STATE_NOT_SUPPORTED (0x0009)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Config IOCStatus values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020)
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021)
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022)
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_DATA (0x0023)
|
||||
#define MPI_IOCSTATUS_CONFIG_NO_DEFAULTS (0x0024)
|
||||
#define MPI_IOCSTATUS_CONFIG_CANT_COMMIT (0x0025)
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSIIO Reply (SPI & FCP) initiator values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_SCSI_RECOVERED_ERROR (0x0040)
|
||||
#define MPI_IOCSTATUS_SCSI_INVALID_BUS (0x0041)
|
||||
#define MPI_IOCSTATUS_SCSI_INVALID_TARGETID (0x0042)
|
||||
#define MPI_IOCSTATUS_SCSI_DEVICE_NOT_THERE (0x0043)
|
||||
#define MPI_IOCSTATUS_SCSI_DATA_OVERRUN (0x0044)
|
||||
#define MPI_IOCSTATUS_SCSI_DATA_UNDERRUN (0x0045)
|
||||
#define MPI_IOCSTATUS_SCSI_IO_DATA_ERROR (0x0046)
|
||||
#define MPI_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047)
|
||||
#define MPI_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048)
|
||||
#define MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049)
|
||||
#define MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004A)
|
||||
#define MPI_IOCSTATUS_SCSI_IOC_TERMINATED (0x004B)
|
||||
#define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C)
|
||||
|
||||
/****************************************************************************/
|
||||
/* For use by SCSI Initiator and SCSI Target end-to-end data protection */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_EEDP_GUARD_ERROR (0x004D)
|
||||
#define MPI_IOCSTATUS_EEDP_REF_TAG_ERROR (0x004E)
|
||||
#define MPI_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004F)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI Target values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_TARGET_PRIORITY_IO (0x0060)
|
||||
#define MPI_IOCSTATUS_TARGET_INVALID_PORT (0x0061)
|
||||
#define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX (0x0062) /* obsolete name */
|
||||
#define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062)
|
||||
#define MPI_IOCSTATUS_TARGET_ABORTED (0x0063)
|
||||
#define MPI_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064)
|
||||
#define MPI_IOCSTATUS_TARGET_NO_CONNECTION (0x0065)
|
||||
#define MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006A)
|
||||
#define MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT (0x006B)
|
||||
#define MPI_IOCSTATUS_TARGET_DATA_OFFSET_ERROR (0x006D)
|
||||
#define MPI_IOCSTATUS_TARGET_TOO_MUCH_WRITE_DATA (0x006E)
|
||||
#define MPI_IOCSTATUS_TARGET_IU_TOO_SHORT (0x006F)
|
||||
#define MPI_IOCSTATUS_TARGET_ACK_NAK_TIMEOUT (0x0070)
|
||||
#define MPI_IOCSTATUS_TARGET_NAK_RECEIVED (0x0071)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Additional FCP target values (obsolete) */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_TARGET_FC_ABORTED (0x0066) /* obsolete */
|
||||
#define MPI_IOCSTATUS_TARGET_FC_RX_ID_INVALID (0x0067) /* obsolete */
|
||||
#define MPI_IOCSTATUS_TARGET_FC_DID_INVALID (0x0068) /* obsolete */
|
||||
#define MPI_IOCSTATUS_TARGET_FC_NODE_LOGGED_OUT (0x0069) /* obsolete */
|
||||
|
||||
/****************************************************************************/
|
||||
/* Fibre Channel Direct Access values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_FC_ABORTED (0x0066)
|
||||
#define MPI_IOCSTATUS_FC_RX_ID_INVALID (0x0067)
|
||||
#define MPI_IOCSTATUS_FC_DID_INVALID (0x0068)
|
||||
#define MPI_IOCSTATUS_FC_NODE_LOGGED_OUT (0x0069)
|
||||
#define MPI_IOCSTATUS_FC_EXCHANGE_CANCELED (0x006C)
|
||||
|
||||
/****************************************************************************/
|
||||
/* LAN values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_LAN_DEVICE_NOT_FOUND (0x0080)
|
||||
#define MPI_IOCSTATUS_LAN_DEVICE_FAILURE (0x0081)
|
||||
#define MPI_IOCSTATUS_LAN_TRANSMIT_ERROR (0x0082)
|
||||
#define MPI_IOCSTATUS_LAN_TRANSMIT_ABORTED (0x0083)
|
||||
#define MPI_IOCSTATUS_LAN_RECEIVE_ERROR (0x0084)
|
||||
#define MPI_IOCSTATUS_LAN_RECEIVE_ABORTED (0x0085)
|
||||
#define MPI_IOCSTATUS_LAN_PARTIAL_PACKET (0x0086)
|
||||
#define MPI_IOCSTATUS_LAN_CANCELED (0x0087)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Serial Attached SCSI values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_SAS_SMP_REQUEST_FAILED (0x0090)
|
||||
#define MPI_IOCSTATUS_SAS_SMP_DATA_OVERRUN (0x0091)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Inband values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_INBAND_ABORTED (0x0098)
|
||||
#define MPI_IOCSTATUS_INBAND_NO_CONNECTION (0x0099)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Diagnostic Tools values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_DIAGNOSTIC_RELEASED (0x00A0)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* IOCStatus flag to indicate that log info is available */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE (0x8000)
|
||||
#define MPI_IOCSTATUS_MASK (0x7FFF)
|
||||
|
||||
/****************************************************************************/
|
||||
/* LogInfo Types */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCLOGINFO_TYPE_MASK (0xF0000000)
|
||||
#define MPI_IOCLOGINFO_TYPE_SHIFT (28)
|
||||
#define MPI_IOCLOGINFO_TYPE_NONE (0x0)
|
||||
#define MPI_IOCLOGINFO_TYPE_SCSI (0x1)
|
||||
#define MPI_IOCLOGINFO_TYPE_FC (0x2)
|
||||
#define MPI_IOCLOGINFO_TYPE_SAS (0x3)
|
||||
#define MPI_IOCLOGINFO_TYPE_ISCSI (0x4)
|
||||
#define MPI_IOCLOGINFO_LOG_DATA_MASK (0x0FFFFFFF)
|
||||
|
||||
|
||||
#endif
|
||||
1200
source/lsi/mpi2.h
Executable file
1200
source/lsi/mpi2.h
Executable file
File diff suppressed because it is too large
Load Diff
3071
source/lsi/mpi2_cnfg.h
Executable file
3071
source/lsi/mpi2_cnfg.h
Executable file
File diff suppressed because it is too large
Load Diff
118
source/lsi/mpi2_hbd.h
Executable file
118
source/lsi/mpi2_hbd.h
Executable file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright (c) 2009-2010 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_hbd.h
|
||||
* Title: MPI Host Based Discovery messages and structures
|
||||
* Creation Date: October 21, 2009
|
||||
*
|
||||
* mpi2_hbd.h Version: 02.00.xx
|
||||
*
|
||||
* NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25
|
||||
* prefix are for use only on MPI v2.5 products, and must not be used
|
||||
* with MPI v2.0 products. Unless otherwise noted, names beginning with
|
||||
* MPI2 or Mpi2 are for use with both MPI v2.0 and MPI v2.5 products.
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 10-28-09 02.00.00 Initial version.
|
||||
* 08-11-10 02.00.01 Removed PortGroups, DmaGroup, and ControlGroup from
|
||||
* HBD Action request, replaced by AdditionalInfo field.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_HBD_H
|
||||
#define MPI2_HBD_H
|
||||
|
||||
/****************************************************************************
|
||||
* Host Based Discovery Action messages
|
||||
****************************************************************************/
|
||||
|
||||
/* Host Based Discovery Action Request Message */
|
||||
typedef struct _MPI2_HBD_ACTION_REQUEST
|
||||
{
|
||||
U8 Operation; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 DevHandle; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U32 Reserved4; /* 0x0C */
|
||||
U64 SASAddress; /* 0x10 */
|
||||
U32 Reserved5; /* 0x18 */
|
||||
U32 HbdDeviceInfo; /* 0x1C */
|
||||
U16 ParentDevHandle; /* 0x20 */
|
||||
U16 MaxQDepth; /* 0x22 */
|
||||
U8 FirstPhyIdentifier; /* 0x24 */
|
||||
U8 Port; /* 0x25 */
|
||||
U8 MaxConnections; /* 0x26 */
|
||||
U8 MaxRate; /* 0x27 */
|
||||
U32 AdditionalInfo; /* 0x28 */
|
||||
U16 InitialAWT; /* 0x2C */
|
||||
U16 Reserved7; /* 0x2E */
|
||||
U32 Reserved8; /* 0x30 */
|
||||
} MPI2_HBD_ACTION_REQUEST, MPI2_POINTER PTR_MPI2_HBD_ACTION_REQUEST,
|
||||
Mpi2HbdActionRequest_t, MPI2_POINTER pMpi2HbdActionRequest_t;
|
||||
|
||||
/* values for the Operation field */
|
||||
#define MPI2_HBD_OP_ADD_DEVICE (0x01)
|
||||
#define MPI2_HBD_OP_REMOVE_DEVICE (0x02)
|
||||
#define MPI2_HBD_OP_UPDATE_DEVICE (0x03)
|
||||
|
||||
/* values for the HbdDeviceInfo field */
|
||||
#define MPI2_HBD_DEVICE_INFO_VIRTUAL_DEVICE (0x00004000)
|
||||
#define MPI2_HBD_DEVICE_INFO_ATAPI_DEVICE (0x00002000)
|
||||
#define MPI2_HBD_DEVICE_INFO_DIRECT_ATTACH (0x00000800)
|
||||
#define MPI2_HBD_DEVICE_INFO_SSP_TARGET (0x00000400)
|
||||
#define MPI2_HBD_DEVICE_INFO_STP_TARGET (0x00000200)
|
||||
#define MPI2_HBD_DEVICE_INFO_SMP_TARGET (0x00000100)
|
||||
#define MPI2_HBD_DEVICE_INFO_SATA_DEVICE (0x00000080)
|
||||
#define MPI2_HBD_DEVICE_INFO_SSP_INITIATOR (0x00000040)
|
||||
#define MPI2_HBD_DEVICE_INFO_STP_INITIATOR (0x00000020)
|
||||
#define MPI2_HBD_DEVICE_INFO_SMP_INITIATOR (0x00000010)
|
||||
#define MPI2_HBD_DEVICE_INFO_SATA_HOST (0x00000008)
|
||||
|
||||
#define MPI2_HBD_DEVICE_INFO_MASK_DEVICE_TYPE (0x00000007)
|
||||
#define MPI2_HBD_DEVICE_INFO_NO_DEVICE (0x00000000)
|
||||
#define MPI2_HBD_DEVICE_INFO_END_DEVICE (0x00000001)
|
||||
#define MPI2_HBD_DEVICE_INFO_EDGE_EXPANDER (0x00000002)
|
||||
#define MPI2_HBD_DEVICE_INFO_FANOUT_EXPANDER (0x00000003)
|
||||
|
||||
/* values for the MaxRate field */
|
||||
#define MPI2_HBD_MAX_RATE_MASK (0x0F)
|
||||
#define MPI2_HBD_MAX_RATE_1_5 (0x08)
|
||||
#define MPI2_HBD_MAX_RATE_3_0 (0x09)
|
||||
#define MPI2_HBD_MAX_RATE_6_0 (0x0A)
|
||||
#define MPI25_HBD_MAX_RATE_12_0 (0x0B)
|
||||
|
||||
|
||||
/* Host Based Discovery Action Reply Message */
|
||||
typedef struct _MPI2_HBD_ACTION_REPLY
|
||||
{
|
||||
U8 Operation; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 DevHandle; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 Reserved4; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
} MPI2_HBD_ACTION_REPLY, MPI2_POINTER PTR_MPI2_HBD_ACTION_REPLY,
|
||||
Mpi2HbdActionReply_t, MPI2_POINTER pMpi2HbdActionReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
460
source/lsi/mpi2_history.txt
Executable file
460
source/lsi/mpi2_history.txt
Executable file
@@ -0,0 +1,460 @@
|
||||
==============================
|
||||
Fusion-MPT MPI 2.0 Header File Change History
|
||||
==============================
|
||||
|
||||
Copyright (c) 2000-2011 LSI Corporation.
|
||||
|
||||
---------------------------------------
|
||||
Header Set Release Version: 02.00.19
|
||||
Header Set Release Date: 02-23-11
|
||||
---------------------------------------
|
||||
|
||||
Filename Current version Prior version
|
||||
---------- --------------- -------------
|
||||
mpi2.h 02.00.19 02.00.18
|
||||
mpi2_cnfg.h 02.00.18 02.00.17
|
||||
mpi2_init.h 02.00.11 02.00.11
|
||||
mpi2_ioc.h 02.00.17 02.00.16
|
||||
mpi2_raid.h 02.00.05 02.00.05
|
||||
mpi2_sas.h 02.00.05 02.00.05
|
||||
mpi2_targ.h 02.00.04 02.00.04
|
||||
mpi2_tool.h 02.00.06 02.00.06
|
||||
mpi2_type.h 02.00.00 02.00.00
|
||||
mpi2_ra.h 02.00.00 02.00.00
|
||||
mpi2_hbd.h 02.00.01 02.00.01
|
||||
mpi2_history.txt 02.00.19 02.00.18
|
||||
|
||||
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
|
||||
mpi2.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 06-04-07 02.00.01 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 06-26-07 02.00.02 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 08-31-07 02.00.03 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Moved ReplyPostHostIndex register to offset 0x6C of the
|
||||
* MPI2_SYSTEM_INTERFACE_REGS and modified the define for
|
||||
* MPI2_REPLY_POST_HOST_INDEX_OFFSET.
|
||||
* Added union of request descriptors.
|
||||
* Added union of reply descriptors.
|
||||
* 10-31-07 02.00.04 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Added define for MPI2_VERSION_02_00.
|
||||
* Fixed the size of the FunctionDependent5 field in the
|
||||
* MPI2_DEFAULT_REPLY structure.
|
||||
* 12-18-07 02.00.05 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Removed the MPI-defined Fault Codes and extended the
|
||||
* product specific codes up to 0xEFFF.
|
||||
* Added a sixth key value for the WriteSequence register
|
||||
* and changed the flush value to 0x0.
|
||||
* Added message function codes for Diagnostic Buffer Post
|
||||
* and Diagnsotic Release.
|
||||
* New IOCStatus define: MPI2_IOCSTATUS_DIAGNOSTIC_RELEASED
|
||||
* Moved MPI2_VERSION_UNION from mpi2_ioc.h.
|
||||
* 02-29-08 02.00.06 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 03-03-08 02.00.07 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 05-21-08 02.00.08 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Added #defines for marking a reply descriptor as unused.
|
||||
* 06-27-08 02.00.09 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 10-02-08 02.00.10 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Moved LUN field defines from mpi2_init.h.
|
||||
* 01-19-09 02.00.11 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 05-06-09 02.00.12 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* In all request and reply descriptors, replaced VF_ID
|
||||
* field with MSIxIndex field.
|
||||
* Removed DevHandle field from
|
||||
* MPI2_SCSI_IO_SUCCESS_REPLY_DESCRIPTOR and made those
|
||||
* bytes reserved.
|
||||
* Added RAID Accelerator functionality.
|
||||
* 07-30-09 02.00.13 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 10-28-09 02.00.14 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Added MSI-x index mask and shift for Reply Post Host
|
||||
* Index register.
|
||||
* Added function code for Host Based Discovery Action.
|
||||
* 02-10-10 02.00.15 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Added define for MPI2_FUNCTION_PWR_MGMT_CONTROL.
|
||||
* Added defines for product-specific range of message
|
||||
* function codes, 0xF0 to 0xFF.
|
||||
* 05-12-10 02.00.16 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Added alternative defines for the SGE Direction bit.
|
||||
* 08-11-10 02.00.17 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* 11-10-10 02.00.18 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Added MPI2_IEEE_SGE_FLAGS_SYSTEMPLBCPI_ADDR define.
|
||||
* 02-23-11 02.00.19 Bumped MPI2_HEADER_VERSION_UNIT.
|
||||
* Added MPI2_FUNCTION_SEND_HOST_MESSAGE.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_cnfg.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 06-04-07 02.00.01 Added defines for SAS IO Unit Page 2 PhyFlags.
|
||||
* Added Manufacturing Page 11.
|
||||
* Added MPI2_SAS_EXPANDER0_FLAGS_CONNECTOR_END_DEVICE
|
||||
* define.
|
||||
* 06-26-07 02.00.02 Adding generic structure for product-specific
|
||||
* Manufacturing pages: MPI2_CONFIG_PAGE_MANUFACTURING_PS.
|
||||
* Rework of BIOS Page 2 configuration page.
|
||||
* Fixed MPI2_BIOSPAGE2_BOOT_DEVICE to be a union of the
|
||||
* forms.
|
||||
* Added configuration pages IOC Page 8 and Driver
|
||||
* Persistent Mapping Page 0.
|
||||
* 08-31-07 02.00.03 Modified configuration pages dealing with Integrated
|
||||
* RAID (Manufacturing Page 4, RAID Volume Pages 0 and 1,
|
||||
* RAID Physical Disk Pages 0 and 1, RAID Configuration
|
||||
* Page 0).
|
||||
* Added new value for AccessStatus field of SAS Device
|
||||
* Page 0 (_SATA_NEEDS_INITIALIZATION).
|
||||
* 10-31-07 02.00.04 Added missing SEPDevHandle field to
|
||||
* MPI2_CONFIG_PAGE_SAS_ENCLOSURE_0.
|
||||
* 12-18-07 02.00.05 Modified IO Unit Page 0 to use 32-bit version fields for
|
||||
* NVDATA.
|
||||
* Modified IOC Page 7 to use masks and added field for
|
||||
* SASBroadcastPrimitiveMasks.
|
||||
* Added MPI2_CONFIG_PAGE_BIOS_4.
|
||||
* Added MPI2_CONFIG_PAGE_LOG_0.
|
||||
* 02-29-08 02.00.06 Modified various names to make them 32-character unique.
|
||||
* Added SAS Device IDs.
|
||||
* Updated Integrated RAID configuration pages including
|
||||
* Manufacturing Page 4, IOC Page 6, and RAID Configuration
|
||||
* Page 0.
|
||||
* 05-21-08 02.00.07 Added define MPI2_MANPAGE4_MIX_SSD_SAS_SATA.
|
||||
* Added define MPI2_MANPAGE4_PHYSDISK_128MB_COERCION.
|
||||
* Fixed define MPI2_IOCPAGE8_FLAGS_ENCLOSURE_SLOT_MAPPING.
|
||||
* Added missing MaxNumRoutedSasAddresses field to
|
||||
* MPI2_CONFIG_PAGE_EXPANDER_0.
|
||||
* Added SAS Port Page 0.
|
||||
* Modified structure layout for
|
||||
* MPI2_CONFIG_PAGE_DRIVER_MAPPING_0.
|
||||
* 06-27-08 02.00.08 Changed MPI2_CONFIG_PAGE_RD_PDISK_1 to use
|
||||
* MPI2_RAID_PHYS_DISK1_PATH_MAX to size the array.
|
||||
* 10-02-08 02.00.09 Changed MPI2_RAID_PGAD_CONFIGNUM_MASK from 0x0000FFFF
|
||||
* to 0x000000FF.
|
||||
* Added two new values for the Physical Disk Coercion Size
|
||||
* bits in the Flags field of Manufacturing Page 4.
|
||||
* Added product-specific Manufacturing pages 16 to 31.
|
||||
* Modified Flags bits for controlling write cache on SATA
|
||||
* drives in IO Unit Page 1.
|
||||
* Added new bit to AdditionalControlFlags of SAS IO Unit
|
||||
* Page 1 to control Invalid Topology Correction.
|
||||
* Added SupportedPhysDisks field to RAID Volume Page 1 and
|
||||
* added related defines.
|
||||
* Added additional defines for RAID Volume Page 0
|
||||
* VolumeStatusFlags field.
|
||||
* Modified meaning of RAID Volume Page 0 VolumeSettings
|
||||
* define for auto-configure of hot-swap drives.
|
||||
* Added PhysDiskAttributes field (and related defines) to
|
||||
* RAID Physical Disk Page 0.
|
||||
* Added MPI2_SAS_PHYINFO_PHY_VACANT define.
|
||||
* Added three new DiscoveryStatus bits for SAS IO Unit
|
||||
* Page 0 and SAS Expander Page 0.
|
||||
* Removed multiplexing information from SAS IO Unit pages.
|
||||
* Added BootDeviceWaitTime field to SAS IO Unit Page 4.
|
||||
* Removed Zone Address Resolved bit from PhyInfo and from
|
||||
* Expander Page 0 Flags field.
|
||||
* Added two new AccessStatus values to SAS Device Page 0
|
||||
* for indicating routing problems. Added 3 reserved words
|
||||
* to this page.
|
||||
* 01-19-09 02.00.10 Fixed defines for GPIOVal field of IO Unit Page 3.
|
||||
* Inserted missing reserved field into structure for IOC
|
||||
* Page 6.
|
||||
* Added more pending task bits to RAID Volume Page 0
|
||||
* VolumeStatusFlags defines.
|
||||
* Added MPI2_PHYSDISK0_STATUS_FLAG_NOT_CERTIFIED define.
|
||||
* Added a new DiscoveryStatus bit for SAS IO Unit Page 0
|
||||
* and SAS Expander Page 0 to flag a downstream initiator
|
||||
* when in simplified routing mode.
|
||||
* Removed SATA Init Failure defines for DiscoveryStatus
|
||||
* fields of SAS IO Unit Page 0 and SAS Expander Page 0.
|
||||
* Added MPI2_SAS_DEVICE0_ASTATUS_DEVICE_BLOCKED define.
|
||||
* Added PortGroups, DmaGroup, and ControlGroup fields to
|
||||
* SAS Device Page 0.
|
||||
* 05-06-09 02.00.11 Added structures and defines for IO Unit Page 5 and IO
|
||||
* Unit Page 6.
|
||||
* Added expander reduced functionality data to SAS
|
||||
* Expander Page 0.
|
||||
* Added SAS PHY Page 2 and SAS PHY Page 3.
|
||||
* 07-30-09 02.00.12 Added IO Unit Page 7.
|
||||
* Added new device ids.
|
||||
* Added SAS IO Unit Page 5.
|
||||
* Added partial and slumber power management capable flags
|
||||
* to SAS Device Page 0 Flags field.
|
||||
* Added PhyInfo defines for power condition.
|
||||
* Added Ethernet configuration pages.
|
||||
* 10-28-09 02.00.13 Added MPI2_IOUNITPAGE1_ENABLE_HOST_BASED_DISCOVERY.
|
||||
* Added SAS PHY Page 4 structure and defines.
|
||||
* 02-10-10 02.00.14 Modified the comments for the configuration page
|
||||
* structures that contain an array of data. The host
|
||||
* should use the "count" field in the page data (e.g. the
|
||||
* NumPhys field) to determine the number of valid elements
|
||||
* in the array.
|
||||
* Added/modified some MPI2_MFGPAGE_DEVID_SAS defines.
|
||||
* Added PowerManagementCapabilities to IO Unit Page 7.
|
||||
* Added PortWidthModGroup field to
|
||||
* MPI2_SAS_IO_UNIT5_PHY_PM_SETTINGS.
|
||||
* Added MPI2_CONFIG_PAGE_SASIOUNIT_6 and related defines.
|
||||
* Added MPI2_CONFIG_PAGE_SASIOUNIT_7 and related defines.
|
||||
* Added MPI2_CONFIG_PAGE_SASIOUNIT_8 and related defines.
|
||||
* 05-12-10 02.00.15 Added MPI2_RAIDVOL0_STATUS_FLAG_VOL_NOT_CONSISTENT
|
||||
* define.
|
||||
* Added MPI2_PHYSDISK0_INCOMPATIBLE_MEDIA_TYPE define.
|
||||
* Added MPI2_SAS_NEG_LINK_RATE_UNSUPPORTED_PHY define.
|
||||
* 08-11-10 02.00.16 Removed IO Unit Page 1 device path (multi-pathing)
|
||||
* defines.
|
||||
* 11-10-10 02.00.17 Added ReceptacleID field (replacing Reserved1) to
|
||||
* MPI2_MANPAGE7_CONNECTOR_INFO and reworked defines for
|
||||
* the Pinout field.
|
||||
* Added BoardTemperature and BoardTemperatureUnits fields
|
||||
* to MPI2_CONFIG_PAGE_IO_UNIT_7.
|
||||
* Added MPI2_CONFIG_EXTPAGETYPE_EXT_MANUFACTURING define
|
||||
* and MPI2_CONFIG_PAGE_EXT_MAN_PS structure.
|
||||
* 02-23-11 02.00.18 Added ProxyVF_ID field to MPI2_CONFIG_REQUEST.
|
||||
* Added IO Unit Page 8, IO Unit Page 9,
|
||||
* and IO Unit Page 10.
|
||||
* Added SASNotifyPrimitiveMasks field to
|
||||
* MPI2_CONFIG_PAGE_IOC_7.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_init.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 10-31-07 02.00.01 Fixed name for pMpi2SCSITaskManagementRequest_t.
|
||||
* 12-18-07 02.00.02 Modified Task Management Target Reset Method defines.
|
||||
* 02-29-08 02.00.03 Added Query Task Set and Query Unit Attention.
|
||||
* 03-03-08 02.00.04 Fixed name of struct _MPI2_SCSI_TASK_MANAGE_REPLY.
|
||||
* 05-21-08 02.00.05 Fixed typo in name of Mpi2SepRequest_t.
|
||||
* 10-02-08 02.00.06 Removed Untagged and No Disconnect values from SCSI IO
|
||||
* Control field Task Attribute flags.
|
||||
* Moved LUN field defines to mpi2.h becasue they are
|
||||
* common to many structures.
|
||||
* 05-06-09 02.00.07 Changed task management type of Query Unit Attention to
|
||||
* Query Asynchronous Event.
|
||||
* Defined two new bits in the SlotStatus field of the SCSI
|
||||
* Enclosure Processor Request and Reply.
|
||||
* 10-28-09 02.00.08 Added defines for decoding the ResponseInfo bytes for
|
||||
* both SCSI IO Error Reply and SCSI Task Management Reply.
|
||||
* Added ResponseInfo field to MPI2_SCSI_TASK_MANAGE_REPLY.
|
||||
* Added MPI2_SCSITASKMGMT_RSP_TM_OVERLAPPED_TAG define.
|
||||
* 02-10-10 02.00.09 Removed unused structure that had "#if 0" around it.
|
||||
* 05-12-10 02.00.10 Added optional vendor-unique region to SCSI IO Request.
|
||||
* 11-10-10 02.00.11 Added MPI2_SCSIIO_NUM_SGLOFFSETS define.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_ioc.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 06-04-07 02.00.01 In IOCFacts Reply structure, renamed MaxDevices to
|
||||
* MaxTargets.
|
||||
* Added TotalImageSize field to FWDownload Request.
|
||||
* Added reserved words to FWUpload Request.
|
||||
* 06-26-07 02.00.02 Added IR Configuration Change List Event.
|
||||
* 08-31-07 02.00.03 Removed SystemReplyQueueDepth field from the IOCInit
|
||||
* request and replaced it with
|
||||
* ReplyDescriptorPostQueueDepth and ReplyFreeQueueDepth.
|
||||
* Replaced the MinReplyQueueDepth field of the IOCFacts
|
||||
* reply with MaxReplyDescriptorPostQueueDepth.
|
||||
* Added MPI2_RDPQ_DEPTH_MIN define to specify the minimum
|
||||
* depth for the Reply Descriptor Post Queue.
|
||||
* Added SASAddress field to Initiator Device Table
|
||||
* Overflow Event data.
|
||||
* 10-31-07 02.00.04 Added ReasonCode MPI2_EVENT_SAS_INIT_RC_NOT_RESPONDING
|
||||
* for SAS Initiator Device Status Change Event data.
|
||||
* Modified Reason Code defines for SAS Topology Change
|
||||
* List Event data, including adding a bit for PHY Vacant
|
||||
* status, and adding a mask for the Reason Code.
|
||||
* Added define for
|
||||
* MPI2_EVENT_SAS_TOPO_ES_DELAY_NOT_RESPONDING.
|
||||
* Added define for MPI2_EXT_IMAGE_TYPE_MEGARAID.
|
||||
* 12-18-07 02.00.05 Added Boot Status defines for the IOCExceptions field of
|
||||
* the IOCFacts Reply.
|
||||
* Removed MPI2_IOCFACTS_CAPABILITY_EXTENDED_BUFFER define.
|
||||
* Moved MPI2_VERSION_UNION to mpi2.h.
|
||||
* Changed MPI2_EVENT_NOTIFICATION_REQUEST to use masks
|
||||
* instead of enables, and added SASBroadcastPrimitiveMasks
|
||||
* field.
|
||||
* Added Log Entry Added Event and related structure.
|
||||
* 02-29-08 02.00.06 Added define MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID.
|
||||
* Removed define MPI2_IOCFACTS_PROTOCOL_SMP_TARGET.
|
||||
* Added MaxVolumes and MaxPersistentEntries fields to
|
||||
* IOCFacts reply.
|
||||
* Added ProtocalFlags and IOCCapabilities fields to
|
||||
* MPI2_FW_IMAGE_HEADER.
|
||||
* Removed MPI2_PORTENABLE_FLAGS_ENABLE_SINGLE_PORT.
|
||||
* 03-03-08 02.00.07 Fixed MPI2_FW_IMAGE_HEADER by changing Reserved26 to
|
||||
* a U16 (from a U32).
|
||||
* Removed extra 's' from EventMasks name.
|
||||
* 06-27-08 02.00.08 Fixed an offset in a comment.
|
||||
* 10-02-08 02.00.09 Removed SystemReplyFrameSize from MPI2_IOC_INIT_REQUEST.
|
||||
* Removed CurReplyFrameSize from MPI2_IOC_FACTS_REPLY and
|
||||
* renamed MinReplyFrameSize to ReplyFrameSize.
|
||||
* Added MPI2_IOCFACTS_EXCEPT_IR_FOREIGN_CONFIG_MAX.
|
||||
* Added two new RAIDOperation values for Integrated RAID
|
||||
* Operations Status Event data.
|
||||
* Added four new IR Configuration Change List Event data
|
||||
* ReasonCode values.
|
||||
* Added two new ReasonCode defines for SAS Device Status
|
||||
* Change Event data.
|
||||
* Added three new DiscoveryStatus bits for the SAS
|
||||
* Discovery event data.
|
||||
* Added Multiplexing Status Change bit to the PhyStatus
|
||||
* field of the SAS Topology Change List event data.
|
||||
* Removed define for MPI2_INIT_IMAGE_BOOTFLAGS_XMEMCOPY.
|
||||
* BootFlags are now product-specific.
|
||||
* Added defines for the indivdual signature bytes
|
||||
* for MPI2_INIT_IMAGE_FOOTER.
|
||||
* 01-19-09 02.00.10 Added MPI2_IOCFACTS_CAPABILITY_EVENT_REPLAY define.
|
||||
* Added MPI2_EVENT_SAS_DISC_DS_DOWNSTREAM_INITIATOR
|
||||
* define.
|
||||
* Added MPI2_EVENT_SAS_DEV_STAT_RC_SATA_INIT_FAILURE
|
||||
* define.
|
||||
* Removed MPI2_EVENT_SAS_DISC_DS_SATA_INIT_FAILURE define.
|
||||
* 05-06-09 02.00.11 Added MPI2_IOCFACTS_CAPABILITY_RAID_ACCELERATOR define.
|
||||
* Added MPI2_IOCFACTS_CAPABILITY_MSI_X_INDEX define.
|
||||
* Added two new reason codes for SAS Device Status Change
|
||||
* Event.
|
||||
* Added new event: SAS PHY Counter.
|
||||
* 07-30-09 02.00.12 Added GPIO Interrupt event define and structure.
|
||||
* Added MPI2_IOCFACTS_CAPABILITY_EXTENDED_BUFFER define.
|
||||
* Added new product id family for 2208.
|
||||
* 10-28-09 02.00.13 Added HostMSIxVectors field to MPI2_IOC_INIT_REQUEST.
|
||||
* Added MaxMSIxVectors field to MPI2_IOC_FACTS_REPLY.
|
||||
* Added MinDevHandle field to MPI2_IOC_FACTS_REPLY.
|
||||
* Added MPI2_IOCFACTS_CAPABILITY_HOST_BASED_DISCOVERY.
|
||||
* Added MPI2_EVENT_HOST_BASED_DISCOVERY_PHY define.
|
||||
* Added MPI2_EVENT_SAS_TOPO_ES_NO_EXPANDER define.
|
||||
* Added Host Based Discovery Phy Event data.
|
||||
* Added defines for ProductID Product field
|
||||
* (MPI2_FW_HEADER_PID_).
|
||||
* Modified values for SAS ProductID Family
|
||||
* (MPI2_FW_HEADER_PID_FAMILY_).
|
||||
* 02-10-10 02.00.14 Added SAS Quiesce Event structure and defines.
|
||||
* Added PowerManagementControl Request structures and
|
||||
* defines.
|
||||
* 05-12-10 02.00.15 Marked Task Set Full Event as obsolete.
|
||||
* Added MPI2_EVENT_SAS_TOPO_LR_UNSUPPORTED_PHY define.
|
||||
* 11-10-10 02.00.16 Added MPI2_FW_DOWNLOAD_ITYPE_MIN_PRODUCT_SPECIFIC.
|
||||
* 02-23-11 02.00.17 Added SAS NOTIFY Primitive event, and added
|
||||
* SASNotifyPrimitiveMasks field to
|
||||
* MPI2_EVENT_NOTIFICATION_REQUEST.
|
||||
* Added Temperature Threshold Event.
|
||||
* Added Host Message Event.
|
||||
* Added Send Host Message request and reply.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_raid.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 08-31-07 02.00.01 Modifications to RAID Action request and reply,
|
||||
* including the Actions and ActionData.
|
||||
* 02-29-08 02.00.02 Added MPI2_RAID_ACTION_ADATA_DISABL_FULL_REBUILD.
|
||||
* 05-21-08 02.00.03 Added MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS so that
|
||||
* the PhysDisk array in MPI2_RAID_VOLUME_CREATION_STRUCT
|
||||
* can be sized by the build environment.
|
||||
* 07-30-09 02.00.04 Added proper define for the Use Default Settings bit of
|
||||
* VolumeCreationFlags and marked the old one as obsolete.
|
||||
* 05-12-10 02.00.05 Added MPI2_RAID_VOL_FLAGS_OP_MDC define.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_sas.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 06-26-07 02.00.01 Added Clear All Persistent Operation to SAS IO Unit
|
||||
* Control Request.
|
||||
* 10-02-08 02.00.02 Added Set IOC Parameter Operation to SAS IO Unit Control
|
||||
* Request.
|
||||
* 10-28-09 02.00.03 Changed the type of SGL in MPI2_SATA_PASSTHROUGH_REQUEST
|
||||
* to MPI2_SGE_IO_UNION since it supports chained SGLs.
|
||||
* 05-12-10 02.00.04 Modified some comments.
|
||||
* 08-11-10 02.00.05 Added NCQ operations to SAS IO Unit Control.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_targ.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 08-31-07 02.00.01 Added Command Buffer Data Location Address Space bits to
|
||||
* BufferPostFlags field of CommandBufferPostBase Request.
|
||||
* 02-29-08 02.00.02 Modified various names to make them 32-character unique.
|
||||
* 10-02-08 02.00.03 Removed NextCmdBufferOffset from
|
||||
* MPI2_TARGET_CMD_BUF_POST_BASE_REQUEST.
|
||||
* Target Status Send Request only takes a single SGE for
|
||||
* response data.
|
||||
* 02-10-10 02.00.04 Added comment to MPI2_TARGET_SSP_RSP_IU structure.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_tool.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 12-18-07 02.00.01 Added Diagnostic Buffer Post and Diagnostic Release
|
||||
* structures and defines.
|
||||
* 02-29-08 02.00.02 Modified various names to make them 32-character unique.
|
||||
* 05-06-09 02.00.03 Added ISTWI Read Write Tool and Diagnostic CLI Tool.
|
||||
* 07-30-09 02.00.04 Added ExtendedType field to DiagnosticBufferPost request
|
||||
* and reply messages.
|
||||
* Added MPI2_DIAG_BUF_TYPE_EXTENDED.
|
||||
* Incremented MPI2_DIAG_BUF_TYPE_COUNT.
|
||||
* 05-12-10 02.00.05 Added Diagnostic Data Upload tool.
|
||||
* 08-11-10 02.00.06 Added defines that were missing for Diagnostic Buffer
|
||||
* Post Request.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_type.h
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_ra.h
|
||||
* 05-06-09 02.00.00 Initial version.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi2_hbd.h
|
||||
* 10-28-09 02.00.00 Initial version.
|
||||
* 08-11-10 02.00.01 Removed PortGroups, DmaGroup, and ControlGroup from
|
||||
* HBD Action request, replaced by AdditionalInfo field.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
|
||||
mpi2_history.txt Parts list history
|
||||
|
||||
Filename 02.00.19 02.00.18
|
||||
---------- -------- --------
|
||||
mpi2.h 02.00.19 02.00.18
|
||||
mpi2_cnfg.h 02.00.18 02.00.17
|
||||
mpi2_init.h 02.00.11 02.00.11
|
||||
mpi2_ioc.h 02.00.17 02.00.16
|
||||
mpi2_raid.h 02.00.05 02.00.05
|
||||
mpi2_sas.h 02.00.05 02.00.05
|
||||
mpi2_targ.h 02.00.04 02.00.04
|
||||
mpi2_tool.h 02.00.06 02.00.06
|
||||
mpi2_type.h 02.00.00 02.00.00
|
||||
mpi2_ra.h 02.00.00 02.00.00
|
||||
mpi2_hbd.h 02.00.01 02.00.01
|
||||
|
||||
Filename 02.00.17 02.00.16 02.00.15 02.00.14 02.00.13 02.00.12
|
||||
---------- -------- -------- -------- -------- -------- --------
|
||||
mpi2.h 02.00.17 02.00.16 02.00.15 02.00.14 02.00.13 02.00.12
|
||||
mpi2_cnfg.h 02.00.16 02.00.15 02.00.14 02.00.13 02.00.12 02.00.11
|
||||
mpi2_init.h 02.00.10 02.00.10 02.00.09 02.00.08 02.00.07 02.00.07
|
||||
mpi2_ioc.h 02.00.15 02.00.15 02.00.14 02.00.13 02.00.12 02.00.11
|
||||
mpi2_raid.h 02.00.05 02.00.05 02.00.04 02.00.04 02.00.04 02.00.03
|
||||
mpi2_sas.h 02.00.05 02.00.04 02.00.03 02.00.03 02.00.02 02.00.02
|
||||
mpi2_targ.h 02.00.04 02.00.04 02.00.04 02.00.03 02.00.03 02.00.03
|
||||
mpi2_tool.h 02.00.06 02.00.05 02.00.04 02.00.04 02.00.04 02.00.03
|
||||
mpi2_type.h 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00
|
||||
mpi2_ra.h 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00
|
||||
mpi2_hbd.h 02.00.01 02.00.00 02.00.00 02.00.00
|
||||
|
||||
Filename 02.00.11 02.00.10 02.00.09 02.00.08 02.00.07 02.00.06
|
||||
---------- -------- -------- -------- -------- -------- --------
|
||||
mpi2.h 02.00.11 02.00.10 02.00.09 02.00.08 02.00.07 02.00.06
|
||||
mpi2_cnfg.h 02.00.10 02.00.09 02.00.08 02.00.07 02.00.06 02.00.06
|
||||
mpi2_init.h 02.00.06 02.00.06 02.00.05 02.00.05 02.00.04 02.00.03
|
||||
mpi2_ioc.h 02.00.10 02.00.09 02.00.08 02.00.07 02.00.07 02.00.06
|
||||
mpi2_raid.h 02.00.03 02.00.03 02.00.03 02.00.03 02.00.02 02.00.02
|
||||
mpi2_sas.h 02.00.02 02.00.02 02.00.01 02.00.01 02.00.01 02.00.01
|
||||
mpi2_targ.h 02.00.03 02.00.03 02.00.02 02.00.02 02.00.02 02.00.02
|
||||
mpi2_tool.h 02.00.02 02.00.02 02.00.02 02.00.02 02.00.02 02.00.02
|
||||
mpi2_type.h 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00
|
||||
|
||||
Filename 02.00.05 02.00.04 02.00.03 02.00.02 02.00.01 02.00.00
|
||||
---------- -------- -------- -------- -------- -------- --------
|
||||
mpi2.h 02.00.05 02.00.04 02.00.03 02.00.02 02.00.01 02.00.00
|
||||
mpi2_cnfg.h 02.00.05 02.00.04 02.00.03 02.00.02 02.00.01 02.00.00
|
||||
mpi2_init.h 02.00.02 02.00.01 02.00.00 02.00.00 02.00.00 02.00.00
|
||||
mpi2_ioc.h 02.00.05 02.00.04 02.00.03 02.00.02 02.00.01 02.00.00
|
||||
mpi2_raid.h 02.00.01 02.00.01 02.00.01 02.00.00 02.00.00 02.00.00
|
||||
mpi2_sas.h 02.00.01 02.00.01 02.00.01 02.00.01 02.00.00 02.00.00
|
||||
mpi2_targ.h 02.00.01 02.00.01 02.00.01 02.00.00 02.00.00 02.00.00
|
||||
mpi2_tool.h 02.00.01 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00
|
||||
mpi2_type.h 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00 02.00.00
|
||||
|
||||
571
source/lsi/mpi2_init.h
Executable file
571
source/lsi/mpi2_init.h
Executable file
@@ -0,0 +1,571 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2010 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_init.h
|
||||
* Title: MPI SCSI initiator mode messages and structures
|
||||
* Creation Date: June 23, 2006
|
||||
*
|
||||
* mpi2_init.h Version: 02.00.xx
|
||||
*
|
||||
* NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25
|
||||
* prefix are for use only on MPI v2.5 products, and must not be used
|
||||
* with MPI v2.0 products. Unless otherwise noted, names beginning with
|
||||
* MPI2 or Mpi2 are for use with both MPI v2.0 and MPI v2.5 products.
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 10-31-07 02.00.01 Fixed name for pMpi2SCSITaskManagementRequest_t.
|
||||
* 12-18-07 02.00.02 Modified Task Management Target Reset Method defines.
|
||||
* 02-29-08 02.00.03 Added Query Task Set and Query Unit Attention.
|
||||
* 03-03-08 02.00.04 Fixed name of struct _MPI2_SCSI_TASK_MANAGE_REPLY.
|
||||
* 05-21-08 02.00.05 Fixed typo in name of Mpi2SepRequest_t.
|
||||
* 10-02-08 02.00.06 Removed Untagged and No Disconnect values from SCSI IO
|
||||
* Control field Task Attribute flags.
|
||||
* Moved LUN field defines to mpi2.h becasue they are
|
||||
* common to many structures.
|
||||
* 05-06-09 02.00.07 Changed task management type of Query Unit Attention to
|
||||
* Query Asynchronous Event.
|
||||
* Defined two new bits in the SlotStatus field of the SCSI
|
||||
* Enclosure Processor Request and Reply.
|
||||
* 10-28-09 02.00.08 Added defines for decoding the ResponseInfo bytes for
|
||||
* both SCSI IO Error Reply and SCSI Task Management Reply.
|
||||
* Added ResponseInfo field to MPI2_SCSI_TASK_MANAGE_REPLY.
|
||||
* Added MPI2_SCSITASKMGMT_RSP_TM_OVERLAPPED_TAG define.
|
||||
* 02-10-10 02.00.09 Removed unused structure that had "#if 0" around it.
|
||||
* 05-12-10 02.00.10 Added optional vendor-unique region to SCSI IO Request.
|
||||
* 11-10-10 02.00.11 Added MPI2_SCSIIO_NUM_SGLOFFSETS define.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_INIT_H
|
||||
#define MPI2_INIT_H
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* SCSI Initiator Messages
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* SCSI IO messages and associated structures
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_SCSI_IO_CDB_EEDP32
|
||||
{
|
||||
U8 CDB[20]; /* 0x00 */
|
||||
U32 PrimaryReferenceTag; /* 0x14 */
|
||||
U16 PrimaryApplicationTag; /* 0x18 */
|
||||
U16 PrimaryApplicationTagMask; /* 0x1A */
|
||||
U32 TransferLength; /* 0x1C */
|
||||
} MPI2_SCSI_IO_CDB_EEDP32, MPI2_POINTER PTR_MPI2_SCSI_IO_CDB_EEDP32,
|
||||
Mpi2ScsiIoCdbEedp32_t, MPI2_POINTER pMpi2ScsiIoCdbEedp32_t;
|
||||
|
||||
/* MPI v2.0 CDB field */
|
||||
typedef union _MPI2_SCSI_IO_CDB_UNION
|
||||
{
|
||||
U8 CDB32[32];
|
||||
MPI2_SCSI_IO_CDB_EEDP32 EEDP32;
|
||||
MPI2_SGE_SIMPLE_UNION SGE;
|
||||
} MPI2_SCSI_IO_CDB_UNION, MPI2_POINTER PTR_MPI2_SCSI_IO_CDB_UNION,
|
||||
Mpi2ScsiIoCdb_t, MPI2_POINTER pMpi2ScsiIoCdb_t;
|
||||
|
||||
/* MPI v2.0 SCSI IO Request Message */
|
||||
typedef struct _MPI2_SCSI_IO_REQUEST
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U32 SenseBufferLowAddress; /* 0x0C */
|
||||
U16 SGLFlags; /* 0x10 */
|
||||
U8 SenseBufferLength; /* 0x12 */
|
||||
U8 Reserved4; /* 0x13 */
|
||||
U8 SGLOffset0; /* 0x14 */
|
||||
U8 SGLOffset1; /* 0x15 */
|
||||
U8 SGLOffset2; /* 0x16 */
|
||||
U8 SGLOffset3; /* 0x17 */
|
||||
U32 SkipCount; /* 0x18 */
|
||||
U32 DataLength; /* 0x1C */
|
||||
U32 BidirectionalDataLength; /* 0x20 */
|
||||
U16 IoFlags; /* 0x24 */
|
||||
U16 EEDPFlags; /* 0x26 */
|
||||
U32 EEDPBlockSize; /* 0x28 */
|
||||
U32 SecondaryReferenceTag; /* 0x2C */
|
||||
U16 SecondaryApplicationTag; /* 0x30 */
|
||||
U16 ApplicationTagTranslationMask; /* 0x32 */
|
||||
U8 LUN[8]; /* 0x34 */
|
||||
U32 Control; /* 0x3C */
|
||||
MPI2_SCSI_IO_CDB_UNION CDB; /* 0x40 */
|
||||
|
||||
#ifdef MPI2_SCSI_IO_VENDOR_UNIQUE_REGION /* typically this is left undefined */
|
||||
MPI2_SCSI_IO_VENDOR_UNIQUE VendorRegion;
|
||||
#endif
|
||||
|
||||
MPI2_SGE_IO_UNION SGL; /* 0x60 */
|
||||
|
||||
} MPI2_SCSI_IO_REQUEST, MPI2_POINTER PTR_MPI2_SCSI_IO_REQUEST,
|
||||
Mpi2SCSIIORequest_t, MPI2_POINTER pMpi2SCSIIORequest_t;
|
||||
|
||||
/* SCSI IO MsgFlags bits */
|
||||
|
||||
/* MsgFlags for SenseBufferAddressSpace */
|
||||
#define MPI2_SCSIIO_MSGFLAGS_MASK_SENSE_ADDR (0x0C)
|
||||
#define MPI2_SCSIIO_MSGFLAGS_SYSTEM_SENSE_ADDR (0x00)
|
||||
#define MPI2_SCSIIO_MSGFLAGS_IOCDDR_SENSE_ADDR (0x04)
|
||||
#define MPI2_SCSIIO_MSGFLAGS_IOCPLB_SENSE_ADDR (0x08)
|
||||
#define MPI2_SCSIIO_MSGFLAGS_IOCPLBNTA_SENSE_ADDR (0x0C)
|
||||
|
||||
/* SCSI IO SGLFlags bits */
|
||||
|
||||
/* base values for Data Location Address Space */
|
||||
#define MPI2_SCSIIO_SGLFLAGS_ADDR_MASK (0x0C)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_SYSTEM_ADDR (0x00)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_IOCDDR_ADDR (0x04)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_IOCPLB_ADDR (0x08)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_IOCPLBNTA_ADDR (0x0C)
|
||||
|
||||
/* base values for Type */
|
||||
#define MPI2_SCSIIO_SGLFLAGS_TYPE_MASK (0x03)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_TYPE_MPI (0x00)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_TYPE_IEEE32 (0x01)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_TYPE_IEEE64 (0x02)
|
||||
|
||||
/* shift values for each sub-field */
|
||||
#define MPI2_SCSIIO_SGLFLAGS_SGL3_SHIFT (12)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_SGL2_SHIFT (8)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_SGL1_SHIFT (4)
|
||||
#define MPI2_SCSIIO_SGLFLAGS_SGL0_SHIFT (0)
|
||||
|
||||
/* number of SGLOffset fields */
|
||||
#define MPI2_SCSIIO_NUM_SGLOFFSETS (4)
|
||||
|
||||
/* SCSI IO IoFlags bits */
|
||||
|
||||
/* Large CDB Address Space */
|
||||
#define MPI2_SCSIIO_CDB_ADDR_MASK (0x6000)
|
||||
#define MPI2_SCSIIO_CDB_ADDR_SYSTEM (0x0000)
|
||||
#define MPI2_SCSIIO_CDB_ADDR_IOCDDR (0x2000)
|
||||
#define MPI2_SCSIIO_CDB_ADDR_IOCPLB (0x4000)
|
||||
#define MPI2_SCSIIO_CDB_ADDR_IOCPLBNTA (0x6000)
|
||||
|
||||
#define MPI2_SCSIIO_IOFLAGS_LARGE_CDB (0x1000)
|
||||
#define MPI2_SCSIIO_IOFLAGS_BIDIRECTIONAL (0x0800)
|
||||
#define MPI2_SCSIIO_IOFLAGS_MULTICAST (0x0400)
|
||||
#define MPI2_SCSIIO_IOFLAGS_CMD_DETERMINES_DATA_DIR (0x0200)
|
||||
#define MPI2_SCSIIO_IOFLAGS_CDBLENGTH_MASK (0x01FF)
|
||||
|
||||
/* SCSI IO EEDPFlags bits */
|
||||
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_INC_PRI_REFTAG (0x8000)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_INC_SEC_REFTAG (0x4000)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_INC_PRI_APPTAG (0x2000)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_INC_SEC_APPTAG (0x1000)
|
||||
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_CHECK_REFTAG (0x0400)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_CHECK_APPTAG (0x0200)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_CHECK_GUARD (0x0100)
|
||||
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_PASSTHRU_REFTAG (0x0008)
|
||||
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_MASK_OP (0x0007)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_NOOP_OP (0x0000)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_CHECK_OP (0x0001)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_STRIP_OP (0x0002)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_CHECK_REMOVE_OP (0x0003)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_INSERT_OP (0x0004)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_REPLACE_OP (0x0006)
|
||||
#define MPI2_SCSIIO_EEDPFLAGS_CHECK_REGEN_OP (0x0007)
|
||||
|
||||
/* SCSI IO LUN fields: use MPI2_LUN_ from mpi2.h */
|
||||
|
||||
/* SCSI IO Control bits */
|
||||
#define MPI2_SCSIIO_CONTROL_ADDCDBLEN_MASK (0xFC000000)
|
||||
#define MPI2_SCSIIO_CONTROL_ADDCDBLEN_SHIFT (26)
|
||||
|
||||
#define MPI2_SCSIIO_CONTROL_DATADIRECTION_MASK (0x03000000)
|
||||
#define MPI2_SCSIIO_CONTROL_NODATATRANSFER (0x00000000)
|
||||
#define MPI2_SCSIIO_CONTROL_WRITE (0x01000000)
|
||||
#define MPI2_SCSIIO_CONTROL_READ (0x02000000)
|
||||
#define MPI2_SCSIIO_CONTROL_BIDIRECTIONAL (0x03000000)
|
||||
|
||||
#define MPI2_SCSIIO_CONTROL_TASKPRI_MASK (0x00007800)
|
||||
#define MPI2_SCSIIO_CONTROL_TASKPRI_SHIFT (11)
|
||||
|
||||
#define MPI2_SCSIIO_CONTROL_TASKATTRIBUTE_MASK (0x00000700)
|
||||
#define MPI2_SCSIIO_CONTROL_SIMPLEQ (0x00000000)
|
||||
#define MPI2_SCSIIO_CONTROL_HEADOFQ (0x00000100)
|
||||
#define MPI2_SCSIIO_CONTROL_ORDEREDQ (0x00000200)
|
||||
#define MPI2_SCSIIO_CONTROL_ACAQ (0x00000400)
|
||||
|
||||
#define MPI2_SCSIIO_CONTROL_TLR_MASK (0x000000C0)
|
||||
#define MPI2_SCSIIO_CONTROL_NO_TLR (0x00000000)
|
||||
#define MPI2_SCSIIO_CONTROL_TLR_ON (0x00000040)
|
||||
#define MPI2_SCSIIO_CONTROL_TLR_OFF (0x00000080)
|
||||
|
||||
|
||||
/* MPI v2.5 CDB field */
|
||||
typedef union _MPI25_SCSI_IO_CDB_UNION
|
||||
{
|
||||
U8 CDB32[32];
|
||||
MPI2_SCSI_IO_CDB_EEDP32 EEDP32;
|
||||
MPI2_IEEE_SGE_SIMPLE64 SGE;
|
||||
} MPI25_SCSI_IO_CDB_UNION, MPI2_POINTER PTR_MPI25_SCSI_IO_CDB_UNION,
|
||||
Mpi25ScsiIoCdb_t, MPI2_POINTER pMpi25ScsiIoCdb_t;
|
||||
|
||||
/* MPI v2.5 SCSI IO Request Message */
|
||||
typedef struct _MPI25_SCSI_IO_REQUEST
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U32 SenseBufferLowAddress; /* 0x0C */
|
||||
U8 DMAFlags; /* 0x10 */
|
||||
U8 Reserved5; /* 0x11 */
|
||||
U8 SenseBufferLength; /* 0x12 */
|
||||
U8 Reserved4; /* 0x13 */
|
||||
U8 SGLOffset0; /* 0x14 */
|
||||
U8 SGLOffset1; /* 0x15 */
|
||||
U8 SGLOffset2; /* 0x16 */
|
||||
U8 SGLOffset3; /* 0x17 */
|
||||
U32 SkipCount; /* 0x18 */
|
||||
U32 DataLength; /* 0x1C */
|
||||
U32 BidirectionalDataLength; /* 0x20 */
|
||||
U16 IoFlags; /* 0x24 */
|
||||
U16 EEDPFlags; /* 0x26 */
|
||||
U16 EEDPBlockSize; /* 0x28 */
|
||||
U16 Reserved6; /* 0x2A */
|
||||
U32 SecondaryReferenceTag; /* 0x2C */
|
||||
U16 SecondaryApplicationTag; /* 0x30 */
|
||||
U16 ApplicationTagTranslationMask; /* 0x32 */
|
||||
U8 LUN[8]; /* 0x34 */
|
||||
U32 Control; /* 0x3C */
|
||||
MPI25_SCSI_IO_CDB_UNION CDB; /* 0x40 */
|
||||
|
||||
#ifdef MPI25_SCSI_IO_VENDOR_UNIQUE_REGION /* typically this is left undefined */
|
||||
MPI25_SCSI_IO_VENDOR_UNIQUE VendorRegion;
|
||||
#endif
|
||||
|
||||
MPI25_SGE_IO_UNION SGL; /* 0x60 */
|
||||
|
||||
} MPI25_SCSI_IO_REQUEST, MPI2_POINTER PTR_MPI25_SCSI_IO_REQUEST,
|
||||
Mpi25SCSIIORequest_t, MPI2_POINTER pMpi25SCSIIORequest_t;
|
||||
|
||||
/* use MPI2_SCSIIO_MSGFLAGS_ defines for the MsgFlags field */
|
||||
|
||||
/* Defines for the DMAFlags field
|
||||
* Each setting affects 4 SGLS, from SGL0 to SGL3.
|
||||
* D = Data
|
||||
* C = Cache DIF
|
||||
* I = Interleaved
|
||||
* H = Host DIF
|
||||
*/
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_MASK (0x0F)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_D_D_D (0x00)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_D_D_C (0x01)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_D_D_I (0x02)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_D_C_C (0x03)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_D_C_I (0x04)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_D_I_I (0x05)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_C_C_C (0x06)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_C_C_I (0x07)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_C_I_I (0x08)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_I_I_I (0x09)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_H_D_D (0x0A)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_H_D_C (0x0B)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_H_D_I (0x0C)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_H_C_C (0x0D)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_H_C_I (0x0E)
|
||||
#define MPI25_SCSIIO_DMAFLAGS_OP_D_H_I_I (0x0F)
|
||||
|
||||
/* number of SGLOffset fields */
|
||||
#define MPI25_SCSIIO_NUM_SGLOFFSETS (4)
|
||||
|
||||
/* defines for the IoFlags field */
|
||||
#define MPI25_SCSIIO_IOFLAGS_IO_PATH_MASK (0xC000)
|
||||
#define MPI25_SCSIIO_IOFLAGS_NORMAL_PATH (0x0000)
|
||||
#define MPI25_SCSIIO_IOFLAGS_FAST_PATH (0x4000)
|
||||
|
||||
#define MPI25_SCSIIO_IOFLAGS_LARGE_CDB (0x1000)
|
||||
#define MPI25_SCSIIO_IOFLAGS_BIDIRECTIONAL (0x0800)
|
||||
#define MPI25_SCSIIO_IOFLAGS_CMD_DETERMINES_DATA_DIR (0x0200)
|
||||
#define MPI25_SCSIIO_IOFLAGS_CDBLENGTH_MASK (0x01FF)
|
||||
|
||||
/* MPI v2.5 defines for the EEDPFlags bits */
|
||||
/* use MPI2_SCSIIO_EEDPFLAGS_ defines for the other EEDPFlags bits */
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_ESCAPE_MODE_MASK (0x00C0)
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_COMPATIBLE_MODE (0x0000)
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_DO_NOT_DISABLE_MODE (0x0040)
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_APPTAG_DISABLE_MODE (0x0080)
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_APPTAG_REFTAG_DISABLE_MODE (0x00C0)
|
||||
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_HOST_GUARD_METHOD_MASK (0x0030)
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_T10_CRC_HOST_GUARD (0x0000)
|
||||
#define MPI25_SCSIIO_EEDPFLAGS_IP_CHKSUM_HOST_GUARD (0x0010)
|
||||
|
||||
/* use MPI2_LUN_ defines from mpi2.h for the LUN field */
|
||||
|
||||
/* use MPI2_SCSIIO_CONTROL_ defines for the Control field */
|
||||
|
||||
|
||||
/* NOTE: The SCSI IO Reply is the same for MPI 2.0 and MPI 2.5, so
|
||||
* MPI2_SCSI_IO_REPLY is used for both.
|
||||
*/
|
||||
|
||||
/* SCSI IO Error Reply Message */
|
||||
typedef struct _MPI2_SCSI_IO_REPLY
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U8 SCSIStatus; /* 0x0C */
|
||||
U8 SCSIState; /* 0x0D */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 TransferCount; /* 0x14 */
|
||||
U32 SenseCount; /* 0x18 */
|
||||
U32 ResponseInfo; /* 0x1C */
|
||||
U16 TaskTag; /* 0x20 */
|
||||
U16 Reserved4; /* 0x22 */
|
||||
U32 BidirectionalTransferCount; /* 0x24 */
|
||||
U32 Reserved5; /* 0x28 */
|
||||
U32 Reserved6; /* 0x2C */
|
||||
} MPI2_SCSI_IO_REPLY, MPI2_POINTER PTR_MPI2_SCSI_IO_REPLY,
|
||||
Mpi2SCSIIOReply_t, MPI2_POINTER pMpi2SCSIIOReply_t;
|
||||
|
||||
/* SCSI IO Reply SCSIStatus values (SAM-4 status codes) */
|
||||
|
||||
#define MPI2_SCSI_STATUS_GOOD (0x00)
|
||||
#define MPI2_SCSI_STATUS_CHECK_CONDITION (0x02)
|
||||
#define MPI2_SCSI_STATUS_CONDITION_MET (0x04)
|
||||
#define MPI2_SCSI_STATUS_BUSY (0x08)
|
||||
#define MPI2_SCSI_STATUS_INTERMEDIATE (0x10)
|
||||
#define MPI2_SCSI_STATUS_INTERMEDIATE_CONDMET (0x14)
|
||||
#define MPI2_SCSI_STATUS_RESERVATION_CONFLICT (0x18)
|
||||
#define MPI2_SCSI_STATUS_COMMAND_TERMINATED (0x22) /* obsolete */
|
||||
#define MPI2_SCSI_STATUS_TASK_SET_FULL (0x28)
|
||||
#define MPI2_SCSI_STATUS_ACA_ACTIVE (0x30)
|
||||
#define MPI2_SCSI_STATUS_TASK_ABORTED (0x40)
|
||||
|
||||
/* SCSI IO Reply SCSIState flags */
|
||||
|
||||
#define MPI2_SCSI_STATE_RESPONSE_INFO_VALID (0x10)
|
||||
#define MPI2_SCSI_STATE_TERMINATED (0x08)
|
||||
#define MPI2_SCSI_STATE_NO_SCSI_STATUS (0x04)
|
||||
#define MPI2_SCSI_STATE_AUTOSENSE_FAILED (0x02)
|
||||
#define MPI2_SCSI_STATE_AUTOSENSE_VALID (0x01)
|
||||
|
||||
/* masks and shifts for the ResponseInfo field */
|
||||
|
||||
#define MPI2_SCSI_RI_MASK_REASONCODE (0x000000FF)
|
||||
#define MPI2_SCSI_RI_SHIFT_REASONCODE (0)
|
||||
|
||||
#define MPI2_SCSI_TASKTAG_UNKNOWN (0xFFFF)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* SCSI Task Management messages
|
||||
****************************************************************************/
|
||||
|
||||
/* SCSI Task Management Request Message */
|
||||
typedef struct _MPI2_SCSI_TASK_MANAGE_REQUEST
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U8 Reserved1; /* 0x04 */
|
||||
U8 TaskType; /* 0x05 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U8 LUN[8]; /* 0x0C */
|
||||
U32 Reserved4[7]; /* 0x14 */
|
||||
U16 TaskMID; /* 0x30 */
|
||||
U16 Reserved5; /* 0x32 */
|
||||
} MPI2_SCSI_TASK_MANAGE_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_SCSI_TASK_MANAGE_REQUEST,
|
||||
Mpi2SCSITaskManagementRequest_t,
|
||||
MPI2_POINTER pMpi2SCSITaskManagementRequest_t;
|
||||
|
||||
/* TaskType values */
|
||||
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK (0x01)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_ABRT_TASK_SET (0x02)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET (0x03)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET (0x05)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_CLEAR_TASK_SET (0x06)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_QUERY_TASK (0x07)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_CLR_ACA (0x08)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_QRY_TASK_SET (0x09)
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_QRY_ASYNC_EVENT (0x0A)
|
||||
|
||||
/* obsolete TaskType name */
|
||||
#define MPI2_SCSITASKMGMT_TASKTYPE_QRY_UNIT_ATTENTION (MPI2_SCSITASKMGMT_TASKTYPE_QRY_ASYNC_EVENT)
|
||||
|
||||
/* MsgFlags bits */
|
||||
|
||||
#define MPI2_SCSITASKMGMT_MSGFLAGS_MASK_TARGET_RESET (0x18)
|
||||
#define MPI2_SCSITASKMGMT_MSGFLAGS_LINK_RESET (0x00)
|
||||
#define MPI2_SCSITASKMGMT_MSGFLAGS_NEXUS_RESET_SRST (0x08)
|
||||
#define MPI2_SCSITASKMGMT_MSGFLAGS_SAS_HARD_LINK_RESET (0x10)
|
||||
|
||||
#define MPI2_SCSITASKMGMT_MSGFLAGS_DO_NOT_SEND_TASK_IU (0x01)
|
||||
|
||||
|
||||
|
||||
/* SCSI Task Management Reply Message */
|
||||
typedef struct _MPI2_SCSI_TASK_MANAGE_REPLY
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U8 ResponseCode; /* 0x04 */
|
||||
U8 TaskType; /* 0x05 */
|
||||
U8 Reserved1; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
U16 Reserved3; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 TerminationCount; /* 0x14 */
|
||||
U32 ResponseInfo; /* 0x18 */
|
||||
} MPI2_SCSI_TASK_MANAGE_REPLY,
|
||||
MPI2_POINTER PTR_MPI2_SCSI_TASK_MANAGE_REPLY,
|
||||
Mpi2SCSITaskManagementReply_t, MPI2_POINTER pMpi2SCSIManagementReply_t;
|
||||
|
||||
/* ResponseCode values */
|
||||
|
||||
#define MPI2_SCSITASKMGMT_RSP_TM_COMPLETE (0x00)
|
||||
#define MPI2_SCSITASKMGMT_RSP_INVALID_FRAME (0x02)
|
||||
#define MPI2_SCSITASKMGMT_RSP_TM_NOT_SUPPORTED (0x04)
|
||||
#define MPI2_SCSITASKMGMT_RSP_TM_FAILED (0x05)
|
||||
#define MPI2_SCSITASKMGMT_RSP_TM_SUCCEEDED (0x08)
|
||||
#define MPI2_SCSITASKMGMT_RSP_TM_INVALID_LUN (0x09)
|
||||
#define MPI2_SCSITASKMGMT_RSP_TM_OVERLAPPED_TAG (0x0A)
|
||||
#define MPI2_SCSITASKMGMT_RSP_IO_QUEUED_ON_IOC (0x80)
|
||||
|
||||
/* masks and shifts for the ResponseInfo field */
|
||||
|
||||
#define MPI2_SCSITASKMGMT_RI_MASK_REASONCODE (0x000000FF)
|
||||
#define MPI2_SCSITASKMGMT_RI_SHIFT_REASONCODE (0)
|
||||
#define MPI2_SCSITASKMGMT_RI_MASK_ARI2 (0x0000FF00)
|
||||
#define MPI2_SCSITASKMGMT_RI_SHIFT_ARI2 (8)
|
||||
#define MPI2_SCSITASKMGMT_RI_MASK_ARI1 (0x00FF0000)
|
||||
#define MPI2_SCSITASKMGMT_RI_SHIFT_ARI1 (16)
|
||||
#define MPI2_SCSITASKMGMT_RI_MASK_ARI0 (0xFF000000)
|
||||
#define MPI2_SCSITASKMGMT_RI_SHIFT_ARI0 (24)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* SCSI Enclosure Processor messages
|
||||
****************************************************************************/
|
||||
|
||||
/* SCSI Enclosure Processor Request Message */
|
||||
typedef struct _MPI2_SEP_REQUEST
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U8 Action; /* 0x04 */
|
||||
U8 Flags; /* 0x05 */
|
||||
U8 Reserved1; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
U32 SlotStatus; /* 0x0C */
|
||||
U32 Reserved3; /* 0x10 */
|
||||
U32 Reserved4; /* 0x14 */
|
||||
U32 Reserved5; /* 0x18 */
|
||||
U16 Slot; /* 0x1C */
|
||||
U16 EnclosureHandle; /* 0x1E */
|
||||
} MPI2_SEP_REQUEST, MPI2_POINTER PTR_MPI2_SEP_REQUEST,
|
||||
Mpi2SepRequest_t, MPI2_POINTER pMpi2SepRequest_t;
|
||||
|
||||
/* Action defines */
|
||||
#define MPI2_SEP_REQ_ACTION_WRITE_STATUS (0x00)
|
||||
#define MPI2_SEP_REQ_ACTION_READ_STATUS (0x01)
|
||||
|
||||
/* Flags defines */
|
||||
#define MPI2_SEP_REQ_FLAGS_DEVHANDLE_ADDRESS (0x00)
|
||||
#define MPI2_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS (0x01)
|
||||
|
||||
/* SlotStatus defines */
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_REQUEST_REMOVE (0x00040000)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_IDENTIFY_REQUEST (0x00020000)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_REBUILD_STOPPED (0x00000200)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_HOT_SPARE (0x00000100)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_UNCONFIGURED (0x00000080)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT (0x00000040)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_IN_CRITICAL_ARRAY (0x00000010)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_IN_FAILED_ARRAY (0x00000008)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_DEV_REBUILDING (0x00000004)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_DEV_FAULTY (0x00000002)
|
||||
#define MPI2_SEP_REQ_SLOTSTATUS_NO_ERROR (0x00000001)
|
||||
|
||||
|
||||
/* SCSI Enclosure Processor Reply Message */
|
||||
typedef struct _MPI2_SEP_REPLY
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U8 Action; /* 0x04 */
|
||||
U8 Flags; /* 0x05 */
|
||||
U8 Reserved1; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
U16 Reserved3; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 SlotStatus; /* 0x14 */
|
||||
U32 Reserved4; /* 0x18 */
|
||||
U16 Slot; /* 0x1C */
|
||||
U16 EnclosureHandle; /* 0x1E */
|
||||
} MPI2_SEP_REPLY, MPI2_POINTER PTR_MPI2_SEP_REPLY,
|
||||
Mpi2SepReply_t, MPI2_POINTER pMpi2SepReply_t;
|
||||
|
||||
/* SlotStatus defines */
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_REMOVE_READY (0x00040000)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_IDENTIFY_REQUEST (0x00020000)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_REBUILD_STOPPED (0x00000200)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_HOT_SPARE (0x00000100)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_UNCONFIGURED (0x00000080)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_PREDICTED_FAULT (0x00000040)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_IN_CRITICAL_ARRAY (0x00000010)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_IN_FAILED_ARRAY (0x00000008)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_DEV_REBUILDING (0x00000004)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_DEV_FAULTY (0x00000002)
|
||||
#define MPI2_SEP_REPLY_SLOTSTATUS_NO_ERROR (0x00000001)
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
1721
source/lsi/mpi2_ioc.h
Executable file
1721
source/lsi/mpi2_ioc.h
Executable file
File diff suppressed because it is too large
Load Diff
85
source/lsi/mpi2_ra.h
Executable file
85
source/lsi/mpi2_ra.h
Executable file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright (c) 2009 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_ra.h
|
||||
* Title: MPI RAID Accelerator messages and structures
|
||||
* Creation Date: April 13, 2009
|
||||
*
|
||||
* mpi2_ra.h Version: 02.00.00
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-06-09 02.00.00 Initial version.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_RA_H
|
||||
#define MPI2_RA_H
|
||||
|
||||
/* generic structure for RAID Accelerator Control Block */
|
||||
typedef struct _MPI2_RAID_ACCELERATOR_CONTROL_BLOCK
|
||||
{
|
||||
U32 Reserved[8]; /* 0x00 */
|
||||
U32 RaidAcceleratorCDB[1]; /* 0x20 */
|
||||
} MPI2_RAID_ACCELERATOR_CONTROL_BLOCK,
|
||||
MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_CONTROL_BLOCK,
|
||||
Mpi2RAIDAcceleratorControlBlock_t,
|
||||
MPI2_POINTER pMpi2RAIDAcceleratorControlBlock_t;
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* RAID Accelerator Messages
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
/* RAID Accelerator Request Message */
|
||||
typedef struct _MPI2_RAID_ACCELERATOR_REQUEST
|
||||
{
|
||||
U16 Reserved0; /* 0x00 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U64 RaidAcceleratorControlBlockAddress; /* 0x0C */
|
||||
U8 DmaEngineNumber; /* 0x14 */
|
||||
U8 Reserved4; /* 0x15 */
|
||||
U16 Reserved5; /* 0x16 */
|
||||
U32 Reserved6; /* 0x18 */
|
||||
U32 Reserved7; /* 0x1C */
|
||||
U32 Reserved8; /* 0x20 */
|
||||
} MPI2_RAID_ACCELERATOR_REQUEST, MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_REQUEST,
|
||||
Mpi2RAIDAcceleratorRequest_t, MPI2_POINTER pMpi2RAIDAcceleratorRequest_t;
|
||||
|
||||
|
||||
/* RAID Accelerator Error Reply Message */
|
||||
typedef struct _MPI2_RAID_ACCELERATOR_REPLY
|
||||
{
|
||||
U16 Reserved0; /* 0x00 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 Reserved4; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 ProductSpecificData[3]; /* 0x14 */
|
||||
} MPI2_RAID_ACCELERATOR_REPLY, MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_REPLY,
|
||||
Mpi2RAIDAcceleratorReply_t, MPI2_POINTER pMpi2RAIDAcceleratorReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
303
source/lsi/mpi2_raid.h
Executable file
303
source/lsi/mpi2_raid.h
Executable file
@@ -0,0 +1,303 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2010 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_raid.h
|
||||
* Title: MPI Integrated RAID messages and structures
|
||||
* Creation Date: April 26, 2007
|
||||
*
|
||||
* mpi2_raid.h Version: 02.00.05
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 08-31-07 02.00.01 Modifications to RAID Action request and reply,
|
||||
* including the Actions and ActionData.
|
||||
* 02-29-08 02.00.02 Added MPI2_RAID_ACTION_ADATA_DISABL_FULL_REBUILD.
|
||||
* 05-21-08 02.00.03 Added MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS so that
|
||||
* the PhysDisk array in MPI2_RAID_VOLUME_CREATION_STRUCT
|
||||
* can be sized by the build environment.
|
||||
* 07-30-09 02.00.04 Added proper define for the Use Default Settings bit of
|
||||
* VolumeCreationFlags and marked the old one as obsolete.
|
||||
* 05-12-10 02.00.05 Added MPI2_RAID_VOL_FLAGS_OP_MDC define.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_RAID_H
|
||||
#define MPI2_RAID_H
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Integrated RAID Messages
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* RAID Action messages
|
||||
****************************************************************************/
|
||||
|
||||
/* ActionDataWord defines for use with MPI2_RAID_ACTION_DELETE_VOLUME action */
|
||||
#define MPI2_RAID_ACTION_ADATA_KEEP_LBA0 (0x00000000)
|
||||
#define MPI2_RAID_ACTION_ADATA_ZERO_LBA0 (0x00000001)
|
||||
|
||||
/* use MPI2_RAIDVOL0_SETTING_ defines from mpi2_cnfg.h for MPI2_RAID_ACTION_CHANGE_VOL_WRITE_CACHE action */
|
||||
|
||||
/* ActionDataWord defines for use with MPI2_RAID_ACTION_DISABLE_ALL_VOLUMES action */
|
||||
#define MPI2_RAID_ACTION_ADATA_DISABL_FULL_REBUILD (0x00000001)
|
||||
|
||||
/* ActionDataWord for MPI2_RAID_ACTION_SET_RAID_FUNCTION_RATE Action */
|
||||
typedef struct _MPI2_RAID_ACTION_RATE_DATA
|
||||
{
|
||||
U8 RateToChange; /* 0x00 */
|
||||
U8 RateOrMode; /* 0x01 */
|
||||
U16 DataScrubDuration; /* 0x02 */
|
||||
} MPI2_RAID_ACTION_RATE_DATA, MPI2_POINTER PTR_MPI2_RAID_ACTION_RATE_DATA,
|
||||
Mpi2RaidActionRateData_t, MPI2_POINTER pMpi2RaidActionRateData_t;
|
||||
|
||||
#define MPI2_RAID_ACTION_SET_RATE_RESYNC (0x00)
|
||||
#define MPI2_RAID_ACTION_SET_RATE_DATA_SCRUB (0x01)
|
||||
#define MPI2_RAID_ACTION_SET_RATE_POWERSAVE_MODE (0x02)
|
||||
|
||||
/* ActionDataWord for MPI2_RAID_ACTION_START_RAID_FUNCTION Action */
|
||||
typedef struct _MPI2_RAID_ACTION_START_RAID_FUNCTION
|
||||
{
|
||||
U8 RAIDFunction; /* 0x00 */
|
||||
U8 Flags; /* 0x01 */
|
||||
U16 Reserved1; /* 0x02 */
|
||||
} MPI2_RAID_ACTION_START_RAID_FUNCTION,
|
||||
MPI2_POINTER PTR_MPI2_RAID_ACTION_START_RAID_FUNCTION,
|
||||
Mpi2RaidActionStartRaidFunction_t,
|
||||
MPI2_POINTER pMpi2RaidActionStartRaidFunction_t;
|
||||
|
||||
/* defines for the RAIDFunction field */
|
||||
#define MPI2_RAID_ACTION_START_BACKGROUND_INIT (0x00)
|
||||
#define MPI2_RAID_ACTION_START_ONLINE_CAP_EXPANSION (0x01)
|
||||
#define MPI2_RAID_ACTION_START_CONSISTENCY_CHECK (0x02)
|
||||
|
||||
/* defines for the Flags field */
|
||||
#define MPI2_RAID_ACTION_START_NEW (0x00)
|
||||
#define MPI2_RAID_ACTION_START_RESUME (0x01)
|
||||
|
||||
/* ActionDataWord for MPI2_RAID_ACTION_STOP_RAID_FUNCTION Action */
|
||||
typedef struct _MPI2_RAID_ACTION_STOP_RAID_FUNCTION
|
||||
{
|
||||
U8 RAIDFunction; /* 0x00 */
|
||||
U8 Flags; /* 0x01 */
|
||||
U16 Reserved1; /* 0x02 */
|
||||
} MPI2_RAID_ACTION_STOP_RAID_FUNCTION,
|
||||
MPI2_POINTER PTR_MPI2_RAID_ACTION_STOP_RAID_FUNCTION,
|
||||
Mpi2RaidActionStopRaidFunction_t,
|
||||
MPI2_POINTER pMpi2RaidActionStopRaidFunction_t;
|
||||
|
||||
/* defines for the RAIDFunction field */
|
||||
#define MPI2_RAID_ACTION_STOP_BACKGROUND_INIT (0x00)
|
||||
#define MPI2_RAID_ACTION_STOP_ONLINE_CAP_EXPANSION (0x01)
|
||||
#define MPI2_RAID_ACTION_STOP_CONSISTENCY_CHECK (0x02)
|
||||
|
||||
/* defines for the Flags field */
|
||||
#define MPI2_RAID_ACTION_STOP_ABORT (0x00)
|
||||
#define MPI2_RAID_ACTION_STOP_PAUSE (0x01)
|
||||
|
||||
/* ActionDataWord for MPI2_RAID_ACTION_CREATE_HOT_SPARE Action */
|
||||
typedef struct _MPI2_RAID_ACTION_HOT_SPARE
|
||||
{
|
||||
U8 HotSparePool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U16 DevHandle; /* 0x02 */
|
||||
} MPI2_RAID_ACTION_HOT_SPARE, MPI2_POINTER PTR_MPI2_RAID_ACTION_HOT_SPARE,
|
||||
Mpi2RaidActionHotSpare_t, MPI2_POINTER pMpi2RaidActionHotSpare_t;
|
||||
|
||||
/* ActionDataWord for MPI2_RAID_ACTION_DEVICE_FW_UPDATE_MODE Action */
|
||||
typedef struct _MPI2_RAID_ACTION_FW_UPDATE_MODE
|
||||
{
|
||||
U8 Flags; /* 0x00 */
|
||||
U8 DeviceFirmwareUpdateModeTimeout; /* 0x01 */
|
||||
U16 Reserved1; /* 0x02 */
|
||||
} MPI2_RAID_ACTION_FW_UPDATE_MODE,
|
||||
MPI2_POINTER PTR_MPI2_RAID_ACTION_FW_UPDATE_MODE,
|
||||
Mpi2RaidActionFwUpdateMode_t, MPI2_POINTER pMpi2RaidActionFwUpdateMode_t;
|
||||
|
||||
/* ActionDataWord defines for use with MPI2_RAID_ACTION_DEVICE_FW_UPDATE_MODE action */
|
||||
#define MPI2_RAID_ACTION_ADATA_DISABLE_FW_UPDATE (0x00)
|
||||
#define MPI2_RAID_ACTION_ADATA_ENABLE_FW_UPDATE (0x01)
|
||||
|
||||
typedef union _MPI2_RAID_ACTION_DATA
|
||||
{
|
||||
U32 Word;
|
||||
MPI2_RAID_ACTION_RATE_DATA Rates;
|
||||
MPI2_RAID_ACTION_START_RAID_FUNCTION StartRaidFunction;
|
||||
MPI2_RAID_ACTION_STOP_RAID_FUNCTION StopRaidFunction;
|
||||
MPI2_RAID_ACTION_HOT_SPARE HotSpare;
|
||||
MPI2_RAID_ACTION_FW_UPDATE_MODE FwUpdateMode;
|
||||
} MPI2_RAID_ACTION_DATA, MPI2_POINTER PTR_MPI2_RAID_ACTION_DATA,
|
||||
Mpi2RaidActionData_t, MPI2_POINTER pMpi2RaidActionData_t;
|
||||
|
||||
|
||||
/* RAID Action Request Message */
|
||||
typedef struct _MPI2_RAID_ACTION_REQUEST
|
||||
{
|
||||
U8 Action; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 VolDevHandle; /* 0x04 */
|
||||
U8 PhysDiskNum; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
U32 Reserved3; /* 0x0C */
|
||||
MPI2_RAID_ACTION_DATA ActionDataWord; /* 0x10 */
|
||||
MPI2_SGE_SIMPLE_UNION ActionDataSGE; /* 0x14 */
|
||||
} MPI2_RAID_ACTION_REQUEST, MPI2_POINTER PTR_MPI2_RAID_ACTION_REQUEST,
|
||||
Mpi2RaidActionRequest_t, MPI2_POINTER pMpi2RaidActionRequest_t;
|
||||
|
||||
/* RAID Action request Action values */
|
||||
|
||||
#define MPI2_RAID_ACTION_INDICATOR_STRUCT (0x01)
|
||||
#define MPI2_RAID_ACTION_CREATE_VOLUME (0x02)
|
||||
#define MPI2_RAID_ACTION_DELETE_VOLUME (0x03)
|
||||
#define MPI2_RAID_ACTION_DISABLE_ALL_VOLUMES (0x04)
|
||||
#define MPI2_RAID_ACTION_ENABLE_ALL_VOLUMES (0x05)
|
||||
#define MPI2_RAID_ACTION_PHYSDISK_OFFLINE (0x0A)
|
||||
#define MPI2_RAID_ACTION_PHYSDISK_ONLINE (0x0B)
|
||||
#define MPI2_RAID_ACTION_FAIL_PHYSDISK (0x0F)
|
||||
#define MPI2_RAID_ACTION_ACTIVATE_VOLUME (0x11)
|
||||
#define MPI2_RAID_ACTION_DEVICE_FW_UPDATE_MODE (0x15)
|
||||
#define MPI2_RAID_ACTION_CHANGE_VOL_WRITE_CACHE (0x17)
|
||||
#define MPI2_RAID_ACTION_SET_VOLUME_NAME (0x18)
|
||||
#define MPI2_RAID_ACTION_SET_RAID_FUNCTION_RATE (0x19)
|
||||
#define MPI2_RAID_ACTION_ENABLE_FAILED_VOLUME (0x1C)
|
||||
#define MPI2_RAID_ACTION_CREATE_HOT_SPARE (0x1D)
|
||||
#define MPI2_RAID_ACTION_DELETE_HOT_SPARE (0x1E)
|
||||
#define MPI2_RAID_ACTION_SYSTEM_SHUTDOWN_INITIATED (0x20)
|
||||
#define MPI2_RAID_ACTION_START_RAID_FUNCTION (0x21)
|
||||
#define MPI2_RAID_ACTION_STOP_RAID_FUNCTION (0x22)
|
||||
|
||||
|
||||
/* RAID Volume Creation Structure */
|
||||
|
||||
/*
|
||||
* The following define can be customized for the targeted product.
|
||||
*/
|
||||
#ifndef MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS
|
||||
#define MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS (1)
|
||||
#endif
|
||||
|
||||
typedef struct _MPI2_RAID_VOLUME_PHYSDISK
|
||||
{
|
||||
U8 RAIDSetNum; /* 0x00 */
|
||||
U8 PhysDiskMap; /* 0x01 */
|
||||
U16 PhysDiskDevHandle; /* 0x02 */
|
||||
} MPI2_RAID_VOLUME_PHYSDISK, MPI2_POINTER PTR_MPI2_RAID_VOLUME_PHYSDISK,
|
||||
Mpi2RaidVolumePhysDisk_t, MPI2_POINTER pMpi2RaidVolumePhysDisk_t;
|
||||
|
||||
/* defines for the PhysDiskMap field */
|
||||
#define MPI2_RAIDACTION_PHYSDISK_PRIMARY (0x01)
|
||||
#define MPI2_RAIDACTION_PHYSDISK_SECONDARY (0x02)
|
||||
|
||||
typedef struct _MPI2_RAID_VOLUME_CREATION_STRUCT
|
||||
{
|
||||
U8 NumPhysDisks; /* 0x00 */
|
||||
U8 VolumeType; /* 0x01 */
|
||||
U16 Reserved1; /* 0x02 */
|
||||
U32 VolumeCreationFlags; /* 0x04 */
|
||||
U32 VolumeSettings; /* 0x08 */
|
||||
U8 Reserved2; /* 0x0C */
|
||||
U8 ResyncRate; /* 0x0D */
|
||||
U16 DataScrubDuration; /* 0x0E */
|
||||
U64 VolumeMaxLBA; /* 0x10 */
|
||||
U32 StripeSize; /* 0x18 */
|
||||
U8 Name[16]; /* 0x1C */
|
||||
MPI2_RAID_VOLUME_PHYSDISK PhysDisk[MPI2_RAID_VOL_CREATION_NUM_PHYSDISKS];/* 0x2C */
|
||||
} MPI2_RAID_VOLUME_CREATION_STRUCT,
|
||||
MPI2_POINTER PTR_MPI2_RAID_VOLUME_CREATION_STRUCT,
|
||||
Mpi2RaidVolumeCreationStruct_t, MPI2_POINTER pMpi2RaidVolumeCreationStruct_t;
|
||||
|
||||
/* use MPI2_RAID_VOL_TYPE_ defines from mpi2_cnfg.h for VolumeType */
|
||||
|
||||
/* defines for the VolumeCreationFlags field */
|
||||
#define MPI2_RAID_VOL_CREATION_DEFAULT_SETTINGS (0x80000000)
|
||||
#define MPI2_RAID_VOL_CREATION_BACKGROUND_INIT (0x00000004) /* MPI 2.0 only */
|
||||
#define MPI2_RAID_VOL_CREATION_LOW_LEVEL_INIT (0x00000002)
|
||||
#define MPI2_RAID_VOL_CREATION_MIGRATE_DATA (0x00000001)
|
||||
/* The following is an obsolete define.
|
||||
* It must be shifted left 24 bits in order to set the proper bit.
|
||||
*/
|
||||
#define MPI2_RAID_VOL_CREATION_USE_DEFAULT_SETTINGS (0x80)
|
||||
|
||||
|
||||
/* RAID Online Capacity Expansion Structure */
|
||||
|
||||
typedef struct _MPI2_RAID_ONLINE_CAPACITY_EXPANSION
|
||||
{
|
||||
U32 Flags; /* 0x00 */
|
||||
U16 DevHandle0; /* 0x04 */
|
||||
U16 Reserved1; /* 0x06 */
|
||||
U16 DevHandle1; /* 0x08 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
} MPI2_RAID_ONLINE_CAPACITY_EXPANSION,
|
||||
MPI2_POINTER PTR_MPI2_RAID_ONLINE_CAPACITY_EXPANSION,
|
||||
Mpi2RaidOnlineCapacityExpansion_t,
|
||||
MPI2_POINTER pMpi2RaidOnlineCapacityExpansion_t;
|
||||
|
||||
|
||||
/* RAID Volume Indicator Structure */
|
||||
|
||||
typedef struct _MPI2_RAID_VOL_INDICATOR
|
||||
{
|
||||
U64 TotalBlocks; /* 0x00 */
|
||||
U64 BlocksRemaining; /* 0x08 */
|
||||
U32 Flags; /* 0x10 */
|
||||
} MPI2_RAID_VOL_INDICATOR, MPI2_POINTER PTR_MPI2_RAID_VOL_INDICATOR,
|
||||
Mpi2RaidVolIndicator_t, MPI2_POINTER pMpi2RaidVolIndicator_t;
|
||||
|
||||
/* defines for RAID Volume Indicator Flags field */
|
||||
#define MPI2_RAID_VOL_FLAGS_OP_MASK (0x0000000F)
|
||||
#define MPI2_RAID_VOL_FLAGS_OP_BACKGROUND_INIT (0x00000000)
|
||||
#define MPI2_RAID_VOL_FLAGS_OP_ONLINE_CAP_EXPANSION (0x00000001)
|
||||
#define MPI2_RAID_VOL_FLAGS_OP_CONSISTENCY_CHECK (0x00000002)
|
||||
#define MPI2_RAID_VOL_FLAGS_OP_RESYNC (0x00000003)
|
||||
#define MPI2_RAID_VOL_FLAGS_OP_MDC (0x00000004)
|
||||
|
||||
|
||||
/* RAID Action Reply ActionData union */
|
||||
typedef union _MPI2_RAID_ACTION_REPLY_DATA
|
||||
{
|
||||
U32 Word[5];
|
||||
MPI2_RAID_VOL_INDICATOR RaidVolumeIndicator;
|
||||
U16 VolDevHandle;
|
||||
U8 VolumeState;
|
||||
U8 PhysDiskNum;
|
||||
} MPI2_RAID_ACTION_REPLY_DATA, MPI2_POINTER PTR_MPI2_RAID_ACTION_REPLY_DATA,
|
||||
Mpi2RaidActionReplyData_t, MPI2_POINTER pMpi2RaidActionReplyData_t;
|
||||
|
||||
/* use MPI2_RAIDVOL0_SETTING_ defines from mpi2_cnfg.h for MPI2_RAID_ACTION_CHANGE_VOL_WRITE_CACHE action */
|
||||
|
||||
|
||||
/* RAID Action Reply Message */
|
||||
typedef struct _MPI2_RAID_ACTION_REPLY
|
||||
{
|
||||
U8 Action; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 VolDevHandle; /* 0x04 */
|
||||
U8 PhysDiskNum; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
U16 Reserved3; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
MPI2_RAID_ACTION_REPLY_DATA ActionData; /* 0x14 */
|
||||
} MPI2_RAID_ACTION_REPLY, MPI2_POINTER PTR_MPI2_RAID_ACTION_REPLY,
|
||||
Mpi2RaidActionReply_t, MPI2_POINTER pMpi2RaidActionReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
297
source/lsi/mpi2_sas.h
Executable file
297
source/lsi/mpi2_sas.h
Executable file
@@ -0,0 +1,297 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2010 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_sas.h
|
||||
* Title: MPI Serial Attached SCSI structures and definitions
|
||||
* Creation Date: February 9, 2007
|
||||
*
|
||||
* mpi2_sas.h Version: 02.00.xx
|
||||
*
|
||||
* NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25
|
||||
* prefix are for use only on MPI v2.5 products, and must not be used
|
||||
* with MPI v2.0 products. Unless otherwise noted, names beginning with
|
||||
* MPI2 or Mpi2 are for use with both MPI v2.0 and MPI v2.5 products.
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 06-26-07 02.00.01 Added Clear All Persistent Operation to SAS IO Unit
|
||||
* Control Request.
|
||||
* 10-02-08 02.00.02 Added Set IOC Parameter Operation to SAS IO Unit Control
|
||||
* Request.
|
||||
* 10-28-09 02.00.03 Changed the type of SGL in MPI2_SATA_PASSTHROUGH_REQUEST
|
||||
* to MPI2_SGE_IO_UNION since it supports chained SGLs.
|
||||
* 05-12-10 02.00.04 Modified some comments.
|
||||
* 08-11-10 02.00.05 Added NCQ operations to SAS IO Unit Control.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_SAS_H
|
||||
#define MPI2_SAS_H
|
||||
|
||||
/*
|
||||
* Values for SASStatus.
|
||||
*/
|
||||
#define MPI2_SASSTATUS_SUCCESS (0x00)
|
||||
#define MPI2_SASSTATUS_UNKNOWN_ERROR (0x01)
|
||||
#define MPI2_SASSTATUS_INVALID_FRAME (0x02)
|
||||
#define MPI2_SASSTATUS_UTC_BAD_DEST (0x03)
|
||||
#define MPI2_SASSTATUS_UTC_BREAK_RECEIVED (0x04)
|
||||
#define MPI2_SASSTATUS_UTC_CONNECT_RATE_NOT_SUPPORTED (0x05)
|
||||
#define MPI2_SASSTATUS_UTC_PORT_LAYER_REQUEST (0x06)
|
||||
#define MPI2_SASSTATUS_UTC_PROTOCOL_NOT_SUPPORTED (0x07)
|
||||
#define MPI2_SASSTATUS_UTC_STP_RESOURCES_BUSY (0x08)
|
||||
#define MPI2_SASSTATUS_UTC_WRONG_DESTINATION (0x09)
|
||||
#define MPI2_SASSTATUS_SHORT_INFORMATION_UNIT (0x0A)
|
||||
#define MPI2_SASSTATUS_LONG_INFORMATION_UNIT (0x0B)
|
||||
#define MPI2_SASSTATUS_XFER_RDY_INCORRECT_WRITE_DATA (0x0C)
|
||||
#define MPI2_SASSTATUS_XFER_RDY_REQUEST_OFFSET_ERROR (0x0D)
|
||||
#define MPI2_SASSTATUS_XFER_RDY_NOT_EXPECTED (0x0E)
|
||||
#define MPI2_SASSTATUS_DATA_INCORRECT_DATA_LENGTH (0x0F)
|
||||
#define MPI2_SASSTATUS_DATA_TOO_MUCH_READ_DATA (0x10)
|
||||
#define MPI2_SASSTATUS_DATA_OFFSET_ERROR (0x11)
|
||||
#define MPI2_SASSTATUS_SDSF_NAK_RECEIVED (0x12)
|
||||
#define MPI2_SASSTATUS_SDSF_CONNECTION_FAILED (0x13)
|
||||
#define MPI2_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT (0x14)
|
||||
|
||||
|
||||
/*
|
||||
* Values for the SAS DeviceInfo field used in SAS Device Status Change Event
|
||||
* data and SAS Configuration pages.
|
||||
*/
|
||||
#define MPI2_SAS_DEVICE_INFO_SEP (0x00004000)
|
||||
#define MPI2_SAS_DEVICE_INFO_ATAPI_DEVICE (0x00002000)
|
||||
#define MPI2_SAS_DEVICE_INFO_LSI_DEVICE (0x00001000)
|
||||
#define MPI2_SAS_DEVICE_INFO_DIRECT_ATTACH (0x00000800)
|
||||
#define MPI2_SAS_DEVICE_INFO_SSP_TARGET (0x00000400)
|
||||
#define MPI2_SAS_DEVICE_INFO_STP_TARGET (0x00000200)
|
||||
#define MPI2_SAS_DEVICE_INFO_SMP_TARGET (0x00000100)
|
||||
#define MPI2_SAS_DEVICE_INFO_SATA_DEVICE (0x00000080)
|
||||
#define MPI2_SAS_DEVICE_INFO_SSP_INITIATOR (0x00000040)
|
||||
#define MPI2_SAS_DEVICE_INFO_STP_INITIATOR (0x00000020)
|
||||
#define MPI2_SAS_DEVICE_INFO_SMP_INITIATOR (0x00000010)
|
||||
#define MPI2_SAS_DEVICE_INFO_SATA_HOST (0x00000008)
|
||||
|
||||
#define MPI2_SAS_DEVICE_INFO_MASK_DEVICE_TYPE (0x00000007)
|
||||
#define MPI2_SAS_DEVICE_INFO_NO_DEVICE (0x00000000)
|
||||
#define MPI2_SAS_DEVICE_INFO_END_DEVICE (0x00000001)
|
||||
#define MPI2_SAS_DEVICE_INFO_EDGE_EXPANDER (0x00000002)
|
||||
#define MPI2_SAS_DEVICE_INFO_FANOUT_EXPANDER (0x00000003)
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* SAS Messages
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* SMP Passthrough messages
|
||||
****************************************************************************/
|
||||
|
||||
/* SMP Passthrough Request Message */
|
||||
typedef struct _MPI2_SMP_PASSTHROUGH_REQUEST
|
||||
{
|
||||
U8 PassthroughFlags; /* 0x00 */
|
||||
U8 PhysicalPort; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 RequestDataLength; /* 0x04 */
|
||||
U8 SGLFlags; /* 0x06 */ /* MPI v2.0 only. Reserved on MPI v2.5. */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved1; /* 0x0A */
|
||||
U32 Reserved2; /* 0x0C */
|
||||
U64 SASAddress; /* 0x10 */
|
||||
U32 Reserved3; /* 0x18 */
|
||||
U32 Reserved4; /* 0x1C */
|
||||
MPI2_SIMPLE_SGE_UNION SGL; /* 0x20 */ /* MPI v2.5: IEEE Simple 64 elements only */
|
||||
} MPI2_SMP_PASSTHROUGH_REQUEST, MPI2_POINTER PTR_MPI2_SMP_PASSTHROUGH_REQUEST,
|
||||
Mpi2SmpPassthroughRequest_t, MPI2_POINTER pMpi2SmpPassthroughRequest_t;
|
||||
|
||||
/* values for PassthroughFlags field */
|
||||
#define MPI2_SMP_PT_REQ_PT_FLAGS_IMMEDIATE (0x80)
|
||||
|
||||
/* MPI v2.0: use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
|
||||
|
||||
|
||||
/* SMP Passthrough Reply Message */
|
||||
typedef struct _MPI2_SMP_PASSTHROUGH_REPLY
|
||||
{
|
||||
U8 PassthroughFlags; /* 0x00 */
|
||||
U8 PhysicalPort; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 ResponseDataLength; /* 0x04 */
|
||||
U8 SGLFlags; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved1; /* 0x0A */
|
||||
U8 Reserved2; /* 0x0C */
|
||||
U8 SASStatus; /* 0x0D */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 Reserved3; /* 0x14 */
|
||||
U8 ResponseData[4]; /* 0x18 */
|
||||
} MPI2_SMP_PASSTHROUGH_REPLY, MPI2_POINTER PTR_MPI2_SMP_PASSTHROUGH_REPLY,
|
||||
Mpi2SmpPassthroughReply_t, MPI2_POINTER pMpi2SmpPassthroughReply_t;
|
||||
|
||||
/* values for PassthroughFlags field */
|
||||
#define MPI2_SMP_PT_REPLY_PT_FLAGS_IMMEDIATE (0x80)
|
||||
|
||||
/* values for SASStatus field are at the top of this file */
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* SATA Passthrough messages
|
||||
****************************************************************************/
|
||||
|
||||
/* SATA Passthrough Request Message */
|
||||
typedef struct _MPI2_SATA_PASSTHROUGH_REQUEST
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 PassthroughFlags; /* 0x04 */
|
||||
U8 SGLFlags; /* 0x06 */ /* MPI v2.0 only. Reserved on MPI v2.5. */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved1; /* 0x0A */
|
||||
U32 Reserved2; /* 0x0C */
|
||||
U32 Reserved3; /* 0x10 */
|
||||
U32 Reserved4; /* 0x14 */
|
||||
U32 DataLength; /* 0x18 */
|
||||
U8 CommandFIS[20]; /* 0x1C */
|
||||
MPI2_SGE_IO_UNION SGL; /* 0x30 */ /* MPI v2.5: IEEE 64 elements only */
|
||||
} MPI2_SATA_PASSTHROUGH_REQUEST, MPI2_POINTER PTR_MPI2_SATA_PASSTHROUGH_REQUEST,
|
||||
Mpi2SataPassthroughRequest_t, MPI2_POINTER pMpi2SataPassthroughRequest_t;
|
||||
|
||||
/* values for PassthroughFlags field */
|
||||
#define MPI2_SATA_PT_REQ_PT_FLAGS_EXECUTE_DIAG (0x0100)
|
||||
#define MPI2_SATA_PT_REQ_PT_FLAGS_DMA (0x0020)
|
||||
#define MPI2_SATA_PT_REQ_PT_FLAGS_PIO (0x0010)
|
||||
#define MPI2_SATA_PT_REQ_PT_FLAGS_UNSPECIFIED_VU (0x0004)
|
||||
#define MPI2_SATA_PT_REQ_PT_FLAGS_WRITE (0x0002)
|
||||
#define MPI2_SATA_PT_REQ_PT_FLAGS_READ (0x0001)
|
||||
|
||||
/* MPI v2.0: use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
|
||||
|
||||
|
||||
/* SATA Passthrough Reply Message */
|
||||
typedef struct _MPI2_SATA_PASSTHROUGH_REPLY
|
||||
{
|
||||
U16 DevHandle; /* 0x00 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 PassthroughFlags; /* 0x04 */
|
||||
U8 SGLFlags; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved1; /* 0x0A */
|
||||
U8 Reserved2; /* 0x0C */
|
||||
U8 SASStatus; /* 0x0D */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U8 StatusFIS[20]; /* 0x14 */
|
||||
U32 StatusControlRegisters; /* 0x28 */
|
||||
U32 TransferCount; /* 0x2C */
|
||||
} MPI2_SATA_PASSTHROUGH_REPLY, MPI2_POINTER PTR_MPI2_SATA_PASSTHROUGH_REPLY,
|
||||
Mpi2SataPassthroughReply_t, MPI2_POINTER pMpi2SataPassthroughReply_t;
|
||||
|
||||
/* values for SASStatus field are at the top of this file */
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* SAS IO Unit Control messages
|
||||
****************************************************************************/
|
||||
|
||||
/* SAS IO Unit Control Request Message */
|
||||
typedef struct _MPI2_SAS_IOUNIT_CONTROL_REQUEST
|
||||
{
|
||||
U8 Operation; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 DevHandle; /* 0x04 */
|
||||
U8 IOCParameter; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 Reserved4; /* 0x0C */
|
||||
U8 PhyNum; /* 0x0E */
|
||||
U8 PrimFlags; /* 0x0F */
|
||||
U32 Primitive; /* 0x10 */
|
||||
U8 LookupMethod; /* 0x14 */
|
||||
U8 Reserved5; /* 0x15 */
|
||||
U16 SlotNumber; /* 0x16 */
|
||||
U64 LookupAddress; /* 0x18 */
|
||||
U32 IOCParameterValue; /* 0x20 */
|
||||
U32 Reserved7; /* 0x24 */
|
||||
U32 Reserved8; /* 0x28 */
|
||||
} MPI2_SAS_IOUNIT_CONTROL_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_SAS_IOUNIT_CONTROL_REQUEST,
|
||||
Mpi2SasIoUnitControlRequest_t, MPI2_POINTER pMpi2SasIoUnitControlRequest_t;
|
||||
|
||||
/* values for the Operation field */
|
||||
#define MPI2_SAS_OP_CLEAR_ALL_PERSISTENT (0x02)
|
||||
#define MPI2_SAS_OP_PHY_LINK_RESET (0x06)
|
||||
#define MPI2_SAS_OP_PHY_HARD_RESET (0x07)
|
||||
#define MPI2_SAS_OP_PHY_CLEAR_ERROR_LOG (0x08)
|
||||
#define MPI2_SAS_OP_SEND_PRIMITIVE (0x0A)
|
||||
#define MPI2_SAS_OP_FORCE_FULL_DISCOVERY (0x0B)
|
||||
#define MPI2_SAS_OP_TRANSMIT_PORT_SELECT_SIGNAL (0x0C)
|
||||
#define MPI2_SAS_OP_REMOVE_DEVICE (0x0D)
|
||||
#define MPI2_SAS_OP_LOOKUP_MAPPING (0x0E)
|
||||
#define MPI2_SAS_OP_SET_IOC_PARAMETER (0x0F)
|
||||
#define MPI25_SAS_OP_ENABLE_FP_DEVICE (0x10)
|
||||
#define MPI25_SAS_OP_DISABLE_FP_DEVICE (0x11)
|
||||
#define MPI25_SAS_OP_ENABLE_FP_ALL (0x12)
|
||||
#define MPI25_SAS_OP_DISABLE_FP_ALL (0x13)
|
||||
#define MPI2_SAS_OP_DEV_ENABLE_NCQ (0x14)
|
||||
#define MPI2_SAS_OP_DEV_DISABLE_NCQ (0x15)
|
||||
#define MPI2_SAS_OP_PRODUCT_SPECIFIC_MIN (0x80)
|
||||
|
||||
/* values for the PrimFlags field */
|
||||
#define MPI2_SAS_PRIMFLAGS_SINGLE (0x08)
|
||||
#define MPI2_SAS_PRIMFLAGS_TRIPLE (0x02)
|
||||
#define MPI2_SAS_PRIMFLAGS_REDUNDANT (0x01)
|
||||
|
||||
/* values for the LookupMethod field */
|
||||
#define MPI2_SAS_LOOKUP_METHOD_SAS_ADDRESS (0x01)
|
||||
#define MPI2_SAS_LOOKUP_METHOD_SAS_ENCLOSURE_SLOT (0x02)
|
||||
#define MPI2_SAS_LOOKUP_METHOD_SAS_DEVICE_NAME (0x03)
|
||||
|
||||
|
||||
/* SAS IO Unit Control Reply Message */
|
||||
typedef struct _MPI2_SAS_IOUNIT_CONTROL_REPLY
|
||||
{
|
||||
U8 Operation; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 DevHandle; /* 0x04 */
|
||||
U8 IOCParameter; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 Reserved4; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
} MPI2_SAS_IOUNIT_CONTROL_REPLY,
|
||||
MPI2_POINTER PTR_MPI2_SAS_IOUNIT_CONTROL_REPLY,
|
||||
Mpi2SasIoUnitControlReply_t, MPI2_POINTER pMpi2SasIoUnitControlReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
560
source/lsi/mpi2_targ.h
Executable file
560
source/lsi/mpi2_targ.h
Executable file
@@ -0,0 +1,560 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2010 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_targ.h
|
||||
* Title: MPI Target mode messages and structures
|
||||
* Creation Date: September 8, 2006
|
||||
*
|
||||
* mpi2_targ.h Version: 02.00.xx
|
||||
*
|
||||
* NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25
|
||||
* prefix are for use only on MPI v2.5 products, and must not be used
|
||||
* with MPI v2.0 products. Unless otherwise noted, names beginning with
|
||||
* MPI2 or Mpi2 are for use with both MPI v2.0 and MPI v2.5 products.
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 08-31-07 02.00.01 Added Command Buffer Data Location Address Space bits to
|
||||
* BufferPostFlags field of CommandBufferPostBase Request.
|
||||
* 02-29-08 02.00.02 Modified various names to make them 32-character unique.
|
||||
* 10-02-08 02.00.03 Removed NextCmdBufferOffset from
|
||||
* MPI2_TARGET_CMD_BUF_POST_BASE_REQUEST.
|
||||
* Target Status Send Request only takes a single SGE for
|
||||
* response data.
|
||||
* 02-10-10 02.00.04 Added comment to MPI2_TARGET_SSP_RSP_IU structure.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_TARG_H
|
||||
#define MPI2_TARG_H
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* SCSI Target Messages
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Target Command Buffer Post Base Request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_CMD_BUF_POST_BASE_REQUEST
|
||||
{
|
||||
U8 BufferPostFlags; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 TotalCmdBuffers; /* 0x04 */
|
||||
U8 Reserved; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
U32 Reserved3; /* 0x0C */
|
||||
U16 CmdBufferLength; /* 0x10 */
|
||||
U16 Reserved4; /* 0x12 */
|
||||
U32 BaseAddressLow; /* 0x14 */
|
||||
U32 BaseAddressHigh; /* 0x18 */
|
||||
} MPI2_TARGET_CMD_BUF_POST_BASE_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_TARGET_CMD_BUF_POST_BASE_REQUEST,
|
||||
Mpi2TargetCmdBufferPostBaseRequest_t,
|
||||
MPI2_POINTER pMpi2TargetCmdBufferPostBaseRequest_t;
|
||||
|
||||
/* values for the BufferPostflags field */
|
||||
#define MPI2_CMD_BUF_POST_BASE_ADDRESS_SPACE_MASK (0x0C)
|
||||
#define MPI2_CMD_BUF_POST_BASE_SYSTEM_ADDRESS_SPACE (0x00)
|
||||
#define MPI2_CMD_BUF_POST_BASE_IOCDDR_ADDRESS_SPACE (0x04)
|
||||
#define MPI2_CMD_BUF_POST_BASE_IOCPLB_ADDRESS_SPACE (0x08)
|
||||
#define MPI2_CMD_BUF_POST_BASE_IOCPLBNTA_ADDRESS_SPACE (0x0C)
|
||||
|
||||
#define MPI2_CMD_BUF_POST_BASE_FLAGS_AUTO_POST_ALL (0x01)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Target Command Buffer Post List Request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_CMD_BUF_POST_LIST_REQUEST
|
||||
{
|
||||
U16 Reserved; /* 0x00 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 CmdBufferCount; /* 0x04 */
|
||||
U8 Reserved1; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved2; /* 0x0A */
|
||||
U32 Reserved3; /* 0x0C */
|
||||
U16 IoIndex[2]; /* 0x10 */
|
||||
} MPI2_TARGET_CMD_BUF_POST_LIST_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_TARGET_CMD_BUF_POST_LIST_REQUEST,
|
||||
Mpi2TargetCmdBufferPostListRequest_t,
|
||||
MPI2_POINTER pMpi2TargetCmdBufferPostListRequest_t;
|
||||
|
||||
/****************************************************************************
|
||||
* Target Command Buffer Post Base List Reply
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_BUF_POST_BASE_LIST_REPLY
|
||||
{
|
||||
U8 Flags; /* 0x00 */
|
||||
U8 Reserved; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 Reserved4; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U16 IoIndex; /* 0x14 */
|
||||
U16 Reserved5; /* 0x16 */
|
||||
U32 Reserved6; /* 0x18 */
|
||||
} MPI2_TARGET_BUF_POST_BASE_LIST_REPLY,
|
||||
MPI2_POINTER PTR_MPI2_TARGET_BUF_POST_BASE_LIST_REPLY,
|
||||
Mpi2TargetCmdBufferPostBaseListReply_t,
|
||||
MPI2_POINTER pMpi2TargetCmdBufferPostBaseListReply_t;
|
||||
|
||||
/* Flags defines */
|
||||
#define MPI2_CMD_BUF_POST_REPLY_IOINDEX_VALID (0x01)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Command Buffer Formats (with 16 byte CDB)
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_SSP_CMD_BUFFER
|
||||
{
|
||||
U8 FrameType; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U16 InitiatorConnectionTag; /* 0x02 */
|
||||
U32 HashedSourceSASAddress; /* 0x04 */
|
||||
U16 Reserved2; /* 0x08 */
|
||||
U16 Flags; /* 0x0A */
|
||||
U32 Reserved3; /* 0x0C */
|
||||
U16 Tag; /* 0x10 */
|
||||
U16 TargetPortTransferTag; /* 0x12 */
|
||||
U32 DataOffset; /* 0x14 */
|
||||
/* COMMAND information unit starts here */
|
||||
U8 LogicalUnitNumber[8]; /* 0x18 */
|
||||
U8 Reserved4; /* 0x20 */
|
||||
U8 TaskAttribute; /* lower 3 bits */ /* 0x21 */
|
||||
U8 Reserved5; /* 0x22 */
|
||||
U8 AdditionalCDBLength; /* upper 5 bits */ /* 0x23 */
|
||||
U8 CDB[16]; /* 0x24 */
|
||||
/* Additional CDB bytes extend past the CDB field */
|
||||
} MPI2_TARGET_SSP_CMD_BUFFER, MPI2_POINTER PTR_MPI2_TARGET_SSP_CMD_BUFFER,
|
||||
Mpi2TargetSspCmdBuffer, MPI2_POINTER pMp2iTargetSspCmdBuffer;
|
||||
|
||||
typedef struct _MPI2_TARGET_SSP_TASK_BUFFER
|
||||
{
|
||||
U8 FrameType; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U16 InitiatorConnectionTag; /* 0x02 */
|
||||
U32 HashedSourceSASAddress; /* 0x04 */
|
||||
U16 Reserved2; /* 0x08 */
|
||||
U16 Flags; /* 0x0A */
|
||||
U32 Reserved3; /* 0x0C */
|
||||
U16 Tag; /* 0x10 */
|
||||
U16 TargetPortTransferTag; /* 0x12 */
|
||||
U32 DataOffset; /* 0x14 */
|
||||
/* TASK information unit starts here */
|
||||
U8 LogicalUnitNumber[8]; /* 0x18 */
|
||||
U16 Reserved4; /* 0x20 */
|
||||
U8 TaskManagementFunction; /* 0x22 */
|
||||
U8 Reserved5; /* 0x23 */
|
||||
U16 ManagedTaskTag; /* 0x24 */
|
||||
U16 Reserved6; /* 0x26 */
|
||||
U32 Reserved7; /* 0x28 */
|
||||
U32 Reserved8; /* 0x2C */
|
||||
U32 Reserved9; /* 0x30 */
|
||||
} MPI2_TARGET_SSP_TASK_BUFFER, MPI2_POINTER PTR_MPI2_TARGET_SSP_TASK_BUFFER,
|
||||
Mpi2TargetSspTaskBuffer, MPI2_POINTER pMpi2TargetSspTaskBuffer;
|
||||
|
||||
/* mask and shift for HashedSourceSASAddress field */
|
||||
#define MPI2_TARGET_HASHED_SAS_ADDRESS_MASK (0xFFFFFF00)
|
||||
#define MPI2_TARGET_HASHED_SAS_ADDRESS_SHIFT (8)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* MPI v2.0 Target Assist Request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_ASSIST_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 0x00 */
|
||||
U8 TargetAssistFlags; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 QueueTag; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 IoIndex; /* 0x0C */
|
||||
U16 InitiatorConnectionTag; /* 0x0E */
|
||||
U16 SGLFlags; /* 0x10 */
|
||||
U8 SequenceNumber; /* 0x12 */
|
||||
U8 Reserved4; /* 0x13 */
|
||||
U8 SGLOffset0; /* 0x14 */
|
||||
U8 SGLOffset1; /* 0x15 */
|
||||
U8 SGLOffset2; /* 0x16 */
|
||||
U8 SGLOffset3; /* 0x17 */
|
||||
U32 SkipCount; /* 0x18 */
|
||||
U32 DataLength; /* 0x1C */
|
||||
U32 BidirectionalDataLength; /* 0x20 */
|
||||
U16 IoFlags; /* 0x24 */
|
||||
U16 EEDPFlags; /* 0x26 */
|
||||
U32 EEDPBlockSize; /* 0x28 */
|
||||
U32 SecondaryReferenceTag; /* 0x2C */
|
||||
U16 SecondaryApplicationTag; /* 0x30 */
|
||||
U16 ApplicationTagTranslationMask; /* 0x32 */
|
||||
U32 PrimaryReferenceTag; /* 0x34 */
|
||||
U16 PrimaryApplicationTag; /* 0x38 */
|
||||
U16 PrimaryApplicationTagMask; /* 0x3A */
|
||||
U32 RelativeOffset; /* 0x3C */
|
||||
U32 Reserved5; /* 0x40 */
|
||||
U32 Reserved6; /* 0x44 */
|
||||
U32 Reserved7; /* 0x48 */
|
||||
U32 Reserved8; /* 0x4C */
|
||||
MPI2_SGE_IO_UNION SGL[1]; /* 0x50 */
|
||||
} MPI2_TARGET_ASSIST_REQUEST, MPI2_POINTER PTR_MPI2_TARGET_ASSIST_REQUEST,
|
||||
Mpi2TargetAssistRequest_t, MPI2_POINTER pMpi2TargetAssistRequest_t;
|
||||
|
||||
/* Target Assist TargetAssistFlags bits */
|
||||
|
||||
#define MPI2_TARGET_ASSIST_FLAGS_REPOST_CMD_BUFFER (0x80)
|
||||
#define MPI2_TARGET_ASSIST_FLAGS_TLR (0x10)
|
||||
#define MPI2_TARGET_ASSIST_FLAGS_RETRANSMIT (0x04)
|
||||
#define MPI2_TARGET_ASSIST_FLAGS_AUTO_STATUS (0x02)
|
||||
#define MPI2_TARGET_ASSIST_FLAGS_DATA_DIRECTION (0x01)
|
||||
|
||||
/* Target Assist SGLFlags bits */
|
||||
|
||||
/* base values for Data Location Address Space */
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_ADDR_MASK (0x0C)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_SYSTEM_ADDR (0x00)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_IOCDDR_ADDR (0x04)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_IOCPLB_ADDR (0x08)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_PLBNTA_ADDR (0x0C)
|
||||
|
||||
/* base values for Type */
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_TYPE_MASK (0x03)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_MPI_TYPE (0x00)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_32IEEE_TYPE (0x01)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_64IEEE_TYPE (0x02)
|
||||
|
||||
/* shift values for each sub-field */
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_SGL3_SHIFT (12)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_SGL2_SHIFT (8)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_SGL1_SHIFT (4)
|
||||
#define MPI2_TARGET_ASSIST_SGLFLAGS_SGL0_SHIFT (0)
|
||||
|
||||
/* Target Assist IoFlags bits */
|
||||
|
||||
#define MPI2_TARGET_ASSIST_IOFLAGS_BIDIRECTIONAL (0x0800)
|
||||
#define MPI2_TARGET_ASSIST_IOFLAGS_MULTICAST (0x0400)
|
||||
#define MPI2_TARGET_ASSIST_IOFLAGS_RECEIVE_FIRST (0x0200)
|
||||
|
||||
/* Target Assist EEDPFlags bits */
|
||||
|
||||
#define MPI2_TA_EEDPFLAGS_INC_PRI_REFTAG (0x8000)
|
||||
#define MPI2_TA_EEDPFLAGS_INC_SEC_REFTAG (0x4000)
|
||||
#define MPI2_TA_EEDPFLAGS_INC_PRI_APPTAG (0x2000)
|
||||
#define MPI2_TA_EEDPFLAGS_INC_SEC_APPTAG (0x1000)
|
||||
|
||||
#define MPI2_TA_EEDPFLAGS_CHECK_REFTAG (0x0400)
|
||||
#define MPI2_TA_EEDPFLAGS_CHECK_APPTAG (0x0200)
|
||||
#define MPI2_TA_EEDPFLAGS_CHECK_GUARD (0x0100)
|
||||
|
||||
#define MPI2_TA_EEDPFLAGS_PASSTHRU_REFTAG (0x0008)
|
||||
|
||||
#define MPI2_TA_EEDPFLAGS_MASK_OP (0x0007)
|
||||
#define MPI2_TA_EEDPFLAGS_NOOP_OP (0x0000)
|
||||
#define MPI2_TA_EEDPFLAGS_CHECK_OP (0x0001)
|
||||
#define MPI2_TA_EEDPFLAGS_STRIP_OP (0x0002)
|
||||
#define MPI2_TA_EEDPFLAGS_CHECK_REMOVE_OP (0x0003)
|
||||
#define MPI2_TA_EEDPFLAGS_INSERT_OP (0x0004)
|
||||
#define MPI2_TA_EEDPFLAGS_REPLACE_OP (0x0006)
|
||||
#define MPI2_TA_EEDPFLAGS_CHECK_REGEN_OP (0x0007)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* MPI v2.5 Target Assist Request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI25_TARGET_ASSIST_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 0x00 */
|
||||
U8 TargetAssistFlags; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 QueueTag; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 IoIndex; /* 0x0C */
|
||||
U16 InitiatorConnectionTag; /* 0x0E */
|
||||
U8 DMAFlags; /* 0x10 */
|
||||
U8 Reserved9; /* 0x11 */
|
||||
U8 SequenceNumber; /* 0x12 */
|
||||
U8 Reserved4; /* 0x13 */
|
||||
U8 SGLOffset0; /* 0x14 */
|
||||
U8 SGLOffset1; /* 0x15 */
|
||||
U8 SGLOffset2; /* 0x16 */
|
||||
U8 SGLOffset3; /* 0x17 */
|
||||
U32 SkipCount; /* 0x18 */
|
||||
U32 DataLength; /* 0x1C */
|
||||
U32 BidirectionalDataLength; /* 0x20 */
|
||||
U16 IoFlags; /* 0x24 */
|
||||
U16 EEDPFlags; /* 0x26 */
|
||||
U16 EEDPBlockSize; /* 0x28 */
|
||||
U16 Reserved10; /* 0x2A */
|
||||
U32 SecondaryReferenceTag; /* 0x2C */
|
||||
U16 SecondaryApplicationTag; /* 0x30 */
|
||||
U16 ApplicationTagTranslationMask; /* 0x32 */
|
||||
U32 PrimaryReferenceTag; /* 0x34 */
|
||||
U16 PrimaryApplicationTag; /* 0x38 */
|
||||
U16 PrimaryApplicationTagMask; /* 0x3A */
|
||||
U32 RelativeOffset; /* 0x3C */
|
||||
U32 Reserved5; /* 0x40 */
|
||||
U32 Reserved6; /* 0x44 */
|
||||
U32 Reserved7; /* 0x48 */
|
||||
U32 Reserved8; /* 0x4C */
|
||||
MPI25_SGE_IO_UNION SGL; /* 0x50 */
|
||||
} MPI25_TARGET_ASSIST_REQUEST, MPI2_POINTER PTR_MPI25_TARGET_ASSIST_REQUEST,
|
||||
Mpi25TargetAssistRequest_t, MPI2_POINTER pMpi25TargetAssistRequest_t;
|
||||
|
||||
/* use MPI2_TARGET_ASSIST_FLAGS_ defines for the Flags field */
|
||||
|
||||
/* Defines for the DMAFlags field
|
||||
* Each setting affects 4 SGLS, from SGL0 to SGL3.
|
||||
* D = Data
|
||||
* C = Cache DIF
|
||||
* I = Interleaved
|
||||
* H = Host DIF
|
||||
*/
|
||||
#define MPI25_TA_DMAFLAGS_OP_MASK (0x0F)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_D_D_D (0x00)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_D_D_C (0x01)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_D_D_I (0x02)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_D_C_C (0x03)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_D_C_I (0x04)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_D_I_I (0x05)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_C_C_C (0x06)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_C_C_I (0x07)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_C_I_I (0x08)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_I_I_I (0x09)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_H_D_D (0x0A)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_H_D_C (0x0B)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_H_D_I (0x0C)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_H_C_C (0x0D)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_H_C_I (0x0E)
|
||||
#define MPI25_TA_DMAFLAGS_OP_D_H_I_I (0x0F)
|
||||
|
||||
/* defines for the IoFlags field */
|
||||
#define MPI25_TARGET_ASSIST_IOFLAGS_BIDIRECTIONAL (0x0800)
|
||||
#define MPI25_TARGET_ASSIST_IOFLAGS_RECEIVE_FIRST (0x0200)
|
||||
|
||||
/* defines for the EEDPFlags field */
|
||||
#define MPI25_TA_EEDPFLAGS_INC_PRI_REFTAG (0x8000)
|
||||
#define MPI25_TA_EEDPFLAGS_INC_SEC_REFTAG (0x4000)
|
||||
#define MPI25_TA_EEDPFLAGS_INC_PRI_APPTAG (0x2000)
|
||||
#define MPI25_TA_EEDPFLAGS_INC_SEC_APPTAG (0x1000)
|
||||
|
||||
#define MPI25_TA_EEDPFLAGS_CHECK_REFTAG (0x0400)
|
||||
#define MPI25_TA_EEDPFLAGS_CHECK_APPTAG (0x0200)
|
||||
#define MPI25_TA_EEDPFLAGS_CHECK_GUARD (0x0100)
|
||||
|
||||
#define MPI25_TA_EEDPFLAGS_ESCAPE_MODE_MASK (0x00C0)
|
||||
#define MPI25_TA_EEDPFLAGS_COMPATIBLE_MODE (0x0000)
|
||||
#define MPI25_TA_EEDPFLAGS_DO_NOT_DISABLE_MODE (0x0040)
|
||||
#define MPI25_TA_EEDPFLAGS_APPTAG_DISABLE_MODE (0x0080)
|
||||
#define MPI25_TA_EEDPFLAGS_APPTAG_REFTAG_DISABLE_MODE (0x00C0)
|
||||
|
||||
#define MPI25_TA_EEDPFLAGS_HOST_GUARD_METHOD_MASK (0x0030)
|
||||
#define MPI25_TA_EEDPFLAGS_T10_CRC_HOST_GUARD (0x0000)
|
||||
#define MPI25_TA_EEDPFLAGS_IP_CHKSUM_HOST_GUARD (0x0010)
|
||||
|
||||
#define MPI25_TA_EEDPFLAGS_PASSTHRU_REFTAG (0x0008)
|
||||
|
||||
#define MPI25_TA_EEDPFLAGS_MASK_OP (0x0007)
|
||||
#define MPI25_TA_EEDPFLAGS_NOOP_OP (0x0000)
|
||||
#define MPI25_TA_EEDPFLAGS_CHECK_OP (0x0001)
|
||||
#define MPI25_TA_EEDPFLAGS_STRIP_OP (0x0002)
|
||||
#define MPI25_TA_EEDPFLAGS_CHECK_REMOVE_OP (0x0003)
|
||||
#define MPI25_TA_EEDPFLAGS_INSERT_OP (0x0004)
|
||||
#define MPI25_TA_EEDPFLAGS_REPLACE_OP (0x0006)
|
||||
#define MPI25_TA_EEDPFLAGS_CHECK_REGEN_OP (0x0007)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Target Status Send Request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_STATUS_SEND_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 0x00 */
|
||||
U8 StatusFlags; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 QueueTag; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 IoIndex; /* 0x0C */
|
||||
U16 InitiatorConnectionTag; /* 0x0E */
|
||||
U16 SGLFlags; /* 0x10 */ /* MPI v2.0 only. Reserved on MPI v2.5. */
|
||||
U16 Reserved4; /* 0x12 */
|
||||
U8 SGLOffset0; /* 0x14 */
|
||||
U8 Reserved5; /* 0x15 */
|
||||
U16 Reserved6; /* 0x16 */
|
||||
U32 Reserved7; /* 0x18 */
|
||||
U32 Reserved8; /* 0x1C */
|
||||
MPI2_SIMPLE_SGE_UNION StatusDataSGE; /* 0x20 */ /* MPI v2.5: This must be an IEEE Simple Element 64. */
|
||||
} MPI2_TARGET_STATUS_SEND_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_TARGET_STATUS_SEND_REQUEST,
|
||||
Mpi2TargetStatusSendRequest_t, MPI2_POINTER pMpi2TargetStatusSendRequest_t;
|
||||
|
||||
/* Target Status Send StatusFlags bits */
|
||||
|
||||
#define MPI2_TSS_FLAGS_REPOST_CMD_BUFFER (0x80)
|
||||
#define MPI2_TSS_FLAGS_RETRANSMIT (0x04)
|
||||
#define MPI2_TSS_FLAGS_AUTO_GOOD_STATUS (0x01)
|
||||
|
||||
/* Target Status Send SGLFlags bits - MPI v2.0 only */
|
||||
/* Data Location Address Space */
|
||||
#define MPI2_TSS_SGLFLAGS_ADDR_MASK (0x0C)
|
||||
#define MPI2_TSS_SGLFLAGS_SYSTEM_ADDR (0x00)
|
||||
#define MPI2_TSS_SGLFLAGS_IOCDDR_ADDR (0x04)
|
||||
#define MPI2_TSS_SGLFLAGS_IOCPLB_ADDR (0x08)
|
||||
#define MPI2_TSS_SGLFLAGS_IOCPLBNTA_ADDR (0x0C)
|
||||
/* Type */
|
||||
#define MPI2_TSS_SGLFLAGS_TYPE_MASK (0x03)
|
||||
#define MPI2_TSS_SGLFLAGS_MPI_TYPE (0x00)
|
||||
#define MPI2_TSS_SGLFLAGS_IEEE32_TYPE (0x01)
|
||||
#define MPI2_TSS_SGLFLAGS_IEEE64_TYPE (0x02)
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* NOTE: The SSP status IU is big-endian. When used on a little-endian system,
|
||||
* this structure properly orders the bytes.
|
||||
*/
|
||||
typedef struct _MPI2_TARGET_SSP_RSP_IU
|
||||
{
|
||||
U32 Reserved0[6]; /* reserved for SSP header */ /* 0x00 */
|
||||
|
||||
/* start of RESPONSE information unit */
|
||||
U32 Reserved1; /* 0x18 */
|
||||
U32 Reserved2; /* 0x1C */
|
||||
U16 Reserved3; /* 0x20 */
|
||||
U8 DataPres; /* lower 2 bits */ /* 0x22 */
|
||||
U8 Status; /* 0x23 */
|
||||
U32 Reserved4; /* 0x24 */
|
||||
U32 SenseDataLength; /* 0x28 */
|
||||
U32 ResponseDataLength; /* 0x2C */
|
||||
|
||||
/* start of Response or Sense Data (size may vary dynamically) */
|
||||
U8 ResponseSenseData[4]; /* 0x30 */
|
||||
} MPI2_TARGET_SSP_RSP_IU, MPI2_POINTER PTR_MPI2_TARGET_SSP_RSP_IU,
|
||||
Mpi2TargetSspRspIu_t, MPI2_POINTER pMpi2TargetSspRspIu_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Target Standard Reply - used with Target Assist or Target Status Send
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_STANDARD_REPLY
|
||||
{
|
||||
U16 Reserved; /* 0x00 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 Reserved4; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U16 IoIndex; /* 0x14 */
|
||||
U16 Reserved5; /* 0x16 */
|
||||
U32 TransferCount; /* 0x18 */
|
||||
U32 BidirectionalTransferCount; /* 0x1C */
|
||||
} MPI2_TARGET_STANDARD_REPLY, MPI2_POINTER PTR_MPI2_TARGET_STANDARD_REPLY,
|
||||
Mpi2TargetErrorReply_t, MPI2_POINTER pMpi2TargetErrorReply_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Target Mode Abort Request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_MODE_ABORT_REQUEST
|
||||
{
|
||||
U8 AbortType; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U16 IoIndexToAbort; /* 0x0C */
|
||||
U16 Reserved6; /* 0x0E */
|
||||
U32 MidToAbort; /* 0x10 */
|
||||
} MPI2_TARGET_MODE_ABORT, MPI2_POINTER PTR_MPI2_TARGET_MODE_ABORT,
|
||||
Mpi2TargetModeAbort_t, MPI2_POINTER pMpi2TargetModeAbort_t;
|
||||
|
||||
/* Target Mode Abort AbortType values */
|
||||
|
||||
#define MPI2_TARGET_MODE_ABORT_ALL_CMD_BUFFERS (0x00)
|
||||
#define MPI2_TARGET_MODE_ABORT_ALL_IO (0x01)
|
||||
#define MPI2_TARGET_MODE_ABORT_EXACT_IO (0x02)
|
||||
#define MPI2_TARGET_MODE_ABORT_EXACT_IO_REQUEST (0x03)
|
||||
#define MPI2_TARGET_MODE_ABORT_IO_REQUEST_AND_IO (0x04)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Target Mode Abort Reply
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TARGET_MODE_ABORT_REPLY
|
||||
{
|
||||
U16 Reserved; /* 0x00 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved1; /* 0x04 */
|
||||
U8 Reserved2; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved3; /* 0x0A */
|
||||
U16 Reserved4; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 AbortCount; /* 0x14 */
|
||||
} MPI2_TARGET_MODE_ABORT_REPLY, MPI2_POINTER PTR_MPI2_TARGET_MODE_ABORT_REPLY,
|
||||
Mpi2TargetModeAbortReply_t, MPI2_POINTER pMpi2TargetModeAbortReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
438
source/lsi/mpi2_tool.h
Executable file
438
source/lsi/mpi2_tool.h
Executable file
@@ -0,0 +1,438 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2010 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_tool.h
|
||||
* Title: MPI diagnostic tool structures and definitions
|
||||
* Creation Date: March 26, 2007
|
||||
*
|
||||
* mpi2_tool.h Version: 02.00.06
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* 12-18-07 02.00.01 Added Diagnostic Buffer Post and Diagnostic Release
|
||||
* structures and defines.
|
||||
* 02-29-08 02.00.02 Modified various names to make them 32-character unique.
|
||||
* 05-06-09 02.00.03 Added ISTWI Read Write Tool and Diagnostic CLI Tool.
|
||||
* 07-30-09 02.00.04 Added ExtendedType field to DiagnosticBufferPost request
|
||||
* and reply messages.
|
||||
* Added MPI2_DIAG_BUF_TYPE_EXTENDED.
|
||||
* Incremented MPI2_DIAG_BUF_TYPE_COUNT.
|
||||
* 05-12-10 02.00.05 Added Diagnostic Data Upload tool.
|
||||
* 08-11-10 02.00.06 Added defines that were missing for Diagnostic Buffer
|
||||
* Post Request.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_TOOL_H
|
||||
#define MPI2_TOOL_H
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Toolbox Messages
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/* defines for the Tools */
|
||||
#define MPI2_TOOLBOX_CLEAN_TOOL (0x00)
|
||||
#define MPI2_TOOLBOX_MEMORY_MOVE_TOOL (0x01)
|
||||
#define MPI2_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02)
|
||||
#define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
|
||||
#define MPI2_TOOLBOX_BEACON_TOOL (0x05)
|
||||
#define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL (0x06)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Toolbox reply
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TOOLBOX_REPLY
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U16 Reserved5; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
} MPI2_TOOLBOX_REPLY, MPI2_POINTER PTR_MPI2_TOOLBOX_REPLY,
|
||||
Mpi2ToolboxReply_t, MPI2_POINTER pMpi2ToolboxReply_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Toolbox Clean Tool request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TOOLBOX_CLEAN_REQUEST
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U32 Flags; /* 0x0C */
|
||||
} MPI2_TOOLBOX_CLEAN_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_CLEAN_REQUEST,
|
||||
Mpi2ToolboxCleanRequest_t, MPI2_POINTER pMpi2ToolboxCleanRequest_t;
|
||||
|
||||
/* values for the Flags field */
|
||||
#define MPI2_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)
|
||||
#define MPI2_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)
|
||||
#define MPI2_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)
|
||||
#define MPI2_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)
|
||||
#define MPI2_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)
|
||||
#define MPI2_TOOLBOX_CLEAN_MEGARAID (0x02000000)
|
||||
#define MPI2_TOOLBOX_CLEAN_INITIALIZATION (0x01000000)
|
||||
#define MPI2_TOOLBOX_CLEAN_FLASH (0x00000004)
|
||||
#define MPI2_TOOLBOX_CLEAN_SEEPROM (0x00000002)
|
||||
#define MPI2_TOOLBOX_CLEAN_NVSRAM (0x00000001)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Toolbox Memory Move request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TOOLBOX_MEM_MOVE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
MPI2_SGE_SIMPLE_UNION SGL; /* 0x0C */
|
||||
} MPI2_TOOLBOX_MEM_MOVE_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_MEM_MOVE_REQUEST,
|
||||
Mpi2ToolboxMemMoveRequest_t, MPI2_POINTER pMpi2ToolboxMemMoveRequest_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Toolbox Diagnostic Data Upload request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U8 SGLFlags; /* 0x0C */
|
||||
U8 Reserved5; /* 0x0D */
|
||||
U16 Reserved6; /* 0x0E */
|
||||
U32 Flags; /* 0x10 */
|
||||
U32 DataLength; /* 0x14 */
|
||||
MPI2_SGE_SIMPLE_UNION SGL; /* 0x18 */
|
||||
} MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
|
||||
Mpi2ToolboxDiagDataUploadRequest_t,
|
||||
MPI2_POINTER pMpi2ToolboxDiagDataUploadRequest_t;
|
||||
|
||||
/* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
|
||||
|
||||
|
||||
typedef struct _MPI2_DIAG_DATA_UPLOAD_HEADER
|
||||
{
|
||||
U32 DiagDataLength; /* 00h */
|
||||
U8 FormatCode; /* 04h */
|
||||
U8 Reserved1; /* 05h */
|
||||
U16 Reserved2; /* 06h */
|
||||
} MPI2_DIAG_DATA_UPLOAD_HEADER, MPI2_POINTER PTR_MPI2_DIAG_DATA_UPLOAD_HEADER,
|
||||
Mpi2DiagDataUploadHeader_t, MPI2_POINTER pMpi2DiagDataUploadHeader_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Toolbox ISTWI Read Write Tool
|
||||
****************************************************************************/
|
||||
|
||||
/* Toolbox ISTWI Read Write Tool request message */
|
||||
typedef struct _MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U32 Reserved5; /* 0x0C */
|
||||
U32 Reserved6; /* 0x10 */
|
||||
U8 DevIndex; /* 0x14 */
|
||||
U8 Action; /* 0x15 */
|
||||
U8 SGLFlags; /* 0x16 */
|
||||
U8 Reserved7; /* 0x17 */
|
||||
U16 TxDataLength; /* 0x18 */
|
||||
U16 RxDataLength; /* 0x1A */
|
||||
U32 Reserved8; /* 0x1C */
|
||||
U32 Reserved9; /* 0x20 */
|
||||
U32 Reserved10; /* 0x24 */
|
||||
U32 Reserved11; /* 0x28 */
|
||||
U32 Reserved12; /* 0x2C */
|
||||
MPI2_SGE_SIMPLE_UNION SGL; /* 0x30 */
|
||||
} MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
|
||||
Mpi2ToolboxIstwiReadWriteRequest_t,
|
||||
MPI2_POINTER pMpi2ToolboxIstwiReadWriteRequest_t;
|
||||
|
||||
/* values for the Action field */
|
||||
#define MPI2_TOOL_ISTWI_ACTION_READ_DATA (0x01)
|
||||
#define MPI2_TOOL_ISTWI_ACTION_WRITE_DATA (0x02)
|
||||
#define MPI2_TOOL_ISTWI_ACTION_SEQUENCE (0x03)
|
||||
#define MPI2_TOOL_ISTWI_ACTION_RESERVE_BUS (0x10)
|
||||
#define MPI2_TOOL_ISTWI_ACTION_RELEASE_BUS (0x11)
|
||||
#define MPI2_TOOL_ISTWI_ACTION_RESET (0x12)
|
||||
|
||||
/* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
|
||||
|
||||
|
||||
/* Toolbox ISTWI Read Write Tool reply message */
|
||||
typedef struct _MPI2_TOOLBOX_ISTWI_REPLY
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U16 Reserved5; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U8 DevIndex; /* 0x14 */
|
||||
U8 Action; /* 0x15 */
|
||||
U8 IstwiStatus; /* 0x16 */
|
||||
U8 Reserved6; /* 0x17 */
|
||||
U16 TxDataCount; /* 0x18 */
|
||||
U16 RxDataCount; /* 0x1A */
|
||||
} MPI2_TOOLBOX_ISTWI_REPLY, MPI2_POINTER PTR_MPI2_TOOLBOX_ISTWI_REPLY,
|
||||
Mpi2ToolboxIstwiReply_t, MPI2_POINTER pMpi2ToolboxIstwiReply_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Toolbox Beacon Tool request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_TOOLBOX_BEACON_REQUEST
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U8 Reserved5; /* 0x0C */
|
||||
U8 PhysicalPort; /* 0x0D */
|
||||
U8 Reserved6; /* 0x0E */
|
||||
U8 Flags; /* 0x0F */
|
||||
} MPI2_TOOLBOX_BEACON_REQUEST, MPI2_POINTER PTR_MPI2_TOOLBOX_BEACON_REQUEST,
|
||||
Mpi2ToolboxBeaconRequest_t, MPI2_POINTER pMpi2ToolboxBeaconRequest_t;
|
||||
|
||||
/* values for the Flags field */
|
||||
#define MPI2_TOOLBOX_FLAGS_BEACONMODE_OFF (0x00)
|
||||
#define MPI2_TOOLBOX_FLAGS_BEACONMODE_ON (0x01)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Toolbox Diagnostic CLI Tool
|
||||
****************************************************************************/
|
||||
|
||||
#define MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH (0x5C)
|
||||
|
||||
/* Toolbox Diagnostic CLI Tool request message */
|
||||
typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U8 SGLFlags; /* 0x0C */
|
||||
U8 Reserved5; /* 0x0D */
|
||||
U16 Reserved6; /* 0x0E */
|
||||
U32 DataLength; /* 0x10 */
|
||||
U8 DiagnosticCliCommand[MPI2_TOOLBOX_DIAG_CLI_CMD_LENGTH]; /* 0x14 */
|
||||
MPI2_SGE_SIMPLE_UNION SGL; /* 0x70 */
|
||||
} MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
|
||||
MPI2_POINTER PTR_MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST,
|
||||
Mpi2ToolboxDiagnosticCliRequest_t,
|
||||
MPI2_POINTER pMpi2ToolboxDiagnosticCliRequest_t;
|
||||
|
||||
/* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
|
||||
|
||||
|
||||
/* Toolbox Diagnostic CLI Tool reply message */
|
||||
typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY
|
||||
{
|
||||
U8 Tool; /* 0x00 */
|
||||
U8 Reserved1; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U16 Reserved5; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 ReturnedDataLength; /* 0x14 */
|
||||
} MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY,
|
||||
MPI2_POINTER PTR_MPI2_TOOLBOX_DIAG_CLI_REPLY,
|
||||
Mpi2ToolboxDiagnosticCliReply_t,
|
||||
MPI2_POINTER pMpi2ToolboxDiagnosticCliReply_t;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Diagnostic Buffer Messages
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Diagnostic Buffer Post request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_DIAG_BUFFER_POST_REQUEST
|
||||
{
|
||||
U8 ExtendedType; /* 0x00 */
|
||||
U8 BufferType; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U64 BufferAddress; /* 0x0C */
|
||||
U32 BufferLength; /* 0x14 */
|
||||
U32 Reserved5; /* 0x18 */
|
||||
U32 Reserved6; /* 0x1C */
|
||||
U32 Flags; /* 0x20 */
|
||||
U32 ProductSpecific[23]; /* 0x24 */
|
||||
} MPI2_DIAG_BUFFER_POST_REQUEST, MPI2_POINTER PTR_MPI2_DIAG_BUFFER_POST_REQUEST,
|
||||
Mpi2DiagBufferPostRequest_t, MPI2_POINTER pMpi2DiagBufferPostRequest_t;
|
||||
|
||||
/* values for the ExtendedType field */
|
||||
#define MPI2_DIAG_EXTENDED_TYPE_UTILIZATION (0x02)
|
||||
|
||||
/* values for the BufferType field */
|
||||
#define MPI2_DIAG_BUF_TYPE_TRACE (0x00)
|
||||
#define MPI2_DIAG_BUF_TYPE_SNAPSHOT (0x01)
|
||||
#define MPI2_DIAG_BUF_TYPE_EXTENDED (0x02)
|
||||
/* count of the number of buffer types */
|
||||
#define MPI2_DIAG_BUF_TYPE_COUNT (0x03)
|
||||
|
||||
/* values for the Flags field */
|
||||
#define MPI2_DIAG_BUF_FLAG_RELEASE_ON_FULL (0x00000002) /* for MPI v2.0 products only */
|
||||
#define MPI2_DIAG_BUF_FLAG_IMMEDIATE_RELEASE (0x00000001)
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Diagnostic Buffer Post reply
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_DIAG_BUFFER_POST_REPLY
|
||||
{
|
||||
U8 ExtendedType; /* 0x00 */
|
||||
U8 BufferType; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U16 Reserved5; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
U32 TransferLength; /* 0x14 */
|
||||
} MPI2_DIAG_BUFFER_POST_REPLY, MPI2_POINTER PTR_MPI2_DIAG_BUFFER_POST_REPLY,
|
||||
Mpi2DiagBufferPostReply_t, MPI2_POINTER pMpi2DiagBufferPostReply_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Diagnostic Release request
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_DIAG_RELEASE_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 0x00 */
|
||||
U8 BufferType; /* 0x01 */
|
||||
U8 ChainOffset; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
} MPI2_DIAG_RELEASE_REQUEST, MPI2_POINTER PTR_MPI2_DIAG_RELEASE_REQUEST,
|
||||
Mpi2DiagReleaseRequest_t, MPI2_POINTER pMpi2DiagReleaseRequest_t;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
* Diagnostic Buffer Post reply
|
||||
****************************************************************************/
|
||||
|
||||
typedef struct _MPI2_DIAG_RELEASE_REPLY
|
||||
{
|
||||
U8 Reserved1; /* 0x00 */
|
||||
U8 BufferType; /* 0x01 */
|
||||
U8 MsgLength; /* 0x02 */
|
||||
U8 Function; /* 0x03 */
|
||||
U16 Reserved2; /* 0x04 */
|
||||
U8 Reserved3; /* 0x06 */
|
||||
U8 MsgFlags; /* 0x07 */
|
||||
U8 VP_ID; /* 0x08 */
|
||||
U8 VF_ID; /* 0x09 */
|
||||
U16 Reserved4; /* 0x0A */
|
||||
U16 Reserved5; /* 0x0C */
|
||||
U16 IOCStatus; /* 0x0E */
|
||||
U32 IOCLogInfo; /* 0x10 */
|
||||
} MPI2_DIAG_RELEASE_REPLY, MPI2_POINTER PTR_MPI2_DIAG_RELEASE_REPLY,
|
||||
Mpi2DiagReleaseReply_t, MPI2_POINTER pMpi2DiagReleaseReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
92
source/lsi/mpi2_type.h
Executable file
92
source/lsi/mpi2_type.h
Executable file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2007 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi2_type.h
|
||||
* Title: MPI basic type definitions
|
||||
* Creation Date: August 16, 2006
|
||||
*
|
||||
* mpi2_type.h Version: 02.00.00
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI2_TYPE_H
|
||||
#define MPI2_TYPE_H
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Define MPI2_POINTER if it hasn't already been defined. By default
|
||||
* MPI2_POINTER is defined to be a near pointer. MPI2_POINTER can be defined as
|
||||
* a far pointer by defining MPI2_POINTER as "far *" before this header file is
|
||||
* included.
|
||||
*/
|
||||
#ifndef MPI2_POINTER
|
||||
#define MPI2_POINTER *
|
||||
#endif
|
||||
|
||||
/* the basic types may have already been included by mpi_type.h */
|
||||
#ifndef MPI_TYPE_H
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Basic Types
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
typedef signed char S8;
|
||||
typedef unsigned char U8;
|
||||
typedef signed short S16;
|
||||
typedef unsigned short U16;
|
||||
|
||||
|
||||
#if defined(unix) || defined(__arm) || defined(ALPHA) || defined(__PPC__) || defined(__ppc)
|
||||
|
||||
typedef signed int S32;
|
||||
typedef unsigned int U32;
|
||||
|
||||
#else
|
||||
|
||||
typedef signed long S32;
|
||||
typedef unsigned long U32;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct _S64
|
||||
{
|
||||
U32 Low;
|
||||
S32 High;
|
||||
} S64;
|
||||
|
||||
typedef struct _U64
|
||||
{
|
||||
U32 Low;
|
||||
U32 High;
|
||||
} U64;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* Pointer Types
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
typedef S8 *PS8;
|
||||
typedef U8 *PU8;
|
||||
typedef S16 *PS16;
|
||||
typedef U16 *PU16;
|
||||
typedef S32 *PS32;
|
||||
typedef U32 *PU32;
|
||||
typedef S64 *PS64;
|
||||
typedef U64 *PU64;
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
3129
source/lsi/mpi_cnfg.h
Executable file
3129
source/lsi/mpi_cnfg.h
Executable file
File diff suppressed because it is too large
Load Diff
366
source/lsi/mpi_fc.h
Executable file
366
source/lsi/mpi_fc.h
Executable file
@@ -0,0 +1,366 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2008 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_fc.h
|
||||
* Title: MPI Fibre Channel messages and structures
|
||||
* Creation Date: June 12, 2000
|
||||
*
|
||||
* mpi_fc.h Version: 01.05.01
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-12-00 01.00.02 Added _MSG_FC_ABORT_REPLY structure.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 12-04-00 01.01.02 Added messages for Common Transport Send and
|
||||
* Primitive Send.
|
||||
* 01-09-01 01.01.03 Modifed some of the new flags to have an MPI prefix
|
||||
* and modified the FcPrimitiveSend flags.
|
||||
* 01-25-01 01.01.04 Move InitiatorIndex in LinkServiceRsp reply to a larger
|
||||
* field.
|
||||
* Added FC_ABORT_TYPE_CT_SEND_REQUEST and
|
||||
* FC_ABORT_TYPE_EXLINKSEND_REQUEST for FcAbort request.
|
||||
* Added MPI_FC_PRIM_SEND_FLAGS_STOP_SEND.
|
||||
* 02-20-01 01.01.05 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.06 Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY
|
||||
* and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED.
|
||||
* Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define.
|
||||
* Added structure offset comments.
|
||||
* 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 09-28-01 01.02.02 Change name of reserved field in
|
||||
* MSG_LINK_SERVICE_RSP_REPLY.
|
||||
* 05-31-02 01.02.03 Adding AliasIndex to FC Direct Access requests.
|
||||
* 01-16-04 01.02.04 Added define for MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK.
|
||||
* 05-11-04 01.03.01 Original release for MPI v1.3.
|
||||
* 08-19-04 01.05.01 Original release for MPI v1.5.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_FC_H
|
||||
#define MPI_FC_H
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* F C D i r e c t A c c e s s M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Link Service Buffer Post messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REQUEST
|
||||
{
|
||||
U8 BufferPostFlags; /* 00h */
|
||||
U8 BufferCount; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved; /* 04h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
SGE_TRANS_SIMPLE_UNION SGL;
|
||||
} MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
|
||||
MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
|
||||
LinkServiceBufferPostRequest_t, MPI_POINTER pLinkServiceBufferPostRequest_t;
|
||||
|
||||
#define LINK_SERVICE_BUFFER_POST_FLAGS_PORT_MASK (0x01)
|
||||
|
||||
typedef struct _WWNFORMAT
|
||||
{
|
||||
U32 PortNameHigh; /* 00h */
|
||||
U32 PortNameLow; /* 04h */
|
||||
U32 NodeNameHigh; /* 08h */
|
||||
U32 NodeNameLow; /* 0Ch */
|
||||
} WWNFORMAT,
|
||||
WwnFormat_t;
|
||||
|
||||
/* Link Service Buffer Post Reply */
|
||||
typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REPLY
|
||||
{
|
||||
U8 Flags; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferLength; /* 14h */
|
||||
U32 TransactionContext; /* 18h */
|
||||
U32 Rctl_Did; /* 1Ch */
|
||||
U32 Csctl_Sid; /* 20h */
|
||||
U32 Type_Fctl; /* 24h */
|
||||
U16 SeqCnt; /* 28h */
|
||||
U8 Dfctl; /* 2Ah */
|
||||
U8 SeqId; /* 2Bh */
|
||||
U16 Rxid; /* 2Ch */
|
||||
U16 Oxid; /* 2Eh */
|
||||
U32 Parameter; /* 30h */
|
||||
WWNFORMAT Wwn; /* 34h */
|
||||
} MSG_LINK_SERVICE_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REPLY,
|
||||
LinkServiceBufferPostReply_t, MPI_POINTER pLinkServiceBufferPostReply_t;
|
||||
|
||||
#define MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED (0x80)
|
||||
|
||||
#define MPI_FC_DID_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_DID_SHIFT (0)
|
||||
#define MPI_FC_RCTL_MASK (0xFF000000)
|
||||
#define MPI_FC_RCTL_SHIFT (24)
|
||||
#define MPI_FC_SID_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_SID_SHIFT (0)
|
||||
#define MPI_FC_CSCTL_MASK (0xFF000000)
|
||||
#define MPI_FC_CSCTL_SHIFT (24)
|
||||
#define MPI_FC_FCTL_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_FCTL_SHIFT (0)
|
||||
#define MPI_FC_TYPE_MASK (0xFF000000)
|
||||
#define MPI_FC_TYPE_SHIFT (24)
|
||||
|
||||
/* obsolete name for the above */
|
||||
#define FCP_TARGET_DID_MASK (0x00FFFFFF)
|
||||
#define FCP_TARGET_DID_SHIFT (0)
|
||||
#define FCP_TARGET_RCTL_MASK (0xFF000000)
|
||||
#define FCP_TARGET_RCTL_SHIFT (24)
|
||||
#define FCP_TARGET_SID_MASK (0x00FFFFFF)
|
||||
#define FCP_TARGET_SID_SHIFT (0)
|
||||
#define FCP_TARGET_CSCTL_MASK (0xFF000000)
|
||||
#define FCP_TARGET_CSCTL_SHIFT (24)
|
||||
#define FCP_TARGET_FCTL_MASK (0x00FFFFFF)
|
||||
#define FCP_TARGET_FCTL_SHIFT (0)
|
||||
#define FCP_TARGET_TYPE_MASK (0xFF000000)
|
||||
#define FCP_TARGET_TYPE_SHIFT (24)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Link Service Response messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_LINK_SERVICE_RSP_REQUEST
|
||||
{
|
||||
U8 RspFlags; /* 00h */
|
||||
U8 RspLength; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Rctl_Did; /* 0Ch */
|
||||
U32 Csctl_Sid; /* 10h */
|
||||
U32 Type_Fctl; /* 14h */
|
||||
U16 SeqCnt; /* 18h */
|
||||
U8 Dfctl; /* 1Ah */
|
||||
U8 SeqId; /* 1Bh */
|
||||
U16 Rxid; /* 1Ch */
|
||||
U16 Oxid; /* 1Eh */
|
||||
U32 Parameter; /* 20h */
|
||||
SGE_SIMPLE_UNION SGL; /* 24h */
|
||||
} MSG_LINK_SERVICE_RSP_REQUEST, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REQUEST,
|
||||
LinkServiceRspRequest_t, MPI_POINTER pLinkServiceRspRequest_t;
|
||||
|
||||
#define LINK_SERVICE_RSP_FLAGS_IMMEDIATE (0x80)
|
||||
#define LINK_SERVICE_RSP_FLAGS_PORT_MASK (0x01)
|
||||
|
||||
|
||||
/* Link Service Response Reply */
|
||||
typedef struct _MSG_LINK_SERVICE_RSP_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved_0100_InitiatorIndex; /* 06h */ /* obsolete InitiatorIndex */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 InitiatorIndex; /* 14h */
|
||||
} MSG_LINK_SERVICE_RSP_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REPLY,
|
||||
LinkServiceRspReply_t, MPI_POINTER pLinkServiceRspReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Extended Link Service Send messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U32 MsgFlags_Did; /* 04h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 ElsCommandCode; /* 0Ch */
|
||||
SGE_SIMPLE_UNION SGL; /* 10h */
|
||||
} MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST,
|
||||
ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t;
|
||||
|
||||
#define EX_LINK_SERVICE_SEND_DID_MASK (0x00FFFFFF)
|
||||
#define EX_LINK_SERVICE_SEND_DID_SHIFT (0)
|
||||
#define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK (0xFF000000)
|
||||
#define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT (24)
|
||||
|
||||
|
||||
/* Extended Link Service Send Reply */
|
||||
typedef struct _MSG_EXLINK_SERVICE_SEND_REPLY
|
||||
{
|
||||
U8 Reserved; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ResponseLength; /* 14h */
|
||||
} MSG_EXLINK_SERVICE_SEND_REPLY, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REPLY,
|
||||
ExLinkServiceSendReply_t, MPI_POINTER pExLinkServiceSendReply_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* FC Abort messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FC_ABORT_REQUEST
|
||||
{
|
||||
U8 AbortFlags; /* 00h */
|
||||
U8 AbortType; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 TransactionContextToAbort; /* 0Ch */
|
||||
} MSG_FC_ABORT_REQUEST, MPI_POINTER PTR_MSG_FC_ABORT_REQUEST,
|
||||
FcAbortRequest_t, MPI_POINTER pFcAbortRequest_t;
|
||||
|
||||
#define FC_ABORT_FLAG_PORT_MASK (0x01)
|
||||
|
||||
#define FC_ABORT_TYPE_ALL_FC_BUFFERS (0x00)
|
||||
#define FC_ABORT_TYPE_EXACT_FC_BUFFER (0x01)
|
||||
#define FC_ABORT_TYPE_CT_SEND_REQUEST (0x02)
|
||||
#define FC_ABORT_TYPE_EXLINKSEND_REQUEST (0x03)
|
||||
|
||||
/* FC Abort Reply */
|
||||
typedef struct _MSG_FC_ABORT_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_FC_ABORT_REPLY, MPI_POINTER PTR_MSG_FC_ABORT_REPLY,
|
||||
FcAbortReply_t, MPI_POINTER pFcAbortReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* FC Common Transport Send messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U32 MsgFlags_Did; /* 04h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 CTCommandCode; /* 0Ch */
|
||||
U8 FsType; /* 0Eh */
|
||||
U8 Reserved1; /* 0Fh */
|
||||
SGE_SIMPLE_UNION SGL; /* 10h */
|
||||
} MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
|
||||
MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
|
||||
FcCommonTransportSendRequest_t, MPI_POINTER pFcCommonTransportSendRequest_t;
|
||||
|
||||
#define MPI_FC_CT_SEND_DID_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_CT_SEND_DID_SHIFT (0)
|
||||
#define MPI_FC_CT_SEND_MSGFLAGS_MASK (0xFF000000)
|
||||
#define MPI_FC_CT_SEND_MSGFLAGS_SHIFT (24)
|
||||
|
||||
|
||||
/* FC Common Transport Send Reply */
|
||||
typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY
|
||||
{
|
||||
U8 Reserved; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ResponseLength; /* 14h */
|
||||
} MSG_FC_COMMON_TRANSPORT_SEND_REPLY, MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REPLY,
|
||||
FcCommonTransportSendReply_t, MPI_POINTER pFcCommonTransportSendReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* FC Primitive Send messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FC_PRIMITIVE_SEND_REQUEST
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 FcPrimitive[4]; /* 0Ch */
|
||||
} MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST,
|
||||
FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t;
|
||||
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK (0x01)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK (0x02)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK (0x04)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND (0x08)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE (0x10)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND (0x20)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL (0x40)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_FOREVER (0x80)
|
||||
|
||||
/* FC Primitive Send Reply */
|
||||
typedef struct _MSG_FC_PRIMITIVE_SEND_REPLY
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_FC_PRIMITIVE_SEND_REPLY, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REPLY,
|
||||
FcPrimitiveSendReply_t, MPI_POINTER pFcPrimitiveSendReply_t;
|
||||
|
||||
#endif
|
||||
|
||||
580
source/lsi/mpi_init.h
Executable file
580
source/lsi/mpi_init.h
Executable file
@@ -0,0 +1,580 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2008 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_init.h
|
||||
* Title: MPI initiator mode messages and structures
|
||||
* Creation Date: June 8, 2000
|
||||
*
|
||||
* mpi_init.h Version: 01.05.09
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added SenseBufferLength to _MSG_SCSI_IO_REPLY.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-08-00 01.00.02 Added MPI_SCSI_RSP_INFO_ definitions.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work.
|
||||
* 12-04-00 01.01.02 Added MPI_SCSIIO_CONTROL_NO_DISCONNECT.
|
||||
* 02-20-01 01.01.03 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.04 Added structure offset comments.
|
||||
* 04-10-01 01.01.05 Added new MsgFlag for MSG_SCSI_TASK_MGMT.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 08-29-01 01.02.02 Added MPI_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET.
|
||||
* Added MPI_SCSI_STATE_QUEUE_TAG_REJECTED for
|
||||
* MSG_SCSI_IO_REPLY.
|
||||
* 09-28-01 01.02.03 Added structures and defines for SCSI Enclosure
|
||||
* Processor messages.
|
||||
* 10-04-01 01.02.04 Added defines for SEP request Action field.
|
||||
* 05-31-02 01.02.05 Added MPI_SCSIIO_MSGFLGS_CMD_DETERMINES_DATA_DIR define
|
||||
* for SCSI IO requests.
|
||||
* 11-15-02 01.02.06 Added special extended SCSI Status defines for FCP.
|
||||
* 06-26-03 01.02.07 Added MPI_SCSI_STATUS_FCPEXT_UNASSIGNED define.
|
||||
* 05-11-04 01.03.01 Original release for MPI v1.3.
|
||||
* 08-19-04 01.05.01 Added MsgFlags defines for EEDP to SCSI IO request.
|
||||
* Added new word to MSG_SCSI_IO_REPLY to add TaskTag field
|
||||
* and a reserved U16.
|
||||
* Added new MSG_SCSI_IO32_REQUEST structure.
|
||||
* Added a TaskType of Clear Task Set to SCSI
|
||||
* Task Management request.
|
||||
* 12-07-04 01.05.02 Added support for Task Management Query Task.
|
||||
* 01-15-05 01.05.03 Modified SCSI Enclosure Processor Request to support
|
||||
* WWID addressing.
|
||||
* 03-11-05 01.05.04 Removed EEDP flags from SCSI IO Request.
|
||||
* Removed SCSI IO 32 Request.
|
||||
* Modified SCSI Enclosure Processor Request and Reply to
|
||||
* support Enclosure/Slot addressing rather than WWID
|
||||
* addressing.
|
||||
* 06-24-05 01.05.05 Added SCSI IO 32 structures and defines.
|
||||
* Added four new defines for SEP SlotStatus.
|
||||
* 08-03-05 01.05.06 Fixed some MPI_SCSIIO32_MSGFLGS_ defines to make them
|
||||
* unique in the first 32 characters.
|
||||
* 03-27-06 01.05.07 Added Task Management type of Clear ACA.
|
||||
* 10-11-06 01.05.08 Shortened define for Task Management type of Clear ACA.
|
||||
* 02-28-07 01.05.09 Defined two new MsgFlags bits for SCSI Task Management
|
||||
* Request: Do Not Send Task IU and Soft Reset Option.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_INIT_H
|
||||
#define MPI_INIT_H
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* S C S I I n i t i a t o r M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI IO messages and associated structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SCSI_IO_REQUEST
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 AliasIndex; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Control; /* 14h */
|
||||
U8 CDB[16]; /* 18h */
|
||||
U32 DataLength; /* 28h */
|
||||
U32 SenseBufferLowAddr; /* 2Ch */
|
||||
SGE_IO_UNION SGL; /* 30h */
|
||||
} MSG_SCSI_IO_REQUEST, MPI_POINTER PTR_MSG_SCSI_IO_REQUEST,
|
||||
SCSIIORequest_t, MPI_POINTER pSCSIIORequest_t;
|
||||
|
||||
|
||||
/* SCSI IO MsgFlags bits */
|
||||
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH (0x01)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_32 (0x00)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_64 (0x01)
|
||||
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_LOCATION (0x02)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_LOC_HOST (0x00)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_LOC_IOC (0x02)
|
||||
|
||||
#define MPI_SCSIIO_MSGFLGS_CMD_DETERMINES_DATA_DIR (0x04)
|
||||
|
||||
/* SCSI IO LUN fields */
|
||||
|
||||
#define MPI_SCSIIO_LUN_FIRST_LEVEL_ADDRESSING (0x0000FFFF)
|
||||
#define MPI_SCSIIO_LUN_SECOND_LEVEL_ADDRESSING (0xFFFF0000)
|
||||
#define MPI_SCSIIO_LUN_THIRD_LEVEL_ADDRESSING (0x0000FFFF)
|
||||
#define MPI_SCSIIO_LUN_FOURTH_LEVEL_ADDRESSING (0xFFFF0000)
|
||||
#define MPI_SCSIIO_LUN_LEVEL_1_WORD (0xFF00)
|
||||
#define MPI_SCSIIO_LUN_LEVEL_1_DWORD (0x0000FF00)
|
||||
|
||||
/* SCSI IO Control bits */
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_DATADIRECTION_MASK (0x03000000)
|
||||
#define MPI_SCSIIO_CONTROL_NODATATRANSFER (0x00000000)
|
||||
#define MPI_SCSIIO_CONTROL_WRITE (0x01000000)
|
||||
#define MPI_SCSIIO_CONTROL_READ (0x02000000)
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_ADDCDBLEN_MASK (0x3C000000)
|
||||
#define MPI_SCSIIO_CONTROL_ADDCDBLEN_SHIFT (26)
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_TASKATTRIBUTE_MASK (0x00000700)
|
||||
#define MPI_SCSIIO_CONTROL_SIMPLEQ (0x00000000)
|
||||
#define MPI_SCSIIO_CONTROL_HEADOFQ (0x00000100)
|
||||
#define MPI_SCSIIO_CONTROL_ORDEREDQ (0x00000200)
|
||||
#define MPI_SCSIIO_CONTROL_ACAQ (0x00000400)
|
||||
#define MPI_SCSIIO_CONTROL_UNTAGGED (0x00000500)
|
||||
#define MPI_SCSIIO_CONTROL_NO_DISCONNECT (0x00000700)
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_TASKMANAGE_MASK (0x00FF0000)
|
||||
#define MPI_SCSIIO_CONTROL_OBSOLETE (0x00800000)
|
||||
#define MPI_SCSIIO_CONTROL_CLEAR_ACA_RSV (0x00400000)
|
||||
#define MPI_SCSIIO_CONTROL_TARGET_RESET (0x00200000)
|
||||
#define MPI_SCSIIO_CONTROL_LUN_RESET_RSV (0x00100000)
|
||||
#define MPI_SCSIIO_CONTROL_RESERVED (0x00080000)
|
||||
#define MPI_SCSIIO_CONTROL_CLR_TASK_SET_RSV (0x00040000)
|
||||
#define MPI_SCSIIO_CONTROL_ABORT_TASK_SET (0x00020000)
|
||||
#define MPI_SCSIIO_CONTROL_RESERVED2 (0x00010000)
|
||||
|
||||
|
||||
/* SCSI IO reply structure */
|
||||
typedef struct _MSG_SCSI_IO_REPLY
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 AliasIndex; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 SCSIStatus; /* 0Ch */
|
||||
U8 SCSIState; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferCount; /* 14h */
|
||||
U32 SenseCount; /* 18h */
|
||||
U32 ResponseInfo; /* 1Ch */
|
||||
U16 TaskTag; /* 20h */
|
||||
U16 Reserved1; /* 22h */
|
||||
} MSG_SCSI_IO_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_REPLY,
|
||||
SCSIIOReply_t, MPI_POINTER pSCSIIOReply_t;
|
||||
|
||||
|
||||
/* SCSI IO Reply SCSIStatus values (SAM-2 status codes) */
|
||||
|
||||
#define MPI_SCSI_STATUS_SUCCESS (0x00)
|
||||
#define MPI_SCSI_STATUS_CHECK_CONDITION (0x02)
|
||||
#define MPI_SCSI_STATUS_CONDITION_MET (0x04)
|
||||
#define MPI_SCSI_STATUS_BUSY (0x08)
|
||||
#define MPI_SCSI_STATUS_INTERMEDIATE (0x10)
|
||||
#define MPI_SCSI_STATUS_INTERMEDIATE_CONDMET (0x14)
|
||||
#define MPI_SCSI_STATUS_RESERVATION_CONFLICT (0x18)
|
||||
#define MPI_SCSI_STATUS_COMMAND_TERMINATED (0x22)
|
||||
#define MPI_SCSI_STATUS_TASK_SET_FULL (0x28)
|
||||
#define MPI_SCSI_STATUS_ACA_ACTIVE (0x30)
|
||||
|
||||
#define MPI_SCSI_STATUS_FCPEXT_DEVICE_LOGGED_OUT (0x80)
|
||||
#define MPI_SCSI_STATUS_FCPEXT_NO_LINK (0x81)
|
||||
#define MPI_SCSI_STATUS_FCPEXT_UNASSIGNED (0x82)
|
||||
|
||||
|
||||
/* SCSI IO Reply SCSIState values */
|
||||
|
||||
#define MPI_SCSI_STATE_AUTOSENSE_VALID (0x01)
|
||||
#define MPI_SCSI_STATE_AUTOSENSE_FAILED (0x02)
|
||||
#define MPI_SCSI_STATE_NO_SCSI_STATUS (0x04)
|
||||
#define MPI_SCSI_STATE_TERMINATED (0x08)
|
||||
#define MPI_SCSI_STATE_RESPONSE_INFO_VALID (0x10)
|
||||
#define MPI_SCSI_STATE_QUEUE_TAG_REJECTED (0x20)
|
||||
|
||||
/* SCSI IO Reply ResponseInfo values */
|
||||
/* (FCP-1 RSP_CODE values and SPI-3 Packetized Failure codes) */
|
||||
|
||||
#define MPI_SCSI_RSP_INFO_FUNCTION_COMPLETE (0x00000000)
|
||||
#define MPI_SCSI_RSP_INFO_FCP_BURST_LEN_ERROR (0x01000000)
|
||||
#define MPI_SCSI_RSP_INFO_CMND_FIELDS_INVALID (0x02000000)
|
||||
#define MPI_SCSI_RSP_INFO_FCP_DATA_RO_ERROR (0x03000000)
|
||||
#define MPI_SCSI_RSP_INFO_TASK_MGMT_UNSUPPORTED (0x04000000)
|
||||
#define MPI_SCSI_RSP_INFO_TASK_MGMT_FAILED (0x05000000)
|
||||
#define MPI_SCSI_RSP_INFO_SPI_LQ_INVALID_TYPE (0x06000000)
|
||||
|
||||
#define MPI_SCSI_TASKTAG_UNKNOWN (0xFFFF)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI IO 32 messages and associated structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
U8 CDB[20]; /* 00h */
|
||||
U32 PrimaryReferenceTag; /* 14h */
|
||||
U16 PrimaryApplicationTag; /* 18h */
|
||||
U16 PrimaryApplicationTagMask; /* 1Ah */
|
||||
U32 TransferLength; /* 1Ch */
|
||||
} MPI_SCSI_IO32_CDB_EEDP32, MPI_POINTER PTR_MPI_SCSI_IO32_CDB_EEDP32,
|
||||
MpiScsiIo32CdbEedp32_t, MPI_POINTER pMpiScsiIo32CdbEedp32_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
U8 CDB[16]; /* 00h */
|
||||
U32 DataLength; /* 10h */
|
||||
U32 PrimaryReferenceTag; /* 14h */
|
||||
U16 PrimaryApplicationTag; /* 18h */
|
||||
U16 PrimaryApplicationTagMask; /* 1Ah */
|
||||
U32 TransferLength; /* 1Ch */
|
||||
} MPI_SCSI_IO32_CDB_EEDP16, MPI_POINTER PTR_MPI_SCSI_IO32_CDB_EEDP16,
|
||||
MpiScsiIo32CdbEedp16_t, MPI_POINTER pMpiScsiIo32CdbEedp16_t;
|
||||
|
||||
typedef union
|
||||
{
|
||||
U8 CDB32[32];
|
||||
MPI_SCSI_IO32_CDB_EEDP32 EEDP32;
|
||||
MPI_SCSI_IO32_CDB_EEDP16 EEDP16;
|
||||
SGE_SIMPLE_UNION SGE;
|
||||
} MPI_SCSI_IO32_CDB_UNION, MPI_POINTER PTR_MPI_SCSI_IO32_CDB_UNION,
|
||||
MpiScsiIo32Cdb_t, MPI_POINTER pMpiScsiIo32Cdb_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U16 Reserved1; /* 02h */
|
||||
U32 Reserved2; /* 04h */
|
||||
} MPI_SCSI_IO32_BUS_TARGET_ID_FORM, MPI_POINTER PTR_MPI_SCSI_IO32_BUS_TARGET_ID_FORM,
|
||||
MpiScsiIo32BusTargetIdForm_t, MPI_POINTER pMpiScsiIo32BusTargetIdForm_t;
|
||||
|
||||
typedef union
|
||||
{
|
||||
MPI_SCSI_IO32_BUS_TARGET_ID_FORM SCSIID;
|
||||
U64 WWID;
|
||||
} MPI_SCSI_IO32_ADDRESS, MPI_POINTER PTR_MPI_SCSI_IO32_ADDRESS,
|
||||
MpiScsiIo32Address_t, MPI_POINTER pMpiScsiIo32Address_t;
|
||||
|
||||
typedef struct _MSG_SCSI_IO32_REQUEST
|
||||
{
|
||||
U8 Port; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Flags; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Control; /* 14h */
|
||||
MPI_SCSI_IO32_CDB_UNION CDB; /* 18h */
|
||||
U32 DataLength; /* 38h */
|
||||
U32 BidirectionalDataLength; /* 3Ch */
|
||||
U32 SecondaryReferenceTag; /* 40h */
|
||||
U16 SecondaryApplicationTag; /* 44h */
|
||||
U16 Reserved2; /* 46h */
|
||||
U16 EEDPFlags; /* 48h */
|
||||
U16 ApplicationTagTranslationMask; /* 4Ah */
|
||||
U32 EEDPBlockSize; /* 4Ch */
|
||||
MPI_SCSI_IO32_ADDRESS DeviceAddress; /* 50h */
|
||||
U8 SGLOffset0; /* 58h */
|
||||
U8 SGLOffset1; /* 59h */
|
||||
U8 SGLOffset2; /* 5Ah */
|
||||
U8 SGLOffset3; /* 5Bh */
|
||||
U32 Reserved3; /* 5Ch */
|
||||
U32 Reserved4; /* 60h */
|
||||
U32 SenseBufferLowAddr; /* 64h */
|
||||
SGE_IO_UNION SGL; /* 68h */
|
||||
} MSG_SCSI_IO32_REQUEST, MPI_POINTER PTR_MSG_SCSI_IO32_REQUEST,
|
||||
SCSIIO32Request_t, MPI_POINTER pSCSIIO32Request_t;
|
||||
|
||||
/* SCSI IO 32 MsgFlags bits */
|
||||
#define MPI_SCSIIO32_MSGFLGS_SENSE_WIDTH (0x01)
|
||||
#define MPI_SCSIIO32_MSGFLGS_32_SENSE_WIDTH (0x00)
|
||||
#define MPI_SCSIIO32_MSGFLGS_64_SENSE_WIDTH (0x01)
|
||||
|
||||
#define MPI_SCSIIO32_MSGFLGS_SENSE_LOCATION (0x02)
|
||||
#define MPI_SCSIIO32_MSGFLGS_SENSE_LOC_HOST (0x00)
|
||||
#define MPI_SCSIIO32_MSGFLGS_SENSE_LOC_IOC (0x02)
|
||||
|
||||
#define MPI_SCSIIO32_MSGFLGS_CMD_DETERMINES_DATA_DIR (0x04)
|
||||
#define MPI_SCSIIO32_MSGFLGS_SGL_OFFSETS_CHAINS (0x08)
|
||||
#define MPI_SCSIIO32_MSGFLGS_MULTICAST (0x10)
|
||||
#define MPI_SCSIIO32_MSGFLGS_BIDIRECTIONAL (0x20)
|
||||
#define MPI_SCSIIO32_MSGFLGS_LARGE_CDB (0x40)
|
||||
|
||||
/* SCSI IO 32 Flags bits */
|
||||
#define MPI_SCSIIO32_FLAGS_FORM_MASK (0x03)
|
||||
#define MPI_SCSIIO32_FLAGS_FORM_SCSIID (0x00)
|
||||
#define MPI_SCSIIO32_FLAGS_FORM_WWID (0x01)
|
||||
|
||||
/* SCSI IO 32 LUN fields */
|
||||
#define MPI_SCSIIO32_LUN_FIRST_LEVEL_ADDRESSING (0x0000FFFF)
|
||||
#define MPI_SCSIIO32_LUN_SECOND_LEVEL_ADDRESSING (0xFFFF0000)
|
||||
#define MPI_SCSIIO32_LUN_THIRD_LEVEL_ADDRESSING (0x0000FFFF)
|
||||
#define MPI_SCSIIO32_LUN_FOURTH_LEVEL_ADDRESSING (0xFFFF0000)
|
||||
#define MPI_SCSIIO32_LUN_LEVEL_1_WORD (0xFF00)
|
||||
#define MPI_SCSIIO32_LUN_LEVEL_1_DWORD (0x0000FF00)
|
||||
|
||||
/* SCSI IO 32 Control bits */
|
||||
#define MPI_SCSIIO32_CONTROL_DATADIRECTION_MASK (0x03000000)
|
||||
#define MPI_SCSIIO32_CONTROL_NODATATRANSFER (0x00000000)
|
||||
#define MPI_SCSIIO32_CONTROL_WRITE (0x01000000)
|
||||
#define MPI_SCSIIO32_CONTROL_READ (0x02000000)
|
||||
#define MPI_SCSIIO32_CONTROL_BIDIRECTIONAL (0x03000000)
|
||||
|
||||
#define MPI_SCSIIO32_CONTROL_ADDCDBLEN_MASK (0xFC000000)
|
||||
#define MPI_SCSIIO32_CONTROL_ADDCDBLEN_SHIFT (26)
|
||||
|
||||
#define MPI_SCSIIO32_CONTROL_TASKATTRIBUTE_MASK (0x00000700)
|
||||
#define MPI_SCSIIO32_CONTROL_SIMPLEQ (0x00000000)
|
||||
#define MPI_SCSIIO32_CONTROL_HEADOFQ (0x00000100)
|
||||
#define MPI_SCSIIO32_CONTROL_ORDEREDQ (0x00000200)
|
||||
#define MPI_SCSIIO32_CONTROL_ACAQ (0x00000400)
|
||||
#define MPI_SCSIIO32_CONTROL_UNTAGGED (0x00000500)
|
||||
#define MPI_SCSIIO32_CONTROL_NO_DISCONNECT (0x00000700)
|
||||
|
||||
#define MPI_SCSIIO32_CONTROL_TASKMANAGE_MASK (0x00FF0000)
|
||||
#define MPI_SCSIIO32_CONTROL_OBSOLETE (0x00800000)
|
||||
#define MPI_SCSIIO32_CONTROL_CLEAR_ACA_RSV (0x00400000)
|
||||
#define MPI_SCSIIO32_CONTROL_TARGET_RESET (0x00200000)
|
||||
#define MPI_SCSIIO32_CONTROL_LUN_RESET_RSV (0x00100000)
|
||||
#define MPI_SCSIIO32_CONTROL_RESERVED (0x00080000)
|
||||
#define MPI_SCSIIO32_CONTROL_CLR_TASK_SET_RSV (0x00040000)
|
||||
#define MPI_SCSIIO32_CONTROL_ABORT_TASK_SET (0x00020000)
|
||||
#define MPI_SCSIIO32_CONTROL_RESERVED2 (0x00010000)
|
||||
|
||||
/* SCSI IO 32 EEDPFlags */
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_MASK_OP (0x0007)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_NOOP_OP (0x0000)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_CHK_OP (0x0001)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_STRIP_OP (0x0002)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_CHKRM_OP (0x0003)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_INSERT_OP (0x0004)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_REPLACE_OP (0x0006)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_CHKREGEN_OP (0x0007)
|
||||
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_PASS_REF_TAG (0x0008)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_8_9THS_MODE (0x0010)
|
||||
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_T10_CHK_MASK (0x0700)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_T10_CHK_GUARD (0x0100)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_T10_CHK_REFTAG (0x0200)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_T10_CHK_LBATAG (0x0400)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_T10_CHK_SHIFT (8)
|
||||
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_INC_SEC_APPTAG (0x1000)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_INC_PRI_APPTAG (0x2000)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_INC_SEC_REFTAG (0x4000)
|
||||
#define MPI_SCSIIO32_EEDPFLAGS_INC_PRI_REFTAG (0x8000)
|
||||
|
||||
|
||||
/* SCSIIO32 IO reply structure */
|
||||
typedef struct _MSG_SCSIIO32_IO_REPLY
|
||||
{
|
||||
U8 Port; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Flags; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 SCSIStatus; /* 0Ch */
|
||||
U8 SCSIState; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferCount; /* 14h */
|
||||
U32 SenseCount; /* 18h */
|
||||
U32 ResponseInfo; /* 1Ch */
|
||||
U16 TaskTag; /* 20h */
|
||||
U16 Reserved2; /* 22h */
|
||||
U32 BidirectionalTransferCount; /* 24h */
|
||||
} MSG_SCSIIO32_IO_REPLY, MPI_POINTER PTR_MSG_SCSIIO32_IO_REPLY,
|
||||
SCSIIO32Reply_t, MPI_POINTER pSCSIIO32Reply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI Task Management messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SCSI_TASK_MGMT
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved; /* 04h */
|
||||
U8 TaskType; /* 05h */
|
||||
U8 AliasIndex; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Reserved2[7]; /* 14h */
|
||||
U32 TaskMsgContext; /* 30h */
|
||||
} MSG_SCSI_TASK_MGMT, MPI_POINTER PTR_SCSI_TASK_MGMT,
|
||||
SCSITaskMgmt_t, MPI_POINTER pSCSITaskMgmt_t;
|
||||
|
||||
/* TaskType values */
|
||||
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_ABORT_TASK (0x01)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_ABRT_TASK_SET (0x02)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET (0x03)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS (0x04)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET (0x05)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_CLEAR_TASK_SET (0x06)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_QUERY_TASK (0x07)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_CLR_ACA (0x08)
|
||||
|
||||
/* MsgFlags bits */
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_DO_NOT_SEND_TASK_IU (0x01)
|
||||
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_TARGET_RESET_OPTION (0x00)
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_LIP_RESET_OPTION (0x02)
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_LIPRESET_RESET_OPTION (0x04)
|
||||
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_SOFT_RESET_OPTION (0x08)
|
||||
|
||||
/* SCSI Task Management Reply */
|
||||
typedef struct _MSG_SCSI_TASK_MGMT_REPLY
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 ResponseCode; /* 04h */
|
||||
U8 TaskType; /* 05h */
|
||||
U8 AliasIndex; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Reserved2[2]; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TerminationCount; /* 14h */
|
||||
} MSG_SCSI_TASK_MGMT_REPLY, MPI_POINTER PTR_MSG_SCSI_TASK_MGMT_REPLY,
|
||||
SCSITaskMgmtReply_t, MPI_POINTER pSCSITaskMgmtReply_t;
|
||||
|
||||
/* ResponseCode values */
|
||||
#define MPI_SCSITASKMGMT_RSP_TM_COMPLETE (0x00)
|
||||
#define MPI_SCSITASKMGMT_RSP_INVALID_FRAME (0x02)
|
||||
#define MPI_SCSITASKMGMT_RSP_TM_NOT_SUPPORTED (0x04)
|
||||
#define MPI_SCSITASKMGMT_RSP_TM_FAILED (0x05)
|
||||
#define MPI_SCSITASKMGMT_RSP_TM_SUCCEEDED (0x08)
|
||||
#define MPI_SCSITASKMGMT_RSP_TM_INVALID_LUN (0x09)
|
||||
#define MPI_SCSITASKMGMT_RSP_IO_QUEUED_ON_IOC (0x80)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI Enclosure Processor messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SEP_REQUEST
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Action; /* 04h */
|
||||
U8 Flags; /* 05h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 SlotStatus; /* 0Ch */
|
||||
U32 Reserved2; /* 10h */
|
||||
U32 Reserved3; /* 14h */
|
||||
U32 Reserved4; /* 18h */
|
||||
U16 Slot; /* 1Ch */
|
||||
U16 EnclosureHandle; /* 1Eh */
|
||||
} MSG_SEP_REQUEST, MPI_POINTER PTR_MSG_SEP_REQUEST,
|
||||
SEPRequest_t, MPI_POINTER pSEPRequest_t;
|
||||
|
||||
/* Action defines */
|
||||
#define MPI_SEP_REQ_ACTION_WRITE_STATUS (0x00)
|
||||
#define MPI_SEP_REQ_ACTION_READ_STATUS (0x01)
|
||||
|
||||
/* Flags defines */
|
||||
#define MPI_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS (0x01)
|
||||
#define MPI_SEP_REQ_FLAGS_BUS_TARGETID_ADDRESS (0x00)
|
||||
|
||||
/* SlotStatus bits for MSG_SEP_REQUEST */
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_NO_ERROR (0x00000001)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DEV_FAULTY (0x00000002)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DEV_REBUILDING (0x00000004)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_IN_FAILED_ARRAY (0x00000008)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_IN_CRITICAL_ARRAY (0x00000010)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_PARITY_CHECK (0x00000020)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT (0x00000040)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_UNCONFIGURED (0x00000080)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_HOT_SPARE (0x00000100)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REBUILD_STOPPED (0x00000200)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REQ_CONSISTENCY_CHECK (0x00001000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DISABLE (0x00002000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REQ_RESERVED_DEVICE (0x00004000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_IDENTIFY_REQUEST (0x00020000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REQUEST_REMOVE (0x00040000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REQUEST_INSERT (0x00080000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DO_NOT_MOVE (0x00400000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_ACTIVE (0x00800000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_B_ENABLE_BYPASS (0x04000000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_A_ENABLE_BYPASS (0x08000000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DEV_OFF (0x10000000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_SWAP_RESET (0x80000000)
|
||||
|
||||
|
||||
typedef struct _MSG_SEP_REPLY
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Action; /* 04h */
|
||||
U8 Reserved1; /* 05h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 SlotStatus; /* 14h */
|
||||
U32 Reserved4; /* 18h */
|
||||
U16 Slot; /* 1Ch */
|
||||
U16 EnclosureHandle; /* 1Eh */
|
||||
} MSG_SEP_REPLY, MPI_POINTER PTR_MSG_SEP_REPLY,
|
||||
SEPReply_t, MPI_POINTER pSEPReply_t;
|
||||
|
||||
/* SlotStatus bits for MSG_SEP_REPLY */
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_NO_ERROR (0x00000001)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DEV_FAULTY (0x00000002)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DEV_REBUILDING (0x00000004)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_IN_FAILED_ARRAY (0x00000008)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_IN_CRITICAL_ARRAY (0x00000010)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_PARITY_CHECK (0x00000020)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_PREDICTED_FAULT (0x00000040)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_UNCONFIGURED (0x00000080)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_HOT_SPARE (0x00000100)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_REBUILD_STOPPED (0x00000200)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_CONSISTENCY_CHECK (0x00001000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DISABLE (0x00002000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_RESERVED_DEVICE (0x00004000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_REPORT (0x00010000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_IDENTIFY_REQUEST (0x00020000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_REMOVE_READY (0x00040000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_INSERT_READY (0x00080000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DO_NOT_REMOVE (0x00400000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_ACTIVE (0x00800000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_B_BYPASS_ENABLED (0x01000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_A_BYPASS_ENABLED (0x02000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_B_ENABLE_BYPASS (0x04000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_A_ENABLE_BYPASS (0x08000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DEV_OFF (0x10000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_FAULT_SENSED (0x40000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_SWAPPED (0x80000000)
|
||||
|
||||
#endif
|
||||
1206
source/lsi/mpi_ioc.h
Executable file
1206
source/lsi/mpi_ioc.h
Executable file
File diff suppressed because it is too large
Load Diff
259
source/lsi/mpi_raid.h
Executable file
259
source/lsi/mpi_raid.h
Executable file
@@ -0,0 +1,259 @@
|
||||
/*
|
||||
* Copyright (c) 2001-2008 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_raid.h
|
||||
* Title: MPI RAID message and structures
|
||||
* Creation Date: February 27, 2001
|
||||
*
|
||||
* mpi_raid.h Version: 01.05.05
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 02-27-01 01.01.01 Original release for this file.
|
||||
* 03-27-01 01.01.02 Added structure offset comments.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 09-28-01 01.02.02 Major rework for MPI v1.2 Integrated RAID changes.
|
||||
* 10-04-01 01.02.03 Added ActionData defines for
|
||||
* MPI_RAID_ACTION_DELETE_VOLUME action.
|
||||
* 11-01-01 01.02.04 Added define for MPI_RAID_ACTION_ADATA_DO_NOT_SYNC.
|
||||
* 03-14-02 01.02.05 Added define for MPI_RAID_ACTION_ADATA_LOW_LEVEL_INIT.
|
||||
* 05-07-02 01.02.06 Added define for MPI_RAID_ACTION_ACTIVATE_VOLUME,
|
||||
* MPI_RAID_ACTION_INACTIVATE_VOLUME, and
|
||||
* MPI_RAID_ACTION_ADATA_INACTIVATE_ALL.
|
||||
* 07-12-02 01.02.07 Added structures for Mailbox request and reply.
|
||||
* 11-15-02 01.02.08 Added missing MsgContext field to MSG_MAILBOX_REQUEST.
|
||||
* 04-01-03 01.02.09 New action data option flag for
|
||||
* MPI_RAID_ACTION_DELETE_VOLUME.
|
||||
* 05-11-04 01.03.01 Original release for MPI v1.3.
|
||||
* 08-19-04 01.05.01 Original release for MPI v1.5.
|
||||
* 01-15-05 01.05.02 Added defines for the two new RAID Actions for
|
||||
* _SET_RESYNC_RATE and _SET_DATA_SCRUB_RATE.
|
||||
* 02-28-07 01.05.03 Added new RAID Action, Device FW Update Mode, and
|
||||
* associated defines.
|
||||
* 08-07-07 01.05.04 Added Disable Full Rebuild bit to the ActionDataWord
|
||||
* for the RAID Action MPI_RAID_ACTION_DISABLE_VOLUME.
|
||||
* 01-15-08 01.05.05 Added define for MPI_RAID_ACTION_SET_VOLUME_NAME.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_RAID_H
|
||||
#define MPI_RAID_H
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* R A I D M e s s a g e s
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* RAID Action Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_RAID_ACTION
|
||||
{
|
||||
U8 Action; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 VolumeID; /* 04h */
|
||||
U8 VolumeBus; /* 05h */
|
||||
U8 PhysDiskNum; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved2; /* 0Ch */
|
||||
U32 ActionDataWord; /* 10h */
|
||||
SGE_SIMPLE_UNION ActionDataSGE; /* 14h */
|
||||
} MSG_RAID_ACTION_REQUEST, MPI_POINTER PTR_MSG_RAID_ACTION_REQUEST,
|
||||
MpiRaidActionRequest_t , MPI_POINTER pMpiRaidActionRequest_t;
|
||||
|
||||
|
||||
/* RAID Action request Action values */
|
||||
|
||||
#define MPI_RAID_ACTION_STATUS (0x00)
|
||||
#define MPI_RAID_ACTION_INDICATOR_STRUCT (0x01)
|
||||
#define MPI_RAID_ACTION_CREATE_VOLUME (0x02)
|
||||
#define MPI_RAID_ACTION_DELETE_VOLUME (0x03)
|
||||
#define MPI_RAID_ACTION_DISABLE_VOLUME (0x04)
|
||||
#define MPI_RAID_ACTION_ENABLE_VOLUME (0x05)
|
||||
#define MPI_RAID_ACTION_QUIESCE_PHYS_IO (0x06)
|
||||
#define MPI_RAID_ACTION_ENABLE_PHYS_IO (0x07)
|
||||
#define MPI_RAID_ACTION_CHANGE_VOLUME_SETTINGS (0x08)
|
||||
#define MPI_RAID_ACTION_PHYSDISK_OFFLINE (0x0A)
|
||||
#define MPI_RAID_ACTION_PHYSDISK_ONLINE (0x0B)
|
||||
#define MPI_RAID_ACTION_CHANGE_PHYSDISK_SETTINGS (0x0C)
|
||||
#define MPI_RAID_ACTION_CREATE_PHYSDISK (0x0D)
|
||||
#define MPI_RAID_ACTION_DELETE_PHYSDISK (0x0E)
|
||||
#define MPI_RAID_ACTION_FAIL_PHYSDISK (0x0F)
|
||||
#define MPI_RAID_ACTION_REPLACE_PHYSDISK (0x10)
|
||||
#define MPI_RAID_ACTION_ACTIVATE_VOLUME (0x11)
|
||||
#define MPI_RAID_ACTION_INACTIVATE_VOLUME (0x12)
|
||||
#define MPI_RAID_ACTION_SET_RESYNC_RATE (0x13)
|
||||
#define MPI_RAID_ACTION_SET_DATA_SCRUB_RATE (0x14)
|
||||
#define MPI_RAID_ACTION_DEVICE_FW_UPDATE_MODE (0x15)
|
||||
#define MPI_RAID_ACTION_SET_VOLUME_NAME (0x16)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_CREATE_VOLUME action */
|
||||
#define MPI_RAID_ACTION_ADATA_DO_NOT_SYNC (0x00000001)
|
||||
#define MPI_RAID_ACTION_ADATA_LOW_LEVEL_INIT (0x00000002)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_DELETE_VOLUME action */
|
||||
#define MPI_RAID_ACTION_ADATA_KEEP_PHYS_DISKS (0x00000000)
|
||||
#define MPI_RAID_ACTION_ADATA_DEL_PHYS_DISKS (0x00000001)
|
||||
|
||||
#define MPI_RAID_ACTION_ADATA_KEEP_LBA0 (0x00000000)
|
||||
#define MPI_RAID_ACTION_ADATA_ZERO_LBA0 (0x00000002)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_DISABLE_VOLUME action */
|
||||
#define MPI_RAID_ACTION_ADATA_DISABLE_FULL_REBUILD (0x00000001)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_ACTIVATE_VOLUME action */
|
||||
#define MPI_RAID_ACTION_ADATA_INACTIVATE_ALL (0x00000001)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_SET_RESYNC_RATE action */
|
||||
#define MPI_RAID_ACTION_ADATA_RESYNC_RATE_MASK (0x000000FF)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_SET_DATA_SCRUB_RATE action */
|
||||
#define MPI_RAID_ACTION_ADATA_DATA_SCRUB_RATE_MASK (0x000000FF)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_DEVICE_FW_UPDATE_MODE action */
|
||||
#define MPI_RAID_ACTION_ADATA_ENABLE_FW_UPDATE (0x00000001)
|
||||
#define MPI_RAID_ACTION_ADATA_MASK_FW_UPDATE_TIMEOUT (0x0000FF00)
|
||||
#define MPI_RAID_ACTION_ADATA_SHIFT_FW_UPDATE_TIMEOUT (8)
|
||||
|
||||
|
||||
/* RAID Action reply message */
|
||||
|
||||
typedef struct _MSG_RAID_ACTION_REPLY
|
||||
{
|
||||
U8 Action; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 VolumeID; /* 04h */
|
||||
U8 VolumeBus; /* 05h */
|
||||
U8 PhysDiskNum; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 ActionStatus; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 VolumeStatus; /* 14h */
|
||||
U32 ActionData; /* 18h */
|
||||
} MSG_RAID_ACTION_REPLY, MPI_POINTER PTR_MSG_RAID_ACTION_REPLY,
|
||||
MpiRaidActionReply_t, MPI_POINTER pMpiRaidActionReply_t;
|
||||
|
||||
|
||||
/* RAID Volume reply ActionStatus values */
|
||||
|
||||
#define MPI_RAID_ACTION_ASTATUS_SUCCESS (0x0000)
|
||||
#define MPI_RAID_ACTION_ASTATUS_INVALID_ACTION (0x0001)
|
||||
#define MPI_RAID_ACTION_ASTATUS_FAILURE (0x0002)
|
||||
#define MPI_RAID_ACTION_ASTATUS_IN_PROGRESS (0x0003)
|
||||
|
||||
|
||||
/* RAID Volume reply RAID Volume Indicator structure */
|
||||
|
||||
typedef struct _MPI_RAID_VOL_INDICATOR
|
||||
{
|
||||
U64 TotalBlocks; /* 00h */
|
||||
U64 BlocksRemaining; /* 08h */
|
||||
} MPI_RAID_VOL_INDICATOR, MPI_POINTER PTR_MPI_RAID_VOL_INDICATOR,
|
||||
MpiRaidVolIndicator_t, MPI_POINTER pMpiRaidVolIndicator_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI IO RAID Passthrough Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SCSI_IO_RAID_PT_REQUEST
|
||||
{
|
||||
U8 PhysDiskNum; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Control; /* 14h */
|
||||
U8 CDB[16]; /* 18h */
|
||||
U32 DataLength; /* 28h */
|
||||
U32 SenseBufferLowAddr; /* 2Ch */
|
||||
SGE_IO_UNION SGL; /* 30h */
|
||||
} MSG_SCSI_IO_RAID_PT_REQUEST, MPI_POINTER PTR_MSG_SCSI_IO_RAID_PT_REQUEST,
|
||||
SCSIIORaidPassthroughRequest_t, MPI_POINTER pSCSIIORaidPassthroughRequest_t;
|
||||
|
||||
|
||||
/* SCSI IO RAID Passthrough reply structure */
|
||||
|
||||
typedef struct _MSG_SCSI_IO_RAID_PT_REPLY
|
||||
{
|
||||
U8 PhysDiskNum; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 SCSIStatus; /* 0Ch */
|
||||
U8 SCSIState; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferCount; /* 14h */
|
||||
U32 SenseCount; /* 18h */
|
||||
U32 ResponseInfo; /* 1Ch */
|
||||
} MSG_SCSI_IO_RAID_PT_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_RAID_PT_REPLY,
|
||||
SCSIIORaidPassthroughReply_t, MPI_POINTER pSCSIIORaidPassthroughReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Mailbox reqeust structure */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_MAILBOX_REQUEST
|
||||
{
|
||||
U16 Reserved1;
|
||||
U8 ChainOffset;
|
||||
U8 Function;
|
||||
U16 Reserved2;
|
||||
U8 Reserved3;
|
||||
U8 MsgFlags;
|
||||
U32 MsgContext;
|
||||
U8 Command[10];
|
||||
U16 Reserved4;
|
||||
SGE_IO_UNION SGL;
|
||||
} MSG_MAILBOX_REQUEST, MPI_POINTER PTR_MSG_MAILBOX_REQUEST,
|
||||
MailboxRequest_t, MPI_POINTER pMailboxRequest_t;
|
||||
|
||||
|
||||
/* Mailbox reply structure */
|
||||
typedef struct _MSG_MAILBOX_REPLY
|
||||
{
|
||||
U16 Reserved1; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 MailboxStatus; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 Reserved4; /* 14h */
|
||||
} MSG_MAILBOX_REPLY, MPI_POINTER PTR_MSG_MAILBOX_REPLY,
|
||||
MailboxReply_t, MPI_POINTER pMailboxReply_t;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
278
source/lsi/mpi_sas.h
Executable file
278
source/lsi/mpi_sas.h
Executable file
@@ -0,0 +1,278 @@
|
||||
/*
|
||||
* Copyright (c) 2004-2008 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_sas.h
|
||||
* Title: MPI Serial Attached SCSI structures and definitions
|
||||
* Creation Date: August 19, 2004
|
||||
*
|
||||
* mpi_sas.h Version: 01.05.05
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 08-19-04 01.05.01 Original release.
|
||||
* 08-30-05 01.05.02 Added DeviceInfo bit for SEP.
|
||||
* Added PrimFlags and Primitive field to SAS IO Unit
|
||||
* Control request, and added a new operation code.
|
||||
* 03-27-06 01.05.03 Added Force Full Discovery, Transmit Port Select Signal,
|
||||
* and Remove Device operations to SAS IO Unit Control.
|
||||
* Added DevHandle field to SAS IO Unit Control request and
|
||||
* reply.
|
||||
* 10-11-06 01.05.04 Fixed the name of a define for Operation field of SAS IO
|
||||
* Unit Control request.
|
||||
* 01-15-08 01.05.05 Added support for MPI_SAS_OP_SET_IOC_PARAMETER,
|
||||
* including adding IOCParameter and IOCParameter value
|
||||
* fields to SAS IO Unit Control Request.
|
||||
* Added MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC define.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_SAS_H
|
||||
#define MPI_SAS_H
|
||||
|
||||
|
||||
/*
|
||||
* Values for SASStatus.
|
||||
*/
|
||||
#define MPI_SASSTATUS_SUCCESS (0x00)
|
||||
#define MPI_SASSTATUS_UNKNOWN_ERROR (0x01)
|
||||
#define MPI_SASSTATUS_INVALID_FRAME (0x02)
|
||||
#define MPI_SASSTATUS_UTC_BAD_DEST (0x03)
|
||||
#define MPI_SASSTATUS_UTC_BREAK_RECEIVED (0x04)
|
||||
#define MPI_SASSTATUS_UTC_CONNECT_RATE_NOT_SUPPORTED (0x05)
|
||||
#define MPI_SASSTATUS_UTC_PORT_LAYER_REQUEST (0x06)
|
||||
#define MPI_SASSTATUS_UTC_PROTOCOL_NOT_SUPPORTED (0x07)
|
||||
#define MPI_SASSTATUS_UTC_STP_RESOURCES_BUSY (0x08)
|
||||
#define MPI_SASSTATUS_UTC_WRONG_DESTINATION (0x09)
|
||||
#define MPI_SASSTATUS_SHORT_INFORMATION_UNIT (0x0A)
|
||||
#define MPI_SASSTATUS_LONG_INFORMATION_UNIT (0x0B)
|
||||
#define MPI_SASSTATUS_XFER_RDY_INCORRECT_WRITE_DATA (0x0C)
|
||||
#define MPI_SASSTATUS_XFER_RDY_REQUEST_OFFSET_ERROR (0x0D)
|
||||
#define MPI_SASSTATUS_XFER_RDY_NOT_EXPECTED (0x0E)
|
||||
#define MPI_SASSTATUS_DATA_INCORRECT_DATA_LENGTH (0x0F)
|
||||
#define MPI_SASSTATUS_DATA_TOO_MUCH_READ_DATA (0x10)
|
||||
#define MPI_SASSTATUS_DATA_OFFSET_ERROR (0x11)
|
||||
#define MPI_SASSTATUS_SDSF_NAK_RECEIVED (0x12)
|
||||
#define MPI_SASSTATUS_SDSF_CONNECTION_FAILED (0x13)
|
||||
#define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT (0x14)
|
||||
|
||||
|
||||
/*
|
||||
* Values for the SAS DeviceInfo field used in SAS Device Status Change Event
|
||||
* data and SAS IO Unit Configuration pages.
|
||||
*/
|
||||
#define MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC (0xF0000000)
|
||||
|
||||
#define MPI_SAS_DEVICE_INFO_SEP (0x00004000)
|
||||
#define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE (0x00002000)
|
||||
#define MPI_SAS_DEVICE_INFO_LSI_DEVICE (0x00001000)
|
||||
#define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH (0x00000800)
|
||||
#define MPI_SAS_DEVICE_INFO_SSP_TARGET (0x00000400)
|
||||
#define MPI_SAS_DEVICE_INFO_STP_TARGET (0x00000200)
|
||||
#define MPI_SAS_DEVICE_INFO_SMP_TARGET (0x00000100)
|
||||
#define MPI_SAS_DEVICE_INFO_SATA_DEVICE (0x00000080)
|
||||
#define MPI_SAS_DEVICE_INFO_SSP_INITIATOR (0x00000040)
|
||||
#define MPI_SAS_DEVICE_INFO_STP_INITIATOR (0x00000020)
|
||||
#define MPI_SAS_DEVICE_INFO_SMP_INITIATOR (0x00000010)
|
||||
#define MPI_SAS_DEVICE_INFO_SATA_HOST (0x00000008)
|
||||
|
||||
#define MPI_SAS_DEVICE_INFO_MASK_DEVICE_TYPE (0x00000007)
|
||||
#define MPI_SAS_DEVICE_INFO_NO_DEVICE (0x00000000)
|
||||
#define MPI_SAS_DEVICE_INFO_END_DEVICE (0x00000001)
|
||||
#define MPI_SAS_DEVICE_INFO_EDGE_EXPANDER (0x00000002)
|
||||
#define MPI_SAS_DEVICE_INFO_FANOUT_EXPANDER (0x00000003)
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* 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
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Serial Management Protocol Passthrough Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SMP_PASSTHROUGH_REQUEST
|
||||
{
|
||||
U8 PassthroughFlags; /* 00h */
|
||||
U8 PhysicalPort; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 RequestDataLength; /* 04h */
|
||||
U8 ConnectionRate; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved1; /* 0Ch */
|
||||
U64 SASAddress; /* 10h */
|
||||
U32 Reserved2; /* 18h */
|
||||
U32 Reserved3; /* 1Ch */
|
||||
SGE_SIMPLE_UNION SGL; /* 20h */
|
||||
} MSG_SMP_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REQUEST,
|
||||
SmpPassthroughRequest_t, MPI_POINTER pSmpPassthroughRequest_t;
|
||||
|
||||
/* values for PassthroughFlags field */
|
||||
#define MPI_SMP_PT_REQ_PT_FLAGS_IMMEDIATE (0x80)
|
||||
|
||||
/* values for ConnectionRate field */
|
||||
#define MPI_SMP_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00)
|
||||
#define MPI_SMP_PT_REQ_CONNECT_RATE_1_5 (0x08)
|
||||
#define MPI_SMP_PT_REQ_CONNECT_RATE_3_0 (0x09)
|
||||
|
||||
|
||||
/* Serial Management Protocol Passthrough Reply */
|
||||
typedef struct _MSG_SMP_PASSTHROUGH_REPLY
|
||||
{
|
||||
U8 PassthroughFlags; /* 00h */
|
||||
U8 PhysicalPort; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 ResponseDataLength; /* 04h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Reserved2; /* 0Ch */
|
||||
U8 SASStatus; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 Reserved3; /* 14h */
|
||||
U8 ResponseData[4]; /* 18h */
|
||||
} MSG_SMP_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REPLY,
|
||||
SmpPassthroughReply_t, MPI_POINTER pSmpPassthroughReply_t;
|
||||
|
||||
#define MPI_SMP_PT_REPLY_PT_FLAGS_IMMEDIATE (0x80)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SATA Passthrough Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SATA_PASSTHROUGH_REQUEST
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 PassthroughFlags; /* 04h */
|
||||
U8 ConnectionRate; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved1; /* 0Ch */
|
||||
U32 Reserved2; /* 10h */
|
||||
U32 Reserved3; /* 14h */
|
||||
U32 DataLength; /* 18h */
|
||||
U8 CommandFIS[20]; /* 1Ch */
|
||||
SGE_SIMPLE_UNION SGL; /* 30h */
|
||||
} MSG_SATA_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REQUEST,
|
||||
SataPassthroughRequest_t, MPI_POINTER pSataPassthroughRequest_t;
|
||||
|
||||
/* values for PassthroughFlags field */
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_RESET_DEVICE (0x0200)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_EXECUTE_DIAG (0x0100)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_DMA_QUEUED (0x0080)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_PACKET_COMMAND (0x0040)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_DMA (0x0020)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_PIO (0x0010)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_UNSPECIFIED_VU (0x0004)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_WRITE (0x0002)
|
||||
#define MPI_SATA_PT_REQ_PT_FLAGS_READ (0x0001)
|
||||
|
||||
/* values for ConnectionRate field */
|
||||
#define MPI_SATA_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00)
|
||||
#define MPI_SATA_PT_REQ_CONNECT_RATE_1_5 (0x08)
|
||||
#define MPI_SATA_PT_REQ_CONNECT_RATE_3_0 (0x09)
|
||||
|
||||
|
||||
/* SATA Passthrough Reply */
|
||||
typedef struct _MSG_SATA_PASSTHROUGH_REPLY
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 PassthroughFlags; /* 04h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Reserved2; /* 0Ch */
|
||||
U8 SASStatus; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U8 StatusFIS[20]; /* 14h */
|
||||
U32 StatusControlRegisters; /* 28h */
|
||||
U32 TransferCount; /* 2Ch */
|
||||
} MSG_SATA_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SATA_PASSTHROUGH_REPLY,
|
||||
SataPassthroughReply_t, MPI_POINTER pSataPassthroughReply_t;
|
||||
|
||||
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SAS IO Unit Control Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SAS_IOUNIT_CONTROL_REQUEST
|
||||
{
|
||||
U8 Operation; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 DevHandle; /* 04h */
|
||||
U8 IOCParameter; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 TargetID; /* 0Ch */
|
||||
U8 Bus; /* 0Dh */
|
||||
U8 PhyNum; /* 0Eh */
|
||||
U8 PrimFlags; /* 0Fh */
|
||||
U32 Primitive; /* 10h */
|
||||
U64 SASAddress; /* 14h */
|
||||
U32 IOCParameterValue; /* 1Ch */
|
||||
} MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST,
|
||||
SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t;
|
||||
|
||||
/* values for the Operation field */
|
||||
#define MPI_SAS_OP_CLEAR_NOT_PRESENT (0x01)
|
||||
#define MPI_SAS_OP_CLEAR_ALL_PERSISTENT (0x02)
|
||||
#define MPI_SAS_OP_PHY_LINK_RESET (0x06)
|
||||
#define MPI_SAS_OP_PHY_HARD_RESET (0x07)
|
||||
#define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG (0x08)
|
||||
#define MPI_SAS_OP_MAP_CURRENT (0x09)
|
||||
#define MPI_SAS_OP_SEND_PRIMITIVE (0x0A)
|
||||
#define MPI_SAS_OP_FORCE_FULL_DISCOVERY (0x0B)
|
||||
#define MPI_SAS_OP_TRANSMIT_PORT_SELECT_SIGNAL (0x0C)
|
||||
#define MPI_SAS_OP_TRANSMIT_REMOVE_DEVICE (0x0D) /* obsolete name */
|
||||
#define MPI_SAS_OP_REMOVE_DEVICE (0x0D)
|
||||
#define MPI_SAS_OP_SET_IOC_PARAMETER (0x0E)
|
||||
#define MPI_SAS_OP_PRODUCT_SPECIFIC_MIN (0x80)
|
||||
|
||||
/* values for the PrimFlags field */
|
||||
#define MPI_SAS_PRIMFLAGS_SINGLE (0x08)
|
||||
#define MPI_SAS_PRIMFLAGS_TRIPLE (0x02)
|
||||
#define MPI_SAS_PRIMFLAGS_REDUNDANT (0x01)
|
||||
|
||||
|
||||
/* SAS IO Unit Control Reply */
|
||||
typedef struct _MSG_SAS_IOUNIT_CONTROL_REPLY
|
||||
{
|
||||
U8 Operation; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 DevHandle; /* 04h */
|
||||
U8 IOCParameter; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_SAS_IOUNIT_CONTROL_REPLY, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REPLY,
|
||||
SasIoUnitControlReply_t, MPI_POINTER pSasIoUnitControlReply_t;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
407
source/lsi/mpi_tool.h
Executable file
407
source/lsi/mpi_tool.h
Executable file
@@ -0,0 +1,407 @@
|
||||
/*
|
||||
* Copyright (c) 2001-2008 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_tool.h
|
||||
* Title: MPI Toolbox structures and definitions
|
||||
* Creation Date: July 30, 2001
|
||||
*
|
||||
* mpi_tool.h Version: 01.05.03
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 08-08-01 01.02.01 Original release.
|
||||
* 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines.
|
||||
* 01-16-04 01.02.03 Added defines and structures for new tools
|
||||
*. MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL and
|
||||
* MPI_TOOLBOX_FC_MANAGEMENT_TOOL.
|
||||
* 04-29-04 01.02.04 Added message structures for Diagnostic Buffer Post and
|
||||
* Diagnostic Release requests and replies.
|
||||
* 05-11-04 01.03.01 Original release for MPI v1.3.
|
||||
* 08-19-04 01.05.01 Original release for MPI v1.5.
|
||||
* 10-06-04 01.05.02 Added define for MPI_DIAG_BUF_TYPE_COUNT.
|
||||
* 02-09-05 01.05.03 Added frame size option to FC management tool.
|
||||
* Added Beacon tool to the Toolbox.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_TOOL_H
|
||||
#define MPI_TOOL_H
|
||||
|
||||
#define MPI_TOOLBOX_CLEAN_TOOL (0x00)
|
||||
#define MPI_TOOLBOX_MEMORY_MOVE_TOOL (0x01)
|
||||
#define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02)
|
||||
#define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
|
||||
#define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04)
|
||||
#define MPI_TOOLBOX_BEACON_TOOL (0x05)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox reply */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_REPLY
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_TOOLBOX_REPLY, MPI_POINTER PTR_MSG_TOOLBOX_REPLY,
|
||||
ToolboxReply_t, MPI_POINTER pToolboxReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox Clean Tool request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_CLEAN_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Flags; /* 0Ch */
|
||||
} MSG_TOOLBOX_CLEAN_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_CLEAN_REQUEST,
|
||||
ToolboxCleanRequest_t, MPI_POINTER pToolboxCleanRequest_t;
|
||||
|
||||
#define MPI_TOOLBOX_CLEAN_NVSRAM (0x00000001)
|
||||
#define MPI_TOOLBOX_CLEAN_SEEPROM (0x00000002)
|
||||
#define MPI_TOOLBOX_CLEAN_FLASH (0x00000004)
|
||||
#define MPI_TOOLBOX_CLEAN_BOOTLOADER (0x04000000)
|
||||
#define MPI_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)
|
||||
#define MPI_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)
|
||||
#define MPI_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)
|
||||
#define MPI_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)
|
||||
#define MPI_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox Memory Move request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_MEM_MOVE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
SGE_SIMPLE_UNION SGL; /* 0Ch */
|
||||
} MSG_TOOLBOX_MEM_MOVE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_MEM_MOVE_REQUEST,
|
||||
ToolboxMemMoveRequest_t, MPI_POINTER pToolboxMemMoveRequest_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox Diagnostic Data Upload request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Flags; /* 0Ch */
|
||||
U32 Reserved3; /* 10h */
|
||||
SGE_SIMPLE_UNION SGL; /* 14h */
|
||||
} MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
|
||||
ToolboxDiagDataUploadRequest_t, MPI_POINTER pToolboxDiagDataUploadRequest_t;
|
||||
|
||||
typedef struct _DIAG_DATA_UPLOAD_HEADER
|
||||
{
|
||||
U32 DiagDataLength; /* 00h */
|
||||
U8 FormatCode; /* 04h */
|
||||
U8 Reserved; /* 05h */
|
||||
U16 Reserved1; /* 06h */
|
||||
} DIAG_DATA_UPLOAD_HEADER, MPI_POINTER PTR_DIAG_DATA_UPLOAD_HEADER,
|
||||
DiagDataUploadHeader_t, MPI_POINTER pDiagDataUploadHeader_t;
|
||||
|
||||
#define MPI_TB_DIAG_FORMAT_SCSI_PRINTF_1 (0x01)
|
||||
#define MPI_TB_DIAG_FORMAT_SCSI_2 (0x02)
|
||||
#define MPI_TB_DIAG_FORMAT_SCSI_3 (0x03)
|
||||
#define MPI_TB_DIAG_FORMAT_FC_TRACE_1 (0x04)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox ISTWI Read Write request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Flags; /* 0Ch */
|
||||
U8 BusNum; /* 0Dh */
|
||||
U16 Reserved3; /* 0Eh */
|
||||
U8 NumAddressBytes; /* 10h */
|
||||
U8 Reserved4; /* 11h */
|
||||
U16 DataLength; /* 12h */
|
||||
U8 DeviceAddr; /* 14h */
|
||||
U8 Addr1; /* 15h */
|
||||
U8 Addr2; /* 16h */
|
||||
U8 Addr3; /* 17h */
|
||||
U32 Reserved5; /* 18h */
|
||||
SGE_SIMPLE_UNION SGL; /* 1Ch */
|
||||
} MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
|
||||
ToolboxIstwiReadWriteRequest_t, MPI_POINTER pToolboxIstwiReadWriteRequest_t;
|
||||
|
||||
#define MPI_TB_ISTWI_FLAGS_WRITE (0x00)
|
||||
#define MPI_TB_ISTWI_FLAGS_READ (0x01)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox FC Management request */
|
||||
/****************************************************************************/
|
||||
|
||||
/* ActionInfo for Bus and TargetId */
|
||||
typedef struct _MPI_TB_FC_MANAGE_BUS_TID_AI
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 Bus; /* 02h */
|
||||
U8 TargetId; /* 03h */
|
||||
} MPI_TB_FC_MANAGE_BUS_TID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_BUS_TID_AI,
|
||||
MpiTbFcManageBusTidAi_t, MPI_POINTER pMpiTbFcManageBusTidAi_t;
|
||||
|
||||
/* ActionInfo for port identifier */
|
||||
typedef struct _MPI_TB_FC_MANAGE_PID_AI
|
||||
{
|
||||
U32 PortIdentifier; /* 00h */
|
||||
} MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI,
|
||||
MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t;
|
||||
|
||||
/* ActionInfo for set max frame size */
|
||||
typedef struct _MPI_TB_FC_MANAGE_FRAME_SIZE_AI
|
||||
{
|
||||
U16 FrameSize; /* 00h */
|
||||
U8 PortNum; /* 02h */
|
||||
U8 Reserved1; /* 03h */
|
||||
} MPI_TB_FC_MANAGE_FRAME_SIZE_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_FRAME_SIZE_AI,
|
||||
MpiTbFcManageFrameSizeAi_t, MPI_POINTER pMpiTbFcManageFrameSizeAi_t;
|
||||
|
||||
/* ActionInfo for set login parameters */
|
||||
typedef struct _MPI_TB_FC_MANAGE_LOGIN_PARAMS_AI
|
||||
{
|
||||
U8 Count; /* 00h */
|
||||
U8 Period; /* 01h */
|
||||
U8 PortNum; /* 02h */
|
||||
U8 Reserved1; /* 03h */
|
||||
U8 FlogiBurst; /* 04h */
|
||||
U8 FlogiExchanges; /* 05h */
|
||||
U8 PlogiBurst; /* 06h */
|
||||
U8 PlogiExchanges; /* 07h */
|
||||
} MPI_TB_FC_MANAGE_LOGIN_PARAMS_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_LOGIN_PARAMS_AI,
|
||||
MpiTbFcManageLoginParamsAi_t, MPI_POINTER pMpiTbFcManageLoginParamsAi_t;
|
||||
|
||||
/* ActionInfo for create virtual port */
|
||||
typedef struct _MPI_TB_FC_MANAGE_CREATE_VP_AI
|
||||
{
|
||||
U32 PortIdentifier; /* 00h */
|
||||
U64 WWNN; /* 04h */
|
||||
U64 WWPN; /* 0Ch */
|
||||
} MPI_TB_FC_MANAGE_CREATE_VP_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_CREATE_VP_AI,
|
||||
MpiTbFcManageCreateVpAi_t, MPI_POINTER pMpiTbFcManageCreateVp_t;
|
||||
|
||||
/* union of ActionInfo */
|
||||
typedef union _MPI_TB_FC_MANAGE_AI_UNION
|
||||
{
|
||||
MPI_TB_FC_MANAGE_BUS_TID_AI BusTid;
|
||||
MPI_TB_FC_MANAGE_PID_AI Port;
|
||||
MPI_TB_FC_MANAGE_FRAME_SIZE_AI FrameSize;
|
||||
MPI_TB_FC_MANAGE_LOGIN_PARAMS_AI LoginParams;
|
||||
MPI_TB_FC_MANAGE_CREATE_VP_AI CreateVp;
|
||||
} MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION,
|
||||
MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t;
|
||||
|
||||
typedef struct _MSG_TOOLBOX_FC_MANAGE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Action; /* 0Ch */
|
||||
U8 Flags; /* 0Dh */
|
||||
U16 Reserved4; /* 0Eh */
|
||||
MPI_TB_FC_MANAGE_AI_UNION ActionInfo; /* 10h */
|
||||
} MSG_TOOLBOX_FC_MANAGE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_FC_MANAGE_REQUEST,
|
||||
ToolboxFcManageRequest_t, MPI_POINTER pToolboxFcManageRequest_t;
|
||||
|
||||
/* defines for the Action field */
|
||||
#define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_SET_MAX_FRAME_SIZE (0x03)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_LOGOUT_PID (0x04)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_LOGOUT_BUS_TID (0x05)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_SET_LOGIN_PARAMS (0x06)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_GET_LOGIN_PARAMS (0x07)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_CREATE_VP (0x08)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_DELETE_VP (0x09)
|
||||
|
||||
/* defines for the Flags field */
|
||||
#define MPI_TB_FC_MANAGE_FLAGS_KEEP_LOGGED_OUT (0x01)
|
||||
#define MPI_TB_FC_MANAGE_FLAGS_AUTO_RETRY (0x02)
|
||||
|
||||
typedef struct _MSG_TOOLBOX_FC_MANAGE_REPLY
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 Reserved4[3]; /* 14h */
|
||||
MPI_TB_FC_MANAGE_AI_UNION ActionInfo; /* 20h */
|
||||
} MSG_TOOLBOX_FC_MANAGE_REPLY, MPI_POINTER PTR_MSG_TOOLBOX_FC_MANAGE_REPLY,
|
||||
ToolboxFcManageReply_t, MPI_POINTER pToolboxFcManageReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox Beacon Tool request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_BEACON_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 ConnectNum; /* 0Ch */
|
||||
U8 PortNum; /* 0Dh */
|
||||
U8 Reserved3; /* 0Eh */
|
||||
U8 Flags; /* 0Fh */
|
||||
} MSG_TOOLBOX_BEACON_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_BEACON_REQUEST,
|
||||
ToolboxBeaconRequest_t, MPI_POINTER pToolboxBeaconRequest_t;
|
||||
|
||||
#define MPI_TOOLBOX_FLAGS_BEACON_MODE_OFF (0x00)
|
||||
#define MPI_TOOLBOX_FLAGS_BEACON_MODE_ON (0x01)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Diagnostic Buffer Post request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_DIAG_BUFFER_POST_REQUEST
|
||||
{
|
||||
U8 TraceLevel; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 ExtendedType; /* 0Ch */
|
||||
U32 BufferLength; /* 10h */
|
||||
U32 ProductSpecific[4]; /* 14h */
|
||||
U32 Reserved3; /* 24h */
|
||||
U64 BufferAddress; /* 28h */
|
||||
} MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST,
|
||||
DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t;
|
||||
|
||||
#define MPI_DIAG_BUF_TYPE_TRACE (0x00)
|
||||
#define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01)
|
||||
#define MPI_DIAG_BUF_TYPE_EXTENDED (0x02)
|
||||
/* count of the number of buffer types */
|
||||
#define MPI_DIAG_BUF_TYPE_COUNT (0x03)
|
||||
|
||||
#define MPI_DIAG_EXTENDED_QTAG (0x00000001)
|
||||
|
||||
|
||||
/* Diagnostic Buffer Post reply */
|
||||
typedef struct _MSG_DIAG_BUFFER_POST_REPLY
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferLength; /* 14h */
|
||||
} MSG_DIAG_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REPLY,
|
||||
DiagBufferPostReply_t, MPI_POINTER pDiagBufferPostReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Diagnostic Release request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_DIAG_RELEASE_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
} MSG_DIAG_RELEASE_REQUEST, MPI_POINTER PTR_MSG_DIAG_RELEASE_REQUEST,
|
||||
DiagReleaseRequest_t, MPI_POINTER pDiagReleaseRequest_t;
|
||||
|
||||
|
||||
/* Diagnostic Release reply */
|
||||
typedef struct _MSG_DIAG_RELEASE_REPLY
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_DIAG_RELEASE_REPLY, MPI_POINTER PTR_MSG_DIAG_RELEASE_REPLY,
|
||||
DiagReleaseReply_t, MPI_POINTER pDiagReleaseReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
94
source/lsi/mpi_type.h
Executable file
94
source/lsi/mpi_type.h
Executable file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2008 LSI Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_type.h
|
||||
* Title: MPI Basic type definitions
|
||||
* Creation Date: June 6, 2000
|
||||
*
|
||||
* mpi_type.h Version: 01.05.02
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 05-11-04 01.03.01 Original release for MPI v1.3.
|
||||
* 08-19-04 01.05.01 Original release for MPI v1.5.
|
||||
* 08-30-05 01.05.02 Added PowerPC option to #ifdef's.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_TYPE_H
|
||||
#define MPI_TYPE_H
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER
|
||||
* is defined to be a near pointer. MPI_POINTER can be defined as a far pointer
|
||||
* by defining MPI_POINTER as "far *" before this header file is included.
|
||||
*/
|
||||
#ifndef MPI_POINTER
|
||||
#define MPI_POINTER *
|
||||
#endif
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* B a s i c T y p e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
typedef signed char S8;
|
||||
typedef unsigned char U8;
|
||||
typedef signed short S16;
|
||||
typedef unsigned short U16;
|
||||
|
||||
|
||||
#if defined(unix) || defined(__arm) || defined(ALPHA) || defined(__PPC__) || defined(__ppc)
|
||||
|
||||
typedef signed int S32;
|
||||
typedef unsigned int U32;
|
||||
|
||||
#else
|
||||
|
||||
typedef signed long S32;
|
||||
typedef unsigned long U32;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct _S64
|
||||
{
|
||||
U32 Low;
|
||||
S32 High;
|
||||
} S64;
|
||||
|
||||
typedef struct _U64
|
||||
{
|
||||
U32 Low;
|
||||
U32 High;
|
||||
} U64;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Pointers */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef S8 *PS8;
|
||||
typedef U8 *PU8;
|
||||
typedef S16 *PS16;
|
||||
typedef U16 *PU16;
|
||||
typedef S32 *PS32;
|
||||
typedef U32 *PU32;
|
||||
typedef S64 *PS64;
|
||||
typedef U64 *PU64;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user