linux/drivers/message/fusion/lsi/mpi.h

/* 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
*
*****************************************************************************/

#define MPI_VERSION_MAJOR
#define MPI_VERSION_MINOR
#define MPI_VERSION_MAJOR_MASK
#define MPI_VERSION_MAJOR_SHIFT
#define MPI_VERSION_MINOR_MASK
#define MPI_VERSION_MINOR_SHIFT
#define MPI_VERSION

#define MPI_VERSION_01_00
#define MPI_VERSION_01_01
#define MPI_VERSION_01_02
#define MPI_VERSION_01_03
#define MPI_VERSION_01_05
/* Note: The major versions of 0xe0 through 0xff are reserved */

/* versioning for this MPI header set */
#define MPI_HEADER_VERSION_UNIT
#define MPI_HEADER_VERSION_DEV
#define MPI_HEADER_VERSION_UNIT_MASK
#define MPI_HEADER_VERSION_UNIT_SHIFT
#define MPI_HEADER_VERSION_DEV_MASK
#define MPI_HEADER_VERSION_DEV_SHIFT
#define MPI_HEADER_VERSION

/*****************************************************************************
*
*        I O C    S t a t e    D e f i n i t i o n s
*
*****************************************************************************/

#define MPI_IOC_STATE_RESET
#define MPI_IOC_STATE_READY
#define MPI_IOC_STATE_OPERATIONAL
#define MPI_IOC_STATE_FAULT

#define MPI_IOC_STATE_MASK
#define MPI_IOC_STATE_SHIFT

/* Fault state codes (product independent range 0x8000-0xFFFF) */

#define MPI_FAULT_REQUEST_MESSAGE_PCI_PARITY_ERROR
#define MPI_FAULT_REQUEST_MESSAGE_PCI_BUS_FAULT
#define MPI_FAULT_REPLY_MESSAGE_PCI_PARITY_ERROR
#define MPI_FAULT_REPLY_MESSAGE_PCI_BUS_FAULT
#define MPI_FAULT_DATA_SEND_PCI_PARITY_ERROR
#define MPI_FAULT_DATA_SEND_PCI_BUS_FAULT
#define MPI_FAULT_DATA_RECEIVE_PCI_PARITY_ERROR
#define MPI_FAULT_DATA_RECEIVE_PCI_BUS_FAULT


/*****************************************************************************
*
*        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
#define MPI_DOORBELL_ACTIVE
#define MPI_DOORBELL_USED
#define MPI_DOORBELL_ACTIVE_SHIFT
#define MPI_DOORBELL_WHO_INIT_MASK
#define MPI_DOORBELL_WHO_INIT_SHIFT
#define MPI_DOORBELL_FUNCTION_MASK
#define MPI_DOORBELL_FUNCTION_SHIFT
#define MPI_DOORBELL_ADD_DWORDS_MASK
#define MPI_DOORBELL_ADD_DWORDS_SHIFT
#define MPI_DOORBELL_DATA_MASK
#define MPI_DOORBELL_FUNCTION_SPECIFIC_MASK

/* values for Host Buffer Access Control doorbell function */
#define MPI_DB_HPBAC_VALUE_MASK
#define MPI_DB_HPBAC_ENABLE_ACCESS
#define MPI_DB_HPBAC_DISABLE_ACCESS
#define MPI_DB_HPBAC_FREE_BUFFER


#define MPI_WRITE_SEQUENCE_OFFSET
#define MPI_WRSEQ_KEY_VALUE_MASK
#define MPI_WRSEQ_1ST_KEY_VALUE
#define MPI_WRSEQ_2ND_KEY_VALUE
#define MPI_WRSEQ_3RD_KEY_VALUE
#define MPI_WRSEQ_4TH_KEY_VALUE
#define MPI_WRSEQ_5TH_KEY_VALUE

