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

/* SPDX-License-Identifier: GPL-2.0 */
/*
 *  Copyright (c) 2000-2008 LSI Corporation.
 *
 *
 *           Name:  mpi_ioc.h
 *          Title:  MPI IOC, Port, Event, FW Download, and FW Upload messages
 *  Creation Date:  August 11, 2000
 *
 *    mpi_ioc.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 _MSG_IOC_INIT_REPLY structure.
 *  06-06-00  01.00.01  Added CurReplyFrameSize field to _MSG_IOC_FACTS_REPLY.
 *  06-12-00  01.00.02  Added _MSG_PORT_ENABLE_REPLY structure.
 *                      Added _MSG_EVENT_ACK_REPLY structure.
 *                      Added _MSG_FW_DOWNLOAD_REPLY structure.
 *                      Added _MSG_TOOLBOX_REPLY structure.
 *  06-30-00  01.00.03  Added MaxLanBuckets to _PORT_FACT_REPLY structure.
 *  07-27-00  01.00.04  Added _EVENT_DATA structure definitions for _SCSI,
 *                      _LINK_STATUS, _LOOP_STATE and _LOGOUT.
 *  08-11-00  01.00.05  Switched positions of MsgLength and Function fields in
 *                      _MSG_EVENT_ACK_REPLY structure to match specification.
 *  11-02-00  01.01.01  Original release for post 1.0 work.
 *                      Added a value for Manufacturer to WhoInit.
 *  12-04-00  01.01.02  Modified IOCFacts reply, added FWUpload messages, and
 *                      removed toolbox message.
 *  01-09-01  01.01.03  Added event enabled and disabled defines.
 *                      Added structures for FwHeader and DataHeader.
 *                      Added ImageType to FwUpload reply.
 *  02-20-01  01.01.04  Started using MPI_POINTER.
 *  02-27-01  01.01.05  Added event for RAID status change and its event data.
 *                      Added IocNumber field to MSG_IOC_FACTS_REPLY.
 *  03-27-01  01.01.06  Added defines for ProductId field of MPI_FW_HEADER.
 *                      Added structure offset comments.
 *  04-09-01  01.01.07  Added structure EVENT_DATA_EVENT_CHANGE.
 *  08-08-01  01.02.01  Original release for v1.2 work.
 *                      New format for FWVersion and ProductId in
 *                      MSG_IOC_FACTS_REPLY and MPI_FW_HEADER.
 *  08-31-01  01.02.02  Addded event MPI_EVENT_SCSI_DEVICE_STATUS_CHANGE and
 *                      related structure and defines.
 *                      Added event MPI_EVENT_ON_BUS_TIMER_EXPIRED.
 *                      Added MPI_IOCINIT_FLAGS_DISCARD_FW_IMAGE.
 *                      Replaced a reserved field in MSG_IOC_FACTS_REPLY with
 *                      IOCExceptions and changed DataImageSize to reserved.
 *                      Added MPI_FW_DOWNLOAD_ITYPE_NVSTORE_DATA and
 *                      MPI_FW_UPLOAD_ITYPE_NVDATA.
 *  09-28-01  01.02.03  Modified Event Data for Integrated RAID.
 *  11-01-01  01.02.04  Added defines for MPI_EXT_IMAGE_HEADER ImageType field.
 *  03-14-02  01.02.05  Added HeaderVersion field to MSG_IOC_FACTS_REPLY.
 *  05-31-02  01.02.06  Added define for
 *                      MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID.
 *                      Added AliasIndex to EVENT_DATA_LOGOUT structure.
 *  04-01-03  01.02.07  Added defines for MPI_FW_HEADER_SIGNATURE_.
 *  06-26-03  01.02.08  Added new values to the product family defines.
 *  04-29-04  01.02.09  Added IOCCapabilities field to MSG_IOC_FACTS_REPLY and
 *                      added related defines.
 *  05-11-04  01.03.01  Original release for MPI v1.3.
 *  08-19-04  01.05.01  Added four new fields to MSG_IOC_INIT.
 *                      Added three new fields to MSG_IOC_FACTS_REPLY.
 *                      Defined four new bits for the IOCCapabilities field of
 *                      the IOCFacts reply.
 *                      Added two new PortTypes for the PortFacts reply.
 *                      Added six new events along with their EventData
 *                      structures.
 *                      Added a new MsgFlag to the FwDownload request to
 *                      indicate last segment.
 *                      Defined a new image type of boot loader.
 *                      Added FW family codes for SAS product families.
 *  10-05-04  01.05.02  Added ReplyFifoHostSignalingAddr field to
 *                      MSG_IOC_FACTS_REPLY.
 *  12-07-04  01.05.03  Added more defines for SAS Discovery Error event.
 *  12-09-04  01.05.04  Added Unsupported device to SAS Device event.
 *  01-15-05  01.05.05  Added event data for SAS SES Event.
 *  02-09-05  01.05.06  Added MPI_FW_UPLOAD_ITYPE_FW_BACKUP define.
 *  02-22-05  01.05.07  Added Host Page Buffer Persistent flag to IOC Facts
 *                      Reply and IOC Init Request.
 *  03-11-05  01.05.08  Added family code for 1068E family.
 *                      Removed IOCFacts Reply EEDP Capability bit.
 *  06-24-05  01.05.09  Added 5 new IOCFacts Reply IOCCapabilities bits.
 *                      Added Max SATA Targets to SAS Discovery Error event.
 *  08-30-05  01.05.10  Added 4 new events and their event data structures.
 *                      Added new ReasonCode value for SAS Device Status Change
 *                      event.
 *                      Added new family code for FC949E.
 *  03-27-06  01.05.11  Added MPI_IOCFACTS_CAPABILITY_TLR.
 *                      Added additional Reason Codes and more event data fields
 *                      to EVENT_DATA_SAS_DEVICE_STATUS_CHANGE.
 *                      Added EVENT_DATA_SAS_BROADCAST_PRIMITIVE structure and
 *                      new event.
 *                      Added MPI_EVENT_SAS_SMP_ERROR and event data structure.
 *                      Added MPI_EVENT_SAS_INIT_DEVICE_STATUS_CHANGE and event
 *                      data structure.
 *                      Added MPI_EVENT_SAS_INIT_TABLE_OVERFLOW and event
 *                      data structure.
 *                      Added MPI_EXT_IMAGE_TYPE_INITIALIZATION.
 *  10-11-06  01.05.12  Added MPI_IOCFACTS_EXCEPT_METADATA_UNSUPPORTED.
 *                      Added MaxInitiators field to PortFacts reply.
 *                      Added SAS Device Status Change ReasonCode for
 *                      asynchronous notificaiton.
 *                      Added MPI_EVENT_SAS_EXPANDER_STATUS_CHANGE and event
 *                      data structure.
 *                      Added new ImageType values for FWDownload and FWUpload
 *                      requests.
 *  02-28-07  01.05.13  Added MPI_EVENT_PRIMITIVE_ASYNCHRONOUS_EVENT for SAS
 *                      Broadcast Event Data (replacing _RESERVED2).
 *                      For Discovery Error Event Data DiscoveryStatus field,
 *                      replaced _MULTPL_PATHS with _UNSUPPORTED_DEVICE and
 *                      added _MULTI_PORT_DOMAIN.
 *  05-24-07  01.05.14  Added Common Boot Block type to FWDownload Request.
 *                      Added Common Boot Block type to FWUpload Request.
 *  08-07-07  01.05.15  Added MPI_EVENT_SAS_INIT_RC_REMOVED define.
 *                      Added MPI_EVENT_IR2_RC_DUAL_PORT_ADDED and
 *                      MPI_EVENT_IR2_RC_DUAL_PORT_REMOVED for IR2 event data.
 *                      Added SASAddress field to SAS Initiator Device Table
 *                      Overflow event data structure.
 *  03-28-08  01.05.16  Added two new ReasonCode values to SAS Device Status
 *                      Change Event data to indicate completion of internally
 *                      generated task management.
 *                      Added MPI_EVENT_DSCVRY_ERR_DS_SATA_INIT_FAILURE define.
 *                      Added MPI_EVENT_SAS_INIT_RC_INACCESSIBLE define.
 *  --------------------------------------------------------------------------
 */

