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

/* SPDX-License-Identifier: GPL-2.0 */
/*
 *  Copyright (c) 2000-2008 LSI Corporation.
 *
 *
 *           Name:  mpi_cnfg.h
 *          Title:  MPI Config message, structures, and Pages
 *  Creation Date:  July 27, 2000
 *
 *    mpi_cnfg.h Version:  01.05.18
 *
 *  Version History
 *  ---------------
 *
 *  Date      Version   Description
 *  --------  --------  ------------------------------------------------------
 *  05-08-00  00.10.01  Original release for 0.10 spec dated 4/26/2000.
 *  06-06-00  01.00.01  Update version number for 1.0 release.
 *  06-08-00  01.00.02  Added _PAGEVERSION definitions for all pages.
 *                      Added FcPhLowestVersion, FcPhHighestVersion, Reserved2
 *                      fields to FC_DEVICE_0 page, updated the page version.
 *                      Changed _FREE_RUNNING_CLOCK to _PACING_TRANSFERS in
 *                      SCSI_PORT_0, SCSI_DEVICE_0 and SCSI_DEVICE_1 pages
 *                      and updated the page versions.
 *                      Added _RESPONSE_ID_MASK definition to SCSI_PORT_1
 *                      page and updated the page version.
 *                      Added Information field and _INFO_PARAMS_NEGOTIATED
 *                      definitionto SCSI_DEVICE_0 page.
 *  06-22-00  01.00.03  Removed batch controls from LAN_0 page and updated the
 *                      page version.
 *                      Added BucketsRemaining to LAN_1 page, redefined the
 *                      state values, and updated the page version.
 *                      Revised bus width definitions in SCSI_PORT_0,
 *                      SCSI_DEVICE_0 and SCSI_DEVICE_1 pages.
 *  06-30-00  01.00.04  Added MaxReplySize to LAN_1 page and updated the page
 *                      version.
 *                      Moved FC_DEVICE_0 PageAddress description to spec.
 *  07-27-00  01.00.05  Corrected the SubsystemVendorID and SubsystemID field
 *                      widths in IOC_0 page and updated the page version.
 *  11-02-00  01.01.01  Original release for post 1.0 work
 *                      Added Manufacturing pages, IO Unit Page 2, SCSI SPI
 *                      Port Page 2, FC Port Page 4, FC Port Page 5
 *  11-15-00  01.01.02  Interim changes to match proposals
 *  12-04-00  01.01.03  Config page changes to match MPI rev 1.00.01.
 *  12-05-00  01.01.04  Modified config page actions.
 *  01-09-01  01.01.05  Added defines for page address formats.
 *                      Data size for Manufacturing pages 2 and 3 no longer
 *                      defined here.
 *                      Io Unit Page 2 size is fixed at 4 adapters and some
 *                      flags were changed.
 *                      SCSI Port Page 2 Device Settings modified.
 *                      New fields added to FC Port Page 0 and some flags
 *                      cleaned up.
 *                      Removed impedance flash from FC Port Page 1.
 *                      Added FC Port pages 6 and 7.
 *  01-25-01  01.01.06  Added MaxInitiators field to FcPortPage0.
 *  01-29-01  01.01.07  Changed some defines to make them 32 character unique.
 *                      Added some LinkType defines for FcPortPage0.
 *  02-20-01  01.01.08  Started using MPI_POINTER.
 *  02-27-01  01.01.09  Replaced MPI_CONFIG_PAGETYPE_SCSI_LUN with
 *                      MPI_CONFIG_PAGETYPE_RAID_VOLUME.
 *                      Added definitions and structures for IOC Page 2 and
 *                      RAID Volume Page 2.
 *  03-27-01  01.01.10  Added CONFIG_PAGE_FC_PORT_8 and CONFIG_PAGE_FC_PORT_9.
 *                      CONFIG_PAGE_FC_PORT_3 now supports persistent by DID.
 *                      Added VendorId and ProductRevLevel fields to
 *                      RAIDVOL2_IM_PHYS_ID struct.
 *                      Modified values for MPI_FCPORTPAGE0_FLAGS_ATTACH_
 *                      defines to make them compatible to MPI version 1.0.
 *                      Added structure offset comments.
 *  04-09-01  01.01.11  Added some new defines for the PageAddress field and
 *                      removed some obsolete ones.
 *                      Added IO Unit Page 3.
 *                      Modified defines for Scsi Port Page 2.
 *                      Modified RAID Volume Pages.
 *  08-08-01  01.02.01  Original release for v1.2 work.
 *                      Added SepID and SepBus to RVP2 IMPhysicalDisk struct.
 *                      Added defines for the SEP bits in RVP2 VolumeSettings.
 *                      Modified the DeviceSettings field in RVP2 to use the
 *                      proper structure.
 *                      Added defines for SES, SAF-TE, and cross channel for
 *                      IOCPage2 CapabilitiesFlags.
 *                      Removed define for MPI_IOUNITPAGE2_FLAGS_RAID_DISABLE.
 *                      Removed define for
 *                      MPI_SCSIPORTPAGE2_PORT_FLAGS_PARITY_ENABLE.
 *                      Added define for MPI_CONFIG_PAGEATTR_RO_PERSISTENT.
 *  08-29-01 01.02.02   Fixed value for MPI_MANUFACTPAGE_DEVID_53C1035.
 *                      Added defines for MPI_FCPORTPAGE1_FLAGS_HARD_ALPA_ONLY
 *                      and MPI_FCPORTPAGE1_FLAGS_IMMEDIATE_ERROR_REPLY.
 *                      Removed MPI_SCSIPORTPAGE0_CAP_PACING_TRANSFERS,
 *                      MPI_SCSIDEVPAGE0_NP_PACING_TRANSFERS, and
 *                      MPI_SCSIDEVPAGE1_RP_PACING_TRANSFERS, and
 *                      MPI_SCSIDEVPAGE1_CONF_PPR_ALLOWED.
 *                      Added defines for MPI_SCSIDEVPAGE1_CONF_WDTR_DISALLOWED
 *                      and MPI_SCSIDEVPAGE1_CONF_SDTR_DISALLOWED.
 *                      Added OnBusTimerValue to CONFIG_PAGE_SCSI_PORT_1.
 *                      Added rejected bits to SCSI Device Page 0 Information.
 *                      Increased size of ALPA array in FC Port Page 2 by one
 *                      and removed a one byte reserved field.
 *  09-28-01 01.02.03   Swapped NegWireSpeedLow and NegWireSpeedLow in
 *                      CONFIG_PAGE_LAN_1 to match preferred 64-bit ordering.
 *                      Added structures for Manufacturing Page 4, IO Unit
 *                      Page 3, IOC Page 3, IOC Page 4, RAID Volume Page 0, and
 *                      RAID PhysDisk Page 0.
 *  10-04-01 01.02.04   Added define for MPI_CONFIG_PAGETYPE_RAID_PHYSDISK.
 *                      Modified some of the new defines to make them 32
 *                      character unique.
 *                      Modified how variable length pages (arrays) are defined.
 *                      Added generic defines for hot spare pools and RAID
 *                      volume types.
 *  11-01-01 01.02.05   Added define for MPI_IOUNITPAGE1_DISABLE_IR.
 *  03-14-02 01.02.06   Added PCISlotNum field to CONFIG_PAGE_IOC_1 along with
 *                      related define, and bumped the page version define.
 *  05-31-02 01.02.07   Added a Flags field to CONFIG_PAGE_IOC_2_RAID_VOL in a
 *                      reserved byte and added a define.
 *                      Added define for
 *                      MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE.
 *                      Added new config page: CONFIG_PAGE_IOC_5.
 *                      Added MaxAliases, MaxHardAliases, and NumCurrentAliases
 *                      fields to CONFIG_PAGE_FC_PORT_0.
 *                      Added AltConnector and NumRequestedAliases fields to
 *                      CONFIG_PAGE_FC_PORT_1.
 *                      Added new config page: CONFIG_PAGE_FC_PORT_10.
 *  07-12-02 01.02.08   Added more MPI_MANUFACTPAGE_DEVID_ defines.
 *                      Added additional MPI_SCSIDEVPAGE0_NP_ defines.
 *                      Added more MPI_SCSIDEVPAGE1_RP_ defines.
 *                      Added define for
 *                      MPI_SCSIDEVPAGE1_CONF_EXTENDED_PARAMS_ENABLE.
 *                      Added new config page: CONFIG_PAGE_SCSI_DEVICE_3.
 *                      Modified MPI_FCPORTPAGE5_FLAGS_ defines.
 *  09-16-02 01.02.09   Added MPI_SCSIDEVPAGE1_CONF_FORCE_PPR_MSG define.
 *  11-15-02 01.02.10   Added ConnectedID defines for CONFIG_PAGE_SCSI_PORT_0.
 *                      Added more Flags defines for CONFIG_PAGE_FC_PORT_1.
 *                      Added more Flags defines for CONFIG_PAGE_FC_DEVICE_0.
 *  04-01-03 01.02.11   Added RR_TOV field and additional Flags defines for
 *                      CONFIG_PAGE_FC_PORT_1.
 *                      Added define MPI_FCPORTPAGE5_FLAGS_DISABLE to disable
 *                      an alias.
 *                      Added more device id defines.
 *  06-26-03 01.02.12   Added MPI_IOUNITPAGE1_IR_USE_STATIC_VOLUME_ID define.
 *                      Added TargetConfig and IDConfig fields to
 *                      CONFIG_PAGE_SCSI_PORT_1.
 *                      Added more PortFlags defines for CONFIG_PAGE_SCSI_PORT_2
 *                      to control DV.
 *                      Added more Flags defines for CONFIG_PAGE_FC_PORT_1.
 *                      In CONFIG_PAGE_FC_DEVICE_0, replaced Reserved1 field
 *                      with ADISCHardALPA.
 *                      Added MPI_FC_DEVICE_PAGE0_PROT_FCP_RETRY define.
 *  01-16-04 01.02.13   Added InitiatorDeviceTimeout and InitiatorIoPendTimeout
 *                      fields and related defines to CONFIG_PAGE_FC_PORT_1.
 *                      Added define for
 *                      MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK.
 *                      Added new fields to the substructures of
 *                      CONFIG_PAGE_FC_PORT_10.
 *  04-29-04 01.02.14   Added define for IDP bit for CONFIG_PAGE_SCSI_PORT_0,
 *                      CONFIG_PAGE_SCSI_DEVICE_0, and
 *                      CONFIG_PAGE_SCSI_DEVICE_1. Also bumped Page Version for
 *                      these pages.
 *  05-11-04 01.03.01   Added structure for CONFIG_PAGE_INBAND_0.
 *  08-19-04 01.05.01   Modified MSG_CONFIG request to support extended config
 *                      pages.
 *                      Added a new structure for extended config page header.
 *                      Added new extended config pages types and structures for
 *                      SAS IO Unit, SAS Expander, SAS Device, and SAS PHY.
 *                      Replaced a reserved byte in CONFIG_PAGE_MANUFACTURING_4
 *                      to add a Flags field.
 *                      Two new Manufacturing config pages (5 and 6).
 *                      Two new bits defined for IO Unit Page 1 Flags field.
 *                      Modified CONFIG_PAGE_IO_UNIT_2 to add three new fields
 *                      to specify the BIOS boot device.
 *                      Four new Flags bits defined for IO Unit Page 2.
 *                      Added IO Unit Page 4.
 *                      Added EEDP Flags settings to IOC Page 1.
 *                      Added new BIOS Page 1 config page.
 *  10-05-04 01.05.02   Added define for
 *                      MPI_IOCPAGE1_INITIATOR_CONTEXT_REPLY_DISABLE.
 *                      Added new Flags field to CONFIG_PAGE_MANUFACTURING_5 and
 *                      associated defines.
 *                      Added more defines for SAS IO Unit Page 0
 *                      DiscoveryStatus field.
 *                      Added define for MPI_SAS_IOUNIT0_DS_SUBTRACTIVE_LINK
 *                      and MPI_SAS_IOUNIT0_DS_TABLE_LINK.
 *                      Added defines for Physical Mapping Modes to SAS IO Unit
 *                      Page 2.
 *                      Added define for
 *                      MPI_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH.
 *  10-27-04 01.05.03   Added defines for new SAS PHY page addressing mode.
 *                      Added defines for MaxTargetSpinUp to BIOS Page 1.
 *                      Added 5 new ControlFlags defines for SAS IO Unit
 *                      Page 1.
 *                      Added MaxNumPhysicalMappedIDs field to SAS IO Unit
 *                      Page 2.
 *                      Added AccessStatus field to SAS Device Page 0 and added
 *                      new Flags bits for supported SATA features.
 *  12-07-04  01.05.04  Added config page structures for BIOS Page 2, RAID
 *                      Volume Page 1, and RAID Physical Disk Page 1.
 *                      Replaced IO Unit Page 1 BootTargetID,BootBus, and
 *                      BootAdapterNum with reserved field.
 *                      Added DataScrubRate and ResyncRate to RAID Volume
 *                      Page 0.
 *                      Added MPI_SAS_IOUNIT2_FLAGS_RESERVE_ID_0_FOR_BOOT
 *                      define.
 *  12-09-04  01.05.05  Added Target Mode Large CDB Enable to FC Port Page 1
 *                      Flags field.
 *                      Added Auto Port Config flag define for SAS IOUNIT
 *                      Page 1 ControlFlags.
 *                      Added Disabled bad Phy define to Expander Page 1
 *                      Discovery Info field.
 *                      Added SAS/SATA device support to SAS IOUnit Page 1
 *                      ControlFlags.
 *                      Added Unsupported device to SAS Dev Page 0 Flags field
 *                      Added disable use SATA Hash Address for SAS IOUNIT
 *                      page 1 in ControlFields.
 *  01-15-05  01.05.06  Added defaults for data scrub rate and resync rate to
 *                      Manufacturing Page 4.
 *                      Added new defines for BIOS Page 1 IOCSettings field.
 *                      Added ExtDiskIdentifier field to RAID Physical Disk
 *                      Page 0.
 *                      Added new defines for SAS IO Unit Page 1 ControlFlags
 *                      and to SAS Device Page 0 Flags to control SATA devices.
 *                      Added defines and structures for the new Log Page 0, a
 *                      new type of configuration page.
 *  02-09-05  01.05.07  Added InactiveStatus field to RAID Volume Page 0.
 *                      Added WWID field to RAID Volume Page 1.
 *                      Added PhysicalPort field to SAS Expander pages 0 and 1.
 *  03-11-05  01.05.08  Removed the EEDP flags from IOC Page 1.
 *                      Added Enclosure/Slot boot device format to BIOS Page 2.
 *                      New status value for RAID Volume Page 0 VolumeStatus
 *                      (VolumeState subfield).
 *                      New value for RAID Physical Page 0 InactiveStatus.
 *                      Added Inactive Volume Member flag RAID Physical Disk
 *                      Page 0 PhysDiskStatus field.
 *                      New physical mapping mode in SAS IO Unit Page 2.
 *                      Added CONFIG_PAGE_SAS_ENCLOSURE_0.
 *                      Added Slot and Enclosure fields to SAS Device Page 0.
 *  06-24-05  01.05.09  Added EEDP defines to IOC Page 1.
 *                      Added more RAID type defines to IOC Page 2.
 *                      Added Port Enable Delay settings to BIOS Page 1.
 *                      Added Bad Block Table Full define to RAID Volume Page 0.
 *                      Added Previous State defines to RAID Physical Disk
 *                      Page 0.
 *                      Added Max Sata Targets define for DiscoveryStatus field
 *                      of SAS IO Unit Page 0.
 *                      Added Device Self Test to Control Flags of SAS IO Unit
 *                      Page 1.
 *                      Added Direct Attach Starting Slot Number define for SAS
 *                      IO Unit Page 2.
 *                      Added new fields in SAS Device Page 2 for enclosure
 *                      mapping.
 *                      Added OwnerDevHandle and Flags field to SAS PHY Page 0.
 *                      Added IOC GPIO Flags define to SAS Enclosure Page 0.
 *                      Fixed the value for MPI_SAS_IOUNIT1_CONTROL_DEV_SATA_SUPPORT.
 *  08-03-05  01.05.10  Removed ISDataScrubRate and ISResyncRate from
 *                      Manufacturing Page 4.
 *                      Added MPI_IOUNITPAGE1_SATA_WRITE_CACHE_DISABLE bit.
 *                      Added NumDevsPerEnclosure field to SAS IO Unit page 2.
 *                      Added MPI_SAS_IOUNIT2_FLAGS_HOST_ASSIGNED_PHYS_MAP
 *                      define.
 *                      Added EnclosureHandle field to SAS Expander page 0.
 *                      Removed redundant NumTableEntriesProg field from SAS
 *                      Expander Page 1.
 *  08-30-05  01.05.11  Added DeviceID for FC949E and changed the DeviceID for
 *                      SAS1078.
 *                      Added more defines for Manufacturing Page 4 Flags field.
 *                      Added more defines for IOCSettings and added
 *                      ExpanderSpinup field to Bios Page 1.
 *                      Added postpone SATA Init bit to SAS IO Unit Page 1
 *                      ControlFlags.
 *                      Changed LogEntry format for Log Page 0.
 *  03-27-06  01.05.12  Added two new Flags defines for Manufacturing Page 4.
 *                      Added Manufacturing Page 7.
 *                      Added MPI_IOCPAGE2_CAP_FLAGS_RAID_64_BIT_ADDRESSING.
 *                      Added IOC Page 6.
 *                      Added PrevBootDeviceForm field to CONFIG_PAGE_BIOS_2.
 *                      Added MaxLBAHigh field to RAID Volume Page 0.
 *                      Added Nvdata version fields to SAS IO Unit Page 0.
 *                      Added AdditionalControlFlags, MaxTargetPortConnectTime,
 *                      ReportDeviceMissingDelay, and IODeviceMissingDelay
 *                      fields to SAS IO Unit Page 1.
 *  10-11-06  01.05.13  Added NumForceWWID field and ForceWWID array to
 *                      Manufacturing Page 5.
 *                      Added Manufacturing pages 8 through 10.
 *                      Added defines for supported metadata size bits in
 *                      CapabilitiesFlags field of IOC Page 6.
 *                      Added defines for metadata size bits in VolumeSettings
 *                      field of RAID Volume Page 0.
 *                      Added SATA Link Reset settings, Enable SATA Asynchronous
 *                      Notification bit, and HideNonZeroAttachedPhyIdentifiers
 *                      bit to AdditionalControlFlags field of SAS IO Unit
 *                      Page 1.
 *                      Added defines for Enclosure Devices Unmapped and
 *                      Device Limit Exceeded bits in Status field of SAS IO
 *                      Unit Page 2.
 *                      Added more AccessStatus values for SAS Device Page 0.
 *                      Added bit for SATA Asynchronous Notification Support in
 *                      Flags field of SAS Device Page 0.
 *  02-28-07  01.05.14  Added ExtFlags field to Manufacturing Page 4.
 *                      Added Disable SMART Polling for CapabilitiesFlags of
 *                      IOC Page 6.
 *                      Added Disable SMART Polling to DeviceSettings of BIOS
 *                      Page 1.
 *                      Added Multi-Port Domain bit for DiscoveryStatus field
 *                      of SAS IO Unit Page.
 *                      Added Multi-Port Domain Illegal flag for SAS IO Unit
 *                      Page 1 AdditionalControlFlags field.
 *  05-24-07  01.05.15  Added Hide Physical Disks with Non-Integrated RAID
 *                      Metadata bit to Manufacturing Page 4 ExtFlags field.
 *                      Added Internal Connector to End Device Present bit to
 *                      Expander Page 0 Flags field.
 *                      Fixed define for
 *                      MPI_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED.
 *  08-07-07  01.05.16  Added MPI_IOCPAGE6_CAP_FLAGS_MULTIPORT_DRIVE_SUPPORT
 *                      define.
 *                      Added BIOS Page 4 structure.
 *                      Added MPI_RAID_PHYS_DISK1_PATH_MAX define for RAID
 *                      Physical Disk Page 1.
 *  01-15-07  01.05.17  Added additional bit defines for ExtFlags field of
 *                      Manufacturing Page 4.
 *                      Added Solid State Drives Supported bit to IOC Page 6
 *                      Capabilities Flags.
 *                      Added new value for AccessStatus field of SAS Device
 *                      Page 0 (_SATA_NEEDS_INITIALIZATION).
 *  03-28-08  01.05.18  Defined new bits in Manufacturing Page 4 ExtFlags field
 *                      to control coercion size and the mixing of SAS and SATA
 *                      SSD drives.
 *  --------------------------------------------------------------------------
 */