#define MPI_DIAGNOSTIC_OFFSET
#define MPI_DIAG_CLEAR_FLASH_BAD_SIG
#define MPI_DIAG_PREVENT_IOC_BOOT
#define MPI_DIAG_DRWE
#define MPI_DIAG_FLASH_BAD_SIG
#define MPI_DIAG_RESET_HISTORY
#define MPI_DIAG_RW_ENABLE
#define MPI_DIAG_RESET_ADAPTER
#define MPI_DIAG_DISABLE_ARM
#define MPI_DIAG_MEM_ENABLE

#define MPI_TEST_BASE_ADDRESS_OFFSET

#define MPI_DIAG_RW_DATA_OFFSET

#define MPI_DIAG_RW_ADDRESS_OFFSET

#define MPI_HOST_INTERRUPT_STATUS_OFFSET
#define MPI_HIS_IOP_DOORBELL_STATUS
#define MPI_HIS_REPLY_MESSAGE_INTERRUPT
#define MPI_HIS_DOORBELL_INTERRUPT

#define MPI_HOST_INTERRUPT_MASK_OFFSET
#define MPI_HIM_RIM
#define MPI_HIM_DIM

#define MPI_REQUEST_QUEUE_OFFSET
#define MPI_REQUEST_POST_FIFO_OFFSET

#define MPI_REPLY_QUEUE_OFFSET
#define MPI_REPLY_POST_FIFO_OFFSET
#define MPI_REPLY_FREE_FIFO_OFFSET

#define MPI_HI_PRI_REQUEST_QUEUE_OFFSET



/*****************************************************************************
*
*        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
#define MPI_REQ_MF_DESCRIPTOR_F_BIT
#define MPI_REQ_MF_DESCRIPTOR_ADDRESS_MASK

#define MPI_ADDRESS_REPLY_A_BIT
#define MPI_ADDRESS_REPLY_ADDRESS_MASK

#define MPI_CONTEXT_REPLY_A_BIT
#define MPI_CONTEXT_REPLY_TYPE_MASK
#define MPI_CONTEXT_REPLY_TYPE_SCSI_INIT
#define MPI_CONTEXT_REPLY_TYPE_SCSI_TARGET
#define MPI_CONTEXT_REPLY_TYPE_LAN
#define MPI_CONTEXT_REPLY_TYPE_SHIFT
#define MPI_CONTEXT_REPLY_CONTEXT_MASK


/****************************************************************************/
/* Context Reply macros                                                     */
/****************************************************************************/

#define MPI_GET_CONTEXT_REPLY_TYPE(x)

#define MPI_SET_CONTEXT_REPLY_TYPE(x, typ)


/*****************************************************************************
*
*        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
#define MPI_FUNCTION_SCSI_TASK_MGMT
#define MPI_FUNCTION_IOC_INIT
#define MPI_FUNCTION_IOC_FACTS
#define MPI_FUNCTION_CONFIG
#define MPI_FUNCTION_PORT_FACTS
#define MPI_FUNCTION_PORT_ENABLE
#define MPI_FUNCTION_EVENT_NOTIFICATION
#define MPI_FUNCTION_EVENT_ACK
#define MPI_FUNCTION_FW_DOWNLOAD
#define MPI_FUNCTION_TARGET_CMD_BUFFER_POST
#define MPI_FUNCTION_TARGET_ASSIST
#define MPI_FUNCTION_TARGET_STATUS_SEND
#define MPI_FUNCTION_TARGET_MODE_ABORT
#define MPI_FUNCTION_FC_LINK_SRVC_BUF_POST
#define MPI_FUNCTION_FC_LINK_SRVC_RSP
#define MPI_FUNCTION_FC_EX_LINK_SRVC_SEND
#define MPI_FUNCTION_FC_ABORT
#define MPI_FUNCTION_FW_UPLOAD
#define MPI_FUNCTION_FC_COMMON_TRANSPORT_SEND
#define MPI_FUNCTION_FC_PRIMITIVE_SEND

#define MPI_FUNCTION_RAID_ACTION
#define MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH

#define MPI_FUNCTION_TOOLBOX

#define MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR

#define MPI_FUNCTION_MAILBOX

#define MPI_FUNCTION_SMP_PASSTHROUGH
#define MPI_FUNCTION_SAS_IO_UNIT_CONTROL
#define MPI_FUNCTION_SATA_PASSTHROUGH

#define MPI_FUNCTION_DIAG_BUFFER_POST
#define MPI_FUNCTION_DIAG_RELEASE

#define MPI_FUNCTION_SCSI_IO_32

#define MPI_FUNCTION_LAN_SEND
#define MPI_FUNCTION_LAN_RECEIVE
#define MPI_FUNCTION_LAN_RESET

#define MPI_FUNCTION_TARGET_ASSIST_EXTENDED
#define MPI_FUNCTION_TARGET_CMD_BUF_BASE_POST
#define MPI_FUNCTION_TARGET_CMD_BUF_LIST_POST

#define MPI_FUNCTION_INBAND_BUFFER_POST
#define MPI_FUNCTION_INBAND_SEND
#define MPI_FUNCTION_INBAND_RSP
#define MPI_FUNCTION_INBAND_ABORT

#define MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET
#define MPI_FUNCTION_IO_UNIT_RESET
#define MPI_FUNCTION_HANDSHAKE
#define MPI_FUNCTION_REPLY_FRAME_REMOVAL
#define MPI_FUNCTION_HOST_PAGEBUF_ACCESS_CONTROL


/* standard version format */
pMpiVersionStruct;

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                                               */
/****************************************************************************/