#ifndef MPI_IOC_H
#define MPI_IOC_H


/*****************************************************************************
*
*               I O C    M e s s a g e s
*
*****************************************************************************/

/****************************************************************************/
/*  IOCInit message                                                         */
/****************************************************************************/

pIOCInit_t;

/* WhoInit values */
#define MPI_WHOINIT_NO_ONE
#define MPI_WHOINIT_SYSTEM_BIOS
#define MPI_WHOINIT_ROM_BIOS
#define MPI_WHOINIT_PCI_PEER
#define MPI_WHOINIT_HOST_DRIVER
#define MPI_WHOINIT_MANUFACTURER

/* Flags values */
#define MPI_IOCINIT_FLAGS_HOST_PAGE_BUFFER_PERSISTENT
#define MPI_IOCINIT_FLAGS_REPLY_FIFO_HOST_SIGNAL
#define MPI_IOCINIT_FLAGS_DISCARD_FW_IMAGE

/* MsgVersion */
#define MPI_IOCINIT_MSGVERSION_MAJOR_MASK
#define MPI_IOCINIT_MSGVERSION_MAJOR_SHIFT
#define MPI_IOCINIT_MSGVERSION_MINOR_MASK
#define MPI_IOCINIT_MSGVERSION_MINOR_SHIFT