#ifndef MPI_CNFG_H
#define MPI_CNFG_H


/*****************************************************************************
*
*       C o n f i g    M e s s a g e    a n d    S t r u c t u r e s
*
*****************************************************************************/

pConfigPageHeader_t;

PTR_CONFIG_PAGE_HEADER_UNION;

pConfigExtendedPageHeader_t;



/****************************************************************************
*   PageType field values
****************************************************************************/
#define MPI_CONFIG_PAGEATTR_READ_ONLY
#define MPI_CONFIG_PAGEATTR_CHANGEABLE
#define MPI_CONFIG_PAGEATTR_PERSISTENT
#define MPI_CONFIG_PAGEATTR_RO_PERSISTENT
#define MPI_CONFIG_PAGEATTR_MASK

#define MPI_CONFIG_PAGETYPE_IO_UNIT
#define MPI_CONFIG_PAGETYPE_IOC
#define MPI_CONFIG_PAGETYPE_BIOS
#define MPI_CONFIG_PAGETYPE_SCSI_PORT
#define MPI_CONFIG_PAGETYPE_SCSI_DEVICE
#define MPI_CONFIG_PAGETYPE_FC_PORT
#define MPI_CONFIG_PAGETYPE_FC_DEVICE
#define MPI_CONFIG_PAGETYPE_LAN
#define MPI_CONFIG_PAGETYPE_RAID_VOLUME
#define MPI_CONFIG_PAGETYPE_MANUFACTURING
#define MPI_CONFIG_PAGETYPE_RAID_PHYSDISK
#define MPI_CONFIG_PAGETYPE_INBAND
#define MPI_CONFIG_PAGETYPE_EXTENDED
#define MPI_CONFIG_PAGETYPE_MASK

#define MPI_CONFIG_TYPENUM_MASK


/****************************************************************************
*   ExtPageType field values
****************************************************************************/
#define MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT
#define MPI_CONFIG_EXTPAGETYPE_SAS_EXPANDER
#define MPI_CONFIG_EXTPAGETYPE_SAS_DEVICE
#define MPI_CONFIG_EXTPAGETYPE_SAS_PHY
#define MPI_CONFIG_EXTPAGETYPE_LOG
#define MPI_CONFIG_EXTPAGETYPE_ENCLOSURE


/****************************************************************************
*   PageAddress field values
****************************************************************************/
#define MPI_SCSI_PORT_PGAD_PORT_MASK

#define MPI_SCSI_DEVICE_FORM_MASK
#define MPI_SCSI_DEVICE_FORM_BUS_TID
#define MPI_SCSI_DEVICE_TARGET_ID_MASK
#define MPI_SCSI_DEVICE_TARGET_ID_SHIFT
#define MPI_SCSI_DEVICE_BUS_MASK
#define MPI_SCSI_DEVICE_BUS_SHIFT
#define MPI_SCSI_DEVICE_FORM_TARGET_MODE
#define MPI_SCSI_DEVICE_TM_RESPOND_ID_MASK
#define MPI_SCSI_DEVICE_TM_RESPOND_ID_SHIFT
#define MPI_SCSI_DEVICE_TM_BUS_MASK
#define MPI_SCSI_DEVICE_TM_BUS_SHIFT
#define MPI_SCSI_DEVICE_TM_INIT_ID_MASK
#define MPI_SCSI_DEVICE_TM_INIT_ID_SHIFT

#define MPI_FC_PORT_PGAD_PORT_MASK
#define MPI_FC_PORT_PGAD_PORT_SHIFT
#define MPI_FC_PORT_PGAD_FORM_MASK
#define MPI_FC_PORT_PGAD_FORM_INDEX
#define MPI_FC_PORT_PGAD_INDEX_MASK
#define MPI_FC_PORT_PGAD_INDEX_SHIFT

#define MPI_FC_DEVICE_PGAD_PORT_MASK
#define MPI_FC_DEVICE_PGAD_PORT_SHIFT
#define MPI_FC_DEVICE_PGAD_FORM_MASK
#define MPI_FC_DEVICE_PGAD_FORM_NEXT_DID
#define MPI_FC_DEVICE_PGAD_ND_PORT_MASK
#define MPI_FC_DEVICE_PGAD_ND_PORT_SHIFT
#define MPI_FC_DEVICE_PGAD_ND_DID_MASK
#define MPI_FC_DEVICE_PGAD_ND_DID_SHIFT
#define MPI_FC_DEVICE_PGAD_FORM_BUS_TID
#define MPI_FC_DEVICE_PGAD_BT_BUS_MASK
#define MPI_FC_DEVICE_PGAD_BT_BUS_SHIFT
#define MPI_FC_DEVICE_PGAD_BT_TID_MASK
#define MPI_FC_DEVICE_PGAD_BT_TID_SHIFT