pSGESimple32_t;

pSGESimple64_t;

pSGESimpleUnion_t;

/****************************************************************************/
/*  Chain element structures                                                */
/****************************************************************************/

pSGEChain32_t;

pSGEChain64_t;

pSGEChainUnion_t;

/****************************************************************************/
/*  Transaction Context element                                             */
/****************************************************************************/

pSGETransaction32_t;

pSGETransaction64_t;

pSGETransaction96_t;

pSGETransaction_t128;

pSGETransactionUnion_t;


/****************************************************************************/
/*  SGE IO types union  for IO SGL's                                        */
/****************************************************************************/

pSGEIOUnion_t;

/****************************************************************************/
/*  SGE union for SGL's with Simple and Transaction elements                */
/****************************************************************************/

pSGETransSimpleUnion_t;

/****************************************************************************/
/*  All SGE types union                                                     */
/****************************************************************************/

pSGEAllUnion_t;


/****************************************************************************/
/*  SGE field definition and masks                                          */
/****************************************************************************/

/* Flags field bit definitions */

#define MPI_SGE_FLAGS_LAST_ELEMENT
#define MPI_SGE_FLAGS_END_OF_BUFFER
#define MPI_SGE_FLAGS_ELEMENT_TYPE_MASK
#define MPI_SGE_FLAGS_LOCAL_ADDRESS
#define MPI_SGE_FLAGS_DIRECTION
#define MPI_SGE_FLAGS_ADDRESS_SIZE
#define MPI_SGE_FLAGS_END_OF_LIST

#define MPI_SGE_FLAGS_SHIFT

#define MPI_SGE_LENGTH_MASK
#define MPI_SGE_CHAIN_LENGTH_MASK

/* Element Type */

#define MPI_SGE_FLAGS_TRANSACTION_ELEMENT
#define MPI_SGE_FLAGS_SIMPLE_ELEMENT
#define MPI_SGE_FLAGS_CHAIN_ELEMENT
#define MPI_SGE_FLAGS_ELEMENT_MASK

/* Address location */

#define MPI_SGE_FLAGS_SYSTEM_ADDRESS

/* Direction */

#define MPI_SGE_FLAGS_IOC_TO_HOST
#define MPI_SGE_FLAGS_HOST_TO_IOC

/* Address Size */

#define MPI_SGE_FLAGS_32_BIT_ADDRESSING
#define MPI_SGE_FLAGS_64_BIT_ADDRESSING

/* Context Size */

#define MPI_SGE_FLAGS_32_BIT_CONTEXT
#define MPI_SGE_FLAGS_64_BIT_CONTEXT
#define MPI_SGE_FLAGS_96_BIT_CONTEXT
#define MPI_SGE_FLAGS_128_BIT_CONTEXT