/* HeaderVersion */
#define MPI_IOCINIT_HEADERVERSION_UNIT_MASK
#define MPI_IOCINIT_HEADERVERSION_UNIT_SHIFT
#define MPI_IOCINIT_HEADERVERSION_DEV_MASK
#define MPI_IOCINIT_HEADERVERSION_DEV_SHIFT


pIOCInitReply_t;



/****************************************************************************/
/*  IOC Facts message                                                       */
/****************************************************************************/

pIOCFacts_t;

MPI_FW_VERSION_STRUCT;

MPI_FW_VERSION;

/* IOC Facts Reply */
pIOCFactsReply_t;

#define MPI_IOCFACTS_MSGVERSION_MAJOR_MASK
#define MPI_IOCFACTS_MSGVERSION_MAJOR_SHIFT
#define MPI_IOCFACTS_MSGVERSION_MINOR_MASK
#define MPI_IOCFACTS_MSGVERSION_MINOR_SHIFT

#define MPI_IOCFACTS_HDRVERSION_UNIT_MASK
#define MPI_IOCFACTS_HDRVERSION_UNIT_SHIFT
#define MPI_IOCFACTS_HDRVERSION_DEV_MASK
#define MPI_IOCFACTS_HDRVERSION_DEV_SHIFT

#define MPI_IOCFACTS_EXCEPT_CONFIG_CHECKSUM_FAIL
#define MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID
#define MPI_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL
#define MPI_IOCFACTS_EXCEPT_PERSISTENT_TABLE_FULL
#define MPI_IOCFACTS_EXCEPT_METADATA_UNSUPPORTED

#define MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT
#define MPI_IOCFACTS_FLAGS_REPLY_FIFO_HOST_SIGNAL
#define MPI_IOCFACTS_FLAGS_HOST_PAGE_BUFFER_PERSISTENT

#define MPI_IOCFACTS_EVENTSTATE_DISABLED
#define MPI_IOCFACTS_EVENTSTATE_ENABLED

#define MPI_IOCFACTS_CAPABILITY_HIGH_PRI_Q
#define MPI_IOCFACTS_CAPABILITY_REPLY_HOST_SIGNAL
#define MPI_IOCFACTS_CAPABILITY_QUEUE_FULL_HANDLING
#define MPI_IOCFACTS_CAPABILITY_DIAG_TRACE_BUFFER
#define MPI_IOCFACTS_CAPABILITY_SNAPSHOT_BUFFER
#define MPI_IOCFACTS_CAPABILITY_EXTENDED_BUFFER
#define MPI_IOCFACTS_CAPABILITY_EEDP
#define MPI_IOCFACTS_CAPABILITY_BIDIRECTIONAL
#define MPI_IOCFACTS_CAPABILITY_MULTICAST
#define MPI_IOCFACTS_CAPABILITY_SCSIIO32
#define MPI_IOCFACTS_CAPABILITY_NO_SCSIIO16
#define MPI_IOCFACTS_CAPABILITY_TLR


/*****************************************************************************
*
*               P o r t    M e s s a g e s
*
*****************************************************************************/

/****************************************************************************/
/*  Port Facts message and Reply                                            */
/****************************************************************************/

pPortFacts_t;