#define MPI_PHYSDISK_PGAD_PHYSDISKNUM_MASK
#define MPI_PHYSDISK_PGAD_PHYSDISKNUM_SHIFT

#define MPI_SAS_EXPAND_PGAD_FORM_MASK
#define MPI_SAS_EXPAND_PGAD_FORM_SHIFT
#define MPI_SAS_EXPAND_PGAD_FORM_GET_NEXT_HANDLE
#define MPI_SAS_EXPAND_PGAD_FORM_HANDLE_PHY_NUM
#define MPI_SAS_EXPAND_PGAD_FORM_HANDLE
#define MPI_SAS_EXPAND_PGAD_GNH_MASK_HANDLE
#define MPI_SAS_EXPAND_PGAD_GNH_SHIFT_HANDLE
#define MPI_SAS_EXPAND_PGAD_HPN_MASK_PHY
#define MPI_SAS_EXPAND_PGAD_HPN_SHIFT_PHY
#define MPI_SAS_EXPAND_PGAD_HPN_MASK_HANDLE
#define MPI_SAS_EXPAND_PGAD_HPN_SHIFT_HANDLE
#define MPI_SAS_EXPAND_PGAD_H_MASK_HANDLE
#define MPI_SAS_EXPAND_PGAD_H_SHIFT_HANDLE

#define MPI_SAS_DEVICE_PGAD_FORM_MASK
#define MPI_SAS_DEVICE_PGAD_FORM_SHIFT
#define MPI_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE
#define MPI_SAS_DEVICE_PGAD_FORM_BUS_TARGET_ID
#define MPI_SAS_DEVICE_PGAD_FORM_HANDLE
#define MPI_SAS_DEVICE_PGAD_GNH_HANDLE_MASK
#define MPI_SAS_DEVICE_PGAD_GNH_HANDLE_SHIFT
#define MPI_SAS_DEVICE_PGAD_BT_BUS_MASK
#define MPI_SAS_DEVICE_PGAD_BT_BUS_SHIFT
#define MPI_SAS_DEVICE_PGAD_BT_TID_MASK
#define MPI_SAS_DEVICE_PGAD_BT_TID_SHIFT
#define MPI_SAS_DEVICE_PGAD_H_HANDLE_MASK
#define MPI_SAS_DEVICE_PGAD_H_HANDLE_SHIFT

#define MPI_SAS_PHY_PGAD_FORM_MASK
#define MPI_SAS_PHY_PGAD_FORM_SHIFT
#define MPI_SAS_PHY_PGAD_FORM_PHY_NUMBER
#define MPI_SAS_PHY_PGAD_FORM_PHY_TBL_INDEX
#define MPI_SAS_PHY_PGAD_PHY_NUMBER_MASK
#define MPI_SAS_PHY_PGAD_PHY_NUMBER_SHIFT
#define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_MASK
#define MPI_SAS_PHY_PGAD_PHY_TBL_INDEX_SHIFT

#define MPI_SAS_ENCLOS_PGAD_FORM_MASK
#define MPI_SAS_ENCLOS_PGAD_FORM_SHIFT
#define MPI_SAS_ENCLOS_PGAD_FORM_GET_NEXT_HANDLE
#define MPI_SAS_ENCLOS_PGAD_FORM_HANDLE
#define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_MASK
#define MPI_SAS_ENCLOS_PGAD_GNH_HANDLE_SHIFT
#define MPI_SAS_ENCLOS_PGAD_H_HANDLE_MASK
#define MPI_SAS_ENCLOS_PGAD_H_HANDLE_SHIFT



/****************************************************************************
*   Config Request Message
****************************************************************************/
pConfig_t;


/****************************************************************************
*   Action field values
****************************************************************************/
#define MPI_CONFIG_ACTION_PAGE_HEADER
#define MPI_CONFIG_ACTION_PAGE_READ_CURRENT
#define MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT
#define MPI_CONFIG_ACTION_PAGE_DEFAULT
#define MPI_CONFIG_ACTION_PAGE_WRITE_NVRAM
#define MPI_CONFIG_ACTION_PAGE_READ_DEFAULT
#define MPI_CONFIG_ACTION_PAGE_READ_NVRAM


/* Config Reply Message */
pConfigReply_t;



/*****************************************************************************
*
*               C o n f i g u r a t i o n    P a g e s
*
*****************************************************************************/

/****************************************************************************
*   Manufacturing Config pages
****************************************************************************/
#define MPI_MANUFACTPAGE_VENDORID_LSILOGIC
/* Fibre Channel */
#define MPI_MANUFACTPAGE_DEVICEID_FC909
#define MPI_MANUFACTPAGE_DEVICEID_FC919
#define MPI_MANUFACTPAGE_DEVICEID_FC929
#define MPI_MANUFACTPAGE_DEVICEID_FC919X
#define MPI_MANUFACTPAGE_DEVICEID_FC929X
#define MPI_MANUFACTPAGE_DEVICEID_FC939X
#define MPI_MANUFACTPAGE_DEVICEID_FC949X
#define MPI_MANUFACTPAGE_DEVICEID_FC949E
/* SCSI */
#define MPI_MANUFACTPAGE_DEVID_53C1030
#define MPI_MANUFACTPAGE_DEVID_53C1030ZC
#define MPI_MANUFACTPAGE_DEVID_1030_53C1035
#define MPI_MANUFACTPAGE_DEVID_1030ZC_53C1035
#define MPI_MANUFACTPAGE_DEVID_53C1035
#define MPI_MANUFACTPAGE_DEVID_53C1035ZC
/* SAS */
#define MPI_MANUFACTPAGE_DEVID_SAS1064
#define MPI_MANUFACTPAGE_DEVID_SAS1064A
#define MPI_MANUFACTPAGE_DEVID_SAS1064E
#define MPI_MANUFACTPAGE_DEVID_SAS1066
#define MPI_MANUFACTPAGE_DEVID_SAS1066E
#define MPI_MANUFACTPAGE_DEVID_SAS1068
#define MPI_MANUFACTPAGE_DEVID_SAS1068E
#define MPI_MANUFACTPAGE_DEVID_SAS1068_820XELP
#define MPI_MANUFACTPAGE_DEVID_SAS1078


pManufacturingPage0_t;

#define MPI_MANUFACTURING0_PAGEVERSION


pManufacturingPage1_t;

#define MPI_MANUFACTURING1_PAGEVERSION


pMpiChipRevisionId_t;


/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check Header.PageLength at runtime.
 */
#ifndef MPI_MAN_PAGE_2_HW_SETTINGS_WORDS
#define MPI_MAN_PAGE_2_HW_SETTINGS_WORDS
#endif

pManufacturingPage2_t;

#define MPI_MANUFACTURING2_PAGEVERSION


/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check Header.PageLength at runtime.
 */
#ifndef MPI_MAN_PAGE_3_INFO_WORDS
#define MPI_MAN_PAGE_3_INFO_WORDS
#endif

pManufacturingPage3_t;

#define MPI_MANUFACTURING3_PAGEVERSION


pManufacturingPage4_t;

#define MPI_MANUFACTURING4_PAGEVERSION

/* defines for the Flags field */
#define MPI_MANPAGE4_FORCE_BAD_BLOCK_TABLE
#define MPI_MANPAGE4_FORCE_OFFLINE_FAILOVER
#define MPI_MANPAGE4_IME_DISABLE
#define MPI_MANPAGE4_IM_DISABLE
#define MPI_MANPAGE4_IS_DISABLE
#define MPI_MANPAGE4_IR_MODEPAGE8_DISABLE
#define MPI_MANPAGE4_IM_RESYNC_CACHE_ENABLE
#define MPI_MANPAGE4_IR_NO_MIX_SAS_SATA

/* defines for the ExtFlags field */
#define MPI_MANPAGE4_EXTFLAGS_MASK_COERCION_SIZE
#define MPI_MANPAGE4_EXTFLAGS_SHIFT_COERCION_SIZE
#define MPI_MANPAGE4_EXTFLAGS_1GB_COERCION_SIZE
#define MPI_MANPAGE4_EXTFLAGS_128MB_COERCION_SIZE

#define MPI_MANPAGE4_EXTFLAGS_NO_MIX_SSD_SAS_SATA
#define MPI_MANPAGE4_EXTFLAGS_MIX_SSD_AND_NON_SSD
#define MPI_MANPAGE4_EXTFLAGS_DUAL_PORT_SUPPORT
#define MPI_MANPAGE4_EXTFLAGS_HIDE_NON_IR_METADATA
#define MPI_MANPAGE4_EXTFLAGS_SAS_CACHE_DISABLE
#define MPI_MANPAGE4_EXTFLAGS_SATA_CACHE_DISABLE
#define MPI_MANPAGE4_EXTFLAGS_LEGACY_MODE


#ifndef MPI_MANPAGE5_NUM_FORCEWWID
#define MPI_MANPAGE5_NUM_FORCEWWID
#endif

pManufacturingPage5_t;

#define MPI_MANUFACTURING5_PAGEVERSION

/* defines for the Flags field */
#define MPI_MANPAGE5_TWO_WWID_PER_PHY


pManufacturingPage6_t;

#define MPI_MANUFACTURING6_PAGEVERSION


pMpiManPage7ConnectorInfo_t;

/* defines for the Pinout field */
#define MPI_MANPAGE7_PINOUT_SFF_8484_L4
#define MPI_MANPAGE7_PINOUT_SFF_8484_L3
#define MPI_MANPAGE7_PINOUT_SFF_8484_L2
#define MPI_MANPAGE7_PINOUT_SFF_8484_L1
#define MPI_MANPAGE7_PINOUT_SFF_8470_L4
#define MPI_MANPAGE7_PINOUT_SFF_8470_L3
#define MPI_MANPAGE7_PINOUT_SFF_8470_L2
#define MPI_MANPAGE7_PINOUT_SFF_8470_L1
#define MPI_MANPAGE7_PINOUT_SFF_8482
#define MPI_MANPAGE7_PINOUT_CONNECTION_UNKNOWN

/* defines for the Location field */
#define MPI_MANPAGE7_LOCATION_UNKNOWN
#define MPI_MANPAGE7_LOCATION_INTERNAL
#define MPI_MANPAGE7_LOCATION_EXTERNAL
#define MPI_MANPAGE7_LOCATION_SWITCHABLE
#define MPI_MANPAGE7_LOCATION_AUTO
#define MPI_MANPAGE7_LOCATION_NOT_PRESENT
#define MPI_MANPAGE7_LOCATION_NOT_CONNECTED

/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check NumPhys at runtime.
 */
#ifndef MPI_MANPAGE7_CONNECTOR_INFO_MAX
#define MPI_MANPAGE7_CONNECTOR_INFO_MAX
#endif

pManufacturingPage7_t;

#define MPI_MANUFACTURING7_PAGEVERSION

/* defines for the Flags field */
#define MPI_MANPAGE7_FLAG_USE_SLOT_INFO


pManufacturingPage8_t;

#define MPI_MANUFACTURING8_PAGEVERSION


pManufacturingPage9_t;

#define MPI_MANUFACTURING9_PAGEVERSION


pManufacturingPage10_t;

#define MPI_MANUFACTURING10_PAGEVERSION


/****************************************************************************
*   IO Unit Config Pages
****************************************************************************/

pIOUnitPage0_t;

#define MPI_IOUNITPAGE0_PAGEVERSION


pIOUnitPage1_t;

#define MPI_IOUNITPAGE1_PAGEVERSION

/* IO Unit Page 1 Flags defines */
#define MPI_IOUNITPAGE1_MULTI_FUNCTION
#define MPI_IOUNITPAGE1_SINGLE_FUNCTION
#define MPI_IOUNITPAGE1_MULTI_PATHING
#define MPI_IOUNITPAGE1_SINGLE_PATHING
#define MPI_IOUNITPAGE1_IR_USE_STATIC_VOLUME_ID
#define MPI_IOUNITPAGE1_DISABLE_QUEUE_FULL_HANDLING
#define MPI_IOUNITPAGE1_DISABLE_IR
#define MPI_IOUNITPAGE1_FORCE_32
#define MPI_IOUNITPAGE1_NATIVE_COMMAND_Q_DISABLE
#define MPI_IOUNITPAGE1_SATA_WRITE_CACHE_DISABLE

pMpiAdapterInfo_t;

#define MPI_ADAPTER_INFO_FLAGS_EMBEDDED
#define MPI_ADAPTER_INFO_FLAGS_INIT_STATUS

pIOUnitPage2_t;

#define MPI_IOUNITPAGE2_PAGEVERSION

#define MPI_IOUNITPAGE2_FLAGS_PAUSE_ON_ERROR
#define MPI_IOUNITPAGE2_FLAGS_VERBOSE_ENABLE
#define MPI_IOUNITPAGE2_FLAGS_COLOR_VIDEO_DISABLE
#define MPI_IOUNITPAGE2_FLAGS_DONT_HOOK_INT_40