#define MPI_SGE_CHAIN_OFFSET_MASK
#define MPI_SGE_CHAIN_OFFSET_SHIFT


/****************************************************************************/
/*  SGE operation Macros                                                    */
/****************************************************************************/

         /* SIMPLE FlagsLength manipulations... */
#define MPI_SGE_SET_FLAGS(f)
#define MPI_SGE_GET_FLAGS(fl)
#define MPI_SGE_LENGTH(fl)
#define MPI_SGE_CHAIN_LENGTH(fl)

#define MPI_SGE_SET_FLAGS_LENGTH(f,l)

#define MPI_pSGE_GET_FLAGS(psg)
#define MPI_pSGE_GET_LENGTH(psg)
#define MPI_pSGE_SET_FLAGS_LENGTH(psg,f,l)
         /* CAUTION - The following are READ-MODIFY-WRITE! */
#define MPI_pSGE_SET_FLAGS(psg,f)
#define MPI_pSGE_SET_LENGTH(psg,l)

#define MPI_GET_CHAIN_OFFSET(x)



/*****************************************************************************
*
*        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                 */
/****************************************************************************/

pMPIHeader_t;


/****************************************************************************/
/*  Default Reply                                                           */
/****************************************************************************/

pMPIDefaultReply_t;


/* MsgFlags definition for all replies */

#define MPI_MSGFLAGS_CONTINUATION_REPLY


/*****************************************************************************
*
*               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
#define MPI_IOCSTATUS_INVALID_FUNCTION
#define MPI_IOCSTATUS_BUSY
#define MPI_IOCSTATUS_INVALID_SGL
#define MPI_IOCSTATUS_INTERNAL_ERROR
#define MPI_IOCSTATUS_RESERVED
#define MPI_IOCSTATUS_INSUFFICIENT_RESOURCES
#define MPI_IOCSTATUS_INVALID_FIELD
#define MPI_IOCSTATUS_INVALID_STATE
#define MPI_IOCSTATUS_OP_STATE_NOT_SUPPORTED

/****************************************************************************/
/*  Config IOCStatus values                                                 */
/****************************************************************************/

#define MPI_IOCSTATUS_CONFIG_INVALID_ACTION
#define MPI_IOCSTATUS_CONFIG_INVALID_TYPE
#define MPI_IOCSTATUS_CONFIG_INVALID_PAGE
#define MPI_IOCSTATUS_CONFIG_INVALID_DATA
#define MPI_IOCSTATUS_CONFIG_NO_DEFAULTS
#define MPI_IOCSTATUS_CONFIG_CANT_COMMIT

/****************************************************************************/
/*  SCSIIO Reply (SPI & FCP) initiator values                               */
/****************************************************************************/

#define MPI_IOCSTATUS_SCSI_RECOVERED_ERROR
#define MPI_IOCSTATUS_SCSI_INVALID_BUS
#define MPI_IOCSTATUS_SCSI_INVALID_TARGETID
#define MPI_IOCSTATUS_SCSI_DEVICE_NOT_THERE
#define MPI_IOCSTATUS_SCSI_DATA_OVERRUN
#define MPI_IOCSTATUS_SCSI_DATA_UNDERRUN
#define MPI_IOCSTATUS_SCSI_IO_DATA_ERROR
#define MPI_IOCSTATUS_SCSI_PROTOCOL_ERROR
#define MPI_IOCSTATUS_SCSI_TASK_TERMINATED
#define MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH
#define MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED
#define MPI_IOCSTATUS_SCSI_IOC_TERMINATED
#define MPI_IOCSTATUS_SCSI_EXT_TERMINATED

/****************************************************************************/
/*  For use by SCSI Initiator and SCSI Target end-to-end data protection    */
/****************************************************************************/

#define MPI_IOCSTATUS_EEDP_GUARD_ERROR
#define MPI_IOCSTATUS_EEDP_REF_TAG_ERROR
#define MPI_IOCSTATUS_EEDP_APP_TAG_ERROR