pPortFactsReply_t;


/* PortTypes values */

#define MPI_PORTFACTS_PORTTYPE_INACTIVE
#define MPI_PORTFACTS_PORTTYPE_SCSI
#define MPI_PORTFACTS_PORTTYPE_FC
#define MPI_PORTFACTS_PORTTYPE_ISCSI
#define MPI_PORTFACTS_PORTTYPE_SAS

/* ProtocolFlags values */

#define MPI_PORTFACTS_PROTOCOL_LOGBUSADDR
#define MPI_PORTFACTS_PROTOCOL_LAN
#define MPI_PORTFACTS_PROTOCOL_TARGET
#define MPI_PORTFACTS_PROTOCOL_INITIATOR


/****************************************************************************/
/*  Port Enable Message                                                     */
/****************************************************************************/

pPortEnable_t;

pPortEnableReply_t;


/*****************************************************************************
*
*               E v e n t    M e s s a g e s
*
*****************************************************************************/

/****************************************************************************/
/*  Event Notification messages                                             */
/****************************************************************************/

pEventNotification_t;

/* Event Notification Reply */

pEventNotificationReply_t;

/* Event Acknowledge */

pEventAck_t;

pEventAckReply_t;

/* Switch */

#define MPI_EVENT_NOTIFICATION_SWITCH_OFF
#define MPI_EVENT_NOTIFICATION_SWITCH_ON

/* Event */

#define MPI_EVENT_NONE
#define MPI_EVENT_LOG_DATA
#define MPI_EVENT_STATE_CHANGE
#define MPI_EVENT_UNIT_ATTENTION
#define MPI_EVENT_IOC_BUS_RESET
#define MPI_EVENT_EXT_BUS_RESET
#define MPI_EVENT_RESCAN
#define MPI_EVENT_LINK_STATUS_CHANGE
#define MPI_EVENT_LOOP_STATE_CHANGE
#define MPI_EVENT_LOGOUT
#define MPI_EVENT_EVENT_CHANGE
#define MPI_EVENT_INTEGRATED_RAID
#define MPI_EVENT_SCSI_DEVICE_STATUS_CHANGE
#define MPI_EVENT_ON_BUS_TIMER_EXPIRED
#define MPI_EVENT_QUEUE_FULL
#define MPI_EVENT_SAS_DEVICE_STATUS_CHANGE
#define MPI_EVENT_SAS_SES
#define MPI_EVENT_PERSISTENT_TABLE_FULL
#define MPI_EVENT_SAS_PHY_LINK_STATUS
#define MPI_EVENT_SAS_DISCOVERY_ERROR
#define MPI_EVENT_IR_RESYNC_UPDATE
#define MPI_EVENT_IR2
#define MPI_EVENT_SAS_DISCOVERY
#define MPI_EVENT_SAS_BROADCAST_PRIMITIVE
#define MPI_EVENT_SAS_INIT_DEVICE_STATUS_CHANGE
#define MPI_EVENT_SAS_INIT_TABLE_OVERFLOW
#define MPI_EVENT_SAS_SMP_ERROR
#define MPI_EVENT_SAS_EXPANDER_STATUS_CHANGE
#define MPI_EVENT_LOG_ENTRY_ADDED

/* AckRequired field values */

#define MPI_EVENT_NOTIFICATION_ACK_NOT_REQUIRED
#define MPI_EVENT_NOTIFICATION_ACK_REQUIRED

/* EventChange Event data */

pEventDataEventChange_t;

/* LogEntryAdded Event data */

/* this structure matches MPI_LOG_0_ENTRY in mpi_cnfg.h */
#define MPI_EVENT_DATA_LOG_ENTRY_DATA_LENGTH
pMpiEventDataLogEntry_t;

pMpiEventDataLogEntryAdded_t;

/* SCSI Event data for Port, Bus and Device forms */

pEventDataScsi_t;

/* SCSI Device Status Change Event data */

pMpiEventDataScsiDeviceStatusChange_t;

/* MPI SCSI Device Status Change Event data ReasonCode values */
#define MPI_EVENT_SCSI_DEV_STAT_RC_ADDED
#define MPI_EVENT_SCSI_DEV_STAT_RC_NOT_RESPONDING
#define MPI_EVENT_SCSI_DEV_STAT_RC_SMART_DATA