#define MPI_IOUNITPAGE2_FLAGS_DEV_LIST_DISPLAY_MASK
#define MPI_IOUNITPAGE2_FLAGS_INSTALLED_DEV_DISPLAY
#define MPI_IOUNITPAGE2_FLAGS_ADAPTER_DISPLAY
#define MPI_IOUNITPAGE2_FLAGS_ADAPTER_DEV_DISPLAY


/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check Header.PageLength at runtime.
 */
#ifndef MPI_IO_UNIT_PAGE_3_GPIO_VAL_MAX
#define MPI_IO_UNIT_PAGE_3_GPIO_VAL_MAX
#endif

pIOUnitPage3_t;

#define MPI_IOUNITPAGE3_PAGEVERSION

#define MPI_IOUNITPAGE3_GPIO_FUNCTION_MASK
#define MPI_IOUNITPAGE3_GPIO_FUNCTION_SHIFT
#define MPI_IOUNITPAGE3_GPIO_SETTING_OFF
#define MPI_IOUNITPAGE3_GPIO_SETTING_ON


pIOUnitPage4_t;

#define MPI_IOUNITPAGE4_PAGEVERSION


/****************************************************************************
*   IOC Config Pages
****************************************************************************/

pIOCPage0_t;

#define MPI_IOCPAGE0_PAGEVERSION


pIOCPage1_t;

#define MPI_IOCPAGE1_PAGEVERSION

/* defines for the Flags field */
#define MPI_IOCPAGE1_EEDP_MODE_MASK
#define MPI_IOCPAGE1_EEDP_MODE_OFF
#define MPI_IOCPAGE1_EEDP_MODE_T10
#define MPI_IOCPAGE1_EEDP_MODE_LSI_1
#define MPI_IOCPAGE1_INITIATOR_CONTEXT_REPLY_DISABLE
#define MPI_IOCPAGE1_REPLY_COALESCING

#define MPI_IOCPAGE1_PCISLOTNUM_UNKNOWN


pConfigPageIoc2RaidVol_t;

/* IOC Page 2 Volume RAID Type values, also used in RAID Volume pages */

#define MPI_RAID_VOL_TYPE_IS
#define MPI_RAID_VOL_TYPE_IME
#define MPI_RAID_VOL_TYPE_IM
#define MPI_RAID_VOL_TYPE_RAID_5
#define MPI_RAID_VOL_TYPE_RAID_6
#define MPI_RAID_VOL_TYPE_RAID_10
#define MPI_RAID_VOL_TYPE_RAID_50
#define MPI_RAID_VOL_TYPE_UNKNOWN

/* IOC Page 2 Volume Flags values */

#define MPI_IOCPAGE2_FLAG_VOLUME_INACTIVE

pIOCPage2_t;

#define MPI_IOCPAGE2_PAGEVERSION

/* IOC Page 2 Capabilities flags */

#define MPI_IOCPAGE2_CAP_FLAGS_IS_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_IME_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_IM_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_RAID_5_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_RAID_6_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_RAID_10_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_RAID_50_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_RAID_64_BIT_ADDRESSING
#define MPI_IOCPAGE2_CAP_FLAGS_SES_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_SAFTE_SUPPORT
#define MPI_IOCPAGE2_CAP_FLAGS_CROSS_CHANNEL_SUPPORT


pIoc3PhysDisk_t;

pIOCPage3_t;

#define MPI_IOCPAGE3_PAGEVERSION


pIoc4Sep_t;

pIOCPage4_t;

#define MPI_IOCPAGE4_PAGEVERSION


pIoc5HotSpare_t;

/* IOC Page 5 HotSpare Flags */
#define MPI_IOC_PAGE_5_HOT_SPARE_ACTIVE

/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check Header.PageLength at runtime.
 */
#ifndef MPI_IOC_PAGE_5_HOT_SPARE_MAX
#define MPI_IOC_PAGE_5_HOT_SPARE_MAX
#endif

pIOCPage5_t;

#define MPI_IOCPAGE5_PAGEVERSION

pIOCPage6_t;

#define MPI_IOCPAGE6_PAGEVERSION

/* IOC Page 6 Capabilities Flags */

#define MPI_IOCPAGE6_CAP_FLAGS_SSD_SUPPORT
#define MPI_IOCPAGE6_CAP_FLAGS_MULTIPORT_DRIVE_SUPPORT
#define MPI_IOCPAGE6_CAP_FLAGS_DISABLE_SMART_POLLING

#define MPI_IOCPAGE6_CAP_FLAGS_MASK_METADATA_SIZE
#define MPI_IOCPAGE6_CAP_FLAGS_64MB_METADATA_SIZE
#define MPI_IOCPAGE6_CAP_FLAGS_512MB_METADATA_SIZE

#define MPI_IOCPAGE6_CAP_FLAGS_GLOBAL_HOT_SPARE


/****************************************************************************
*   BIOS Config Pages
****************************************************************************/

pBIOSPage1_t;

#define MPI_BIOSPAGE1_PAGEVERSION

/* values for the BiosOptions field */
#define MPI_BIOSPAGE1_OPTIONS_SPI_ENABLE
#define MPI_BIOSPAGE1_OPTIONS_FC_ENABLE
#define MPI_BIOSPAGE1_OPTIONS_SAS_ENABLE
#define MPI_BIOSPAGE1_OPTIONS_DISABLE_BIOS

/* values for the IOCSettings field */
#define MPI_BIOSPAGE1_IOCSET_MASK_INITIAL_SPINUP_DELAY
#define MPI_BIOSPAGE1_IOCSET_SHIFT_INITIAL_SPINUP_DELAY

#define MPI_BIOSPAGE1_IOCSET_MASK_PORT_ENABLE_DELAY
#define MPI_BIOSPAGE1_IOCSET_SHIFT_PORT_ENABLE_DELAY

#define MPI_BIOSPAGE1_IOCSET_AUTO_PORT_ENABLE
#define MPI_BIOSPAGE1_IOCSET_DIRECT_ATTACH_SPINUP_MODE

#define MPI_BIOSPAGE1_IOCSET_MASK_BOOT_PREFERENCE
#define MPI_BIOSPAGE1_IOCSET_ENCLOSURE_SLOT_BOOT
#define MPI_BIOSPAGE1_IOCSET_SAS_ADDRESS_BOOT

#define MPI_BIOSPAGE1_IOCSET_MASK_MAX_TARGET_SPIN_UP
#define MPI_BIOSPAGE1_IOCSET_SHIFT_MAX_TARGET_SPIN_UP

#define MPI_BIOSPAGE1_IOCSET_MASK_SPINUP_DELAY
#define MPI_BIOSPAGE1_IOCSET_SHIFT_SPINUP_DELAY

#define MPI_BIOSPAGE1_IOCSET_MASK_RM_SETTING
#define MPI_BIOSPAGE1_IOCSET_NONE_RM_SETTING
#define MPI_BIOSPAGE1_IOCSET_BOOT_RM_SETTING
#define MPI_BIOSPAGE1_IOCSET_MEDIA_RM_SETTING

#define MPI_BIOSPAGE1_IOCSET_MASK_ADAPTER_SUPPORT
#define MPI_BIOSPAGE1_IOCSET_NO_SUPPORT
#define MPI_BIOSPAGE1_IOCSET_BIOS_SUPPORT
#define MPI_BIOSPAGE1_IOCSET_OS_SUPPORT
#define MPI_BIOSPAGE1_IOCSET_ALL_SUPPORT

#define MPI_BIOSPAGE1_IOCSET_ALTERNATE_CHS

/* values for the DeviceSettings field */
#define MPI_BIOSPAGE1_DEVSET_DISABLE_SMART_POLLING
#define MPI_BIOSPAGE1_DEVSET_DISABLE_SEQ_LUN
#define MPI_BIOSPAGE1_DEVSET_DISABLE_RM_LUN
#define MPI_BIOSPAGE1_DEVSET_DISABLE_NON_RM_LUN
#define MPI_BIOSPAGE1_DEVSET_DISABLE_OTHER_LUN

/* defines for the ExpanderSpinup field */
#define MPI_BIOSPAGE1_EXPSPINUP_MASK_MAX_TARGET
#define MPI_BIOSPAGE1_EXPSPINUP_SHIFT_MAX_TARGET
#define MPI_BIOSPAGE1_EXPSPINUP_MASK_DELAY

PTR_MPI_BOOT_DEVICE_ADAPTER_ORDER;

PTR_MPI_BOOT_DEVICE_ADAPTER_NUMBER;

PTR_MPI_BOOT_DEVICE_PCI_ADDRESS;

PTR_MPI_BOOT_DEVICE_PCI_SLOT_NUMBER;

PTR_MPI_BOOT_DEVICE_FC_WWN;

PTR_MPI_BOOT_DEVICE_SAS_WWN;

PTR_MPI_BOOT_DEVICE_ENCLOSURE_SLOT;

PTR_MPI_BIOSPAGE2_BOOT_DEVICE;

pBIOSPage2_t;

#define MPI_BIOSPAGE2_PAGEVERSION

#define MPI_BIOSPAGE2_FORM_MASK
#define MPI_BIOSPAGE2_FORM_ADAPTER_ORDER
#define MPI_BIOSPAGE2_FORM_ADAPTER_NUMBER
#define MPI_BIOSPAGE2_FORM_PCI_ADDRESS
#define MPI_BIOSPAGE2_FORM_PCI_SLOT_NUMBER
#define MPI_BIOSPAGE2_FORM_FC_WWN
#define MPI_BIOSPAGE2_FORM_SAS_WWN
#define MPI_BIOSPAGE2_FORM_ENCLOSURE_SLOT

pBIOSPage4_t;

#define MPI_BIOSPAGE4_PAGEVERSION


/****************************************************************************
*   SCSI Port Config Pages
****************************************************************************/

pSCSIPortPage0_t;

#define MPI_SCSIPORTPAGE0_PAGEVERSION

#define MPI_SCSIPORTPAGE0_CAP_IU
#define MPI_SCSIPORTPAGE0_CAP_DT
#define MPI_SCSIPORTPAGE0_CAP_QAS
#define MPI_SCSIPORTPAGE0_CAP_MIN_SYNC_PERIOD_MASK
#define MPI_SCSIPORTPAGE0_SYNC_ASYNC
#define MPI_SCSIPORTPAGE0_SYNC_5
#define MPI_SCSIPORTPAGE0_SYNC_10
#define MPI_SCSIPORTPAGE0_SYNC_20
#define MPI_SCSIPORTPAGE0_SYNC_33_33
#define MPI_SCSIPORTPAGE0_SYNC_40
#define MPI_SCSIPORTPAGE0_SYNC_80
#define MPI_SCSIPORTPAGE0_SYNC_160
#define MPI_SCSIPORTPAGE0_SYNC_UNKNOWN

#define MPI_SCSIPORTPAGE0_CAP_SHIFT_MIN_SYNC_PERIOD
#define MPI_SCSIPORTPAGE0_CAP_GET_MIN_SYNC_PERIOD(Cap)
#define MPI_SCSIPORTPAGE0_CAP_MAX_SYNC_OFFSET_MASK
#define MPI_SCSIPORTPAGE0_CAP_SHIFT_MAX_SYNC_OFFSET
#define MPI_SCSIPORTPAGE0_CAP_GET_MAX_SYNC_OFFSET(Cap)
#define MPI_SCSIPORTPAGE0_CAP_IDP
#define MPI_SCSIPORTPAGE0_CAP_WIDE
#define MPI_SCSIPORTPAGE0_CAP_AIP

#define MPI_SCSIPORTPAGE0_PHY_SIGNAL_TYPE_MASK
#define MPI_SCSIPORTPAGE0_PHY_SIGNAL_HVD
#define MPI_SCSIPORTPAGE0_PHY_SIGNAL_SE
#define MPI_SCSIPORTPAGE0_PHY_SIGNAL_LVD
#define MPI_SCSIPORTPAGE0_PHY_MASK_CONNECTED_ID
#define MPI_SCSIPORTPAGE0_PHY_SHIFT_CONNECTED_ID
#define MPI_SCSIPORTPAGE0_PHY_BUS_FREE_CONNECTED_ID
#define MPI_SCSIPORTPAGE0_PHY_UNKNOWN_CONNECTED_ID


pSCSIPortPage1_t;

#define MPI_SCSIPORTPAGE1_PAGEVERSION

/* Configuration values */
#define MPI_SCSIPORTPAGE1_CFG_PORT_SCSI_ID_MASK
#define MPI_SCSIPORTPAGE1_CFG_PORT_RESPONSE_ID_MASK
#define MPI_SCSIPORTPAGE1_CFG_SHIFT_PORT_RESPONSE_ID