/****************************************************************************/
/*  SCSI Target values                                                      */
/****************************************************************************/

#define MPI_IOCSTATUS_TARGET_PRIORITY_IO
#define MPI_IOCSTATUS_TARGET_INVALID_PORT
#define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX
#define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX
#define MPI_IOCSTATUS_TARGET_ABORTED
#define MPI_IOCSTATUS_TARGET_NO_CONN_RETRYABLE
#define MPI_IOCSTATUS_TARGET_NO_CONNECTION
#define MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH
#define MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT
#define MPI_IOCSTATUS_TARGET_DATA_OFFSET_ERROR
#define MPI_IOCSTATUS_TARGET_TOO_MUCH_WRITE_DATA
#define MPI_IOCSTATUS_TARGET_IU_TOO_SHORT
#define MPI_IOCSTATUS_TARGET_ACK_NAK_TIMEOUT
#define MPI_IOCSTATUS_TARGET_NAK_RECEIVED

/****************************************************************************/
/*  Additional FCP target values (obsolete)                                 */
/****************************************************************************/

#define MPI_IOCSTATUS_TARGET_FC_ABORTED
#define MPI_IOCSTATUS_TARGET_FC_RX_ID_INVALID
#define MPI_IOCSTATUS_TARGET_FC_DID_INVALID
#define MPI_IOCSTATUS_TARGET_FC_NODE_LOGGED_OUT

/****************************************************************************/
/*  Fibre Channel Direct Access values                                      */
/****************************************************************************/

#define MPI_IOCSTATUS_FC_ABORTED
#define MPI_IOCSTATUS_FC_RX_ID_INVALID
#define MPI_IOCSTATUS_FC_DID_INVALID
#define MPI_IOCSTATUS_FC_NODE_LOGGED_OUT
#define MPI_IOCSTATUS_FC_EXCHANGE_CANCELED

/****************************************************************************/
/*  LAN values                                                              */
/****************************************************************************/

#define MPI_IOCSTATUS_LAN_DEVICE_NOT_FOUND
#define MPI_IOCSTATUS_LAN_DEVICE_FAILURE
#define MPI_IOCSTATUS_LAN_TRANSMIT_ERROR
#define MPI_IOCSTATUS_LAN_TRANSMIT_ABORTED
#define MPI_IOCSTATUS_LAN_RECEIVE_ERROR
#define MPI_IOCSTATUS_LAN_RECEIVE_ABORTED
#define MPI_IOCSTATUS_LAN_PARTIAL_PACKET
#define MPI_IOCSTATUS_LAN_CANCELED

/****************************************************************************/
/*  Serial Attached SCSI values                                             */
/****************************************************************************/

#define MPI_IOCSTATUS_SAS_SMP_REQUEST_FAILED
#define MPI_IOCSTATUS_SAS_SMP_DATA_OVERRUN

/****************************************************************************/
/*  Inband values                                                           */
/****************************************************************************/

#define MPI_IOCSTATUS_INBAND_ABORTED
#define MPI_IOCSTATUS_INBAND_NO_CONNECTION

/****************************************************************************/
/*  Diagnostic Tools values                                                 */
/****************************************************************************/

#define MPI_IOCSTATUS_DIAGNOSTIC_RELEASED


/****************************************************************************/
/*  IOCStatus flag to indicate that log info is available                   */
/****************************************************************************/

#define MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE
#define MPI_IOCSTATUS_MASK

/****************************************************************************/
/*  LogInfo Types                                                           */
/****************************************************************************/

#define MPI_IOCLOGINFO_TYPE_MASK
#define MPI_IOCLOGINFO_TYPE_SHIFT
#define MPI_IOCLOGINFO_TYPE_NONE
#define MPI_IOCLOGINFO_TYPE_SCSI
#define MPI_IOCLOGINFO_TYPE_FC
#define MPI_IOCLOGINFO_TYPE_SAS
#define MPI_IOCLOGINFO_TYPE_ISCSI
#define MPI_IOCLOGINFO_LOG_DATA_MASK


#endif