/* SAS Device Status Change Event data */

pMpiEventDataSasDeviceStatusChange_t;

/* MPI SAS Device Status Change Event data ReasonCode values */
#define MPI_EVENT_SAS_DEV_STAT_RC_ADDED
#define MPI_EVENT_SAS_DEV_STAT_RC_NOT_RESPONDING
#define MPI_EVENT_SAS_DEV_STAT_RC_SMART_DATA
#define MPI_EVENT_SAS_DEV_STAT_RC_NO_PERSIST_ADDED
#define MPI_EVENT_SAS_DEV_STAT_RC_UNSUPPORTED
#define MPI_EVENT_SAS_DEV_STAT_RC_INTERNAL_DEVICE_RESET
#define MPI_EVENT_SAS_DEV_STAT_RC_TASK_ABORT_INTERNAL
#define MPI_EVENT_SAS_DEV_STAT_RC_ABORT_TASK_SET_INTERNAL
#define MPI_EVENT_SAS_DEV_STAT_RC_CLEAR_TASK_SET_INTERNAL
#define MPI_EVENT_SAS_DEV_STAT_RC_QUERY_TASK_INTERNAL
#define MPI_EVENT_SAS_DEV_STAT_RC_ASYNC_NOTIFICATION
#define MPI_EVENT_SAS_DEV_STAT_RC_CMPL_INTERNAL_DEV_RESET
#define MPI_EVENT_SAS_DEV_STAT_RC_CMPL_TASK_ABORT_INTERNAL


/* SCSI Event data for Queue Full event */

pEventDataQueueFull_t;

/* MPI Integrated RAID Event data */

pMpiEventDataRaid_t;

/* MPI Integrated RAID Event data ReasonCode values */
#define MPI_EVENT_RAID_RC_VOLUME_CREATED
#define MPI_EVENT_RAID_RC_VOLUME_DELETED
#define MPI_EVENT_RAID_RC_VOLUME_SETTINGS_CHANGED
#define MPI_EVENT_RAID_RC_VOLUME_STATUS_CHANGED
#define MPI_EVENT_RAID_RC_VOLUME_PHYSDISK_CHANGED
#define MPI_EVENT_RAID_RC_PHYSDISK_CREATED
#define MPI_EVENT_RAID_RC_PHYSDISK_DELETED
#define MPI_EVENT_RAID_RC_PHYSDISK_SETTINGS_CHANGED
#define MPI_EVENT_RAID_RC_PHYSDISK_STATUS_CHANGED
#define MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED
#define MPI_EVENT_RAID_RC_SMART_DATA
#define MPI_EVENT_RAID_RC_REPLACE_ACTION_STARTED


/* MPI Integrated RAID Resync Update Event data */

pMpiEventDataIrResyncUpdate_t;

/* MPI IR2 Event data */

/* MPI_LD_STATE or MPI_PD_STATE */
PTR_IR2_STATE_CHANGED;

PTR_IR2_PD_INFO;

PTR_MPI_IR2_RC_EVENT_DATA;

pMpiEventDataIR2_t;

/* MPI IR2 Event data ReasonCode values */
#define MPI_EVENT_IR2_RC_LD_STATE_CHANGED
#define MPI_EVENT_IR2_RC_PD_STATE_CHANGED
#define MPI_EVENT_IR2_RC_BAD_BLOCK_TABLE_FULL
#define MPI_EVENT_IR2_RC_PD_INSERTED
#define MPI_EVENT_IR2_RC_PD_REMOVED
#define MPI_EVENT_IR2_RC_FOREIGN_CFG_DETECTED
#define MPI_EVENT_IR2_RC_REBUILD_MEDIUM_ERROR
#define MPI_EVENT_IR2_RC_DUAL_PORT_ADDED
#define MPI_EVENT_IR2_RC_DUAL_PORT_REMOVED

/* defines for logical disk states */
#define MPI_LD_STATE_OPTIMAL
#define MPI_LD_STATE_DEGRADED
#define MPI_LD_STATE_FAILED
#define MPI_LD_STATE_MISSING
#define MPI_LD_STATE_OFFLINE