/* TargetConfig values */
#define MPI_SCSIPORTPAGE1_TARGCONFIG_TARG_ONLY
#define MPI_SCSIPORTPAGE1_TARGCONFIG_INIT_TARG


pMpiDeviceInfo_t;

pSCSIPortPage2_t;

#define MPI_SCSIPORTPAGE2_PAGEVERSION

/* PortFlags values */
#define MPI_SCSIPORTPAGE2_PORT_FLAGS_SCAN_HIGH_TO_LOW
#define MPI_SCSIPORTPAGE2_PORT_FLAGS_AVOID_SCSI_RESET
#define MPI_SCSIPORTPAGE2_PORT_FLAGS_ALTERNATE_CHS
#define MPI_SCSIPORTPAGE2_PORT_FLAGS_TERMINATION_DISABLE

#define MPI_SCSIPORTPAGE2_PORT_FLAGS_DV_MASK
#define MPI_SCSIPORTPAGE2_PORT_FLAGS_FULL_DV
#define MPI_SCSIPORTPAGE2_PORT_FLAGS_BASIC_DV_ONLY
#define MPI_SCSIPORTPAGE2_PORT_FLAGS_OFF_DV


/* PortSettings values */
#define MPI_SCSIPORTPAGE2_PORT_HOST_ID_MASK
#define MPI_SCSIPORTPAGE2_PORT_MASK_INIT_HBA
#define MPI_SCSIPORTPAGE2_PORT_DISABLE_INIT_HBA
#define MPI_SCSIPORTPAGE2_PORT_BIOS_INIT_HBA
#define MPI_SCSIPORTPAGE2_PORT_OS_INIT_HBA
#define MPI_SCSIPORTPAGE2_PORT_BIOS_OS_INIT_HBA
#define MPI_SCSIPORTPAGE2_PORT_REMOVABLE_MEDIA
#define MPI_SCSIPORTPAGE2_PORT_RM_NONE
#define MPI_SCSIPORTPAGE2_PORT_RM_BOOT_ONLY
#define MPI_SCSIPORTPAGE2_PORT_RM_WITH_MEDIA
#define MPI_SCSIPORTPAGE2_PORT_SPINUP_DELAY_MASK
#define MPI_SCSIPORTPAGE2_PORT_SHIFT_SPINUP_DELAY
#define MPI_SCSIPORTPAGE2_PORT_MASK_NEGO_MASTER_SETTINGS
#define MPI_SCSIPORTPAGE2_PORT_NEGO_MASTER_SETTINGS
#define MPI_SCSIPORTPAGE2_PORT_NONE_MASTER_SETTINGS
#define MPI_SCSIPORTPAGE2_PORT_ALL_MASTER_SETTINGS

#define MPI_SCSIPORTPAGE2_DEVICE_DISCONNECT_ENABLE
#define MPI_SCSIPORTPAGE2_DEVICE_ID_SCAN_ENABLE
#define MPI_SCSIPORTPAGE2_DEVICE_LUN_SCAN_ENABLE
#define MPI_SCSIPORTPAGE2_DEVICE_TAG_QUEUE_ENABLE
#define MPI_SCSIPORTPAGE2_DEVICE_WIDE_DISABLE
#define MPI_SCSIPORTPAGE2_DEVICE_BOOT_CHOICE


/****************************************************************************
*   SCSI Target Device Config Pages
****************************************************************************/

pSCSIDevicePage0_t;

#define MPI_SCSIDEVPAGE0_PAGEVERSION

#define MPI_SCSIDEVPAGE0_NP_IU
#define MPI_SCSIDEVPAGE0_NP_DT
#define MPI_SCSIDEVPAGE0_NP_QAS
#define MPI_SCSIDEVPAGE0_NP_HOLD_MCS
#define MPI_SCSIDEVPAGE0_NP_WR_FLOW
#define MPI_SCSIDEVPAGE0_NP_RD_STRM
#define MPI_SCSIDEVPAGE0_NP_RTI
#define MPI_SCSIDEVPAGE0_NP_PCOMP_EN
#define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_PERIOD_MASK
#define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_PERIOD
#define MPI_SCSIDEVPAGE0_NP_NEG_SYNC_OFFSET_MASK
#define MPI_SCSIDEVPAGE0_NP_SHIFT_SYNC_OFFSET
#define MPI_SCSIDEVPAGE0_NP_IDP
#define MPI_SCSIDEVPAGE0_NP_WIDE
#define MPI_SCSIDEVPAGE0_NP_AIP

#define MPI_SCSIDEVPAGE0_INFO_PARAMS_NEGOTIATED
#define MPI_SCSIDEVPAGE0_INFO_SDTR_REJECTED
#define MPI_SCSIDEVPAGE0_INFO_WDTR_REJECTED
#define MPI_SCSIDEVPAGE0_INFO_PPR_REJECTED


pSCSIDevicePage1_t;

#define MPI_SCSIDEVPAGE1_PAGEVERSION

#define MPI_SCSIDEVPAGE1_RP_IU
#define MPI_SCSIDEVPAGE1_RP_DT
#define MPI_SCSIDEVPAGE1_RP_QAS
#define MPI_SCSIDEVPAGE1_RP_HOLD_MCS
#define MPI_SCSIDEVPAGE1_RP_WR_FLOW
#define MPI_SCSIDEVPAGE1_RP_RD_STRM
#define MPI_SCSIDEVPAGE1_RP_RTI
#define MPI_SCSIDEVPAGE1_RP_PCOMP_EN
#define MPI_SCSIDEVPAGE1_RP_MIN_SYNC_PERIOD_MASK
#define MPI_SCSIDEVPAGE1_RP_SHIFT_MIN_SYNC_PERIOD
#define MPI_SCSIDEVPAGE1_RP_MAX_SYNC_OFFSET_MASK
#define MPI_SCSIDEVPAGE1_RP_SHIFT_MAX_SYNC_OFFSET
#define MPI_SCSIDEVPAGE1_RP_IDP
#define MPI_SCSIDEVPAGE1_RP_WIDE
#define MPI_SCSIDEVPAGE1_RP_AIP

#define MPI_SCSIDEVPAGE1_CONF_WDTR_DISALLOWED
#define MPI_SCSIDEVPAGE1_CONF_SDTR_DISALLOWED
#define MPI_SCSIDEVPAGE1_CONF_EXTENDED_PARAMS_ENABLE
#define MPI_SCSIDEVPAGE1_CONF_FORCE_PPR_MSG


pSCSIDevicePage2_t;

#define MPI_SCSIDEVPAGE2_PAGEVERSION

#define MPI_SCSIDEVPAGE2_DV_ISI_ENABLE
#define MPI_SCSIDEVPAGE2_DV_SECONDARY_DRIVER_ENABLE
#define MPI_SCSIDEVPAGE2_DV_SLEW_RATE_CTRL
#define MPI_SCSIDEVPAGE2_DV_PRIM_DRIVE_STR_CTRL
#define MPI_SCSIDEVPAGE2_DV_SECOND_DRIVE_STR_CTRL
#define MPI_SCSIDEVPAGE2_DV_XCLKH_ST
#define MPI_SCSIDEVPAGE2_DV_XCLKS_ST
#define MPI_SCSIDEVPAGE2_DV_XCLKH_DT
#define MPI_SCSIDEVPAGE2_DV_XCLKS_DT

#define MPI_SCSIDEVPAGE2_PPS_PPS_MASK

#define MPI_SCSIDEVPAGE2_DPS_BIT_0_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_1_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_2_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_3_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_4_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_5_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_6_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_7_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_8_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_9_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_10_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_11_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_12_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_13_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_14_PL_SELECT_MASK
#define MPI_SCSIDEVPAGE2_DPS_BIT_15_PL_SELECT_MASK


pSCSIDevicePage3_t;

#define MPI_SCSIDEVPAGE3_PAGEVERSION

#define MPI_SCSIDEVPAGE3_MAX_COUNTER
#define MPI_SCSIDEVPAGE3_UNSUPPORTED_COUNTER


/****************************************************************************
*   FC Port Config Pages
****************************************************************************/

pFCPortPage0_t;

#define MPI_FCPORTPAGE0_PAGEVERSION

#define MPI_FCPORTPAGE0_FLAGS_PROT_MASK
#define MPI_FCPORTPAGE0_FLAGS_PROT_FCP_INIT
#define MPI_FCPORTPAGE0_FLAGS_PROT_FCP_TARG
#define MPI_FCPORTPAGE0_FLAGS_PROT_LAN
#define MPI_FCPORTPAGE0_FLAGS_PROT_LOGBUSADDR

#define MPI_FCPORTPAGE0_FLAGS_ALIAS_ALPA_SUPPORTED
#define MPI_FCPORTPAGE0_FLAGS_ALIAS_WWN_SUPPORTED
#define MPI_FCPORTPAGE0_FLAGS_FABRIC_WWN_VALID

#define MPI_FCPORTPAGE0_FLAGS_ATTACH_TYPE_MASK
#define MPI_FCPORTPAGE0_FLAGS_ATTACH_NO_INIT
#define MPI_FCPORTPAGE0_FLAGS_ATTACH_POINT_TO_POINT
#define MPI_FCPORTPAGE0_FLAGS_ATTACH_PRIVATE_LOOP
#define MPI_FCPORTPAGE0_FLAGS_ATTACH_FABRIC_DIRECT
#define MPI_FCPORTPAGE0_FLAGS_ATTACH_PUBLIC_LOOP

#define MPI_FCPORTPAGE0_LTYPE_RESERVED
#define MPI_FCPORTPAGE0_LTYPE_OTHER
#define MPI_FCPORTPAGE0_LTYPE_UNKNOWN
#define MPI_FCPORTPAGE0_LTYPE_COPPER
#define MPI_FCPORTPAGE0_LTYPE_SINGLE_1300
#define MPI_FCPORTPAGE0_LTYPE_SINGLE_1500
#define MPI_FCPORTPAGE0_LTYPE_50_LASER_MULTI
#define MPI_FCPORTPAGE0_LTYPE_50_LED_MULTI
#define MPI_FCPORTPAGE0_LTYPE_62_LASER_MULTI
#define MPI_FCPORTPAGE0_LTYPE_62_LED_MULTI
#define MPI_FCPORTPAGE0_LTYPE_MULTI_LONG_WAVE
#define MPI_FCPORTPAGE0_LTYPE_MULTI_SHORT_WAVE
#define MPI_FCPORTPAGE0_LTYPE_LASER_SHORT_WAVE
#define MPI_FCPORTPAGE0_LTYPE_LED_SHORT_WAVE
#define MPI_FCPORTPAGE0_LTYPE_1300_LONG_WAVE
#define MPI_FCPORTPAGE0_LTYPE_1500_LONG_WAVE

#define MPI_FCPORTPAGE0_PORTSTATE_UNKNOWN
#define MPI_FCPORTPAGE0_PORTSTATE_ONLINE
#define MPI_FCPORTPAGE0_PORTSTATE_OFFLINE
#define MPI_FCPORTPAGE0_PORTSTATE_BYPASSED
#define MPI_FCPORTPAGE0_PORTSTATE_DIAGNOST
#define MPI_FCPORTPAGE0_PORTSTATE_LINKDOWN
#define MPI_FCPORTPAGE0_PORTSTATE_ERROR
#define MPI_FCPORTPAGE0_PORTSTATE_LOOPBACK

#define MPI_FCPORTPAGE0_SUPPORT_CLASS_1
#define MPI_FCPORTPAGE0_SUPPORT_CLASS_2
#define MPI_FCPORTPAGE0_SUPPORT_CLASS_3

#define MPI_FCPORTPAGE0_SUPPORT_SPEED_UNKNOWN
#define MPI_FCPORTPAGE0_SUPPORT_1GBIT_SPEED
#define MPI_FCPORTPAGE0_SUPPORT_2GBIT_SPEED
#define MPI_FCPORTPAGE0_SUPPORT_10GBIT_SPEED
#define MPI_FCPORTPAGE0_SUPPORT_4GBIT_SPEED

#define MPI_FCPORTPAGE0_CURRENT_SPEED_UNKNOWN
#define MPI_FCPORTPAGE0_CURRENT_SPEED_1GBIT
#define MPI_FCPORTPAGE0_CURRENT_SPEED_2GBIT
#define MPI_FCPORTPAGE0_CURRENT_SPEED_10GBIT
#define MPI_FCPORTPAGE0_CURRENT_SPEED_4GBIT
#define MPI_FCPORTPAGE0_CURRENT_SPEED_NOT_NEGOTIATED


pFCPortPage1_t;

#define MPI_FCPORTPAGE1_PAGEVERSION

