11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*-
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Copyright (c) 2013 LSI Corp.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * All rights reserved.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Redistribution and use in source and binary forms, with or without
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * modification, are permitted provided that the following conditions
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * are met:
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 1. Redistributions of source code must retain the above copyright
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * notice, this list of conditions and the following disclaimer.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 2. Redistributions in binary form must reproduce the above copyright
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * notice, this list of conditions and the following disclaimer in the
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * documentation and/or other materials provided with the distribution.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 3. Neither the name of the author nor the names of any co-contributors
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * may be used to endorse or promote products derived from this software
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * without specific prior written permission.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * SUCH DAMAGE.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Copyright (c) 2000-2013 LSI Corporation.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Name: mpi2_ioc.h
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Title: MPI IOC, Port, Event, FW Download, and FW Upload messages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Creation Date: October 11, 2006
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * mpi2_ioc.h Version: 02.00.24
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * NOTE: Names (typedefs, defines, etc.) beginning with an MPI25 or Mpi25
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * prefix are for use only on MPI v2.5 products, and must not be used
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * with MPI v2.0 products. Unless otherwise noted, names beginning with
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2 or Mpi2 are for use with both MPI v2.0 and MPI v2.5 products.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Version History
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * ---------------
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Date Version Description
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * -------- -------- ------------------------------------------------------
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 06-04-07 02.00.01 In IOCFacts Reply structure, renamed MaxDevices to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * MaxTargets.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added TotalImageSize field to FWDownload Request.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added reserved words to FWUpload Request.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 06-26-07 02.00.02 Added IR Configuration Change List Event.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 08-31-07 02.00.03 Removed SystemReplyQueueDepth field from the IOCInit
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * request and replaced it with
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * ReplyDescriptorPostQueueDepth and ReplyFreeQueueDepth.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Replaced the MinReplyQueueDepth field of the IOCFacts
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * reply with MaxReplyDescriptorPostQueueDepth.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_RDPQ_DEPTH_MIN define to specify the minimum
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * depth for the Reply Descriptor Post Queue.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added SASAddress field to Initiator Device Table
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Overflow Event data.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 10-31-07 02.00.04 Added ReasonCode MPI2_EVENT_SAS_INIT_RC_NOT_RESPONDING
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * for SAS Initiator Device Status Change Event data.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Modified Reason Code defines for SAS Topology Change
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * List Event data, including adding a bit for PHY Vacant
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * status, and adding a mask for the Reason Code.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added define for
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * MPI2_EVENT_SAS_TOPO_ES_DELAY_NOT_RESPONDING.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added define for MPI2_EXT_IMAGE_TYPE_MEGARAID.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 12-18-07 02.00.05 Added Boot Status defines for the IOCExceptions field of
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * the IOCFacts Reply.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed MPI2_IOCFACTS_CAPABILITY_EXTENDED_BUFFER define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Moved MPI2_VERSION_UNION to mpi2.h.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Changed MPI2_EVENT_NOTIFICATION_REQUEST to use masks
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * instead of enables, and added SASBroadcastPrimitiveMasks
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * field.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added Log Entry Added Event and related structure.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 02-29-08 02.00.06 Added define MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed define MPI2_IOCFACTS_PROTOCOL_SMP_TARGET.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MaxVolumes and MaxPersistentEntries fields to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * IOCFacts reply.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added ProtocalFlags and IOCCapabilities fields to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * MPI2_FW_IMAGE_HEADER.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed MPI2_PORTENABLE_FLAGS_ENABLE_SINGLE_PORT.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 03-03-08 02.00.07 Fixed MPI2_FW_IMAGE_HEADER by changing Reserved26 to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * a U16 (from a U32).
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed extra 's' from EventMasks name.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 06-27-08 02.00.08 Fixed an offset in a comment.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 10-02-08 02.00.09 Removed SystemReplyFrameSize from MPI2_IOC_INIT_REQUEST.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed CurReplyFrameSize from MPI2_IOC_FACTS_REPLY and
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * renamed MinReplyFrameSize to ReplyFrameSize.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_IOCFACTS_EXCEPT_IR_FOREIGN_CONFIG_MAX.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added two new RAIDOperation values for Integrated RAID
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Operations Status Event data.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added four new IR Configuration Change List Event data
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * ReasonCode values.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added two new ReasonCode defines for SAS Device Status
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Change Event data.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added three new DiscoveryStatus bits for the SAS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Discovery event data.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added Multiplexing Status Change bit to the PhyStatus
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * field of the SAS Topology Change List event data.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed define for MPI2_INIT_IMAGE_BOOTFLAGS_XMEMCOPY.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * BootFlags are now product-specific.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added defines for the indivdual signature bytes
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * for MPI2_INIT_IMAGE_FOOTER.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 01-19-09 02.00.10 Added MPI2_IOCFACTS_CAPABILITY_EVENT_REPLAY define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_EVENT_SAS_DISC_DS_DOWNSTREAM_INITIATOR
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_EVENT_SAS_DEV_STAT_RC_SATA_INIT_FAILURE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed MPI2_EVENT_SAS_DISC_DS_SATA_INIT_FAILURE define.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * 05-06-09 02.00.11 Added MPI2_IOCFACTS_CAPABILITY_RAID_ACCELERATOR define.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added MPI2_IOCFACTS_CAPABILITY_MSI_X_INDEX define.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added two new reason codes for SAS Device Status Change
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Event.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added new event: SAS PHY Counter.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * 07-30-09 02.00.12 Added GPIO Interrupt event define and structure.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added MPI2_IOCFACTS_CAPABILITY_EXTENDED_BUFFER define.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added new product id family for 2208.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 10-28-09 02.00.13 Added HostMSIxVectors field to MPI2_IOC_INIT_REQUEST.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MaxMSIxVectors field to MPI2_IOC_FACTS_REPLY.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MinDevHandle field to MPI2_IOC_FACTS_REPLY.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_IOCFACTS_CAPABILITY_HOST_BASED_DISCOVERY.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_EVENT_HOST_BASED_DISCOVERY_PHY define.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_EVENT_SAS_TOPO_ES_NO_EXPANDER define.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added Host Based Discovery Phy Event data.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added defines for ProductID Product field
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * (MPI2_FW_HEADER_PID_).
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Modified values for SAS ProductID Family
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * (MPI2_FW_HEADER_PID_FAMILY_).
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 02-10-10 02.00.14 Added SAS Quiesce Event structure and defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added PowerManagementControl Request structures and
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 05-12-10 02.00.15 Marked Task Set Full Event as obsolete.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_EVENT_SAS_TOPO_LR_UNSUPPORTED_PHY define.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 11-10-10 02.00.16 Added MPI2_FW_DOWNLOAD_ITYPE_MIN_PRODUCT_SPECIFIC.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 02-23-11 02.00.17 Added SAS NOTIFY Primitive event, and added
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * SASNotifyPrimitiveMasks field to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_EVENT_NOTIFICATION_REQUEST.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added Temperature Threshold Event.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added Host Message Event.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added Send Host Message request and reply.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 05-25-11 02.00.18 For Extended Image Header, added
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_EXT_IMAGE_TYPE_MIN_PRODUCT_SPECIFIC and
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Deprecated MPI2_EXT_IMAGE_TYPE_MAX define.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 08-24-11 02.00.19 Added PhysicalPort field to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_EVENT_DATA_SAS_DEVICE_STATUS_CHANGE structure.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Marked MPI2_PM_CONTROL_FEATURE_PCIE_LINK as obsolete.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 11-18-11 02.00.20 Incorporating additions for MPI v2.5.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 03-29-12 02.00.21 Added a product specific range to event values.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 07-26-12 02.00.22 Added MPI2_IOCFACTS_EXCEPT_PARTIAL_MEMORY_FAILURE.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added ElapsedSeconds field to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_EVENT_DATA_IR_OPERATION_STATUS.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 08-19-13 02.00.23 For IOCInit, added MPI2_IOCINIT_MSGFLAG_RDPQ_ARRAY_MODE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * and MPI2_IOC_INIT_RDPQ_ARRAY_ENTRY.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_IOCFACTS_CAPABILITY_RDPQ_ARRAY_CAPABLE.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_FW_DOWNLOAD_ITYPE_PUBLIC_KEY.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added Encrypted Hash Extended Image.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 12-05-13 02.00.24 Added MPI25_HASH_IMAGE_TYPE_BIOS.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * --------------------------------------------------------------------------
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_IOC_H
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOC_H
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* IOC Messages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China*****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* IOCInit message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOCInit Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_IOC_INIT_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 WhoInit; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MsgVersion; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 HeaderVersion; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved6; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved7; /* 0x16 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 HostMSIxVectors; /* 0x17 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved8; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SystemRequestFrameSize; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ReplyDescriptorPostQueueDepth; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ReplyFreeQueueDepth; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 SenseBufferAddressHigh; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 SystemReplyAddressHigh; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SystemRequestFrameBaseAddress; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 ReplyDescriptorPostQueueAddress;/* 0x30 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 ReplyFreeQueueAddress; /* 0x38 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 TimeStamp; /* 0x40 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_IOC_INIT_REQUEST, MPI2_POINTER PTR_MPI2_IOC_INIT_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCInitRequest_t, MPI2_POINTER pMpi2IOCInitRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* WhoInit values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_WHOINIT_NOT_INITIALIZED (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_WHOINIT_SYSTEM_BIOS (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_WHOINIT_ROM_BIOS (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_WHOINIT_PCI_PEER (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_WHOINIT_HOST_DRIVER (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_WHOINIT_MANUFACTURER (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MsgFlags */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOCINIT_MSGFLAG_RDPQ_ARRAY_MODE (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* MsgVersion */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_MSGVERSION_MAJOR_MASK (0xFF00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_MSGVERSION_MAJOR_SHIFT (8)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_MSGVERSION_MINOR_MASK (0x00FF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_MSGVERSION_MINOR_SHIFT (0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* HeaderVersion */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_HDRVERSION_UNIT_MASK (0xFF00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_HDRVERSION_UNIT_SHIFT (8)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_HDRVERSION_DEV_MASK (0x00FF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCINIT_HDRVERSION_DEV_SHIFT (0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* minimum depth for a Reply Descriptor Post Queue */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RDPQ_DEPTH_MIN (16)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Reply Descriptor Post Queue Array Entry */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_IOC_INIT_RDPQ_ARRAY_ENTRY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U64 RDPQBaseAddress; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved1; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_IOC_INIT_RDPQ_ARRAY_ENTRY,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_IOC_INIT_RDPQ_ARRAY_ENTRY,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2IOCInitRDPQArrayEntry, MPI2_POINTER pMpi2IOCInitRDPQArrayEntry;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOCInit Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_IOC_INIT_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 WhoInit; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_IOC_INIT_REPLY, MPI2_POINTER PTR_MPI2_IOC_INIT_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCInitReply_t, MPI2_POINTER pMpi2IOCInitReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* IOCFacts message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOCFacts Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_IOC_FACTS_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_IOC_FACTS_REQUEST, MPI2_POINTER PTR_MPI2_IOC_FACTS_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCFactsRequest_t, MPI2_POINTER pMpi2IOCFactsRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOCFacts Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_IOC_FACTS_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MsgVersion; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 HeaderVersion; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 IOCNumber; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCExceptions; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxChainDepth; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 WhoInit; /* 0x15 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumberOfPorts; /* 0x16 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MaxMSIxVectors; /* 0x17 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 RequestCredit; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ProductID; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCCapabilities; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_VERSION_UNION FWVersion; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCRequestFrameSize; /* 0x24 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 IOCMaxChainSegmentSize; /* 0x26 */ /* MPI 2.5 only; Reserved in MPI 2.0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxInitiators; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxTargets; /* 0x2A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxSasExpanders; /* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxEnclosures; /* 0x2E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ProtocolFlags; /* 0x30 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 HighPriorityCredit; /* 0x32 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxReplyDescriptorPostQueueDepth; /* 0x34 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReplyFrameSize; /* 0x36 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxVolumes; /* 0x37 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxDevHandle; /* 0x38 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxPersistentEntries; /* 0x3A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 MinDevHandle; /* 0x3C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x3E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_IOC_FACTS_REPLY, MPI2_POINTER PTR_MPI2_IOC_FACTS_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCFactsReply_t, MPI2_POINTER pMpi2IOCFactsReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* MsgVersion */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_MSGVERSION_MAJOR_MASK (0xFF00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_MSGVERSION_MAJOR_SHIFT (8)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_MSGVERSION_MINOR_MASK (0x00FF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_MSGVERSION_MINOR_SHIFT (0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* HeaderVersion */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_HDRVERSION_UNIT_MASK (0xFF00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_HDRVERSION_UNIT_SHIFT (8)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_HDRVERSION_DEV_MASK (0x00FF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_HDRVERSION_DEV_SHIFT (0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOCExceptions */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOCFACTS_EXCEPT_PARTIAL_MEMORY_FAILURE (0x0200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_IR_FOREIGN_CONFIG_MAX (0x0100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_MASK (0x00E0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_GOOD (0x0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_BACKUP (0x0020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_RESTORED (0x0040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_BOOTSTAT_CORRUPT_BACKUP (0x0060)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_METADATA_UNSUPPORTED (0x0010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_MANUFACT_CHECKSUM_FAIL (0x0008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL (0x0004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_EXCEPT_CONFIG_CHECKSUM_FAIL (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for WhoInit field are after the IOCInit Request */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* ProductID field uses MPI2_FW_HEADER_PID_ */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOCCapabilities */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOCFACTS_CAPABILITY_RDPQ_ARRAY_CAPABLE (0x00040000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOCFACTS_CAPABILITY_FAST_PATH_CAPABLE (0x00020000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOCFACTS_CAPABILITY_HOST_BASED_DISCOVERY (0x00010000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOCFACTS_CAPABILITY_MSI_X_INDEX (0x00008000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOCFACTS_CAPABILITY_RAID_ACCELERATOR (0x00004000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_EVENT_REPLAY (0x00002000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID (0x00001000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_TLR (0x00000800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_MULTICAST (0x00000100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_BIDIRECTIONAL_TARGET (0x00000080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_EEDP (0x00000040)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOCFACTS_CAPABILITY_EXTENDED_BUFFER (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_SNAPSHOT_BUFFER (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_DIAG_TRACE_BUFFER (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_CAPABILITY_TASK_SET_FULL_HANDLING (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* ProtocolFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_PROTOCOL_SCSI_TARGET (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCFACTS_PROTOCOL_SCSI_INITIATOR (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* PortFacts message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PortFacts Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_PORT_FACTS_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortNumber; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_PORT_FACTS_REQUEST, MPI2_POINTER PTR_MPI2_PORT_FACTS_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2PortFactsRequest_t, MPI2_POINTER pMpi2PortFactsRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PortFacts Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_PORT_FACTS_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortNumber; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved5; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortType; /* 0x15 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved6; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxPostedCmdBuffers; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved7; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_PORT_FACTS_REPLY, MPI2_POINTER PTR_MPI2_PORT_FACTS_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2PortFactsReply_t, MPI2_POINTER pMpi2PortFactsReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PortType values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PORTFACTS_PORTTYPE_INACTIVE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PORTFACTS_PORTTYPE_FC (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PORTFACTS_PORTTYPE_ISCSI (0x20)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PORTFACTS_PORTTYPE_SAS_PHYSICAL (0x30)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PORTFACTS_PORTTYPE_SAS_VIRTUAL (0x31)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* PortEnable message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PortEnable Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_PORT_ENABLE_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortFlags; /* 0x05 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_PORT_ENABLE_REQUEST, MPI2_POINTER PTR_MPI2_PORT_ENABLE_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2PortEnableRequest_t, MPI2_POINTER pMpi2PortEnableRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PortEnable Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_PORT_ENABLE_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortFlags; /* 0x05 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_PORT_ENABLE_REPLY, MPI2_POINTER PTR_MPI2_PORT_ENABLE_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2PortEnableReply_t, MPI2_POINTER pMpi2PortEnableReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* EventNotification message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* EventNotification Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_NOTIFY_EVENTMASK_WORDS (4)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_NOTIFICATION_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved6; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 EventMasks[MPI2_EVENT_NOTIFY_EVENTMASK_WORDS];/* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SASBroadcastPrimitiveMasks; /* 0x24 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 SASNotifyPrimitiveMasks; /* 0x26 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved8; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_NOTIFICATION_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_NOTIFICATION_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventNotificationRequest_t, MPI2_POINTER pMpi2EventNotificationRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* EventNotification Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_NOTIFICATION_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 EventDataLength; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 AckRequired; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Event; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 EventContext; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 EventData[1]; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_NOTIFICATION_REPLY, MPI2_POINTER PTR_MPI2_EVENT_NOTIFICATION_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventNotificationReply_t, MPI2_POINTER pMpi2EventNotificationReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* AckRequired */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_NOTIFICATION_ACK_NOT_REQUIRED (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_NOTIFICATION_ACK_REQUIRED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Event */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_LOG_DATA (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_STATE_CHANGE (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_HARD_RESET_RECEIVED (0x0005)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_EVENT_CHANGE (0x000A)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_TASK_SET_FULL (0x000E) /* obsolete */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DEVICE_STATUS_CHANGE (0x000F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_OPERATION_STATUS (0x0014)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISCOVERY (0x0016)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_BROADCAST_PRIMITIVE (0x0017)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_INIT_DEVICE_STATUS_CHANGE (0x0018)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_INIT_TABLE_OVERFLOW (0x0019)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPOLOGY_CHANGE_LIST (0x001C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_ENCL_DEVICE_STATUS_CHANGE (0x001D)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_VOLUME (0x001E)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_PHYSICAL_DISK (0x001F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CONFIGURATION_CHANGE_LIST (0x0020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_LOG_ENTRY_ADDED (0x0021)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_PHY_COUNTER (0x0022)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_GPIO_INTERRUPT (0x0023)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_HOST_BASED_DISCOVERY_PHY (0x0024)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_SAS_QUIESCE (0x0025)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_SAS_NOTIFY_PRIMITIVE (0x0026)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_TEMP_THRESHOLD (0x0027)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_HOST_MESSAGE (0x0028)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_POWER_PERFORMANCE_CHANGE (0x0029)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_MIN_PRODUCT_SPECIFIC (0x006E)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_MAX_PRODUCT_SPECIFIC (0x007F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Log Entry Added Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* the following structure matches MPI2_LOG_0_ENTRY in mpi2_cnfg.h */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_DATA_LOG_DATA_LENGTH (0x1C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_LOG_ENTRY_ADDED
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 TimeStamp; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 LogSequence; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 LogEntryQualifier; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x11 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x12 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 LogData[MPI2_EVENT_DATA_LOG_DATA_LENGTH];/* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_LOG_ENTRY_ADDED,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_LOG_ENTRY_ADDED,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataLogEntryAdded_t, MPI2_POINTER pMpi2EventDataLogEntryAdded_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* GPIO Interrupt Event data */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_EVENT_DATA_GPIO_INTERRUPT
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 GPIONum; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved1; /* 0x01 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved2; /* 0x02 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_EVENT_DATA_GPIO_INTERRUPT,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_POINTER PTR_MPI2_EVENT_DATA_GPIO_INTERRUPT,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2EventDataGpioInterrupt_t, MPI2_POINTER pMpi2EventDataGpioInterrupt_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Temperature Threshold Event data */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_EVENT_DATA_TEMPERATURE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Status; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 SensorNum; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 CurrentTemperature; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved3; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved4; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_DATA_TEMPERATURE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_EVENT_DATA_TEMPERATURE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventDataTemperature_t, MPI2_POINTER pMpi2EventDataTemperature_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Temperature Threshold Event data Status bits */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_TEMPERATURE3_EXCEEDED (0x0008)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_TEMPERATURE2_EXCEEDED (0x0004)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_TEMPERATURE1_EXCEEDED (0x0002)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_TEMPERATURE0_EXCEEDED (0x0001)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Host Message Event data */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_EVENT_DATA_HOST_MESSAGE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 SourceVF_ID; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved3; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 HostData[1]; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_DATA_HOST_MESSAGE, MPI2_POINTER PTR_MPI2_EVENT_DATA_HOST_MESSAGE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventDataHostMessage_t, MPI2_POINTER pMpi2EventDataHostMessage_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Power Performance Change Event */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_EVENT_DATA_POWER_PERF_CHANGE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 CurrentPowerMode; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PreviousPowerMode; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_DATA_POWER_PERF_CHANGE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_EVENT_DATA_POWER_PERF_CHANGE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventDataPowerPerfChange_t, MPI2_POINTER pMpi2EventDataPowerPerfChange_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for CurrentPowerMode and PreviousPowerMode fields */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_INIT_MASK (0xC0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_INIT_UNAVAILABLE (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_INIT_HOST (0x40)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_INIT_IO_UNIT (0x80)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_INIT_PCIE_DPA (0xC0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_MODE_MASK (0x07)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_MODE_UNAVAILABLE (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_MODE_UNKNOWN (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_MODE_FULL_POWER (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_MODE_REDUCED_POWER (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_PM_MODE_STANDBY (0x06)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Hard Reset Received Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_HARD_RESET_RECEIVED
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Port; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_HARD_RESET_RECEIVED,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_HARD_RESET_RECEIVED,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataHardResetReceived_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataHardResetReceived_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Task Set Full Event data */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* this event is obsolete */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_TASK_SET_FULL
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 CurrentDepth; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_TASK_SET_FULL, MPI2_POINTER PTR_MPI2_EVENT_DATA_TASK_SET_FULL,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataTaskSetFull_t, MPI2_POINTER pMpi2EventDataTaskSetFull_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Device Status Change Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_SAS_DEVICE_STATUS_CHANGE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 TaskTag; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReasonCode; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PhysicalPort; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ASC; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ASCQ; /* 0x05 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 LUN[8]; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_SAS_DEVICE_STATUS_CHANGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_DEVICE_STATUS_CHANGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataSasDeviceStatusChange_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataSasDeviceStatusChange_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Device Status Change Event data ReasonCode values */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_SMART_DATA (0x05)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_UNSUPPORTED (0x07)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_INTERNAL_DEVICE_RESET (0x08)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_TASK_ABORT_INTERNAL (0x09)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_ABORT_TASK_SET_INTERNAL (0x0A)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_CLEAR_TASK_SET_INTERNAL (0x0B)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_QUERY_TASK_INTERNAL (0x0C)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_ASYNC_NOTIFICATION (0x0D)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_CMP_INTERNAL_DEV_RESET (0x0E)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_CMP_TASK_ABORT_INTERNAL (0x0F)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_SATA_INIT_FAILURE (0x10)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_EXPANDER_REDUCED_FUNCTIONALITY (0x11)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_EVENT_SAS_DEV_STAT_RC_CMP_EXPANDER_REDUCED_FUNCTIONALITY (0x12)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Integrated RAID Operation Status Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_IR_OPERATION_STATUS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 VolDevHandle; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 RAIDOperation; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PercentComplete; /* 0x05 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 ElapsedSeconds; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_IR_OPERATION_STATUS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_IR_OPERATION_STATUS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataIrOperationStatus_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataIrOperationStatus_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Integrated RAID Operation Status Event data RAIDOperation values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_RAIDOP_RESYNC (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_RAIDOP_ONLINE_CAP_EXPANSION (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_RAIDOP_CONSISTENCY_CHECK (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_RAIDOP_BACKGROUND_INIT (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_RAIDOP_MAKE_DATA_CONSISTENT (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Integrated RAID Volume Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_IR_VOLUME
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 VolDevHandle; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReasonCode; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 NewValue; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PreviousValue; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_IR_VOLUME, MPI2_POINTER PTR_MPI2_EVENT_DATA_IR_VOLUME,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataIrVolume_t, MPI2_POINTER pMpi2EventDataIrVolume_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Integrated RAID Volume Event data ReasonCode values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_VOLUME_RC_SETTINGS_CHANGED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_VOLUME_RC_STATUS_FLAGS_CHANGED (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_VOLUME_RC_STATE_CHANGED (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Integrated RAID Physical Disk Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_IR_PHYSICAL_DISK
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReasonCode; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskNum; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 PhysDiskDevHandle; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Slot; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 EnclosureHandle; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 NewValue; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PreviousValue; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_IR_PHYSICAL_DISK,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_IR_PHYSICAL_DISK,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataIrPhysicalDisk_t, MPI2_POINTER pMpi2EventDataIrPhysicalDisk_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Integrated RAID Physical Disk Event data ReasonCode values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_PHYSDISK_RC_SETTINGS_CHANGED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_PHYSDISK_RC_STATUS_FLAGS_CHANGED (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_PHYSDISK_RC_STATE_CHANGED (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Integrated RAID Configuration Change List Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * one and check NumElements at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_EVENT_IR_CONFIG_ELEMENT_COUNT
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CONFIG_ELEMENT_COUNT (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_IR_CONFIG_ELEMENT
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ElementFlags; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 VolDevHandle; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReasonCode; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskNum; /* 0x05 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 PhysDiskDevHandle; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_IR_CONFIG_ELEMENT, MPI2_POINTER PTR_MPI2_EVENT_IR_CONFIG_ELEMENT,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventIrConfigElement_t, MPI2_POINTER pMpi2EventIrConfigElement_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IR Configuration Change List Event data ElementFlags values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_EFLAGS_ELEMENT_TYPE_MASK (0x000F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_EFLAGS_VOLUME_ELEMENT (0x0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_EFLAGS_VOLPHYSDISK_ELEMENT (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_EFLAGS_HOTSPARE_ELEMENT (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IR Configuration Change List Event data ReasonCode values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_ADDED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_REMOVED (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_NO_CHANGE (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_HIDE (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_UNHIDE (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_VOLUME_CREATED (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_VOLUME_DELETED (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_PD_CREATED (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_RC_PD_DELETED (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_IR_CONFIG_CHANGE_LIST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumElements; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ConfigNum; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Flags; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_EVENT_IR_CONFIG_ELEMENT ConfigElement[MPI2_EVENT_IR_CONFIG_ELEMENT_COUNT]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_IR_CONFIG_CHANGE_LIST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_IR_CONFIG_CHANGE_LIST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataIrConfigChangeList_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataIrConfigChangeList_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IR Configuration Change List Event data Flags values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_IR_CHANGE_FLAGS_FOREIGN_CONFIG (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Discovery Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_SAS_DISCOVERY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Flags; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReasonCode; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 DiscoveryStatus; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_SAS_DISCOVERY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_DISCOVERY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataSasDiscovery_t, MPI2_POINTER pMpi2EventDataSasDiscovery_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Discovery Event data Flags values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DEVICE_CHANGE (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_IN_PROGRESS (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Discovery Event data ReasonCode values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_RC_STARTED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_RC_COMPLETED (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Discovery Event data DiscoveryStatus values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_MAX_ENCLOSURES_EXCEED (0x80000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_MAX_EXPANDERS_EXCEED (0x40000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_MAX_DEVICES_EXCEED (0x20000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_MAX_TOPO_PHYS_EXCEED (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_DOWNSTREAM_INITIATOR (0x08000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_MULTI_SUBTRACTIVE_SUBTRACTIVE (0x00008000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_EXP_MULTI_SUBTRACTIVE (0x00004000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_MULTI_PORT_DOMAIN (0x00002000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_TABLE_TO_SUBTRACTIVE_LINK (0x00001000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_UNSUPPORTED_DEVICE (0x00000800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_TABLE_LINK (0x00000400)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_SUBTRACTIVE_LINK (0x00000200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_SMP_CRC_ERROR (0x00000100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_SMP_FUNCTION_FAILED (0x00000080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_INDEX_NOT_EXIST (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_OUT_ROUTE_ENTRIES (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_SMP_TIMEOUT (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_MULTIPLE_PORTS (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_UNADDRESSABLE_DEVICE (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_DISC_DS_LOOP_DETECTED (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Broadcast Primitive Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_SAS_BROADCAST_PRIMITIVE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhyNum; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Port; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortWidth; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Primitive; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_SAS_BROADCAST_PRIMITIVE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_BROADCAST_PRIMITIVE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataSasBroadcastPrimitive_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataSasBroadcastPrimitive_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the Primitive field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_CHANGE (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_SES (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_EXPANDER (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_ASYNCHRONOUS_EVENT (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_RESERVED3 (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_RESERVED4 (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_CHANGE0_RESERVED (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_PRIMITIVE_CHANGE1_RESERVED (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS Notify Primitive Event data */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_EVENT_DATA_SAS_NOTIFY_PRIMITIVE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PhyNum; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Port; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Primitive; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_DATA_SAS_NOTIFY_PRIMITIVE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_NOTIFY_PRIMITIVE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventDataSasNotifyPrimitive_t,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER pMpi2EventDataSasNotifyPrimitive_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for the Primitive field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_NOTIFY_ENABLE_SPINUP (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_NOTIFY_POWER_LOSS_EXPECTED (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_NOTIFY_RESERVED1 (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_NOTIFY_RESERVED2 (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Initiator Device Status Change Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_SAS_INIT_DEV_STATUS_CHANGE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReasonCode; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_SAS_INIT_DEV_STATUS_CHANGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_INIT_DEV_STATUS_CHANGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataSasInitDevStatusChange_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataSasInitDevStatusChange_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Initiator Device Status Change event ReasonCode values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_INIT_RC_ADDED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_INIT_RC_NOT_RESPONDING (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Initiator Device Table Overflow Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_SAS_INIT_TABLE_OVERFLOW
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxInit; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 CurrentInit; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_SAS_INIT_TABLE_OVERFLOW,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_INIT_TABLE_OVERFLOW,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataSasInitTableOverflow_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataSasInitTableOverflow_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Topology Change List Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * one and check NumEntries at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_EVENT_SAS_TOPO_PHY_COUNT
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_PHY_COUNT (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_SAS_TOPO_PHY_ENTRY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 AttachedDevHandle; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 LinkRate; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhyStatus; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_SAS_TOPO_PHY_ENTRY, MPI2_POINTER PTR_MPI2_EVENT_SAS_TOPO_PHY_ENTRY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventSasTopoPhyEntry_t, MPI2_POINTER pMpi2EventSasTopoPhyEntry_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_SAS_TOPOLOGY_CHANGE_LIST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 EnclosureHandle; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ExpanderDevHandle; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhys; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x05 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumEntries; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 StartPhyNum; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ExpStatus; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x0B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_EVENT_SAS_TOPO_PHY_ENTRY PHY[MPI2_EVENT_SAS_TOPO_PHY_COUNT]; /* 0x0C*/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_SAS_TOPOLOGY_CHANGE_LIST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_TOPOLOGY_CHANGE_LIST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataSasTopologyChangeList_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataSasTopologyChangeList_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for the ExpStatus field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_SAS_TOPO_ES_NO_EXPANDER (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_ES_ADDED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_ES_NOT_RESPONDING (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_ES_RESPONDING (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_ES_DELAY_NOT_RESPONDING (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the LinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_CURRENT_MASK (0xF0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_CURRENT_SHIFT (4)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_PREV_MASK (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_PREV_SHIFT (0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_UNKNOWN_LINK_RATE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_PHY_DISABLED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_NEGOTIATION_FAILED (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_SATA_OOB_COMPLETE (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_PORT_SELECTOR (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_SMP_RESET_IN_PROGRESS (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_SAS_TOPO_LR_UNSUPPORTED_PHY (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_RATE_1_5 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_RATE_3_0 (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_LR_RATE_6_0 (0x0A)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_EVENT_SAS_TOPO_LR_RATE_12_0 (0x0B)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for the PhyStatus field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_PHYSTATUS_VACANT (0x80)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_PS_MULTIPLEX_CHANGE (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for the PhyStatus ReasonCode sub-field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_RC_MASK (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_RC_TARG_ADDED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_RC_TARG_NOT_RESPONDING (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_RC_PHY_CHANGED (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_RC_NO_CHANGE (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_TOPO_RC_DELAY_NOT_RESPONDING (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Enclosure Device Status Change Event data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_DATA_SAS_ENCL_DEV_STATUS_CHANGE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 EnclosureHandle; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReasonCode; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 EnclosureLogicalID; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 NumSlots; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 StartSlot; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PhyBits; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_DATA_SAS_ENCL_DEV_STATUS_CHANGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_ENCL_DEV_STATUS_CHANGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventDataSasEnclDevStatusChange_t,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER pMpi2EventDataSasEnclDevStatusChange_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Enclosure Device Status Change event ReasonCode values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_ENCL_RC_ADDED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EVENT_SAS_ENCL_RC_NOT_RESPONDING (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* SAS PHY Counter Event data */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_EVENT_DATA_SAS_PHY_COUNTER
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U64 TimeStamp; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved1; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 PhyEventCode; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 PhyNum; /* 0x0D */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved2; /* 0x0E */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 PhyEventInfo; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 CounterType; /* 0x14 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 ThresholdWindow; /* 0x15 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 TimeUnits; /* 0x16 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved3; /* 0x17 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 EventThreshold; /* 0x18 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 ThresholdFlags; /* 0x1C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved4; /* 0x1E */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_EVENT_DATA_SAS_PHY_COUNTER,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_PHY_COUNTER,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2EventDataSasPhyCounter_t, MPI2_POINTER pMpi2EventDataSasPhyCounter_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* use MPI2_SASPHY3_EVENT_CODE_ values from mpi2_cnfg.h for the PhyEventCode field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* use MPI2_SASPHY3_COUNTER_TYPE_ values from mpi2_cnfg.h for the CounterType field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* use MPI2_SASPHY3_TIME_UNITS_ values from mpi2_cnfg.h for the TimeUnits field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* use MPI2_SASPHY3_TFLAGS_ values from mpi2_cnfg.h for the ThresholdFlags field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS Quiesce Event data */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_EVENT_DATA_SAS_QUIESCE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ReasonCode; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved3; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_DATA_SAS_QUIESCE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_EVENT_DATA_SAS_QUIESCE,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventDataSasQuiesce_t, MPI2_POINTER pMpi2EventDataSasQuiesce_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS Quiesce Event data ReasonCode values */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_SAS_QUIESCE_RC_STARTED (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_SAS_QUIESCE_RC_COMPLETED (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Host Based Discovery Phy Event data */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_EVENT_HBD_PHY_SAS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Flags; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 NegotiatedLinkRate; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PhyNum; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PhysicalPort; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved1; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 InitialFrame[28]; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_HBD_PHY_SAS, MPI2_POINTER PTR_MPI2_EVENT_HBD_PHY_SAS,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventHbdPhySas_t, MPI2_POINTER pMpi2EventHbdPhySas_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* values for the Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_HBD_SAS_FLAGS_FRAME_VALID (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_HBD_SAS_FLAGS_SATA_FRAME (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* use MPI2_SAS_NEG_LINK_RATE_ defines from mpi2_cnfg.h for the NegotiatedLinkRate field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef union _MPI2_EVENT_HBD_DESCRIPTOR
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_EVENT_HBD_PHY_SAS Sas;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_HBD_DESCRIPTOR, MPI2_POINTER PTR_MPI2_EVENT_HBD_DESCRIPTOR,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventHbdDescriptor_t, MPI2_POINTER pMpi2EventHbdDescriptor_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_EVENT_DATA_HBD_PHY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 DescriptorType; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved3; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_EVENT_HBD_DESCRIPTOR Descriptor; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_EVENT_DATA_HBD_PHY, MPI2_POINTER PTR_MPI2_EVENT_DATA_HBD_PHY,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2EventDataHbdPhy_t, MPI2_POINTER pMpi2EventDataMpi2EventDataHbdPhy_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* values for the DescriptorType field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EVENT_HBD_DT_SAS (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* EventAck message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* EventAck Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_ACK_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Event; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 EventContext; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_ACK_REQUEST, MPI2_POINTER PTR_MPI2_EVENT_ACK_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventAckRequest_t, MPI2_POINTER pMpi2EventAckRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* EventAck Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EVENT_ACK_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EVENT_ACK_REPLY, MPI2_POINTER PTR_MPI2_EVENT_ACK_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2EventAckReply_t, MPI2_POINTER pMpi2EventAckReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/****************************************************************************
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles* SendHostMessage message
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles****************************************************************************/
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SendHostMessage Request message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_SEND_HOST_MESSAGE_REQUEST
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 HostDataLength; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ChainOffset; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved4; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 DestVF_ID; /* 0x0D */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved5; /* 0x0E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved6; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved7; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved8; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved9; /* 0x1C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved10; /* 0x20 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 HostData[1]; /* 0x24 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_SEND_HOST_MESSAGE_REQUEST,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_SEND_HOST_MESSAGE_REQUEST,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SendHostMessageRequest_t, MPI2_POINTER pMpi2SendHostMessageRequest_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SendHostMessage Reply message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_SEND_HOST_MESSAGE_REPLY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 HostDataLength; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgLength; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 IOCStatus; /* 0x0E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 IOCLogInfo; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_SEND_HOST_MESSAGE_REPLY, MPI2_POINTER PTR_MPI2_SEND_HOST_MESSAGE_REPLY,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SendHostMessageReply_t, MPI2_POINTER pMpi2SendHostMessageReply_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* FWDownload message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.0 FWDownload Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FW_DOWNLOAD_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ImageType; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 TotalImageSize; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_MPI_SGE_UNION SGL; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FW_DOWNLOAD_REQUEST, MPI2_POINTER PTR_MPI2_FW_DOWNLOAD_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FWDownloadRequest, MPI2_POINTER pMpi2FWDownloadRequest;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_ITYPE_FW (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_ITYPE_BIOS (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_ITYPE_MANUFACTURING (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_ITYPE_CONFIG_1 (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_ITYPE_CONFIG_2 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_ITYPE_MEGARAID (0x09)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_DOWNLOAD_ITYPE_COMPLETE (0x0A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_DOWNLOAD_ITYPE_COMMON_BOOT_BLOCK (0x0B)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_DOWNLOAD_ITYPE_PUBLIC_KEY (0x0C) /* MPI v2.5 and newer */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_DOWNLOAD_ITYPE_MIN_PRODUCT_SPECIFIC (0xF0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.0 FWDownload TransactionContext Element */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FW_DOWNLOAD_TCSGE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ContextSize; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 DetailsLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Flags; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ImageOffset; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ImageSize; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FW_DOWNLOAD_TCSGE, MPI2_POINTER PTR_MPI2_FW_DOWNLOAD_TCSGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FWDownloadTCSGE_t, MPI2_POINTER pMpi2FWDownloadTCSGE_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.5 FWDownload Request message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI25_FW_DOWNLOAD_REQUEST
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ImageType; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ChainOffset; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved3; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 TotalImageSize; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved5; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved6; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 ImageOffset; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 ImageSize; /* 0x1C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI25_SGE_IO_UNION SGL; /* 0x20 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI25_FW_DOWNLOAD_REQUEST, MPI2_POINTER PTR_MPI25_FW_DOWNLOAD_REQUEST,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi25FWDownloadRequest, MPI2_POINTER pMpi25FWDownloadRequest;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* FWDownload Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FW_DOWNLOAD_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ImageType; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FW_DOWNLOAD_REPLY, MPI2_POINTER PTR_MPI2_FW_DOWNLOAD_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FWDownloadReply_t, MPI2_POINTER pMpi2FWDownloadReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* FWUpload message
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.0 FWUpload Request message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FW_UPLOAD_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ImageType; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChainOffset; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved6; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_MPI_SGE_UNION SGL; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FW_UPLOAD_REQUEST, MPI2_POINTER PTR_MPI2_FW_UPLOAD_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FWUploadRequest_t, MPI2_POINTER pMpi2FWUploadRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_FW_CURRENT (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_FW_FLASH (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_BIOS_FLASH (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_FW_BACKUP (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_MANUFACTURING (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_CONFIG_1 (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_CONFIG_2 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_MEGARAID (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_COMPLETE (0x0A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_UPLOAD_ITYPE_COMMON_BOOT_BLOCK (0x0B)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.0 FWUpload TransactionContext Element */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FW_UPLOAD_TCSGE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ContextSize; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 DetailsLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Flags; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ImageOffset; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ImageSize; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FW_UPLOAD_TCSGE, MPI2_POINTER PTR_MPI2_FW_UPLOAD_TCSGE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FWUploadTCSGE_t, MPI2_POINTER pMpi2FWUploadTCSGE_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.5 FWUpload Request message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI25_FW_UPLOAD_REQUEST
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ImageType; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ChainOffset; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved3; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved5; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved6; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved7; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 ImageOffset; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 ImageSize; /* 0x1C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI25_SGE_IO_UNION SGL; /* 0x20 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI25_FW_UPLOAD_REQUEST, MPI2_POINTER PTR_MPI25_FW_UPLOAD_REQUEST,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi25FWUploadRequest_t, MPI2_POINTER pMpi25FWUploadRequest_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* FWUpload Reply message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FW_UPLOAD_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ImageType; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgLength; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Function; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MsgFlags; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VP_ID; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VF_ID; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOCStatus; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCLogInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ActualImageSize; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FW_UPLOAD_REPLY, MPI2_POINTER PTR_MPI2_FW_UPLOAD_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FWUploadReply_t, MPI2_POINTER pMPi2FWUploadReply_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* FW Image Header */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FW_IMAGE_HEADER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Signature; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Signature0; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Signature1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Signature2; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_VERSION_UNION MPIVersion; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_VERSION_UNION FWVersion; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_VERSION_UNION NVDATAVersion; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_VERSION_UNION PackageVersion; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 VendorID; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ProductID; /* 0x22 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ProtocolFlags; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved26; /* 0x26 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCCapabilities; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ImageSize; /* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 NextImageHeaderOffset; /* 0x30 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Checksum; /* 0x34 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved38; /* 0x38 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3C; /* 0x3C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved40; /* 0x40 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved44; /* 0x44 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved48; /* 0x48 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4C; /* 0x4C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved50; /* 0x50 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved54; /* 0x54 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved58; /* 0x58 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5C; /* 0x5C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved60; /* 0x60 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 FirmwareVersionNameWhat; /* 0x64 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 FirmwareVersionName[32]; /* 0x68 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 VendorNameWhat; /* 0x88 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VendorName[32]; /* 0x8C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PackageNameWhat; /* 0x88 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PackageName[32]; /* 0x8C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedD0; /* 0xD0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedD4; /* 0xD4 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedD8; /* 0xD8 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedDC; /* 0xDC */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedE0; /* 0xE0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedE4; /* 0xE4 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedE8; /* 0xE8 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedEC; /* 0xEC */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedF0; /* 0xF0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedF4; /* 0xF4 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedF8; /* 0xF8 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ReservedFC; /* 0xFC */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FW_IMAGE_HEADER, MPI2_POINTER PTR_MPI2_FW_IMAGE_HEADER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FWImageHeader_t, MPI2_POINTER pMpi2FWImageHeader_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Signature field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE_OFFSET (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE_MASK (0xFF000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE (0xEA000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Signature0 field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE0_OFFSET (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE0 (0x5AFAA55A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Signature1 field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE1_OFFSET (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE1 (0xA55AFAA5)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Signature2 field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE2_OFFSET (0x0C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIGNATURE2 (0x5AA55AFA)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for using the ProductID field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_PID_TYPE_MASK (0xF000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_PID_TYPE_SAS (0x2000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_HEADER_PID_PROD_MASK (0x0F00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_HEADER_PID_PROD_A (0x0000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_HEADER_PID_PROD_TARGET_INITIATOR_SCSI (0x0200)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_HEADER_PID_PROD_IR_SCSI (0x0700)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_PID_FAMILY_MASK (0x00FF)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS ProductID Family bits */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_HEADER_PID_FAMILY_2108_SAS (0x0013)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_FW_HEADER_PID_FAMILY_2208_SAS (0x0014)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_FW_HEADER_PID_FAMILY_3108_SAS (0x0021)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_IOCFACTS_PROTOCOL_ defines for ProtocolFlags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_IOCFACTS_CAPABILITY_ defines for IOCCapabilities field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_IMAGESIZE_OFFSET (0x2C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_NEXTIMAGE_OFFSET (0x30)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_VERNMHWAT_OFFSET (0x64)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_WHAT_SIGNATURE (0x29232840)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FW_HEADER_SIZE (0x100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Extended Image Header */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_EXT_IMAGE_HEADER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ImageType; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Checksum; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ImageSize; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 NextImageHeaderOffset; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PackageVersion; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 IdentifyString[32]; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_EXT_IMAGE_HEADER, MPI2_POINTER PTR_MPI2_EXT_IMAGE_HEADER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ExtImageHeader_t, MPI2_POINTER pMpi2ExtImageHeader_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* useful offsets */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EXT_IMAGE_IMAGETYPE_OFFSET (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EXT_IMAGE_IMAGESIZE_OFFSET (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EXT_IMAGE_NEXTIMAGE_OFFSET (0x0C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_EXT_IMAGE_HEADER_SIZE (0x40)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the ImageType field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_UNSPECIFIED (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_FW (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_NVDATA (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_BOOTLOADER (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_INITIALIZATION (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_FLASH_LAYOUT (0x06)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_SUPPORTED_DEVICES (0x07)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_MEGARAID (0x08)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_ENCRYPTED_HASH (0x09) /* MPI v2.5 and newer */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_MIN_PRODUCT_SPECIFIC (0x80)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC (0xFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_EXT_IMAGE_TYPE_MAX (MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC) /* deprecated */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* FLASH Layout Extended Image Data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * one and check RegionsPerLayout at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_FLASH_NUMBER_OF_REGIONS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_NUMBER_OF_REGIONS (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * one and check NumberOfLayouts at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_FLASH_NUMBER_OF_LAYOUTS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_NUMBER_OF_LAYOUTS (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FLASH_REGION
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 RegionType; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 RegionOffset; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 RegionSize; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FLASH_REGION, MPI2_POINTER PTR_MPI2_FLASH_REGION,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FlashRegion_t, MPI2_POINTER pMpi2FlashRegion_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FLASH_LAYOUT
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 FlashSize; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_FLASH_REGION Region[MPI2_FLASH_NUMBER_OF_REGIONS];/* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FLASH_LAYOUT, MPI2_POINTER PTR_MPI2_FLASH_LAYOUT,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FlashLayout_t, MPI2_POINTER pMpi2FlashLayout_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_FLASH_LAYOUT_DATA
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ImageRevision; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SizeOfRegion; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 NumberOfLayouts; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 RegionsPerLayout; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MinimumSectorAlignment; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_FLASH_LAYOUT Layout[MPI2_FLASH_NUMBER_OF_LAYOUTS];/* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_FLASH_LAYOUT_DATA, MPI2_POINTER PTR_MPI2_FLASH_LAYOUT_DATA,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2FlashLayoutData_t, MPI2_POINTER pMpi2FlashLayoutData_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the RegionType field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_UNUSED (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_FIRMWARE (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_BIOS (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_NVDATA (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_FIRMWARE_BACKUP (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_MFG_INFORMATION (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_CONFIG_1 (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_CONFIG_2 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_MEGARAID (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_REGION_INIT (0x0A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* ImageRevision */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_FLASH_LAYOUT_IMAGE_REVISION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Supported Devices Extended Image Data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * one and check NumberOfDevices at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_SUPPORTED_DEVICES_IMAGE_NUM_DEVICES
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SUPPORTED_DEVICES_IMAGE_NUM_DEVICES (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_SUPPORTED_DEVICE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DeviceID; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 VendorID; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DeviceIDMask; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 LowPCIRev; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 HighPCIRev; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_SUPPORTED_DEVICE, MPI2_POINTER PTR_MPI2_SUPPORTED_DEVICE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SupportedDevice_t, MPI2_POINTER pMpi2SupportedDevice_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_SUPPORTED_DEVICES_DATA
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ImageRevision; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumberOfDevices; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_SUPPORTED_DEVICE SupportedDevice[MPI2_SUPPORTED_DEVICES_IMAGE_NUM_DEVICES]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_SUPPORTED_DEVICES_DATA, MPI2_POINTER PTR_MPI2_SUPPORTED_DEVICES_DATA,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SupportedDevicesData_t, MPI2_POINTER pMpi2SupportedDevicesData_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* ImageRevision */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SUPPORTED_DEVICES_IMAGE_REVISION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Init Extended Image Data */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_INIT_IMAGE_FOOTER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 BootFlags; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ImageSize; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Signature0; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Signature1; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Signature2; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ResetVector; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_INIT_IMAGE_FOOTER, MPI2_POINTER PTR_MPI2_INIT_IMAGE_FOOTER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2InitImageFooter_t, MPI2_POINTER pMpi2InitImageFooter_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the BootFlags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_BOOTFLAGS_OFFSET (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the ImageSize field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_IMAGESIZE_OFFSET (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the Signature0 field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE0_OFFSET (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE0 (0x5AA55AEA)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the Signature1 field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE1_OFFSET (0x0C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE1 (0xA55AEAA5)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the Signature2 field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE2_OFFSET (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE2 (0x5AEAA55A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Signature fields as individual bytes */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_0 (0xEA)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_1 (0x5A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_2 (0xA5)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_3 (0x5A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_4 (0xA5)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_5 (0xEA)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_6 (0x5A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_7 (0xA5)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_8 (0x5A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_9 (0xA5)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_A (0xEA)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_SIGNATURE_BYTE_B (0x5A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the ResetVector field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_INIT_IMAGE_RESETVECTOR_OFFSET (0x14)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Encrypted Hash Extended Image Data */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI25_ENCRYPTED_HASH_ENTRY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 HashImageType; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 HashAlgorithm; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 EncryptionAlgorithm; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 EncryptedHash[1]; /* 0x08 */ /* variable length */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI25_ENCRYPTED_HASH_ENTRY, MPI2_POINTER PTR_MPI25_ENCRYPTED_HASH_ENTRY,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi25EncryptedHashEntry_t, MPI2_POINTER pMpi25EncryptedHashEntry_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* values for HashImageType */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_HASH_IMAGE_TYPE_UNUSED (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_HASH_IMAGE_TYPE_FIRMWARE (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_HASH_IMAGE_TYPE_BIOS (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* values for HashAlgorithm */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_HASH_ALGORITHM_UNUSED (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_HASH_ALGORITHM_SHA256 (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* values for EncryptionAlgorithm */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_ENCRYPTION_ALG_UNUSED (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_ENCRYPTION_ALG_RSA256 (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI25_ENCRYPTED_HASH_DATA
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ImageVersion; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 NumHash; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI25_ENCRYPTED_HASH_ENTRY EncryptedHashEntry[1]; /* 0x08 */ /* variable number of entries */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI25_ENCRYPTED_HASH_DATA, MPI2_POINTER PTR_MPI25_ENCRYPTED_HASH_DATA,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi25EncryptedHashData_t, MPI2_POINTER pMpi25EncryptedHashData_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/****************************************************************************
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles* PowerManagementControl message
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles****************************************************************************/
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* PowerManagementControl Request message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_PWR_MGMT_CONTROL_REQUEST
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Feature; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ChainOffset; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved3; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Parameter1; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Parameter2; /* 0x0D */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Parameter3; /* 0x0E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Parameter4; /* 0x0F */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved5; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved6; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_PWR_MGMT_CONTROL_REQUEST, MPI2_POINTER PTR_MPI2_PWR_MGMT_CONTROL_REQUEST,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2PwrMgmtControlRequest_t, MPI2_POINTER pMpi2PwrMgmtControlRequest_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for the Feature field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_FEATURE_DA_PHY_POWER_COND (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_FEATURE_PORT_WIDTH_MODULATION (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_FEATURE_PCIE_LINK (0x03) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_FEATURE_IOC_SPEED (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_FEATURE_GLOBAL_PWR_MGMT_MODE (0x05) /* reserved in MPI 2.0 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_FEATURE_MIN_PRODUCT_SPECIFIC (0x80)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_FEATURE_MAX_PRODUCT_SPECIFIC (0xFF)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* parameter usage for the MPI2_PM_CONTROL_FEATURE_DA_PHY_POWER_COND Feature */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter1 contains a PHY number */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter2 indicates power condition action using these defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_PARTIAL (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_SLUMBER (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_EXIT_PWR_MGMT (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter3 and Parameter4 are reserved */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* parameter usage for the MPI2_PM_CONTROL_FEATURE_PORT_WIDTH_MODULATION Feature */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter1 contains SAS port width modulation group number */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter2 indicates IOC action using these defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_REQUEST_OWNERSHIP (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_CHANGE_MODULATION (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_RELINQUISH_OWNERSHIP (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter3 indicates desired modulation level using these defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM3_25_PERCENT (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM3_50_PERCENT (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM3_75_PERCENT (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM3_100_PERCENT (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter4 is reserved */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* this next set (_PCIE_LINK) is obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* parameter usage for the MPI2_PM_CONTROL_FEATURE_PCIE_LINK Feature */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter1 indicates desired PCIe link speed using these defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_PCIE_2_5_GBPS (0x00) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_PCIE_5_0_GBPS (0x01) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_PCIE_8_0_GBPS (0x02) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter2 indicates desired PCIe link width using these defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_WIDTH_X1 (0x01) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_WIDTH_X2 (0x02) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_WIDTH_X4 (0x04) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_WIDTH_X8 (0x08) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter3 and Parameter4 are reserved */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* parameter usage for the MPI2_PM_CONTROL_FEATURE_IOC_SPEED Feature */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter1 indicates desired IOC hardware clock speed using these defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_FULL_IOC_SPEED (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_HALF_IOC_SPEED (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_QUARTER_IOC_SPEED (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_EIGHTH_IOC_SPEED (0x08)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter2, Parameter3, and Parameter4 are reserved */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* parameter usage for the MPI2_PM_CONTROL_FEATURE_GLOBAL_PWR_MGMT_MODE Feature */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter1 indicates host action regarding global power management mode */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_TAKE_CONTROL (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_CHANGE_GLOBAL_MODE (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM1_RELEASE_CONTROL (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter2 indicates the requested global power management mode */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_FULL_PWR_PERF (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_REDUCED_PWR_PERF (0x08)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PM_CONTROL_PARAM2_STANDBY (0x40)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* Parameter3 and Parameter4 are reserved */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* PowerManagementControl Reply message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_PWR_MGMT_CONTROL_REPLY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Feature; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgLength; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved3; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved5; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 IOCStatus; /* 0x0E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 IOCLogInfo; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_PWR_MGMT_CONTROL_REPLY, MPI2_POINTER PTR_MPI2_PWR_MGMT_CONTROL_REPLY,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2PwrMgmtControlReply_t, MPI2_POINTER pMpi2PwrMgmtControlReply_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China