/* defines for physical disk states */
#define MPI_PD_STATE_ONLINE
#define MPI_PD_STATE_MISSING
#define MPI_PD_STATE_NOT_COMPATIBLE
#define MPI_PD_STATE_FAILED
#define MPI_PD_STATE_INITIALIZING
#define MPI_PD_STATE_OFFLINE_AT_HOST_REQUEST
#define MPI_PD_STATE_FAILED_AT_HOST_REQUEST
#define MPI_PD_STATE_OFFLINE_FOR_ANOTHER_REASON

/* MPI Link Status Change Event data */

pEventDataLinkStatus_t;

#define MPI_EVENT_LINK_STATUS_FAILURE
#define MPI_EVENT_LINK_STATUS_ACTIVE

/* MPI Loop State Change Event data */

pEventDataLoopState_t;

#define MPI_EVENT_LOOP_STATE_CHANGE_LIP
#define MPI_EVENT_LOOP_STATE_CHANGE_LPE
#define MPI_EVENT_LOOP_STATE_CHANGE_LPB

/* MPI LOGOUT Event data */

pEventDataLogout_t;

#define MPI_EVENT_LOGOUT_ALL_ALIASES

/* SAS SES Event data */

pMpiEventDataSasSes_t;

/* SAS Broadcast Primitive Event data */

pMpiEventDataSasBroadcastPrimitive_t;

#define MPI_EVENT_PRIMITIVE_CHANGE
#define MPI_EVENT_PRIMITIVE_EXPANDER
#define MPI_EVENT_PRIMITIVE_ASYNCHRONOUS_EVENT
#define MPI_EVENT_PRIMITIVE_RESERVED3
#define MPI_EVENT_PRIMITIVE_RESERVED4
#define MPI_EVENT_PRIMITIVE_CHANGE0_RESERVED
#define MPI_EVENT_PRIMITIVE_CHANGE1_RESERVED

/* SAS Phy Link Status Event data */

pMpiEventDataSasPhyLinkStatus_t;

/* defines for the LinkRates field of the SAS PHY Link Status event */
#define MPI_EVENT_SAS_PLS_LR_CURRENT_MASK
#define MPI_EVENT_SAS_PLS_LR_CURRENT_SHIFT
#define MPI_EVENT_SAS_PLS_LR_PREVIOUS_MASK
#define MPI_EVENT_SAS_PLS_LR_PREVIOUS_SHIFT
#define MPI_EVENT_SAS_PLS_LR_RATE_UNKNOWN
#define MPI_EVENT_SAS_PLS_LR_RATE_PHY_DISABLED
#define MPI_EVENT_SAS_PLS_LR_RATE_FAILED_SPEED_NEGOTIATION
#define MPI_EVENT_SAS_PLS_LR_RATE_SATA_OOB_COMPLETE
#define MPI_EVENT_SAS_PLS_LR_RATE_1_5
#define MPI_EVENT_SAS_PLS_LR_RATE_3_0
#define MPI_EVENT_SAS_PLS_LR_RATE_6_0

/* SAS Discovery Event data */

pEventDataSasDiscovery_t;

#define MPI_EVENT_SAS_DSCVRY_COMPLETE
#define MPI_EVENT_SAS_DSCVRY_IN_PROGRESS
#define MPI_EVENT_SAS_DSCVRY_PHY_BITS_MASK
#define MPI_EVENT_SAS_DSCVRY_PHY_BITS_SHIFT

/* SAS Discovery Error Event data */

pEventDataDiscoveryError_t;

#define MPI_EVENT_DSCVRY_ERR_DS_LOOP_DETECTED
#define MPI_EVENT_DSCVRY_ERR_DS_UNADDRESSABLE_DEVICE
#define MPI_EVENT_DSCVRY_ERR_DS_MULTIPLE_PORTS
#define MPI_EVENT_DSCVRY_ERR_DS_EXPANDER_ERR
#define MPI_EVENT_DSCVRY_ERR_DS_SMP_TIMEOUT
#define MPI_EVENT_DSCVRY_ERR_DS_OUT_ROUTE_ENTRIES
#define MPI_EVENT_DSCVRY_ERR_DS_INDEX_NOT_EXIST
#define MPI_EVENT_DSCVRY_ERR_DS_SMP_FUNCTION_FAILED
#define MPI_EVENT_DSCVRY_ERR_DS_SMP_CRC_ERROR
#define MPI_EVENT_DSCVRY_ERR_DS_MULTPL_SUBTRACTIVE
#define MPI_EVENT_DSCVRY_ERR_DS_TABLE_TO_TABLE
#define MPI_EVENT_DSCVRY_ERR_DS_UNSUPPORTED_DEVICE
#define MPI_EVENT_DSCVRY_ERR_DS_MAX_SATA_TARGETS
#define MPI_EVENT_DSCVRY_ERR_DS_MULTI_PORT_DOMAIN
#define MPI_EVENT_DSCVRY_ERR_DS_SATA_INIT_FAILURE