#define MPI_FCPORTPAGE1_FLAGS_EXT_FCP_STATUS_EN
#define MPI_FCPORTPAGE1_FLAGS_IMMEDIATE_ERROR_REPLY
#define MPI_FCPORTPAGE1_FLAGS_FORCE_USE_NOSEEPROM_WWNS
#define MPI_FCPORTPAGE1_FLAGS_VERBOSE_RESCAN_EVENTS
#define MPI_FCPORTPAGE1_FLAGS_TARGET_MODE_OXID
#define MPI_FCPORTPAGE1_FLAGS_PORT_OFFLINE
#define MPI_FCPORTPAGE1_FLAGS_SOFT_ALPA_FALLBACK
#define MPI_FCPORTPAGE1_FLAGS_TARGET_LARGE_CDB_ENABLE
#define MPI_FCPORTPAGE1_FLAGS_MASK_RR_TOV_UNITS
#define MPI_FCPORTPAGE1_FLAGS_SUPPRESS_PROT_REG
#define MPI_FCPORTPAGE1_FLAGS_PLOGI_ON_LOGO
#define MPI_FCPORTPAGE1_FLAGS_MAINTAIN_LOGINS
#define MPI_FCPORTPAGE1_FLAGS_SORT_BY_DID
#define MPI_FCPORTPAGE1_FLAGS_SORT_BY_WWN

#define MPI_FCPORTPAGE1_FLAGS_PROT_MASK
#define MPI_FCPORTPAGE1_FLAGS_PROT_SHIFT
#define MPI_FCPORTPAGE1_FLAGS_PROT_FCP_INIT
#define MPI_FCPORTPAGE1_FLAGS_PROT_FCP_TARG
#define MPI_FCPORTPAGE1_FLAGS_PROT_LAN
#define MPI_FCPORTPAGE1_FLAGS_PROT_LOGBUSADDR

#define MPI_FCPORTPAGE1_FLAGS_NONE_RR_TOV_UNITS
#define MPI_FCPORTPAGE1_FLAGS_THOUSANDTH_RR_TOV_UNITS
#define MPI_FCPORTPAGE1_FLAGS_TENTH_RR_TOV_UNITS
#define MPI_FCPORTPAGE1_FLAGS_TEN_RR_TOV_UNITS

#define MPI_FCPORTPAGE1_HARD_ALPA_NOT_USED

#define MPI_FCPORTPAGE1_LCONFIG_SPEED_MASK
#define MPI_FCPORTPAGE1_LCONFIG_SPEED_1GIG
#define MPI_FCPORTPAGE1_LCONFIG_SPEED_2GIG
#define MPI_FCPORTPAGE1_LCONFIG_SPEED_4GIG
#define MPI_FCPORTPAGE1_LCONFIG_SPEED_10GIG
#define MPI_FCPORTPAGE1_LCONFIG_SPEED_AUTO

#define MPI_FCPORTPAGE1_TOPOLOGY_MASK
#define MPI_FCPORTPAGE1_TOPOLOGY_NLPORT
#define MPI_FCPORTPAGE1_TOPOLOGY_NPORT
#define MPI_FCPORTPAGE1_TOPOLOGY_AUTO

#define MPI_FCPORTPAGE1_ALT_CONN_UNKNOWN

#define MPI_FCPORTPAGE1_INITIATOR_DEV_TIMEOUT_MASK
#define MPI_FCPORTPAGE1_INITIATOR_DEV_UNIT_16


pFCPortPage2_t;

#define MPI_FCPORTPAGE2_PAGEVERSION


pWWNFormat;

pPersistentPhysicalId_t;

pPersistentData_t;

#define MPI_PERSISTENT_FLAGS_SHIFT
#define MPI_PERSISTENT_FLAGS_ENTRY_VALID
#define MPI_PERSISTENT_FLAGS_SCAN_ID
#define MPI_PERSISTENT_FLAGS_SCAN_LUNS
#define MPI_PERSISTENT_FLAGS_BOOT_DEVICE
#define MPI_PERSISTENT_FLAGS_BY_DID

/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check Header.PageLength at runtime.
 */
#ifndef MPI_FC_PORT_PAGE_3_ENTRY_MAX
#define MPI_FC_PORT_PAGE_3_ENTRY_MAX
#endif

pFCPortPage3_t;

#define MPI_FCPORTPAGE3_PAGEVERSION


pFCPortPage4_t;

#define MPI_FCPORTPAGE4_PAGEVERSION

#define MPI_FCPORTPAGE4_PORT_FLAGS_ALTERNATE_CHS

#define MPI_FCPORTPAGE4_PORT_MASK_INIT_HBA
#define MPI_FCPORTPAGE4_PORT_DISABLE_INIT_HBA
#define MPI_FCPORTPAGE4_PORT_BIOS_INIT_HBA
#define MPI_FCPORTPAGE4_PORT_OS_INIT_HBA
#define MPI_FCPORTPAGE4_PORT_BIOS_OS_INIT_HBA
#define MPI_FCPORTPAGE4_PORT_REMOVABLE_MEDIA
#define MPI_FCPORTPAGE4_PORT_SPINUP_DELAY_MASK


pFcPortPage5AliasInfo_t;

pFCPortPage5_t;

#define MPI_FCPORTPAGE5_PAGEVERSION

#define MPI_FCPORTPAGE5_FLAGS_ALPA_ACQUIRED
#define MPI_FCPORTPAGE5_FLAGS_HARD_ALPA
#define MPI_FCPORTPAGE5_FLAGS_HARD_WWNN
#define MPI_FCPORTPAGE5_FLAGS_HARD_WWPN
#define MPI_FCPORTPAGE5_FLAGS_DISABLE

pFCPortPage6_t;

#define MPI_FCPORTPAGE6_PAGEVERSION


pFCPortPage7_t;

#define MPI_FCPORTPAGE7_PAGEVERSION


pFCPortPage8_t;

#define MPI_FCPORTPAGE8_PAGEVERSION


pFCPortPage9_t;

#define MPI_FCPORTPAGE9_PAGEVERSION


pFCPortPage10BaseSfpData_t;

#define MPI_FCPORT10_BASE_ID_UNKNOWN
#define MPI_FCPORT10_BASE_ID_GBIC
#define MPI_FCPORT10_BASE_ID_FIXED
#define MPI_FCPORT10_BASE_ID_SFP
#define MPI_FCPORT10_BASE_ID_SFP_MIN
#define MPI_FCPORT10_BASE_ID_SFP_MAX
#define MPI_FCPORT10_BASE_ID_VEND_SPEC_MASK

#define MPI_FCPORT10_BASE_EXTID_UNKNOWN
#define MPI_FCPORT10_BASE_EXTID_MODDEF1
#define MPI_FCPORT10_BASE_EXTID_MODDEF2
#define MPI_FCPORT10_BASE_EXTID_MODDEF3
#define MPI_FCPORT10_BASE_EXTID_SEEPROM
#define MPI_FCPORT10_BASE_EXTID_MODDEF5
#define MPI_FCPORT10_BASE_EXTID_MODDEF6
#define MPI_FCPORT10_BASE_EXTID_MODDEF7
#define MPI_FCPORT10_BASE_EXTID_VNDSPC_MASK

#define MPI_FCPORT10_BASE_CONN_UNKNOWN
#define MPI_FCPORT10_BASE_CONN_SC
#define MPI_FCPORT10_BASE_CONN_COPPER1
#define MPI_FCPORT10_BASE_CONN_COPPER2
#define MPI_FCPORT10_BASE_CONN_BNC_TNC
#define MPI_FCPORT10_BASE_CONN_COAXIAL
#define MPI_FCPORT10_BASE_CONN_FIBERJACK
#define MPI_FCPORT10_BASE_CONN_LC
#define MPI_FCPORT10_BASE_CONN_MT_RJ
#define MPI_FCPORT10_BASE_CONN_MU
#define MPI_FCPORT10_BASE_CONN_SG
#define MPI_FCPORT10_BASE_CONN_OPT_PIGT
#define MPI_FCPORT10_BASE_CONN_RSV1_MIN
#define MPI_FCPORT10_BASE_CONN_RSV1_MAX
#define MPI_FCPORT10_BASE_CONN_HSSDC_II
#define MPI_FCPORT10_BASE_CONN_CPR_PIGT
#define MPI_FCPORT10_BASE_CONN_RSV2_MIN
#define MPI_FCPORT10_BASE_CONN_RSV2_MAX
#define MPI_FCPORT10_BASE_CONN_VNDSPC_MASK

#define MPI_FCPORT10_BASE_ENCODE_UNSPEC
#define MPI_FCPORT10_BASE_ENCODE_8B10B
#define MPI_FCPORT10_BASE_ENCODE_4B5B
#define MPI_FCPORT10_BASE_ENCODE_NRZ
#define MPI_FCPORT10_BASE_ENCODE_MANCHESTER


pFCPortPage10ExtendedSfpData_t;

#define MPI_FCPORT10_EXT_OPTION1_RATESEL
#define MPI_FCPORT10_EXT_OPTION1_TX_DISABLE
#define MPI_FCPORT10_EXT_OPTION1_TX_FAULT
#define MPI_FCPORT10_EXT_OPTION1_LOS_INVERT
#define MPI_FCPORT10_EXT_OPTION1_LOS


pFCPortPage10_t;

#define MPI_FCPORTPAGE10_PAGEVERSION

/* standard MODDEF pin definitions (from GBIC spec.) */
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_MASK
#define MPI_FCPORTPAGE10_FLAGS_MODDEF2
#define MPI_FCPORTPAGE10_FLAGS_MODDEF1
#define MPI_FCPORTPAGE10_FLAGS_MODDEF0
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_NOGBIC
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_CPR_IEEE_CX
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_COPPER
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_OPTICAL_LW
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_SEEPROM
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_SW_OPTICAL
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_LX_IEEE_OPT_LW
#define MPI_FCPORTPAGE10_FLAGS_MODDEF_SX_IEEE_OPT_SW

#define MPI_FCPORTPAGE10_FLAGS_CC_BASE_OK
#define MPI_FCPORTPAGE10_FLAGS_CC_EXT_OK


/****************************************************************************
*   FC Device Config Pages
****************************************************************************/

pFCDevicePage0_t;

#define MPI_FC_DEVICE_PAGE0_PAGEVERSION

#define MPI_FC_DEVICE_PAGE0_FLAGS_TARGETID_BUS_VALID
#define MPI_FC_DEVICE_PAGE0_FLAGS_PLOGI_INVALID
#define MPI_FC_DEVICE_PAGE0_FLAGS_PRLI_INVALID

#define MPI_FC_DEVICE_PAGE0_PROT_IP
#define MPI_FC_DEVICE_PAGE0_PROT_FCP_TARGET
#define MPI_FC_DEVICE_PAGE0_PROT_FCP_INITIATOR
#define MPI_FC_DEVICE_PAGE0_PROT_FCP_RETRY

#define MPI_FC_DEVICE_PAGE0_PGAD_PORT_MASK
#define MPI_FC_DEVICE_PAGE0_PGAD_FORM_MASK
#define MPI_FC_DEVICE_PAGE0_PGAD_FORM_NEXT_DID
#define MPI_FC_DEVICE_PAGE0_PGAD_FORM_BUS_TID
#define MPI_FC_DEVICE_PAGE0_PGAD_DID_MASK
#define MPI_FC_DEVICE_PAGE0_PGAD_BUS_MASK
#define MPI_FC_DEVICE_PAGE0_PGAD_BUS_SHIFT
#define MPI_FC_DEVICE_PAGE0_PGAD_TID_MASK

#define MPI_FC_DEVICE_PAGE0_HARD_ALPA_UNKNOWN

/****************************************************************************
*   RAID Volume Config Pages
****************************************************************************/

pRaidVol0PhysDisk_t;

#define MPI_RAIDVOL0_PHYSDISK_PRIMARY
#define MPI_RAIDVOL0_PHYSDISK_SECONDARY

pRaidVol0Status_t;

/* RAID Volume Page 0 VolumeStatus defines */
#define MPI_RAIDVOL0_STATUS_FLAG_ENABLED
#define MPI_RAIDVOL0_STATUS_FLAG_QUIESCED
#define MPI_RAIDVOL0_STATUS_FLAG_RESYNC_IN_PROGRESS
#define MPI_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE
#define MPI_RAIDVOL0_STATUS_FLAG_BAD_BLOCK_TABLE_FULL

#define MPI_RAIDVOL0_STATUS_STATE_OPTIMAL
#define MPI_RAIDVOL0_STATUS_STATE_DEGRADED
#define MPI_RAIDVOL0_STATUS_STATE_FAILED
#define MPI_RAIDVOL0_STATUS_STATE_MISSING

pRaidVol0Settings;

/* RAID Volume Page 0 VolumeSettings defines */
#define MPI_RAIDVOL0_SETTING_WRITE_CACHING_ENABLE
#define MPI_RAIDVOL0_SETTING_OFFLINE_ON_SMART
#define MPI_RAIDVOL0_SETTING_AUTO_CONFIGURE
#define MPI_RAIDVOL0_SETTING_PRIORITY_RESYNC
#define MPI_RAIDVOL0_SETTING_FAST_DATA_SCRUBBING_0102

