/* SPDX-License-Identifier: GPL-2.0 */ /* * 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.16 * * 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. * --------------------------------------------------------------------------
*/
#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 *
*****************************************************************************/
/***************************************************************************** * * I O C S t a t e D e f i n i t i o n s *
*****************************************************************************/
/***************************************************************************** * * 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)
/***************************************************************************** * * M e s s a g e F r a m e D e s c r i p t o r s *
*****************************************************************************/
/***************************************************************************** * * 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 * *
*****************************************************************************/
/***************************************************************************** * * S c a t t e r G a t h e r E l e m e n t s *
*****************************************************************************/
/****************************************************************************/ /* Simple element structures */ /****************************************************************************/
/****************************************************************************/ /* SGE union for SGL's with Simple and Transaction elements */ /****************************************************************************/
/****************************************************************************/ /* All SGE types union */ /****************************************************************************/
/****************************************************************************/ /* SGE field definition and masks */ /****************************************************************************/
/***************************************************************************** * * 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 */ /****************************************************************************/
typedefstruct _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;
typedefstruct _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 */ /****************************************************************************/
/****************************************************************************/ /* For use by SCSI Initiator and SCSI Target end-to-end data protection */ /****************************************************************************/
/****************************************************************************/ /* IOCStatus flag to indicate that log info is available */ /****************************************************************************/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.