/* SAS SMP Error Event data */

pMpiEventDataSasSmpError_t;

/* defines for the Status field of the SAS SMP Error event */
#define MPI_EVENT_SAS_SMP_FUNCTION_RESULT_VALID
#define MPI_EVENT_SAS_SMP_CRC_ERROR
#define MPI_EVENT_SAS_SMP_TIMEOUT
#define MPI_EVENT_SAS_SMP_NO_DESTINATION
#define MPI_EVENT_SAS_SMP_BAD_DESTINATION

/* SAS Initiator Device Status Change Event data */

pMpiEventDataSasInitDevStatusChange_t;

/* defines for the ReasonCode field of the SAS Initiator Device Status Change event */
#define MPI_EVENT_SAS_INIT_RC_ADDED
#define MPI_EVENT_SAS_INIT_RC_REMOVED
#define MPI_EVENT_SAS_INIT_RC_INACCESSIBLE

/* SAS Initiator Device Table Overflow Event data */

pMpiEventDataSasInitTableOverflow_t;

/* SAS Expander Status Change Event data */

pMpiEventDataSasExpanderStatusChange_t;

/* values for ReasonCode field of SAS Expander Status Change Event data */
#define MPI_EVENT_SAS_EXP_RC_ADDED
#define MPI_EVENT_SAS_EXP_RC_NOT_RESPONDING

/* values for DiscoveryStatus field of SAS Expander Status Change Event data */
#define MPI_EVENT_SAS_EXP_DS_LOOP_DETECTED
#define MPI_EVENT_SAS_EXP_DS_UNADDRESSABLE_DEVICE
#define MPI_EVENT_SAS_EXP_DS_MULTIPLE_PORTS
#define MPI_EVENT_SAS_EXP_DS_EXPANDER_ERR
#define MPI_EVENT_SAS_EXP_DS_SMP_TIMEOUT
#define MPI_EVENT_SAS_EXP_DS_OUT_ROUTE_ENTRIES
#define MPI_EVENT_SAS_EXP_DS_INDEX_NOT_EXIST
#define MPI_EVENT_SAS_EXP_DS_SMP_FUNCTION_FAILED
#define MPI_EVENT_SAS_EXP_DS_SMP_CRC_ERROR
#define MPI_EVENT_SAS_EXP_DS_SUBTRACTIVE_LINK
#define MPI_EVENT_SAS_EXP_DS_TABLE_LINK
#define MPI_EVENT_SAS_EXP_DS_UNSUPPORTED_DEVICE

/* values for Flags field of SAS Expander Status Change Event data */
#define MPI_EVENT_SAS_EXP_FLAGS_ROUTE_TABLE_CONFIG
#define MPI_EVENT_SAS_EXP_FLAGS_CONFIG_IN_PROGRESS



/*****************************************************************************
*
*               F i r m w a r e    L o a d    M e s s a g e s
*
*****************************************************************************/

/****************************************************************************/
/*  Firmware Download message and associated structures                     */
/****************************************************************************/

pFWDownload_t;

#define MPI_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT

#define MPI_FW_DOWNLOAD_ITYPE_RESERVED
#define MPI_FW_DOWNLOAD_ITYPE_FW
#define MPI_FW_DOWNLOAD_ITYPE_BIOS
#define MPI_FW_DOWNLOAD_ITYPE_NVDATA
#define MPI_FW_DOWNLOAD_ITYPE_BOOTLOADER
#define MPI_FW_DOWNLOAD_ITYPE_MANUFACTURING
#define MPI_FW_DOWNLOAD_ITYPE_CONFIG_1
#define MPI_FW_DOWNLOAD_ITYPE_CONFIG_2
#define MPI_FW_DOWNLOAD_ITYPE_MEGARAID
#define MPI_FW_DOWNLOAD_ITYPE_COMMON_BOOT_BLOCK