#define MPI_RAIDVOL0_SETTING_MASK_METADATA_SIZE
#define MPI_RAIDVOL0_SETTING_64MB_METADATA_SIZE
#define MPI_RAIDVOL0_SETTING_512MB_METADATA_SIZE

#define MPI_RAIDVOL0_SETTING_USE_PRODUCT_ID_SUFFIX
#define MPI_RAIDVOL0_SETTING_USE_DEFAULTS

/* RAID Volume Page 0 HotSparePool defines, also used in RAID Physical Disk */
#define MPI_RAID_HOT_SPARE_POOL_0
#define MPI_RAID_HOT_SPARE_POOL_1
#define MPI_RAID_HOT_SPARE_POOL_2
#define MPI_RAID_HOT_SPARE_POOL_3
#define MPI_RAID_HOT_SPARE_POOL_4
#define MPI_RAID_HOT_SPARE_POOL_5
#define MPI_RAID_HOT_SPARE_POOL_6
#define MPI_RAID_HOT_SPARE_POOL_7

pRaidVolumePage0_t;

#define MPI_RAIDVOLPAGE0_PAGEVERSION

/* values for RAID Volume Page 0 InactiveStatus field */
#define MPI_RAIDVOLPAGE0_UNKNOWN_INACTIVE
#define MPI_RAIDVOLPAGE0_STALE_METADATA_INACTIVE
#define MPI_RAIDVOLPAGE0_FOREIGN_VOLUME_INACTIVE
#define MPI_RAIDVOLPAGE0_INSUFFICIENT_RESOURCE_INACTIVE
#define MPI_RAIDVOLPAGE0_CLONE_VOLUME_INACTIVE
#define MPI_RAIDVOLPAGE0_INSUFFICIENT_METADATA_INACTIVE
#define MPI_RAIDVOLPAGE0_PREVIOUSLY_DELETED


pRaidVolumePage1_t;

#define MPI_RAIDVOLPAGE1_PAGEVERSION


/****************************************************************************
*   RAID Physical Disk Config Pages
****************************************************************************/

pRaidPhysDisk0ErrorData_t;

pRaidPhysDisk0InquiryData;

pRaidPhysDiskSettings_t;

pRaidPhysDiskStatus_t;

/* RAID Physical Disk PhysDiskStatus flags */

#define MPI_PHYSDISK0_STATUS_FLAG_OUT_OF_SYNC
#define MPI_PHYSDISK0_STATUS_FLAG_QUIESCED
#define MPI_PHYSDISK0_STATUS_FLAG_INACTIVE_VOLUME
#define MPI_PHYSDISK0_STATUS_FLAG_OPTIMAL_PREVIOUS
#define MPI_PHYSDISK0_STATUS_FLAG_NOT_OPTIMAL_PREVIOUS

#define MPI_PHYSDISK0_STATUS_ONLINE
#define MPI_PHYSDISK0_STATUS_MISSING
#define MPI_PHYSDISK0_STATUS_NOT_COMPATIBLE
#define MPI_PHYSDISK0_STATUS_FAILED
#define MPI_PHYSDISK0_STATUS_INITIALIZING
#define MPI_PHYSDISK0_STATUS_OFFLINE_REQUESTED
#define MPI_PHYSDISK0_STATUS_FAILED_REQUESTED
#define MPI_PHYSDISK0_STATUS_OTHER_OFFLINE

pRaidPhysDiskPage0_t;

#define MPI_RAIDPHYSDISKPAGE0_PAGEVERSION


pRaidPhysDisk1Path_t;

/* RAID Physical Disk Page 1 Flags field defines */
#define MPI_RAID_PHYSDISK1_FLAG_BROKEN
#define MPI_RAID_PHYSDISK1_FLAG_INVALID


pRaidPhysDiskPage1_t;

#define MPI_RAIDPHYSDISKPAGE1_PAGEVERSION


/****************************************************************************
*   LAN Config Pages
****************************************************************************/

pLANPage0_t;

#define MPI_LAN_PAGE0_PAGEVERSION

#define MPI_LAN_PAGE0_RETURN_LOOPBACK
#define MPI_LAN_PAGE0_SUPPRESS_LOOPBACK
#define MPI_LAN_PAGE0_LOOPBACK_MASK

pLANPage1_t;

#define MPI_LAN_PAGE1_PAGEVERSION

#define MPI_LAN_PAGE1_DEV_STATE_RESET
#define MPI_LAN_PAGE1_DEV_STATE_OPERATIONAL


/****************************************************************************
*   Inband Config Pages
****************************************************************************/

pInbandPage0_t;

#define MPI_INBAND_PAGEVERSION



/****************************************************************************
*   SAS IO Unit Config Pages
****************************************************************************/

pSasIOUnit0PhyData;

pSasIOUnitPage0_t;

#define MPI_SASIOUNITPAGE0_PAGEVERSION

/* values for SAS IO Unit Page 0 PortFlags */
#define MPI_SAS_IOUNIT0_PORT_FLAGS_DISCOVERY_IN_PROGRESS
#define MPI_SAS_IOUNIT0_PORT_FLAGS_0_TARGET_IOC_NUM
#define MPI_SAS_IOUNIT0_PORT_FLAGS_1_TARGET_IOC_NUM
#define MPI_SAS_IOUNIT0_PORT_FLAGS_AUTO_PORT_CONFIG

/* values for SAS IO Unit Page 0 PhyFlags */
#define MPI_SAS_IOUNIT0_PHY_FLAGS_PHY_DISABLED
#define MPI_SAS_IOUNIT0_PHY_FLAGS_TX_INVERT
#define MPI_SAS_IOUNIT0_PHY_FLAGS_RX_INVERT

/* values for SAS IO Unit Page 0 NegotiatedLinkRate */
#define MPI_SAS_IOUNIT0_RATE_UNKNOWN
#define MPI_SAS_IOUNIT0_RATE_PHY_DISABLED
#define MPI_SAS_IOUNIT0_RATE_FAILED_SPEED_NEGOTIATION
#define MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE
#define MPI_SAS_IOUNIT0_RATE_1_5
#define MPI_SAS_IOUNIT0_RATE_3_0
#define MPI_SAS_IOUNIT0_RATE_6_0

/* see mpi_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */

/* values for SAS IO Unit Page 0 DiscoveryStatus */
#define MPI_SAS_IOUNIT0_DS_LOOP_DETECTED
#define MPI_SAS_IOUNIT0_DS_UNADDRESSABLE_DEVICE
#define MPI_SAS_IOUNIT0_DS_MULTIPLE_PORTS
#define MPI_SAS_IOUNIT0_DS_EXPANDER_ERR
#define MPI_SAS_IOUNIT0_DS_SMP_TIMEOUT
#define MPI_SAS_IOUNIT0_DS_OUT_ROUTE_ENTRIES
#define MPI_SAS_IOUNIT0_DS_INDEX_NOT_EXIST
#define MPI_SAS_IOUNIT0_DS_SMP_FUNCTION_FAILED
#define MPI_SAS_IOUNIT0_DS_SMP_CRC_ERROR
#define MPI_SAS_IOUNIT0_DS_SUBTRACTIVE_LINK
#define MPI_SAS_IOUNIT0_DS_TABLE_LINK
#define MPI_SAS_IOUNIT0_DS_UNSUPPORTED_DEVICE
#define MPI_SAS_IOUNIT0_DS_MAX_SATA_TARGETS
#define MPI_SAS_IOUNIT0_DS_MULTI_PORT_DOMAIN


pSasIOUnit1PhyData;

/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check Header.PageLength at runtime.
 */
#ifndef MPI_SAS_IOUNIT1_PHY_MAX
#define MPI_SAS_IOUNIT1_PHY_MAX
#endif

pSasIOUnitPage1_t;

#define MPI_SASIOUNITPAGE1_PAGEVERSION

/* values for SAS IO Unit Page 1 ControlFlags */
#define MPI_SAS_IOUNIT1_CONTROL_DEVICE_SELF_TEST
#define MPI_SAS_IOUNIT1_CONTROL_SATA_3_0_MAX
#define MPI_SAS_IOUNIT1_CONTROL_SATA_1_5_MAX
#define MPI_SAS_IOUNIT1_CONTROL_SATA_SW_PRESERVE
#define MPI_SAS_IOUNIT1_CONTROL_DISABLE_SAS_HASH

#define MPI_SAS_IOUNIT1_CONTROL_MASK_DEV_SUPPORT
#define MPI_SAS_IOUNIT1_CONTROL_SHIFT_DEV_SUPPORT
#define MPI_SAS_IOUNIT1_CONTROL_DEV_SUPPORT_BOTH
#define MPI_SAS_IOUNIT1_CONTROL_DEV_SAS_SUPPORT
#define MPI_SAS_IOUNIT1_CONTROL_DEV_SATA_SUPPORT

#define MPI_SAS_IOUNIT1_CONTROL_POSTPONE_SATA_INIT
#define MPI_SAS_IOUNIT1_CONTROL_SATA_48BIT_LBA_REQUIRED
#define MPI_SAS_IOUNIT1_CONTROL_SATA_SMART_REQUIRED
#define MPI_SAS_IOUNIT1_CONTROL_SATA_NCQ_REQUIRED
#define MPI_SAS_IOUNIT1_CONTROL_SATA_FUA_REQUIRED
#define MPI_SAS_IOUNIT1_CONTROL_PHY_ENABLE_ORDER_HIGH
#define MPI_SAS_IOUNIT1_CONTROL_SUBTRACTIVE_ILLEGAL
#define MPI_SAS_IOUNIT1_CONTROL_FIRST_LVL_DISC_ONLY
#define MPI_SAS_IOUNIT1_CONTROL_CLEAR_AFFILIATION

/* values for SAS IO Unit Page 1 AdditionalControlFlags */
#define MPI_SAS_IOUNIT1_ACONTROL_MULTI_PORT_DOMAIN_ILLEGAL
#define MPI_SAS_IOUNIT1_ACONTROL_SATA_ASYNCHROUNOUS_NOTIFICATION
#define MPI_SAS_IOUNIT1_ACONTROL_HIDE_NONZERO_ATTACHED_PHY_IDENT
#define MPI_SAS_IOUNIT1_ACONTROL_PORT_ENABLE_ONLY_SATA_LINK_RESET
#define MPI_SAS_IOUNIT1_ACONTROL_OTHER_AFFILIATION_SATA_LINK_RESET
#define MPI_SAS_IOUNIT1_ACONTROL_SELF_AFFILIATION_SATA_LINK_RESET
#define MPI_SAS_IOUNIT1_ACONTROL_NO_AFFILIATION_SATA_LINK_RESET
#define MPI_SAS_IOUNIT1_ACONTROL_ALLOW_TABLE_TO_TABLE

/* defines for SAS IO Unit Page 1 ReportDeviceMissingDelay */
#define MPI_SAS_IOUNIT1_REPORT_MISSING_TIMEOUT_MASK
#define MPI_SAS_IOUNIT1_REPORT_MISSING_UNIT_16

/* values for SAS IO Unit Page 1 PortFlags */
#define MPI_SAS_IOUNIT1_PORT_FLAGS_0_TARGET_IOC_NUM
#define MPI_SAS_IOUNIT1_PORT_FLAGS_1_TARGET_IOC_NUM
#define MPI_SAS_IOUNIT1_PORT_FLAGS_AUTO_PORT_CONFIG

/* values for SAS IO Unit Page 0 PhyFlags */
#define MPI_SAS_IOUNIT1_PHY_FLAGS_PHY_DISABLE
#define MPI_SAS_IOUNIT1_PHY_FLAGS_TX_INVERT
#define MPI_SAS_IOUNIT1_PHY_FLAGS_RX_INVERT

/* values for SAS IO Unit Page 0 MaxMinLinkRate */
#define MPI_SAS_IOUNIT1_MAX_RATE_MASK
#define MPI_SAS_IOUNIT1_MAX_RATE_1_5
#define MPI_SAS_IOUNIT1_MAX_RATE_3_0
#define MPI_SAS_IOUNIT1_MIN_RATE_MASK
#define MPI_SAS_IOUNIT1_MIN_RATE_1_5
#define MPI_SAS_IOUNIT1_MIN_RATE_3_0

/* see mpi_sas.h for values for SAS IO Unit Page 1 ControllerPhyDeviceInfo values */


pSasIOUnitPage2_t;

#define MPI_SASIOUNITPAGE2_PAGEVERSION

/* values for SAS IO Unit Page 2 Status field */
#define MPI_SAS_IOUNIT2_STATUS_DEVICE_LIMIT_EXCEEDED
#define MPI_SAS_IOUNIT2_STATUS_ENCLOSURE_DEVICES_UNMAPPED
#define MPI_SAS_IOUNIT2_STATUS_DISABLED_PERSISTENT_MAPPINGS
#define MPI_SAS_IOUNIT2_STATUS_FULL_PERSISTENT_MAPPINGS

/* values for SAS IO Unit Page 2 Flags field */
#define MPI_SAS_IOUNIT2_FLAGS_DISABLE_PERSISTENT_MAPPINGS
/* Physical Mapping Modes */
#define MPI_SAS_IOUNIT2_FLAGS_MASK_PHYS_MAP_MODE
#define MPI_SAS_IOUNIT2_FLAGS_SHIFT_PHYS_MAP_MODE
#define MPI_SAS_IOUNIT2_FLAGS_NO_PHYS_MAP
#define MPI_SAS_IOUNIT2_FLAGS_DIRECT_ATTACH_PHYS_MAP
#define MPI_SAS_IOUNIT2_FLAGS_ENCLOSURE_SLOT_PHYS_MAP
#define MPI_SAS_IOUNIT2_FLAGS_HOST_ASSIGNED_PHYS_MAP

#define MPI_SAS_IOUNIT2_FLAGS_RESERVE_ID_0_FOR_BOOT
#define MPI_SAS_IOUNIT2_FLAGS_DA_STARTING_SLOT


pSasIOUnitPage3_t;

#define MPI_SASIOUNITPAGE3_PAGEVERSION


/****************************************************************************
*   SAS Expander Config Pages
****************************************************************************/

pSasExpanderPage0_t;

#define MPI_SASEXPANDER0_PAGEVERSION

/* values for SAS Expander Page 0 DiscoveryStatus field */
#define MPI_SAS_EXPANDER0_DS_LOOP_DETECTED
#define MPI_SAS_EXPANDER0_DS_UNADDRESSABLE_DEVICE
#define MPI_SAS_EXPANDER0_DS_MULTIPLE_PORTS
#define MPI_SAS_EXPANDER0_DS_EXPANDER_ERR
#define MPI_SAS_EXPANDER0_DS_SMP_TIMEOUT
#define MPI_SAS_EXPANDER0_DS_OUT_ROUTE_ENTRIES
#define MPI_SAS_EXPANDER0_DS_INDEX_NOT_EXIST
#define MPI_SAS_EXPANDER0_DS_SMP_FUNCTION_FAILED
#define MPI_SAS_EXPANDER0_DS_SMP_CRC_ERROR
#define MPI_SAS_EXPANDER0_DS_SUBTRACTIVE_LINK
#define MPI_SAS_EXPANDER0_DS_TABLE_LINK
#define MPI_SAS_EXPANDER0_DS_UNSUPPORTED_DEVICE

/* values for SAS Expander Page 0 Flags field */
#define MPI_SAS_EXPANDER0_FLAGS_CONNECTOR_END_DEVICE
#define MPI_SAS_EXPANDER0_FLAGS_ROUTE_TABLE_CONFIG
#define MPI_SAS_EXPANDER0_FLAGS_CONFIG_IN_PROGRESS


pSasExpanderPage1_t;

#define MPI_SASEXPANDER1_PAGEVERSION

/* use MPI_SAS_PHY0_PRATE_ defines for ProgrammedLinkRate */

/* use MPI_SAS_PHY0_HWRATE_ defines for HwLinkRate */

/* use MPI_SAS_PHY0_PHYINFO_ defines for PhyInfo */

/* see mpi_sas.h for values for SAS Expander Page 1 AttachedDeviceInfo values */

/* values for SAS Expander Page 1 DiscoveryInfo field */
#define MPI_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED
#define MPI_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE
#define MPI_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES

/* values for SAS Expander Page 1 NegotiatedLinkRate field */
#define MPI_SAS_EXPANDER1_NEG_RATE_UNKNOWN
#define MPI_SAS_EXPANDER1_NEG_RATE_PHY_DISABLED
#define MPI_SAS_EXPANDER1_NEG_RATE_FAILED_NEGOTIATION
#define MPI_SAS_EXPANDER1_NEG_RATE_SATA_OOB_COMPLETE
#define MPI_SAS_EXPANDER1_NEG_RATE_1_5
#define MPI_SAS_EXPANDER1_NEG_RATE_3_0


/****************************************************************************
*   SAS Device Config Pages
****************************************************************************/

pSasDevicePage0_t;

#define MPI_SASDEVICE0_PAGEVERSION

/* values for SAS Device Page 0 AccessStatus field */
#define MPI_SAS_DEVICE0_ASTATUS_NO_ERRORS
#define MPI_SAS_DEVICE0_ASTATUS_SATA_INIT_FAILED
#define MPI_SAS_DEVICE0_ASTATUS_SATA_CAPABILITY_FAILED
#define MPI_SAS_DEVICE0_ASTATUS_SATA_AFFILIATION_CONFLICT
#define MPI_SAS_DEVICE0_ASTATUS_SATA_NEEDS_INITIALIZATION
/* specific values for SATA Init failures */
#define MPI_SAS_DEVICE0_ASTATUS_SIF_UNKNOWN
#define MPI_SAS_DEVICE0_ASTATUS_SIF_AFFILIATION_CONFLICT
#define MPI_SAS_DEVICE0_ASTATUS_SIF_DIAG
#define MPI_SAS_DEVICE0_ASTATUS_SIF_IDENTIFICATION
#define MPI_SAS_DEVICE0_ASTATUS_SIF_CHECK_POWER
#define MPI_SAS_DEVICE0_ASTATUS_SIF_PIO_SN
#define MPI_SAS_DEVICE0_ASTATUS_SIF_MDMA_SN
#define MPI_SAS_DEVICE0_ASTATUS_SIF_UDMA_SN
#define MPI_SAS_DEVICE0_ASTATUS_SIF_ZONING_VIOLATION
#define MPI_SAS_DEVICE0_ASTATUS_SIF_NOT_ADDRESSABLE
#define MPI_SAS_DEVICE0_ASTATUS_SIF_MAX

/* values for SAS Device Page 0 Flags field */
#define MPI_SAS_DEVICE0_FLAGS_SATA_ASYNCHRONOUS_NOTIFY
#define MPI_SAS_DEVICE0_FLAGS_SATA_SW_PRESERVE
#define MPI_SAS_DEVICE0_FLAGS_UNSUPPORTED_DEVICE
#define MPI_SAS_DEVICE0_FLAGS_SATA_48BIT_LBA_SUPPORTED
#define MPI_SAS_DEVICE0_FLAGS_SATA_SMART_SUPPORTED
#define MPI_SAS_DEVICE0_FLAGS_SATA_NCQ_SUPPORTED
#define MPI_SAS_DEVICE0_FLAGS_SATA_FUA_SUPPORTED
#define MPI_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH
#define MPI_SAS_DEVICE0_FLAGS_MAPPING_PERSISTENT
#define MPI_SAS_DEVICE0_FLAGS_DEVICE_MAPPED
#define MPI_SAS_DEVICE0_FLAGS_DEVICE_PRESENT

/* see mpi_sas.h for values for SAS Device Page 0 DeviceInfo values */


pSasDevicePage1_t;

#define MPI_SASDEVICE1_PAGEVERSION


pSasDevicePage2_t;

#define MPI_SASDEVICE2_PAGEVERSION

/* defines for SAS Device Page 2 EnclosureMapping field */
#define MPI_SASDEVICE2_ENC_MAP_MASK_MISSING_COUNT
#define MPI_SASDEVICE2_ENC_MAP_SHIFT_MISSING_COUNT
#define MPI_SASDEVICE2_ENC_MAP_MASK_NUM_SLOTS
#define MPI_SASDEVICE2_ENC_MAP_SHIFT_NUM_SLOTS
#define MPI_SASDEVICE2_ENC_MAP_MASK_START_INDEX
#define MPI_SASDEVICE2_ENC_MAP_SHIFT_START_INDEX


/****************************************************************************
*   SAS PHY Config Pages
****************************************************************************/

pSasPhyPage0_t;

#define MPI_SASPHY0_PAGEVERSION

/* values for SAS PHY Page 0 ProgrammedLinkRate field */
#define MPI_SAS_PHY0_PRATE_MAX_RATE_MASK
#define MPI_SAS_PHY0_PRATE_MAX_RATE_NOT_PROGRAMMABLE
#define MPI_SAS_PHY0_PRATE_MAX_RATE_1_5
#define MPI_SAS_PHY0_PRATE_MAX_RATE_3_0
#define MPI_SAS_PHY0_PRATE_MIN_RATE_MASK
#define MPI_SAS_PHY0_PRATE_MIN_RATE_NOT_PROGRAMMABLE
#define MPI_SAS_PHY0_PRATE_MIN_RATE_1_5
#define MPI_SAS_PHY0_PRATE_MIN_RATE_3_0

/* values for SAS PHY Page 0 HwLinkRate field */
#define MPI_SAS_PHY0_HWRATE_MAX_RATE_MASK
#define MPI_SAS_PHY0_HWRATE_MAX_RATE_1_5
#define MPI_SAS_PHY0_HWRATE_MAX_RATE_3_0
#define MPI_SAS_PHY0_HWRATE_MIN_RATE_MASK
#define MPI_SAS_PHY0_HWRATE_MIN_RATE_1_5
#define MPI_SAS_PHY0_HWRATE_MIN_RATE_3_0

/* values for SAS PHY Page 0 Flags field */
#define MPI_SAS_PHY0_FLAGS_SGPIO_DIRECT_ATTACH_ENC

/* values for SAS PHY Page 0 PhyInfo field */
#define MPI_SAS_PHY0_PHYINFO_SATA_PORT_ACTIVE
#define MPI_SAS_PHY0_PHYINFO_SATA_PORT_SELECTOR
#define MPI_SAS_PHY0_PHYINFO_VIRTUAL_PHY

#define MPI_SAS_PHY0_PHYINFO_MASK_PARTIAL_PATHWAY_TIME
#define MPI_SAS_PHY0_PHYINFO_SHIFT_PARTIAL_PATHWAY_TIME

#define MPI_SAS_PHY0_PHYINFO_MASK_ROUTING_ATTRIBUTE
#define MPI_SAS_PHY0_PHYINFO_DIRECT_ROUTING
#define MPI_SAS_PHY0_PHYINFO_SUBTRACTIVE_ROUTING
#define MPI_SAS_PHY0_PHYINFO_TABLE_ROUTING

#define MPI_SAS_PHY0_PHYINFO_MASK_LINK_RATE
#define MPI_SAS_PHY0_PHYINFO_UNKNOWN_LINK_RATE
#define MPI_SAS_PHY0_PHYINFO_PHY_DISABLED
#define MPI_SAS_PHY0_PHYINFO_NEGOTIATION_FAILED
#define MPI_SAS_PHY0_PHYINFO_SATA_OOB_COMPLETE
#define MPI_SAS_PHY0_PHYINFO_RATE_1_5
#define MPI_SAS_PHY0_PHYINFO_RATE_3_0


pSasPhyPage1_t;

#define MPI_SASPHY1_PAGEVERSION


/****************************************************************************
*   SAS Enclosure Config Pages
****************************************************************************/

pSasEnclosurePage0_t;

#define MPI_SASENCLOSURE0_PAGEVERSION

/* values for SAS Enclosure Page 0 Flags field */
#define MPI_SAS_ENCLS0_FLAGS_SEP_BUS_ID_VALID
#define MPI_SAS_ENCLS0_FLAGS_START_BUS_ID_VALID

#define MPI_SAS_ENCLS0_FLAGS_MNG_MASK
#define MPI_SAS_ENCLS0_FLAGS_MNG_UNKNOWN
#define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SES
#define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_SGPIO
#define MPI_SAS_ENCLS0_FLAGS_MNG_EXP_SGPIO
#define MPI_SAS_ENCLS0_FLAGS_MNG_SES_ENCLOSURE
#define MPI_SAS_ENCLS0_FLAGS_MNG_IOC_GPIO


/****************************************************************************
*   Log Config Pages
****************************************************************************/
/*
 * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
 * one and check NumLogEntries at runtime.
 */
#ifndef MPI_LOG_0_NUM_LOG_ENTRIES
#define MPI_LOG_0_NUM_LOG_ENTRIES
#endif

#define MPI_LOG_0_LOG_DATA_LENGTH

pMpiLog0Entry_t;

/* values for Log Page 0 LogEntry LogEntryQualifier field */
#define MPI_LOG_0_ENTRY_QUAL_ENTRY_UNUSED
#define MPI_LOG_0_ENTRY_QUAL_POWER_ON_RESET

pLogPage0_t;

#define MPI_LOG_0_PAGEVERSION


#endif