pFWDownloadTCSGE_t;

/* Firmware Download reply */
pFWDownloadReply_t;


/****************************************************************************/
/*  Firmware Upload message and associated structures                       */
/****************************************************************************/

pFWUpload_t;

#define MPI_FW_UPLOAD_ITYPE_FW_IOC_MEM
#define MPI_FW_UPLOAD_ITYPE_FW_FLASH
#define MPI_FW_UPLOAD_ITYPE_BIOS_FLASH
#define MPI_FW_UPLOAD_ITYPE_NVDATA
#define MPI_FW_UPLOAD_ITYPE_BOOTLOADER
#define MPI_FW_UPLOAD_ITYPE_FW_BACKUP
#define MPI_FW_UPLOAD_ITYPE_MANUFACTURING
#define MPI_FW_UPLOAD_ITYPE_CONFIG_1
#define MPI_FW_UPLOAD_ITYPE_CONFIG_2
#define MPI_FW_UPLOAD_ITYPE_MEGARAID
#define MPI_FW_UPLOAD_ITYPE_COMPLETE
#define MPI_FW_UPLOAD_ITYPE_COMMON_BOOT_BLOCK

pFWUploadTCSGE_t;

/* Firmware Upload reply */
pFWUploadReply_t;


pMpiFwHeader_t;

#define MPI_FW_HEADER_WHAT_SIGNATURE

/* defines for using the ProductId field */
#define MPI_FW_HEADER_PID_TYPE_MASK
#define MPI_FW_HEADER_PID_TYPE_SCSI
#define MPI_FW_HEADER_PID_TYPE_FC
#define MPI_FW_HEADER_PID_TYPE_SAS

#define MPI_FW_HEADER_SIGNATURE_0
#define MPI_FW_HEADER_SIGNATURE_1
#define MPI_FW_HEADER_SIGNATURE_2

#define MPI_FW_HEADER_PID_PROD_MASK
#define MPI_FW_HEADER_PID_PROD_INITIATOR_SCSI
#define MPI_FW_HEADER_PID_PROD_TARGET_INITIATOR_SCSI
#define MPI_FW_HEADER_PID_PROD_TARGET_SCSI
#define MPI_FW_HEADER_PID_PROD_IM_SCSI
#define MPI_FW_HEADER_PID_PROD_IS_SCSI
#define MPI_FW_HEADER_PID_PROD_CTX_SCSI
#define MPI_FW_HEADER_PID_PROD_IR_SCSI

#define MPI_FW_HEADER_PID_FAMILY_MASK
/* SCSI */
#define MPI_FW_HEADER_PID_FAMILY_1030A0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1030B0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1030B1_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1030C0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1020A0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1020B0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1020B1_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1020C0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1035A0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1035B0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1030TA0_SCSI
#define MPI_FW_HEADER_PID_FAMILY_1020TA0_SCSI
/* Fibre Channel */
#define MPI_FW_HEADER_PID_FAMILY_909_FC
#define MPI_FW_HEADER_PID_FAMILY_919_FC
#define MPI_FW_HEADER_PID_FAMILY_919X_FC
#define MPI_FW_HEADER_PID_FAMILY_919XL_FC
#define MPI_FW_HEADER_PID_FAMILY_939X_FC
#define MPI_FW_HEADER_PID_FAMILY_959_FC
#define MPI_FW_HEADER_PID_FAMILY_949E_FC
/* SAS */
#define MPI_FW_HEADER_PID_FAMILY_1064_SAS
#define MPI_FW_HEADER_PID_FAMILY_1068_SAS
#define MPI_FW_HEADER_PID_FAMILY_1078_SAS
#define MPI_FW_HEADER_PID_FAMILY_106xE_SAS

pMpiExtImageHeader_t;

/* defines for the ImageType field */
#define MPI_EXT_IMAGE_TYPE_UNSPECIFIED
#define MPI_EXT_IMAGE_TYPE_FW
#define MPI_EXT_IMAGE_TYPE_NVDATA
#define MPI_EXT_IMAGE_TYPE_BOOTLOADER
#define MPI_EXT_IMAGE_TYPE_INITIALIZATION

#endif