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_cnfg.h
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Title: MPI Configuration messages and pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Creation Date: November 10, 2006
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * mpi2_cnfg.h Version: 02.00.27
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 Added defines for SAS IO Unit Page 2 PhyFlags.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added Manufacturing Page 11.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_SAS_EXPANDER0_FLAGS_CONNECTOR_END_DEVICE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 06-26-07 02.00.02 Adding generic structure for product-specific
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Manufacturing pages: MPI2_CONFIG_PAGE_MANUFACTURING_PS.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Rework of BIOS Page 2 configuration page.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Fixed MPI2_BIOSPAGE2_BOOT_DEVICE to be a union of the
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * forms.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added configuration pages IOC Page 8 and Driver
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Persistent Mapping Page 0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 08-31-07 02.00.03 Modified configuration pages dealing with Integrated
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * RAID (Manufacturing Page 4, RAID Volume Pages 0 and 1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * RAID Physical Disk Pages 0 and 1, RAID Configuration
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Page 0).
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added new value for AccessStatus field of SAS Device
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Page 0 (_SATA_NEEDS_INITIALIZATION).
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 10-31-07 02.00.04 Added missing SEPDevHandle field to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * MPI2_CONFIG_PAGE_SAS_ENCLOSURE_0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 12-18-07 02.00.05 Modified IO Unit Page 0 to use 32-bit version fields for
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * NVDATA.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Modified IOC Page 7 to use masks and added field for
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * SASBroadcastPrimitiveMasks.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_CONFIG_PAGE_BIOS_4.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_CONFIG_PAGE_LOG_0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 02-29-08 02.00.06 Modified various names to make them 32-character unique.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added SAS Device IDs.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Updated Integrated RAID configuration pages including
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Manufacturing Page 4, IOC Page 6, and RAID Configuration
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Page 0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 05-21-08 02.00.07 Added define MPI2_MANPAGE4_MIX_SSD_SAS_SATA.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added define MPI2_MANPAGE4_PHYSDISK_128MB_COERCION.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Fixed define MPI2_IOCPAGE8_FLAGS_ENCLOSURE_SLOT_MAPPING.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added missing MaxNumRoutedSasAddresses field to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * MPI2_CONFIG_PAGE_EXPANDER_0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added SAS Port Page 0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Modified structure layout for
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * MPI2_CONFIG_PAGE_DRIVER_MAPPING_0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 06-27-08 02.00.08 Changed MPI2_CONFIG_PAGE_RD_PDISK_1 to use
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * MPI2_RAID_PHYS_DISK1_PATH_MAX to size the array.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 10-02-08 02.00.09 Changed MPI2_RAID_PGAD_CONFIGNUM_MASK from 0x0000FFFF
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * to 0x000000FF.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added two new values for the Physical Disk Coercion Size
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * bits in the Flags field of Manufacturing Page 4.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added product-specific Manufacturing pages 16 to 31.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Modified Flags bits for controlling write cache on SATA
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * drives in IO Unit Page 1.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added new bit to AdditionalControlFlags of SAS IO Unit
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Page 1 to control Invalid Topology Correction.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added additional defines for RAID Volume Page 0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * VolumeStatusFlags field.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Modified meaning of RAID Volume Page 0 VolumeSettings
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * define for auto-configure of hot-swap drives.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added SupportedPhysDisks field to RAID Volume Page 1 and
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * added related defines.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added PhysDiskAttributes field (and related defines) to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * RAID Physical Disk Page 0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_SAS_PHYINFO_PHY_VACANT define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added three new DiscoveryStatus bits for SAS IO Unit
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Page 0 and SAS Expander Page 0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed multiplexing information from SAS IO Unit pages.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added BootDeviceWaitTime field to SAS IO Unit Page 4.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed Zone Address Resolved bit from PhyInfo and from
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Expander Page 0 Flags field.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added two new AccessStatus values to SAS Device Page 0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * for indicating routing problems. Added 3 reserved words
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * to this page.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * 01-19-09 02.00.10 Fixed defines for GPIOVal field of IO Unit Page 3.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Inserted missing reserved field into structure for IOC
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Page 6.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added more pending task bits to RAID Volume Page 0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * VolumeStatusFlags defines.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_PHYSDISK0_STATUS_FLAG_NOT_CERTIFIED define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added a new DiscoveryStatus bit for SAS IO Unit Page 0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * and SAS Expander Page 0 to flag a downstream initiator
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * when in simplified routing mode.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Removed SATA Init Failure defines for DiscoveryStatus
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * fields of SAS IO Unit Page 0 and SAS Expander Page 0.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added MPI2_SAS_DEVICE0_ASTATUS_DEVICE_BLOCKED define.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Added PortGroups, DmaGroup, and ControlGroup fields to
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * SAS Device Page 0.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * 05-06-09 02.00.11 Added structures and defines for IO Unit Page 5 and IO
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Unit Page 6.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added expander reduced functionality data to SAS
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Expander Page 0.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added SAS PHY Page 2 and SAS PHY Page 3.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * 07-30-09 02.00.12 Added IO Unit Page 7.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added new device ids.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added SAS IO Unit Page 5.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added partial and slumber power management capable flags
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * to SAS Device Page 0 Flags field.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added PhyInfo defines for power condition.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Added Ethernet configuration pages.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 10-28-09 02.00.13 Added MPI2_IOUNITPAGE1_ENABLE_HOST_BASED_DISCOVERY.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added SAS PHY Page 4 structure and defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 02-10-10 02.00.14 Modified the comments for the configuration page
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * structures that contain an array of data. The host
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * should use the "count" field in the page data (e.g. the
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * NumPhys field) to determine the number of valid elements
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * in the array.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added/modified some MPI2_MFGPAGE_DEVID_SAS defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added PowerManagementCapabilities to IO Unit Page 7.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added PortWidthModGroup field to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_SAS_IO_UNIT5_PHY_PM_SETTINGS.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_CONFIG_PAGE_SASIOUNIT_6 and related defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_CONFIG_PAGE_SASIOUNIT_7 and related defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_CONFIG_PAGE_SASIOUNIT_8 and related defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 05-12-10 02.00.15 Added MPI2_RAIDVOL0_STATUS_FLAG_VOL_NOT_CONSISTENT
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * define.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_PHYSDISK0_INCOMPATIBLE_MEDIA_TYPE define.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_SAS_NEG_LINK_RATE_UNSUPPORTED_PHY define.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 08-11-10 02.00.16 Removed IO Unit Page 1 device path (multi-pathing)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * defines.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 11-10-10 02.00.17 Added ReceptacleID field (replacing Reserved1) to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_MANPAGE7_CONNECTOR_INFO and reworked defines for
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * the Pinout field.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added BoardTemperature and BoardTemperatureUnits fields
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * to MPI2_CONFIG_PAGE_IO_UNIT_7.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_CONFIG_EXTPAGETYPE_EXT_MANUFACTURING define
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * and MPI2_CONFIG_PAGE_EXT_MAN_PS structure.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 02-23-11 02.00.18 Added ProxyVF_ID field to MPI2_CONFIG_REQUEST.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added IO Unit Page 8, IO Unit Page 9,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * and IO Unit Page 10.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added SASNotifyPrimitiveMasks field to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_CONFIG_PAGE_IOC_7.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 03-09-11 02.00.19 Fixed IO Unit Page 10 (to match the spec).
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 05-25-11 02.00.20 Cleaned up a few comments.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 08-24-11 02.00.21 Marked the IO Unit Page 7 PowerManagementCapabilities
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * for PCIe link as obsolete.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added SpinupFlags field containing a Disable Spin-up bit
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * to the MPI2_SAS_IOUNIT4_SPINUP_GROUP fields of SAS IO
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Unit Page 4.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 11-18-11 02.00.22 Added define MPI2_IOCPAGE6_CAP_FLAGS_4K_SECTORS_SUPPORT.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added UEFIVersion field to BIOS Page 1 and defined new
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * BiosOptions bits.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Incorporating additions for MPI v2.5.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 11-27-12 02.00.23 Added MPI2_MANPAGE7_FLAG_EVENTREPLAY_SLOT_ORDER.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_BIOSPAGE1_OPTIONS_MASK_OEM_ID.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 12-20-12 02.00.24 Marked MPI2_SASIOUNIT1_CONTROL_CLEAR_AFFILIATION as
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * obsolete for MPI v2.5 and later.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added some defines for 12G SAS speeds.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 04-09-13 02.00.25 Added MPI2_IOUNITPAGE1_ATA_SECURITY_FREEZE_LOCK.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Fixed MPI2_IOUNITPAGE5_DMA_CAP_MASK_MAX_REQUESTS to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * match the specification.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 08-19-13 02.00.26 Added reserved words to MPI2_CONFIG_PAGE_IO_UNIT_7 for
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * future use.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 12-05-13 02.00.27 Added MPI2_MANPAGE7_FLAG_BASE_ENCLOSURE_LEVEL for
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_CONFIG_PAGE_MAN_7.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added EnclosureLevel and ConnectorName fields to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_CONFIG_PAGE_SAS_DEV_0.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_SAS_DEVICE0_FLAGS_ENCL_LEVEL_VALID for
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_CONFIG_PAGE_SAS_DEV_0.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added EnclosureLevel field to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_CONFIG_PAGE_SAS_ENCLOSURE_0.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Added MPI2_SAS_ENCLS0_FLAGS_ENCL_LEVEL_VALID for
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * MPI2_CONFIG_PAGE_SAS_ENCLOSURE_0.
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_CNFG_H
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CNFG_H
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* Configuration Page Header and defines
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China*****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Config Page Header */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_HEADER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PageVersion; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PageLength; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PageNumber; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PageType; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_HEADER, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_HEADER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ConfigPageHeader_t, MPI2_POINTER pMpi2ConfigPageHeader_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef union _MPI2_CONFIG_PAGE_HEADER_UNION
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Struct;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Bytes[4];
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Word16[2];
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Word32;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_HEADER_UNION, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_HEADER_UNION,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ConfigPageHeaderUnion, MPI2_POINTER pMpi2ConfigPageHeaderUnion;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Extended Config Page Header */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_EXTENDED_PAGE_HEADER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PageVersion; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PageNumber; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PageType; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ExtPageLength; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ExtPageType; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_EXTENDED_PAGE_HEADER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_EXTENDED_PAGE_HEADER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ConfigExtendedPageHeader_t, MPI2_POINTER pMpi2ConfigExtendedPageHeader_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef union _MPI2_CONFIG_EXT_PAGE_HEADER_UNION
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Struct;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Ext;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Bytes[8];
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Word16[4];
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Word32[2];
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_EXT_PAGE_HEADER_UNION, MPI2_POINTER PTR_MPI2_CONFIG_EXT_PAGE_HEADER_UNION,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ConfigPageExtendedHeaderUnion, MPI2_POINTER pMpi2ConfigPageExtendedHeaderUnion;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PageType field values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGEATTR_READ_ONLY (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGEATTR_CHANGEABLE (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGEATTR_PERSISTENT (0x20)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGEATTR_MASK (0xF0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_IO_UNIT (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_IOC (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_BIOS (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_RAID_VOLUME (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_MANUFACTURING (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_RAID_PHYSDISK (0x0A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_EXTENDED (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_PAGETYPE_MASK (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_TYPENUM_MASK (0x0FFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* ExtPageType field values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_SAS_EXPANDER (0x11)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_SAS_DEVICE (0x12)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_SAS_PHY (0x13)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_LOG (0x14)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_ENCLOSURE (0x15)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_RAID_CONFIG (0x16)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_DRIVER_MAPPING (0x17)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_EXTPAGETYPE_SAS_PORT (0x18)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_CONFIG_EXTPAGETYPE_ETHERNET (0x19)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_CONFIG_EXTPAGETYPE_EXT_MANUFACTURING (0x1A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* PageAddress defines
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China*****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Volume PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOLUME_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOLUME_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOLUME_PGAD_FORM_HANDLE (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOLUME_PGAD_HANDLE_MASK (0x0000FFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Physical Disk PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK_PGAD_FORM_GET_NEXT_PHYSDISKNUM (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK_PGAD_FORM_PHYSDISKNUM (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK_PGAD_FORM_DEVHANDLE (0x20000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK_PGAD_PHYSDISKNUM_MASK (0x000000FF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK_PGAD_DEVHANDLE_MASK (0x0000FFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Expander PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPAND_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPAND_PGAD_FORM_HNDL_PHY_NUM (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPAND_PGAD_FORM_HNDL (0x20000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPAND_PGAD_HANDLE_MASK (0x0000FFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPAND_PGAD_PHYNUM_MASK (0x00FF0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPAND_PGAD_PHYNUM_SHIFT (16)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Device PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE_PGAD_FORM_HANDLE (0x20000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE_PGAD_HANDLE_MASK (0x0000FFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS PHY PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHY_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHY_PGAD_FORM_PHY_NUMBER (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHY_PGAD_FORM_PHY_TBL_INDEX (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHY_PGAD_PHY_NUMBER_MASK (0x000000FF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHY_PGAD_PHY_TBL_INDEX_MASK (0x0000FFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Port PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASPORT_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASPORT_PGAD_FORM_GET_NEXT_PORT (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASPORT_PGAD_FORM_PORT_NUM (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASPORT_PGAD_PORTNUMBER_MASK (0x00000FFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Enclosure PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLOS_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLOS_PGAD_FORM_GET_NEXT_HANDLE (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLOS_PGAD_FORM_HANDLE (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLOS_PGAD_HANDLE_MASK (0x0000FFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Configuration PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PGAD_FORM_GET_NEXT_CONFIGNUM (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PGAD_FORM_CONFIGNUM (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PGAD_FORM_ACTIVE_CONFIG (0x20000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PGAD_CONFIGNUM_MASK (0x000000FF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Driver Persistent Mapping PageAddress format */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DPM_PGAD_FORM_MASK (0xF0000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DPM_PGAD_FORM_ENTRY_RANGE (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DPM_PGAD_ENTRY_COUNT_MASK (0x0FFF0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DPM_PGAD_ENTRY_COUNT_SHIFT (16)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DPM_PGAD_START_ENTRY_MASK (0x0000FFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* Ethernet PageAddress format */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHERNET_PGAD_FORM_MASK (0xF0000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHERNET_PGAD_FORM_IF_NUM (0x00000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHERNET_PGAD_IF_NUMBER_MASK (0x000000FF)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* Configuration messages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Configuration Request Message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_REQUEST
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Action; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SGLFlags; /* 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 ExtPageLength; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ExtPageType; /* 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 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ProxyVF_ID; /* 0x0D */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PageAddress; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_SGE_IO_UNION PageBufferSGE; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_REQUEST, MPI2_POINTER PTR_MPI2_CONFIG_REQUEST,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ConfigRequest_t, MPI2_POINTER pMpi2ConfigRequest_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for the Action field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_HEADER (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_READ_CURRENT (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_DEFAULT (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_READ_DEFAULT (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_READ_NVRAM (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_CONFIG_ACTION_PAGE_GET_CHANGEABLE (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* use MPI2_SGLFLAGS_ defines from mpi2.h for the SGLFlags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Config Reply Message */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_REPLY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Action; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SGLFlags; /* 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 ExtPageLength; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ExtPageType; /* 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 Reserved2; /* 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_CONFIG_PAGE_HEADER Header; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_REPLY, MPI2_POINTER PTR_MPI2_CONFIG_REPLY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ConfigReply_t, MPI2_POINTER pMpi2ConfigReply_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/*****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* C o n f i g u r a t i o n P a g e s
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* Manufacturing Config pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_VENDORID_LSI (0x1000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.0 SAS products */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_DEVID_SAS2004 (0x0070)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_DEVID_SAS2008 (0x0072)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_DEVID_SAS2108_1 (0x0074)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_DEVID_SAS2108_2 (0x0076)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_DEVID_SAS2108_3 (0x0077)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_DEVID_SAS2116_1 (0x0064)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MFGPAGE_DEVID_SAS2116_2 (0x0065)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MFGPAGE_DEVID_SSS6200 (0x007E)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_MFGPAGE_DEVID_SAS2208_1 (0x0080)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_MFGPAGE_DEVID_SAS2208_2 (0x0081)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_MFGPAGE_DEVID_SAS2208_3 (0x0082)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_MFGPAGE_DEVID_SAS2208_4 (0x0083)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_MFGPAGE_DEVID_SAS2208_5 (0x0084)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_MFGPAGE_DEVID_SAS2208_6 (0x0085)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MFGPAGE_DEVID_SAS2308_1 (0x0086)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MFGPAGE_DEVID_SAS2308_2 (0x0087)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MFGPAGE_DEVID_SAS2308_3 (0x006E)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* MPI v2.5 SAS products */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_MFGPAGE_DEVID_SAS3004 (0x0096)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_MFGPAGE_DEVID_SAS3008 (0x0097)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_MFGPAGE_DEVID_SAS3108_1 (0x0090)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_MFGPAGE_DEVID_SAS3108_2 (0x0091)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_MFGPAGE_DEVID_SAS3108_5 (0x0094)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_MFGPAGE_DEVID_SAS3108_6 (0x0095)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChipName[16]; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChipRevision[8]; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 BoardName[16]; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 BoardAssembly[16]; /* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 BoardTracerNumber[16]; /* 0x3C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage0_t, MPI2_POINTER pMpi2ManufacturingPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING0_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VPD[256]; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage1_t, MPI2_POINTER pMpi2ManufacturingPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING1_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CHIP_REVISION_ID
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DeviceID; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PCIRevisionID; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CHIP_REVISION_ID, MPI2_POINTER PTR_MPI2_CHIP_REVISION_ID,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ChipRevisionId_t, MPI2_POINTER pMpi2ChipRevisionId_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 2 */
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 Header.PageLength at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_MAN_PAGE_2_HW_SETTINGS_WORDS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MAN_PAGE_2_HW_SETTINGS_WORDS (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_2
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CHIP_REVISION_ID ChipId; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 HwSettings[MPI2_MAN_PAGE_2_HW_SETTINGS_WORDS];/* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_2,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_2,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage2_t, MPI2_POINTER pMpi2ManufacturingPage2_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING2_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 3 */
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 Header.PageLength at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_MAN_PAGE_3_INFO_WORDS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MAN_PAGE_3_INFO_WORDS (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_3
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CHIP_REVISION_ID ChipId; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Info[MPI2_MAN_PAGE_3_INFO_WORDS];/* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_3,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_3,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage3_t, MPI2_POINTER pMpi2ManufacturingPage3_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING3_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 4 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_MANPAGE4_PWR_SAVE_SETTINGS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PowerSaveFlags; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 InternalOperationsSleepTime; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 InternalOperationsRunTime; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 HostIdleTime; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_MANPAGE4_PWR_SAVE_SETTINGS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_MANPAGE4_PWR_SAVE_SETTINGS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManPage4PwrSaveSettings_t, MPI2_POINTER pMpi2ManPage4PwrSaveSettings_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the PowerSaveFlags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_MASK_POWERSAVE_MODE (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_POWERSAVE_MODE_DISABLED (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_CUSTOM_POWERSAVE_MODE (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_FULL_POWERSAVE_MODE (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_4
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Flags; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 InquirySize; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x0D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 InquiryData[56]; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 RAID0VolumeSettings; /* 0x48 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 RAID1EVolumeSettings; /* 0x4C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 RAID1VolumeSettings; /* 0x50 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 RAID10VolumeSettings; /* 0x54 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x58 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x5C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_MANPAGE4_PWR_SAVE_SETTINGS PowerSaveSettings; /* 0x60 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxOCEDisks; /* 0x64 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ResyncRate; /* 0x65 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DataScrubDuration; /* 0x66 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxHotSpares; /* 0x68 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxPhysDisksPerVol; /* 0x69 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxPhysDisks; /* 0x6A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxVolumes; /* 0x6B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_4,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_4,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage4_t, MPI2_POINTER pMpi2ManufacturingPage4_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING4_PAGEVERSION (0x0A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 4 Flags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_METADATA_SIZE_MASK (0x00030000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_METADATA_512MB (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_MIX_SSD_SAS_SATA (0x00008000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_MIX_SSD_AND_NON_SSD (0x00004000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_HIDE_PHYSDISK_NON_IR (0x00002000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_MASK_PHYSDISK_COERCION (0x00001C00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_PHYSDISK_COERCION_1GB (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_PHYSDISK_128MB_COERCION (0x00000400)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_PHYSDISK_ADAPTIVE_COERCION (0x00000800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_PHYSDISK_ZERO_COERCION (0x00000C00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_MASK_BAD_BLOCK_MARKING (0x00000300)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_DEFAULT_BAD_BLOCK_MARKING (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_TABLE_BAD_BLOCK_MARKING (0x00000100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_WRITE_LONG_BAD_BLOCK_MARKING (0x00000200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_FORCE_OFFLINE_FAILOVER (0x00000080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_RAID10_DISABLE (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_RAID1E_DISABLE (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_RAID1_DISABLE (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_RAID0_DISABLE (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_IR_MODEPAGE8_DISABLE (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_IM_RESYNC_CACHE_ENABLE (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE4_IR_NO_MIX_SAS_SATA (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 5 */
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhys at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_MAN_PAGE_5_PHY_ENTRIES
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MAN_PAGE_5_PHY_ENTRIES (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_MANUFACTURING5_ENTRY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 WWID; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 DeviceName; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_MANUFACTURING5_ENTRY, MPI2_POINTER PTR_MPI2_MANUFACTURING5_ENTRY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2Manufacturing5Entry_t, MPI2_POINTER pMpi2Manufacturing5Entry_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_5
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
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 U32 Reserved3; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_MANUFACTURING5_ENTRY Phy[MPI2_MAN_PAGE_5_PHY_ENTRIES];/* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_5,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_5,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage5_t, MPI2_POINTER pMpi2ManufacturingPage5_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING5_PAGEVERSION (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 6 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_6
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ProductSpecificInfo;/* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_6,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_6,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage6_t, MPI2_POINTER pMpi2ManufacturingPage6_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING6_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Manufacturing Page 7 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_MANPAGE7_CONNECTOR_INFO
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Pinout; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Connector[16]; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Location; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ReceptacleID; /* 0x15 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Slot; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_MANPAGE7_CONNECTOR_INFO, MPI2_POINTER PTR_MPI2_MANPAGE7_CONNECTOR_INFO,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManPage7ConnectorInfo_t, MPI2_POINTER pMpi2ManPage7ConnectorInfo_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the Pinout field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_LANE_MASK (0x0000FF00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_LANE_SHIFT (8)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_TYPE_MASK (0x000000FF)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_TYPE_UNKNOWN (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SATA_SINGLE (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8482 (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8486 (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8484 (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8087 (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8643_4I (0x06)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8643_8I (0x07)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8470 (0x08)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8088 (0x09)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8644_4X (0x0A)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8644_8X (0x0B)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8644_16X (0x0C)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_PINOUT_SFF_8436 (0x0D)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the Location field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_LOCATION_UNKNOWN (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_LOCATION_INTERNAL (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_LOCATION_EXTERNAL (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_LOCATION_SWITCHABLE (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_LOCATION_AUTO (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_LOCATION_NOT_PRESENT (0x20)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_LOCATION_NOT_CONNECTED (0x80)
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhys at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_MANPAGE7_CONNECTOR_INFO_MAX
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_CONNECTOR_INFO_MAX (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_7
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 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 Flags; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 EnclosureName[16]; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhys; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x21 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x22 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_MANPAGE7_CONNECTOR_INFO ConnectorInfo[MPI2_MANPAGE7_CONNECTOR_INFO_MAX]; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_7,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_7,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPage7_t, MPI2_POINTER pMpi2ManufacturingPage7_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANUFACTURING7_PAGEVERSION (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_FLAG_BASE_ENCLOSURE_LEVEL (0x00000008)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_MANPAGE7_FLAG_EVENTREPLAY_SLOT_ORDER (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANPAGE7_FLAG_USE_SLOT_INFO (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Generic structure to use for product-specific manufacturing pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * (currently Manufacturing Page 8 through Manufacturing Page 31).
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_MAN_PS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ProductSpecificInfo;/* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_MAN_PS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_MAN_PS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ManufacturingPagePS_t, MPI2_POINTER pMpi2ManufacturingPagePS_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING8_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING9_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING10_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING11_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING12_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING13_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING14_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING15_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING16_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING17_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING18_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING19_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING20_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING21_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING22_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING23_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING24_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING25_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING26_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING27_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING28_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING29_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING30_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_MANUFACTURING31_PAGEVERSION (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* IO Unit Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IO Unit Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 UniqueValue; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_VERSION_UNION NvdataVersionDefault; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_VERSION_UNION NvdataVersionPersistent; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IO_UNIT_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOUnitPage0_t, MPI2_POINTER pMpi2IOUnitPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE0_PAGEVERSION (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IO Unit Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Flags; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IO_UNIT_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOUnitPage1_t, MPI2_POINTER pMpi2IOUnitPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_PAGEVERSION (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IO Unit Page 1 Flags defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE1_ATA_SECURITY_FREEZE_LOCK (0x00004000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE1_NEW_DEVICE_FAST_PATH_DISABLE (0x00002000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE1_DISABLE_FAST_PATH (0x00001000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE1_ENABLE_HOST_BASED_DISCOVERY (0x00000800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_MASK_SATA_WRITE_CACHE (0x00000600)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE1_SATA_WRITE_CACHE_SHIFT (9)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_ENABLE_SATA_WRITE_CACHE (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_DISABLE_SATA_WRITE_CACHE (0x00000200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_UNCHANGED_SATA_WRITE_CACHE (0x00000400)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_NATIVE_COMMAND_Q_DISABLE (0x00000100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_DISABLE_IR (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_DISABLE_TASK_SET_FULL_HANDLING (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE1_IR_USE_STATIC_VOLUME_ID (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IO Unit Page 3 */
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for GPIOCount at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_IO_UNIT_PAGE_3_GPIO_VAL_MAX
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IO_UNIT_PAGE_3_GPIO_VAL_MAX (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_3
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 GPIOCount; /* 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 U16 GPIOVal[MPI2_IO_UNIT_PAGE_3_GPIO_VAL_MAX];/* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IO_UNIT_3, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_3,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOUnitPage3_t, MPI2_POINTER pMpi2IOUnitPage3_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE3_PAGEVERSION (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for IO Unit Page 3 GPIOVal field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE3_GPIO_FUNCTION_MASK (0xFFFC)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE3_GPIO_FUNCTION_SHIFT (2)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE3_GPIO_SETTING_OFF (0x0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOUNITPAGE3_GPIO_SETTING_ON (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* IO Unit Page 5 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/*
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Upper layer code (drivers, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumDmaEngines at runtime.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#ifndef MPI2_IOUNITPAGE5_DMAENGINE_ENTRIES
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE5_DMAENGINE_ENTRIES (1)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#endif
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_5
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U64 RaidAcceleratorBufferBaseAddress; /* 0x04 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U64 RaidAcceleratorBufferSize; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U64 RaidAcceleratorControlBaseAddress; /* 0x14 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 RAControlSize; /* 0x1C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 NumDmaEngines; /* 0x1D */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 RAMinControlSize; /* 0x1E */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 RAMaxControlSize; /* 0x1F */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved1; /* 0x20 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved2; /* 0x24 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved3; /* 0x28 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 DmaEngineCapabilities[MPI2_IOUNITPAGE5_DMAENGINE_ENTRIES]; /* 0x2C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_IO_UNIT_5, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_5,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2IOUnitPage5_t, MPI2_POINTER pMpi2IOUnitPage5_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE5_PAGEVERSION (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for IO Unit Page 5 DmaEngineCapabilities field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE5_DMA_CAP_MASK_MAX_REQUESTS (0xFFFF0000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE5_DMA_CAP_SHIFT_MAX_REQUESTS (16)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE5_DMA_CAP_EEDP (0x0008)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE5_DMA_CAP_PARITY_GENERATION (0x0004)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE5_DMA_CAP_HASHING (0x0002)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE5_DMA_CAP_ENCRYPTION (0x0001)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* IO Unit Page 6 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_6
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Flags; /* 0x04 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 RAHostControlSize; /* 0x06 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved0; /* 0x07 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U64 RaidAcceleratorHostControlBaseAddress; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved1; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved2; /* 0x14 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved3; /* 0x18 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_IO_UNIT_6, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_6,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2IOUnitPage6_t, MPI2_POINTER pMpi2IOUnitPage6_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE6_PAGEVERSION (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for IO Unit Page 6 Flags field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE6_FLAGS_ENABLE_RAID_ACCELERATOR (0x0001)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* IO Unit Page 7 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_7
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 CurrentPowerMode; /* 0x04 */ /* reserved in MPI 2.0 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PreviousPowerMode; /* 0x05 */ /* reserved in MPI 2.0 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 PCIeWidth; /* 0x06 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 PCIeSpeed; /* 0x07 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 ProcessorState; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 PowerManagementCapabilities; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 IOCTemperature; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 IOCTemperatureUnits; /* 0x12 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 IOCSpeed; /* 0x13 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 BoardTemperature; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 BoardTemperatureUnits; /* 0x16 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved3; /* 0x17 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved4; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved5; /* 0x1C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved6; /* 0x20 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved7; /* 0x24 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_IO_UNIT_7, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_7,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2IOUnitPage7_t, MPI2_POINTER pMpi2IOUnitPage7_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PAGEVERSION (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for IO Unit Page 7 CurrentPowerMode and PreviousPowerMode fields */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_INIT_MASK (0xC0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_INIT_UNAVAILABLE (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_INIT_HOST (0x40)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_INIT_IO_UNIT (0x80)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_INIT_PCIE_DPA (0xC0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_MODE_MASK (0x07)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_MODE_UNAVAILABLE (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_MODE_UNKNOWN (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_MODE_FULL_POWER (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_MODE_REDUCED_POWER (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PM_MODE_STANDBY (0x06)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for IO Unit Page 7 PCIeWidth field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PCIE_WIDTH_X1 (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PCIE_WIDTH_X2 (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PCIE_WIDTH_X4 (0x04)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PCIE_WIDTH_X8 (0x08)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for IO Unit Page 7 PCIeSpeed field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PCIE_SPEED_2_5_GBPS (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PCIE_SPEED_5_0_GBPS (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PCIE_SPEED_8_0_GBPS (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for IO Unit Page 7 ProcessorState field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PSTATE_MASK_SECOND (0x0000000F)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PSTATE_SHIFT_SECOND (0)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PSTATE_NOT_PRESENT (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PSTATE_DISABLED (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_PSTATE_ENABLED (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for IO Unit Page 7 PowerManagementCapabilities field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_DPA_FULL_PWR_MODE (0x00400000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_DPA_REDUCED_PWR_MODE (0x00200000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_DPA_STANDBY_MODE (0x00100000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_HOST_FULL_PWR_MODE (0x00040000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_HOST_REDUCED_PWR_MODE (0x00020000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_HOST_STANDBY_MODE (0x00010000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_FULL_PWR_MODE (0x00004000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_REDUCED_PWR_MODE (0x00002000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_STANDBY_MODE (0x00001000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_HOST_12_5_PCT_IOCSPEED (0x00000400)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_HOST_25_0_PCT_IOCSPEED (0x00000200)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_HOST_50_0_PCT_IOCSPEED (0x00000100)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_12_5_PCT_IOCSPEED (0x00000040)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_25_0_PCT_IOCSPEED (0x00000020)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_50_0_PCT_IOCSPEED (0x00000010)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_HOST_WIDTH_CHANGE_PCIE (0x00000008) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_HOST_SPEED_CHANGE_PCIE (0x00000004) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_WIDTH_CHANGE_PCIE (0x00000002) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_IOUNITPAGE7_PMCAP_IO_SPEED_CHANGE_PCIE (0x00000001) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* obsolete names for the PowerManagementCapabilities bits (above) */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_12_5_PCT_IOCSPEED (0x00000400)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_25_0_PCT_IOCSPEED (0x00000200)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_50_0_PCT_IOCSPEED (0x00000100)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_PCIE_WIDTH_CHANGE (0x00000008) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_PMCAP_PCIE_SPEED_CHANGE (0x00000004) /* obsolete */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for IO Unit Page 7 IOCTemperatureUnits field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_IOC_TEMP_NOT_PRESENT (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_IOC_TEMP_FAHRENHEIT (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_IOC_TEMP_CELSIUS (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for IO Unit Page 7 IOCSpeed field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_IOC_SPEED_FULL (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_IOC_SPEED_HALF (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_IOC_SPEED_QUARTER (0x04)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_IOUNITPAGE7_IOC_SPEED_EIGHTH (0x08)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for IO Unit Page 7 BoardTemperatureUnits field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_BOARD_TEMP_NOT_PRESENT (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_BOARD_TEMP_FAHRENHEIT (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE7_BOARD_TEMP_CELSIUS (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* IO Unit Page 8 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNIT8_NUM_THRESHOLDS (4)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_IOUNIT8_SENSOR
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Flags; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Threshold[MPI2_IOUNIT8_NUM_THRESHOLDS]; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved3; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved4; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_IOUNIT8_SENSOR, MPI2_POINTER PTR_MPI2_IOUNIT8_SENSOR,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2IOUnit8Sensor_t, MPI2_POINTER pMpi2IOUnit8Sensor_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for IO Unit Page 8 Sensor Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNIT8_SENSOR_FLAGS_T3_ENABLE (0x0008)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNIT8_SENSOR_FLAGS_T2_ENABLE (0x0004)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNIT8_SENSOR_FLAGS_T1_ENABLE (0x0002)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNIT8_SENSOR_FLAGS_T0_ENABLE (0x0001)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumSensors at runtime.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#ifndef MPI2_IOUNITPAGE8_SENSOR_ENTRIES
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE8_SENSOR_ENTRIES (1)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#endif
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_8
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved1; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 NumSensors; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PollingInterval; /* 0x0D */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x0E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_IOUNIT8_SENSOR Sensor[MPI2_IOUNITPAGE8_SENSOR_ENTRIES];/* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_IO_UNIT_8, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_8,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2IOUnitPage8_t, MPI2_POINTER pMpi2IOUnitPage8_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE8_PAGEVERSION (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* IO Unit Page 9 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_IOUNIT9_SENSOR
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 CurrentTemperature; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Flags; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x05 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved4; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved5; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_IOUNIT9_SENSOR, MPI2_POINTER PTR_MPI2_IOUNIT9_SENSOR,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2IOUnit9Sensor_t, MPI2_POINTER pMpi2IOUnit9Sensor_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for IO Unit Page 9 Sensor Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNIT9_SENSOR_FLAGS_TEMP_VALID (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumSensors at runtime.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#ifndef MPI2_IOUNITPAGE9_SENSOR_ENTRIES
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE9_SENSOR_ENTRIES (1)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#endif
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_9
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved1; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 NumSensors; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved4; /* 0x0D */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x0E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_IOUNIT9_SENSOR Sensor[MPI2_IOUNITPAGE9_SENSOR_ENTRIES];/* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_IO_UNIT_9, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_9,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2IOUnitPage9_t, MPI2_POINTER pMpi2IOUnitPage9_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE9_PAGEVERSION (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* IO Unit Page 10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_IOUNIT10_FUNCTION
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 CreditPercent; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_IOUNIT10_FUNCTION, MPI2_POINTER PTR_MPI2_IOUNIT10_FUNCTION,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2IOUnit10Function_t, MPI2_POINTER pMpi2IOUnit10Function_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumFunctions at runtime.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#ifndef MPI2_IOUNITPAGE10_FUNCTION_ENTRIES
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE10_FUNCTION_ENTRIES (1)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#endif
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_IO_UNIT_10
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 NumFunctions; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x05 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved3; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved4; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_IOUNIT10_FUNCTION Function[MPI2_IOUNITPAGE10_FUNCTION_ENTRIES]; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_IO_UNIT_10, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IO_UNIT_10,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2IOUnitPage10_t, MPI2_POINTER pMpi2IOUnitPage10_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOUNITPAGE10_PAGEVERSION (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* IOC Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOC Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IOC_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 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 U16 VendorID; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DeviceID; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 RevisionID; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x11 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x12 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ClassCode; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SubsystemVendorID; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SubsystemID; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IOC_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IOC_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCPage0_t, MPI2_POINTER pMpi2IOCPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE0_PAGEVERSION (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOC Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IOC_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Flags; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 CoalescingTimeout; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 CoalescingDepth; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PCISlotNum; /* 0x0D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PCIBusNum; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PCIDomainSegment; /* 0x0F */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IOC_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IOC_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCPage1_t, MPI2_POINTER pMpi2IOCPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE1_PAGEVERSION (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for IOC Page 1 Flags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE1_REPLY_COALESCING (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE1_PCISLOTNUM_UNKNOWN (0xFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE1_PCIBUSNUM_UNKNOWN (0xFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE1_PCIDOMAIN_UNKNOWN (0xFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOC Page 6 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IOC_6
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 CapabilitiesFlags; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxDrivesRAID0; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxDrivesRAID1; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxDrivesRAID1E; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxDrivesRAID10; /* 0x0B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MinDrivesRAID0; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MinDrivesRAID1; /* 0x0D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MinDrivesRAID1E; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MinDrivesRAID10; /* 0x0F */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxGlobalHotSpares; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxPhysDisks; /* 0x15 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxVolumes; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxConfigs; /* 0x17 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxOCEDisks; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x19 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 SupportedStripeSizeMapRAID0; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 SupportedStripeSizeMapRAID1E; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 SupportedStripeSizeMapRAID10; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DefaultMetadataSize; /* 0x30 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved6; /* 0x32 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxBadBlockTableEntries; /* 0x34 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved7; /* 0x36 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IRNvsramVersion; /* 0x38 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IOC_6, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IOC_6,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCPage6_t, MPI2_POINTER pMpi2IOCPage6_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOCPAGE6_PAGEVERSION (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for IOC Page 6 CapabilitiesFlags */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOCPAGE6_CAP_FLAGS_4K_SECTORS_SUPPORT (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE6_CAP_FLAGS_RAID10_SUPPORT (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE6_CAP_FLAGS_RAID1_SUPPORT (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE6_CAP_FLAGS_RAID1E_SUPPORT (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE6_CAP_FLAGS_RAID0_SUPPORT (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE6_CAP_FLAGS_GLOBAL_HOT_SPARE (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOC Page 7 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE7_EVENTMASK_WORDS (4)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IOC_7
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 EventMasks[MPI2_IOCPAGE7_EVENTMASK_WORDS];/* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SASBroadcastPrimitiveMasks; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 SASNotifyPrimitiveMasks; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IOC_7, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IOC_7,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCPage7_t, MPI2_POINTER pMpi2IOCPage7_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_IOCPAGE7_PAGEVERSION (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IOC Page 8 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_IOC_8
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumDevsPerEnclosure; /* 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 U16 MaxPersistentEntries; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxNumPhysicalMappedIDs; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Flags; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IRVolumeMappingFlags; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x12 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_IOC_8, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_IOC_8,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2IOCPage8_t, MPI2_POINTER pMpi2IOCPage8_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for IOC Page 8 Flags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_FLAGS_DA_START_SLOT_1 (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_FLAGS_RESERVED_TARGETID_0 (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_FLAGS_MASK_MAPPING_MODE (0x0000000E)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_FLAGS_DEVICE_PERSISTENCE_MAPPING (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_FLAGS_ENCLOSURE_SLOT_MAPPING (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_FLAGS_DISABLE_PERSISTENT_MAPPING (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_FLAGS_ENABLE_PERSISTENT_MAPPING (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for IOC Page 8 IRVolumeMappingFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_IRFLAGS_MASK_VOLUME_MAPPING_MODE (0x00000003)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_IRFLAGS_LOW_VOLUME_MAPPING (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_IOCPAGE8_IRFLAGS_HIGH_VOLUME_MAPPING (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* BIOS Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* BIOS Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_BIOS_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 BiosOptions; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 IOCSettings; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 DeviceSettings; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 NumberOfDevices; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 UEFIVersion; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOTimeoutBlockDevicesNonRM; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOTimeoutSequential; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOTimeoutOther; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 IOTimeoutBlockDevicesRM; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_BIOS_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_BIOS_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BiosPage1_t, MPI2_POINTER pMpi2BiosPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_PAGEVERSION (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for BIOS Page 1 BiosOptions field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_OPTIONS_MASK_OEM_ID (0x000000F0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_OPTIONS_LSI_OEM_ID (0x00000000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_OPTIONS_MASK_UEFI_HII_REGISTRATION (0x00000006)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_OPTIONS_ENABLE_UEFI_HII (0x00000000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_OPTIONS_DISABLE_UEFI_HII (0x00000002)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_OPTIONS_VERSION_CHECK_UEFI_HII (0x00000004)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_OPTIONS_DISABLE_BIOS (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for BIOS Page 1 IOCSettings field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_MASK_BOOT_PREFERENCE (0x00030000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_ENCLOSURE_SLOT_BOOT (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_SAS_ADDRESS_BOOT (0x00010000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_MASK_RM_SETTING (0x000000C0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_NONE_RM_SETTING (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_BOOT_RM_SETTING (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_MEDIA_RM_SETTING (0x00000080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_MASK_ADAPTER_SUPPORT (0x00000030)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_NO_SUPPORT (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_BIOS_SUPPORT (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_OS_SUPPORT (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_ALL_SUPPORT (0x00000030)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_IOCSET_ALTERNATE_CHS (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for BIOS Page 1 DeviceSettings field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_DEVSET_DISABLE_SMART_POLLING (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_DEVSET_DISABLE_SEQ_LUN (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_DEVSET_DISABLE_RM_LUN (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_DEVSET_DISABLE_NON_RM_LUN (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE1_DEVSET_DISABLE_OTHER_LUN (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for BIOS Page 1 UEFIVersion field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_UEFI_VER_MAJOR_MASK (0xFF00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_UEFI_VER_MAJOR_SHIFT (8)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_UEFI_VER_MINOR_MASK (0x00FF)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_BIOSPAGE1_UEFI_VER_MINOR_SHIFT (0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* BIOS Page 2 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_BOOT_DEVICE_ADAPTER_ORDER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved6; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_BOOT_DEVICE_ADAPTER_ORDER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_BOOT_DEVICE_ADAPTER_ORDER,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BootDeviceAdapterOrder_t, MPI2_POINTER pMpi2BootDeviceAdapterOrder_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_BOOT_DEVICE_SAS_WWID
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 LUN[8]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_BOOT_DEVICE_SAS_WWID, MPI2_POINTER PTR_MPI2_BOOT_DEVICE_SAS_WWID,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BootDeviceSasWwid_t, MPI2_POINTER pMpi2BootDeviceSasWwid_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_BOOT_DEVICE_ENCLOSURE_SLOT
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 EnclosureLogicalID; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SlotNumber; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x12 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_BOOT_DEVICE_ENCLOSURE_SLOT,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_BOOT_DEVICE_ENCLOSURE_SLOT,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BootDeviceEnclosureSlot_t, MPI2_POINTER pMpi2BootDeviceEnclosureSlot_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_BOOT_DEVICE_DEVICE_NAME
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 DeviceName; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 LUN[8]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_BOOT_DEVICE_DEVICE_NAME, MPI2_POINTER PTR_MPI2_BOOT_DEVICE_DEVICE_NAME,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BootDeviceDeviceName_t, MPI2_POINTER pMpi2BootDeviceDeviceName_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef union _MPI2_MPI2_BIOSPAGE2_BOOT_DEVICE
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_BOOT_DEVICE_ADAPTER_ORDER AdapterOrder;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_BOOT_DEVICE_SAS_WWID SasWwid;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_BOOT_DEVICE_ENCLOSURE_SLOT EnclosureSlot;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_BOOT_DEVICE_DEVICE_NAME DeviceName;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_BIOSPAGE2_BOOT_DEVICE, MPI2_POINTER PTR_MPI2_BIOSPAGE2_BOOT_DEVICE,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BiosPage2BootDevice_t, MPI2_POINTER pMpi2BiosPage2BootDevice_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_BIOS_2
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 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 U32 Reserved4; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved5; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved6; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReqBootDeviceForm; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved7; /* 0x1D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved8; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_BIOSPAGE2_BOOT_DEVICE RequestedBootDevice; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReqAltBootDeviceForm; /* 0x38 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved9; /* 0x39 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved10; /* 0x3A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_BIOSPAGE2_BOOT_DEVICE RequestedAltBootDevice; /* 0x3C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 CurrentBootDeviceForm; /* 0x58 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved11; /* 0x59 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved12; /* 0x5A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_BIOSPAGE2_BOOT_DEVICE CurrentBootDevice; /* 0x58 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_BIOS_2, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_BIOS_2,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BiosPage2_t, MPI2_POINTER pMpi2BiosPage2_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE2_PAGEVERSION (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for BIOS Page 2 BootDeviceForm fields */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE2_FORM_MASK (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE2_FORM_NO_DEVICE_SPECIFIED (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE2_FORM_SAS_WWID (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE2_FORM_ENCLOSURE_SLOT (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE2_FORM_DEVICE_NAME (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* BIOS Page 3 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_ADAPTER_INFO
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PciBusNumber; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PciDeviceAndFunctionNumber; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 AdapterFlags; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_ADAPTER_INFO, MPI2_POINTER PTR_MPI2_ADAPTER_INFO,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2AdapterInfo_t, MPI2_POINTER pMpi2AdapterInfo_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_ADAPTER_INFO_FLAGS_EMBEDDED (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_ADAPTER_INFO_FLAGS_INIT_STATUS (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_BIOS_3
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 GlobalFlags; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 BiosVersion; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_ADAPTER_INFO AdapterOrder[4]; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_BIOS_3, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_BIOS_3,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BiosPage3_t, MPI2_POINTER pMpi2BiosPage3_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for BIOS Page 3 GlobalFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_FLAGS_PAUSE_ON_ERROR (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_FLAGS_VERBOSE_ENABLE (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_FLAGS_HOOK_INT_40_DISABLE (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_FLAGS_DEV_LIST_DISPLAY_MASK (0x000000E0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_FLAGS_INSTALLED_DEV_DISPLAY (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_FLAGS_ADAPTER_DISPLAY (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE3_FLAGS_ADAPTER_DEV_DISPLAY (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* BIOS Page 4 */
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhys at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_BIOS_PAGE_4_PHY_ENTRIES
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOS_PAGE_4_PHY_ENTRIES (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_BIOS4_ENTRY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 ReassignmentWWID; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 ReassignmentDeviceName; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_BIOS4_ENTRY, MPI2_POINTER PTR_MPI2_BIOS4_ENTRY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2MBios4Entry_t, MPI2_POINTER pMpi2Bios4Entry_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_BIOS_4
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
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 MPI2_BIOS4_ENTRY Phy[MPI2_BIOS_PAGE_4_PHY_ENTRIES]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_BIOS_4, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_BIOS_4,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2BiosPage4_t, MPI2_POINTER pMpi2BiosPage4_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_BIOSPAGE4_PAGEVERSION (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* RAID Volume Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Volume Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_RAIDVOL0_PHYS_DISK
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 RAIDSetNum; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskMap; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskNum; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_RAIDVOL0_PHYS_DISK, MPI2_POINTER PTR_MPI2_RAIDVOL0_PHYS_DISK,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidVol0PhysDisk_t, MPI2_POINTER pMpi2RaidVol0PhysDisk_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for the PhysDiskMap field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_PHYSDISK_PRIMARY (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_PHYSDISK_SECONDARY (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_RAIDVOL0_SETTINGS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Settings; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 HotSparePool; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_RAIDVOL0_SETTINGS, MPI2_POINTER PTR_MPI2_RAIDVOL0_SETTINGS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidVol0Settings_t, MPI2_POINTER pMpi2RaidVol0Settings_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Volume Page 0 HotSparePool defines, also used in RAID Physical Disk */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_0 (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_1 (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_2 (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_3 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_4 (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_5 (0x20)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_6 (0x40)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_HOT_SPARE_POOL_7 (0x80)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Volume Page 0 VolumeSettings defines */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SETTING_USE_PRODUCT_ID_SUFFIX (0x0008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SETTING_AUTO_CONFIG_HSWAP_DISABLE (0x0004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SETTING_MASK_WRITE_CACHING (0x0003)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SETTING_UNCHANGED (0x0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SETTING_DISABLE_WRITE_CACHING (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SETTING_ENABLE_WRITE_CACHING (0x0002)
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhysDisks at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_RAID_VOL_PAGE_0_PHYSDISK_MAX
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_PAGE_0_PHYSDISK_MAX (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_RAID_VOL_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VolumeState; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VolumeType; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 VolumeStatusFlags; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_RAIDVOL0_SETTINGS VolumeSettings; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 MaxLBA; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 StripeSize; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 BlockSize; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SupportedPhysDisks; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ResyncRate; /* 0x21 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DataScrubDuration; /* 0x22 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhysDisks; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x25 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x26 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 InactiveStatus; /* 0x27 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_RAIDVOL0_PHYS_DISK PhysDisk[MPI2_RAID_VOL_PAGE_0_PHYSDISK_MAX]; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_RAID_VOL_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_RAID_VOL_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidVolPage0_t, MPI2_POINTER pMpi2RaidVolPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_PAGEVERSION (0x0A)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for RAID VolumeState */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_STATE_MISSING (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_STATE_FAILED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_STATE_INITIALIZING (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_STATE_ONLINE (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_STATE_DEGRADED (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_STATE_OPTIMAL (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for RAID VolumeType */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_TYPE_RAID0 (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_TYPE_RAID1E (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_TYPE_RAID1 (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_TYPE_RAID10 (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_VOL_TYPE_UNKNOWN (0xFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for RAID Volume Page 0 VolumeStatusFlags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_PENDING_RESYNC (0x02000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_BACKG_INIT_PENDING (0x01000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_MDC_PENDING (0x00800000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_USER_CONSIST_PENDING (0x00400000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_MAKE_DATA_CONSISTENT (0x00200000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_DATA_SCRUB (0x00100000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_CONSISTENCY_CHECK (0x00080000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_CAPACITY_EXPANSION (0x00040000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_BACKGROUND_INIT (0x00020000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_RESYNC_IN_PROGRESS (0x00010000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_RAIDVOL0_STATUS_FLAG_VOL_NOT_CONSISTENT (0x00000080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_OCE_ALLOWED (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_BGI_COMPLETE (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_1E_OFFSET_MIRROR (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_1E_ADJACENT_MIRROR (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_BAD_BLOCK_TABLE_FULL (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_VOLUME_INACTIVE (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_QUIESCED (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_STATUS_FLAG_ENABLED (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for RAID Volume Page 0 SupportedPhysDisks field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SUPPORT_SOLID_STATE_DISKS (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SUPPORT_HARD_DISKS (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SUPPORT_SAS_PROTOCOL (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOL0_SUPPORT_SATA_PROTOCOL (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for RAID Volume Page 0 InactiveStatus field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_UNKNOWN_INACTIVE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_STALE_METADATA_INACTIVE (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_FOREIGN_VOLUME_INACTIVE (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_INSUFFICIENT_RESOURCE_INACTIVE (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_CLONE_VOLUME_INACTIVE (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_INSUFFICIENT_METADATA_INACTIVE (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE0_PREVIOUSLY_DELETED (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Volume Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_RAID_VOL_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved0; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 GUID[24]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Name[16]; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 WWID; /* 0x30 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x38 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x3C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_RAID_VOL_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_RAID_VOL_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidVolPage1_t, MPI2_POINTER pMpi2RaidVolPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDVOLPAGE1_PAGEVERSION (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* RAID Physical Disk Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Physical Disk Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_RAIDPHYSDISK0_SETTINGS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 HotSparePool; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_RAIDPHYSDISK0_SETTINGS, MPI2_POINTER PTR_MPI2_RAIDPHYSDISK0_SETTINGS,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidPhysDisk0Settings_t, MPI2_POINTER pMpi2RaidPhysDisk0Settings_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_RAID_HOT_SPARE_POOL_ defines for the HotSparePool field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_RAIDPHYSDISK0_INQUIRY_DATA
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 VendorID[8]; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ProductID[16]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ProductRevLevel[4]; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SerialNum[32]; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_RAIDPHYSDISK0_INQUIRY_DATA,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_RAIDPHYSDISK0_INQUIRY_DATA,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidPhysDisk0InquiryData_t, MPI2_POINTER pMpi2RaidPhysDisk0InquiryData_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_RD_PDISK_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskNum; /* 0x07 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_RAIDPHYSDISK0_SETTINGS PhysDiskSettings; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_RAIDPHYSDISK0_INQUIRY_DATA InquiryData; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x4C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskState; /* 0x50 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 OfflineReason; /* 0x51 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 IncompatibleReason; /* 0x52 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskAttributes; /* 0x53 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PhysDiskStatusFlags; /* 0x54 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 DeviceMaxLBA; /* 0x58 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 HostMaxLBA; /* 0x60 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 CoercedMaxLBA; /* 0x68 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 BlockSize; /* 0x70 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x72 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved6; /* 0x74 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_RD_PDISK_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_RD_PDISK_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidPhysDiskPage0_t, MPI2_POINTER pMpi2RaidPhysDiskPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDPHYSDISKPAGE0_PAGEVERSION (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PhysDiskState defines */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_NOT_CONFIGURED (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_NOT_COMPATIBLE (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_OFFLINE (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_ONLINE (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_HOT_SPARE (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_DEGRADED (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_REBUILDING (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PD_STATE_OPTIMAL (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* OfflineReason defines */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_ONLINE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_OFFLINE_MISSING (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_OFFLINE_FAILED (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_OFFLINE_INITIALIZING (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_OFFLINE_REQUESTED (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_OFFLINE_FAILED_REQUESTED (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_OFFLINE_OTHER (0xFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* IncompatibleReason defines */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_COMPATIBLE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_INCOMPATIBLE_PROTOCOL (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_INCOMPATIBLE_BLOCKSIZE (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_INCOMPATIBLE_MAX_LBA (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_INCOMPATIBLE_SATA_EXTENDED_CMD (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_INCOMPATIBLE_REMOVEABLE_MEDIA (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PHYSDISK0_INCOMPATIBLE_MEDIA_TYPE (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_INCOMPATIBLE_UNKNOWN (0xFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PhysDiskAttributes defines */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PHYSDISK0_ATTRIB_MEDIA_MASK (0x0C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_ATTRIB_SOLID_STATE_DRIVE (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_ATTRIB_HARD_DISK_DRIVE (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_PHYSDISK0_ATTRIB_PROTOCOL_MASK (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_ATTRIB_SAS_PROTOCOL (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_ATTRIB_SATA_PROTOCOL (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* PhysDiskStatusFlags defines */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_NOT_CERTIFIED (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_OCE_TARGET (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_WRITE_CACHE_ENABLED (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_OPTIMAL_PREVIOUS (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_NOT_OPTIMAL_PREVIOUS (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_INACTIVE_VOLUME (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_QUIESCED (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_PHYSDISK0_STATUS_FLAG_OUT_OF_SYNC (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Physical Disk Page 1 */
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhysDiskPaths at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_RAID_PHYS_DISK1_PATH_MAX
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PHYS_DISK1_PATH_MAX (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_RAIDPHYSDISK1_PATH
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 WWID; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 OwnerWWID; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 OwnerIdentifier; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x15 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Flags; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_RAIDPHYSDISK1_PATH, MPI2_POINTER PTR_MPI2_RAIDPHYSDISK1_PATH,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidPhysDisk1Path_t, MPI2_POINTER pMpi2RaidPhysDisk1Path_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Physical Disk Page 1 Physical Disk Path Flags field defines */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PHYSDISK1_FLAG_PRIMARY (0x0004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PHYSDISK1_FLAG_BROKEN (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAID_PHYSDISK1_FLAG_INVALID (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_RD_PDISK_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhysDiskPaths; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysDiskNum; /* 0x05 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x06 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_RAIDPHYSDISK1_PATH PhysicalDiskPath[MPI2_RAID_PHYS_DISK1_PATH_MAX];/* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_RD_PDISK_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_RD_PDISK_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidPhysDiskPage1_t, MPI2_POINTER pMpi2RaidPhysDiskPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDPHYSDISKPAGE1_PAGEVERSION (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* values for fields used by several types of SAS Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for NegotiatedLinkRates fields */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_MASK_LOGICAL (0xF0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_SHIFT_LOGICAL (4)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_MASK_PHYSICAL (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* link rates used for Negotiated Physical and Logical Link Rate */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_UNKNOWN_LINK_RATE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_PHY_DISABLED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_NEGOTIATION_FAILED (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_SATA_OOB_COMPLETE (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_PORT_SELECTOR (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_SMP_RESET_IN_PROGRESS (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SAS_NEG_LINK_RATE_UNSUPPORTED_PHY (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_1_5 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_3_0 (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_NEG_LINK_RATE_6_0 (0x0A)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SAS_NEG_LINK_RATE_12_0 (0x0B)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for AttachedPhyInfo fields */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_INSIDE_ZPSDS_PERSISTENT (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REQUESTED_INSIDE_ZPSDS (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_BREAK_REPLY_CAPABLE (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_MASK (0x0000000F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_UNKNOWN (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_POWER_ON (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_HARD_RESET (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_SMP_PHY_CONTROL (0x00000003)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_LOSS_OF_SYNC (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_MULTIPLEXING_SEQ (0x00000005)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_IT_NEXUS_LOSS_TIMER (0x00000006)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_BREAK_TIMEOUT (0x00000007)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_APHYINFO_REASON_PHY_TEST_STOPPED (0x00000008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for PhyInfo fields */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_PHY_VACANT (0x80000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_PHYINFO_PHY_POWER_CONDITION_MASK (0x18000000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SAS_PHYINFO_SHIFT_PHY_POWER_CONDITION (27)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_PHYINFO_PHY_POWER_ACTIVE (0x00000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_PHYINFO_PHY_POWER_PARTIAL (0x08000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_PHYINFO_PHY_POWER_SLUMBER (0x10000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_CHANGED_REQ_INSIDE_ZPSDS (0x04000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_INSIDE_ZPSDS_PERSISTENT (0x02000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REQ_INSIDE_ZPSDS (0x01000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_ZONE_GROUP_PERSISTENT (0x00400000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_INSIDE_ZPSDS (0x00200000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_ZONING_ENABLED (0x00100000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_MASK (0x000F0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_UNKNOWN (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_POWER_ON (0x00010000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_HARD_RESET (0x00020000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_SMP_PHY_CONTROL (0x00030000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_LOSS_OF_SYNC (0x00040000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_MULTIPLEXING_SEQ (0x00050000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_IT_NEXUS_LOSS_TIMER (0x00060000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_BREAK_TIMEOUT (0x00070000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_REASON_PHY_TEST_STOPPED (0x00080000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_MULTIPLEXING_SUPPORTED (0x00008000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_SATA_PORT_ACTIVE (0x00004000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_SATA_PORT_SELECTOR_PRESENT (0x00002000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_VIRTUAL_PHY (0x00001000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_MASK_PARTIAL_PATHWAY_TIME (0x00000F00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_SHIFT_PARTIAL_PATHWAY_TIME (8)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_MASK_ROUTING_ATTRIBUTE (0x000000F0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_DIRECT_ROUTING (0x00000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_SUBTRACTIVE_ROUTING (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHYINFO_TABLE_ROUTING (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS ProgrammedLinkRate fields */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MAX_RATE_MASK (0xF0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MAX_RATE_NOT_PROGRAMMABLE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MAX_RATE_1_5 (0x80)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MAX_RATE_3_0 (0x90)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MAX_RATE_6_0 (0xA0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SAS_PRATE_MAX_RATE_12_0 (0xB0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MIN_RATE_MASK (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MIN_RATE_NOT_PROGRAMMABLE (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MIN_RATE_1_5 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MIN_RATE_3_0 (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PRATE_MIN_RATE_6_0 (0x0A)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SAS_PRATE_MIN_RATE_12_0 (0x0B)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS HwLinkRate fields */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MAX_RATE_MASK (0xF0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MAX_RATE_1_5 (0x80)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MAX_RATE_3_0 (0x90)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MAX_RATE_6_0 (0xA0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SAS_HWRATE_MAX_RATE_12_0 (0xB0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MIN_RATE_MASK (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MIN_RATE_1_5 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MIN_RATE_3_0 (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_HWRATE_MIN_RATE_6_0 (0x0A)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SAS_HWRATE_MIN_RATE_12_0 (0x0B)
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* SAS IO Unit Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS IO Unit Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_SAS_IO_UNIT0_PHY_DATA
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Port; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortFlags; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhyFlags; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NegotiatedLinkRate; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ControllerPhyDeviceInfo;/* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 AttachedDevHandle; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ControllerDevHandle; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 DiscoveryStatus; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_SAS_IO_UNIT0_PHY_DATA, MPI2_POINTER PTR_MPI2_SAS_IO_UNIT0_PHY_DATA,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasIOUnit0PhyData_t, MPI2_POINTER pMpi2SasIOUnit0PhyData_t;
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhys at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_SAS_IOUNIT0_PHY_MAX
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_IOUNIT0_PHY_MAX (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhys; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x0D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_SAS_IO_UNIT0_PHY_DATA PhyData[MPI2_SAS_IOUNIT0_PHY_MAX]; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SASIOUNIT_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasIOUnitPage0_t, MPI2_POINTER pMpi2SasIOUnitPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNITPAGE0_PAGEVERSION (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS IO Unit Page 0 PortFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_PORTFLAGS_DISCOVERY_IN_PROGRESS (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_PORTFLAGS_AUTO_PORT_CONFIG (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS IO Unit Page 0 PhyFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_PHYFLAGS_ZONING_ENABLED (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_PHYFLAGS_PHY_DISABLED (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* see mpi2_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS IO Unit Page 0 DiscoveryStatus */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_MAX_ENCLOSURES_EXCEED (0x80000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_MAX_EXPANDERS_EXCEED (0x40000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_MAX_DEVICES_EXCEED (0x20000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_MAX_TOPO_PHYS_EXCEED (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_DOWNSTREAM_INITIATOR (0x08000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_MULTI_SUBTRACTIVE_SUBTRACTIVE (0x00008000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_EXP_MULTI_SUBTRACTIVE (0x00004000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_MULTI_PORT_DOMAIN (0x00002000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_TABLE_TO_SUBTRACTIVE_LINK (0x00001000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_UNSUPPORTED_DEVICE (0x00000800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_TABLE_LINK (0x00000400)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_SUBTRACTIVE_LINK (0x00000200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_SMP_CRC_ERROR (0x00000100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_SMP_FUNCTION_FAILED (0x00000080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_INDEX_NOT_EXIST (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_OUT_ROUTE_ENTRIES (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_SMP_TIMEOUT (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_MULTIPLE_PORTS (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_UNADDRESSABLE_DEVICE (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT0_DS_LOOP_DETECTED (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS IO Unit Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_SAS_IO_UNIT1_PHY_DATA
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Port; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortFlags; /* 0x01 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhyFlags; /* 0x02 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxMinLinkRate; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 ControllerPhyDeviceInfo; /* 0x04 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxTargetPortConnectTime; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_SAS_IO_UNIT1_PHY_DATA, MPI2_POINTER PTR_MPI2_SAS_IO_UNIT1_PHY_DATA,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasIOUnit1PhyData_t, MPI2_POINTER pMpi2SasIOUnit1PhyData_t;
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhys at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_SAS_IOUNIT1_PHY_MAX
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_IOUNIT1_PHY_MAX (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ControlFlags; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SASNarrowMaxQueueDepth; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 AdditionalControlFlags; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SASWideMaxQueueDepth; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhys; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SATAMaxQDepth; /* 0x11 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReportDeviceMissingDelay; /* 0x12 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 IODeviceMissingDelay; /* 0x13 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_SAS_IO_UNIT1_PHY_DATA PhyData[MPI2_SAS_IOUNIT1_PHY_MAX]; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SASIOUNIT_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasIOUnitPage1_t, MPI2_POINTER pMpi2SasIOUnitPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNITPAGE1_PAGEVERSION (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS IO Unit Page 1 ControlFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_DEVICE_SELF_TEST (0x8000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SATA_3_0_MAX (0x4000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT1_CONTROL_SATA_1_5_MAX (0x2000) /* MPI v2.0 only. Obsolete in MPI v2.5 and later. */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SATA_SW_PRESERVE (0x1000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_MASK_DEV_SUPPORT (0x0600)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SHIFT_DEV_SUPPORT (9)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_DEV_SUPPORT_BOTH (0x0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_DEV_SAS_SUPPORT (0x1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_DEV_SATA_SUPPORT (0x2)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SATA_48BIT_LBA_REQUIRED (0x0080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SATA_SMART_REQUIRED (0x0040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SATA_NCQ_REQUIRED (0x0020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SATA_FUA_REQUIRED (0x0010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_TABLE_SUBTRACTIVE_ILLEGAL (0x0008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_SUBTRACTIVE_ILLEGAL (0x0004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_CONTROL_FIRST_LVL_DISC_ONLY (0x0002)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT1_CONTROL_CLEAR_AFFILIATION (0x0001) /* MPI v2.0 only. Obsolete in MPI v2.5 and later. */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS IO Unit Page 1 AdditionalControlFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_MULTI_PORT_DOMAIN_ILLEGAL (0x0080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_SATA_ASYNCHROUNOUS_NOTIFICATION (0x0040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_INVALID_TOPOLOGY_CORRECTION (0x0020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_PORT_ENABLE_ONLY_SATA_LINK_RESET (0x0010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_OTHER_AFFILIATION_SATA_LINK_RESET (0x0008)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_SELF_AFFILIATION_SATA_LINK_RESET (0x0004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_NO_AFFILIATION_SATA_LINK_RESET (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_ACONTROL_ALLOW_TABLE_TO_TABLE (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for SAS IO Unit Page 1 ReportDeviceMissingDelay */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_REPORT_MISSING_TIMEOUT_MASK (0x7F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_REPORT_MISSING_UNIT_16 (0x80)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS IO Unit Page 1 PortFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_PORT_FLAGS_AUTO_PORT_CONFIG (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for SAS IO Unit Page 1 PhyFlags */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_PHYFLAGS_ZONING_ENABLE (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_PHYFLAGS_PHY_DISABLE (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for SAS IO Unit Page 1 MaxMinLinkRate */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MAX_RATE_MASK (0xF0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MAX_RATE_1_5 (0x80)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MAX_RATE_3_0 (0x90)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MAX_RATE_6_0 (0xA0)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SASIOUNIT1_MAX_RATE_12_0 (0xB0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MIN_RATE_MASK (0x0F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MIN_RATE_1_5 (0x08)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MIN_RATE_3_0 (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT1_MIN_RATE_6_0 (0x0A)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SASIOUNIT1_MIN_RATE_12_0 (0x0B)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* see mpi2_sas.h for values for SAS IO Unit Page 1 ControllerPhyDeviceInfo values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS IO Unit Page 4 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_SAS_IOUNIT4_SPINUP_GROUP
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxTargetSpinup; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SpinupDelay; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 SpinupFlags; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x03 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_SAS_IOUNIT4_SPINUP_GROUP, MPI2_POINTER PTR_MPI2_SAS_IOUNIT4_SPINUP_GROUP,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasIOUnit4SpinupGroup_t, MPI2_POINTER pMpi2SasIOUnit4SpinupGroup_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for SAS IO Unit Page 4 SpinupFlags */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT4_SPINUP_DISABLE_FLAG (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/*
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhys at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_SAS_IOUNIT4_PHY_MAX
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_IOUNIT4_PHY_MAX (4)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT_4
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_SAS_IOUNIT4_SPINUP_GROUP SpinupGroupParameters[4]; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 BootDeviceWaitTime; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved4; /* 0x25 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved5; /* 0x26 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhys; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PEInitialSpinupDelay; /* 0x29 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PEReplyDelay; /* 0x2A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Flags; /* 0x2B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PHY[MPI2_SAS_IOUNIT4_PHY_MAX]; /* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SASIOUNIT_4,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT_4,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasIOUnitPage4_t, MPI2_POINTER pMpi2SasIOUnitPage4_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNITPAGE4_PAGEVERSION (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for Flags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT4_FLAGS_AUTO_PORTENABLE (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* defines for PHY field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASIOUNIT4_PHY_SPINUP_GROUP_MASK (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* SAS IO Unit Page 5 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_SAS_IO_UNIT5_PHY_PM_SETTINGS
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 ControlFlags; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 PortWidthModGroup; /* 0x01 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 InactivityTimerExponent; /* 0x02 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 SATAPartialTimeout; /* 0x04 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved2; /* 0x05 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 SATASlumberTimeout; /* 0x06 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved3; /* 0x07 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 SASPartialTimeout; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved4; /* 0x09 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 SASSlumberTimeout; /* 0x0A */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved5; /* 0x0B */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_SAS_IO_UNIT5_PHY_PM_SETTINGS,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_POINTER PTR_MPI2_SAS_IO_UNIT5_PHY_PM_SETTINGS,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2SasIOUnit5PhyPmSettings_t, MPI2_POINTER pMpi2SasIOUnit5PhyPmSettings_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for ControlFlags field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_CONTROL_SAS_SLUMBER_ENABLE (0x08)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_CONTROL_SAS_PARTIAL_ENABLE (0x04)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_CONTROL_SATA_SLUMBER_ENABLE (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_CONTROL_SATA_PARTIAL_ENABLE (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for PortWidthModeGroup field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT5_PWMG_DISABLE (0xFF)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* defines for InactivityTimerExponent field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_MASK_SAS_SLUMBER (0x7000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_SHIFT_SAS_SLUMBER (12)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_MASK_SAS_PARTIAL (0x0700)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_SHIFT_SAS_PARTIAL (8)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_MASK_SATA_SLUMBER (0x0070)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_SHIFT_SATA_SLUMBER (4)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_MASK_SATA_PARTIAL (0x0007)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_SHIFT_SATA_PARTIAL (0)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_TEN_SECONDS (7)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_ONE_SECOND (6)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_HUNDRED_MILLISECONDS (5)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_TEN_MILLISECONDS (4)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_ONE_MILLISECOND (3)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_HUNDRED_MICROSECONDS (2)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_TEN_MICROSECONDS (1)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASIOUNIT5_ITE_ONE_MICROSECOND (0)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/*
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhys at runtime.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#ifndef MPI2_SAS_IOUNIT5_PHY_MAX
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_IOUNIT5_PHY_MAX (1)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#endif
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT_5
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 NumPhys; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved1; /* 0x09 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved2; /* 0x0A */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved3; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_SAS_IO_UNIT5_PHY_PM_SETTINGS SASPhyPowerManagementSettings[MPI2_SAS_IOUNIT5_PHY_MAX]; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_SASIOUNIT_5,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT_5,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2SasIOUnitPage5_t, MPI2_POINTER pMpi2SasIOUnitPage5_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNITPAGE5_PAGEVERSION (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS IO Unit Page 6 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_SAS_IO_UNIT6_PORT_WIDTH_MOD_GROUP_STATUS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 CurrentStatus; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 CurrentModulation; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 CurrentUtilization; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_SAS_IO_UNIT6_PORT_WIDTH_MOD_GROUP_STATUS,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_SAS_IO_UNIT6_PORT_WIDTH_MOD_GROUP_STATUS,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SasIOUnit6PortWidthModGroupStatus_t,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER pMpi2SasIOUnit6PortWidthModGroupStatus_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for CurrentStatus field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_UNAVAILABLE (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_UNCONFIGURED (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_INVALID_CONFIG (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_LINK_DOWN (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_OBSERVATION_ONLY (0x04)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_INACTIVE (0x05)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_ACTIVE_IOUNIT (0x06)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_STATUS_ACTIVE_HOST (0x07)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for CurrentModulation field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_MODULATION_25_PERCENT (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_MODULATION_50_PERCENT (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_MODULATION_75_PERCENT (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT6_MODULATION_100_PERCENT (0x03)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumGroups at runtime.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#ifndef MPI2_SAS_IOUNIT6_GROUP_MAX
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SAS_IOUNIT6_GROUP_MAX (1)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#endif
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT_6
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved1; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 NumGroups; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved3; /* 0x11 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x12 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_SAS_IO_UNIT6_PORT_WIDTH_MOD_GROUP_STATUS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles PortWidthModulationGroupStatus[MPI2_SAS_IOUNIT6_GROUP_MAX]; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_SASIOUNIT_6,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT_6,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SasIOUnitPage6_t, MPI2_POINTER pMpi2SasIOUnitPage6_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNITPAGE6_PAGEVERSION (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS IO Unit Page 7 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_SAS_IO_UNIT7_PORT_WIDTH_MOD_GROUP_SETTINGS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Flags; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved1; /* 0x01 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved2; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Threshold75Pct; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Threshold50Pct; /* 0x05 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Threshold25Pct; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved3; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_SAS_IO_UNIT7_PORT_WIDTH_MOD_GROUP_SETTINGS,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_SAS_IO_UNIT7_PORT_WIDTH_MOD_GROUP_SETTINGS,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SasIOUnit7PortWidthModGroupSettings_t,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER pMpi2SasIOUnit7PortWidthModGroupSettings_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT7_FLAGS_ENABLE_PORT_WIDTH_MODULATION (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumGroups at runtime.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#ifndef MPI2_SAS_IOUNIT7_GROUP_MAX
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SAS_IOUNIT7_GROUP_MAX (1)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#endif
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT_7
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 SamplingInterval; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 WindowLength; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved3; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 NumGroups; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved4; /* 0x15 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved5; /* 0x16 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_SAS_IO_UNIT7_PORT_WIDTH_MOD_GROUP_SETTINGS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles PortWidthModulationGroupSettings[MPI2_SAS_IOUNIT7_GROUP_MAX]; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_SASIOUNIT_7,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT_7,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SasIOUnitPage7_t, MPI2_POINTER pMpi2SasIOUnitPage7_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNITPAGE7_PAGEVERSION (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS IO Unit Page 8 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT_8
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved1; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 PowerManagementCapabilities; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 TxRxSleepStatus; /* 0x10 */ /* reserved in MPI 2.0 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x11 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x12 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_SASIOUNIT_8,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT_8,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SasIOUnitPage8_t, MPI2_POINTER pMpi2SasIOUnitPage8_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNITPAGE8_PAGEVERSION (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for PowerManagementCapabilities field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_HOST_PORT_WIDTH_MOD (0x00001000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_HOST_SAS_SLUMBER_MODE (0x00000800)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_HOST_SAS_PARTIAL_MODE (0x00000400)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_HOST_SATA_SLUMBER_MODE (0x00000200)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_HOST_SATA_PARTIAL_MODE (0x00000100)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_IOUNIT_PORT_WIDTH_MOD (0x00000010)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_IOUNIT_SAS_SLUMBER_MODE (0x00000008)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_IOUNIT_SAS_PARTIAL_MODE (0x00000004)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_IOUNIT_SATA_SLUMBER_MODE (0x00000002)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNIT8_PM_IOUNIT_SATA_PARTIAL_MODE (0x00000001)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* defines for TxRxSleepStatus field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SASIOUNIT8_TXRXSLEEP_UNSUPPORTED (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SASIOUNIT8_TXRXSLEEP_DISENGAGED (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SASIOUNIT8_TXRXSLEEP_ACTIVE (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SASIOUNIT8_TXRXSLEEP_SHUTDOWN (0x03)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS IO Unit Page 16 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_SASIOUNIT16
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U64 TimeStamp; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved1; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved2; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 FastPathPendedRequests; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 FastPathUnPendedRequests; /* 0x1C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 FastPathHostRequestStarts; /* 0x20 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 FastPathFirmwareRequestStarts; /* 0x24 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 FastPathHostCompletions; /* 0x28 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 FastPathFirmwareCompletions; /* 0x2C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 NonFastPathRequestStarts; /* 0x30 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 NonFastPathHostCompletions; /* 0x30 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_SASIOUNIT16,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SASIOUNIT16,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SasIOUnitPage16_t, MPI2_POINTER pMpi2SasIOUnitPage16_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASIOUNITPAGE16_PAGEVERSION (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* SAS Expander Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Expander Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_EXPANDER_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ReportGenLength; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 EnclosureHandle; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 DiscoveryStatus; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ParentDevHandle; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ExpanderChangeCount; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ExpanderRouteIndexes; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhys; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SASLevel; /* 0x21 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Flags; /* 0x22 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 STPBusInactivityTimeLimit; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 STPMaxConnectTimeLimit; /* 0x26 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 STP_SMP_NexusLossTime; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MaxNumRoutedSasAddresses; /* 0x2A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 ActiveZoneManagerSASAddress;/* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ZoneLockInactivityLimit; /* 0x34 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x36 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 TimeToReducedFunc; /* 0x38 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 InitialTimeToReducedFunc; /* 0x39 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 MaxReducedFuncTime; /* 0x3A */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved2; /* 0x3B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_EXPANDER_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_EXPANDER_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ExpanderPage0_t, MPI2_POINTER pMpi2ExpanderPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASEXPANDER0_PAGEVERSION (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS Expander Page 0 DiscoveryStatus field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_MAX_ENCLOSURES_EXCEED (0x80000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_MAX_EXPANDERS_EXCEED (0x40000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_MAX_DEVICES_EXCEED (0x20000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_MAX_TOPO_PHYS_EXCEED (0x10000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_DOWNSTREAM_INITIATOR (0x08000000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_MULTI_SUBTRACTIVE_SUBTRACTIVE (0x00008000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_EXP_MULTI_SUBTRACTIVE (0x00004000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_MULTI_PORT_DOMAIN (0x00002000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_TABLE_TO_SUBTRACTIVE_LINK (0x00001000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_UNSUPPORTED_DEVICE (0x00000800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_TABLE_LINK (0x00000400)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_SUBTRACTIVE_LINK (0x00000200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_SMP_CRC_ERROR (0x00000100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_SMP_FUNCTION_FAILED (0x00000080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_INDEX_NOT_EXIST (0x00000040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_OUT_ROUTE_ENTRIES (0x00000020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_SMP_TIMEOUT (0x00000010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_MULTIPLE_PORTS (0x00000004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_UNADDRESSABLE_DEVICE (0x00000002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_DS_LOOP_DETECTED (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS Expander Page 0 Flags field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_EXPANDER0_FLAGS_REDUCED_FUNCTIONALITY (0x2000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_ZONE_LOCKED (0x1000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_SUPPORTED_PHYSICAL_PRES (0x0800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_ASSERTED_PHYSICAL_PRES (0x0400)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_ZONING_SUPPORT (0x0200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_ENABLED_ZONING (0x0100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_TABLE_TO_TABLE_SUPPORT (0x0080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_CONNECTOR_END_DEVICE (0x0010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_OTHERS_CONFIG (0x0004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_CONFIG_IN_PROGRESS (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER0_FLAGS_ROUTE_TABLE_CONFIG (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Expander Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_EXPANDER_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhys; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Phy; /* 0x0D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 NumTableEntriesProgrammed; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ProgrammedLinkRate; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 HwLinkRate; /* 0x11 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 AttachedDevHandle; /* 0x12 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PhyInfo; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 AttachedDeviceInfo; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ExpanderDevHandle; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChangeCount; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NegotiatedLinkRate; /* 0x1F */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhyIdentifier; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 AttachedPhyIdentifier; /* 0x21 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x22 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 DiscoveryInfo; /* 0x23 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 AttachedPhyInfo; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ZoneGroup; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 SelfConfigStatus; /* 0x29 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x2A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_EXPANDER_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_EXPANDER_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2ExpanderPage1_t, MPI2_POINTER pMpi2ExpanderPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASEXPANDER1_PAGEVERSION (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_PRATE_ defines for the ProgrammedLinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_HWRATE_ defines for the HwLinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_PHYINFO_ for the PhyInfo field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* see mpi2_sas.h for the MPI2_SAS_DEVICE_INFO_ defines used for the AttachedDeviceInfo field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS Expander Page 1 DiscoveryInfo field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER1_DISCINFO_BAD_PHY_DISABLED (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER1_DISCINFO_LINK_STATUS_CHANGE (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_EXPANDER1_DISCINFO_NO_ROUTING_ENTRIES (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* SAS Device Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Device Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SAS_DEV_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Slot; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 EnclosureHandle; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 ParentDevHandle; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhyNum; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 AccessStatus; /* 0x17 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 AttachedPhyIdentifier; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ZoneGroup; /* 0x1B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 DeviceInfo; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Flags; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x22 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 MaxPortConnections; /* 0x23 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 DeviceName; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortGroups; /* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 DmaGroup; /* 0x2D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ControlGroup; /* 0x2E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 EnclosureLevel; /* 0x2F */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ConnectorName[4]; /* 0x30 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x34 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SAS_DEV_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_DEV_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasDevicePage0_t, MPI2_POINTER pMpi2SasDevicePage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASDEVICE0_PAGEVERSION (0x09)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS Device Page 0 AccessStatus field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_NO_ERRORS (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SATA_INIT_FAILED (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SATA_CAPABILITY_FAILED (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SATA_AFFILIATION_CONFLICT (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SATA_NEEDS_INITIALIZATION (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_ROUTE_NOT_ADDRESSABLE (0x05)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SMP_ERROR_NOT_ADDRESSABLE (0x06)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_DEVICE_BLOCKED (0x07)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* specific values for SATA Init failures */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_UNKNOWN (0x10)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_AFFILIATION_CONFLICT (0x11)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_DIAG (0x12)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_IDENTIFICATION (0x13)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_CHECK_POWER (0x14)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_PIO_SN (0x15)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_MDMA_SN (0x16)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_UDMA_SN (0x17)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_ZONING_VIOLATION (0x18)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_NOT_ADDRESSABLE (0x19)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_ASTATUS_SIF_MAX (0x1F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* see mpi2_sas.h for values for SAS Device Page 0 DeviceInfo values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS Device Page 0 Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SAS_DEVICE0_FLAGS_UNAUTHORIZED_DEVICE (0x8000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SAS_DEVICE0_FLAGS_ENABLED_FAST_PATH (0x4000)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI25_SAS_DEVICE0_FLAGS_FAST_PATH_CAPABLE (0x2000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_DEVICE0_FLAGS_SLUMBER_PM_CAPABLE (0x1000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SAS_DEVICE0_FLAGS_PARTIAL_PM_CAPABLE (0x0800)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_SATA_ASYNCHRONOUS_NOTIFY (0x0400)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_SATA_SW_PRESERVE (0x0200)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_UNSUPPORTED_DEVICE (0x0100)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_SATA_48BIT_LBA_SUPPORTED (0x0080)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_SATA_SMART_SUPPORTED (0x0040)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_SATA_NCQ_SUPPORTED (0x0020)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_SATA_FUA_SUPPORTED (0x0010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_PORT_SELECTOR_ATTACH (0x0008)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SAS_DEVICE0_FLAGS_ENCL_LEVEL_VALID (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_DEVICE0_FLAGS_DEVICE_PRESENT (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Device Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SAS_DEV_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DevHandle; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x1A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 InitialRegDeviceFIS[20];/* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SAS_DEV_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_DEV_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasDevicePage1_t, MPI2_POINTER pMpi2SasDevicePage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASDEVICE1_PAGEVERSION (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* SAS PHY Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS PHY Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SAS_PHY_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 OwnerDevHandle; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved1; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 AttachedDevHandle; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 AttachedPhyIdentifier; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x0F */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 AttachedPhyInfo; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ProgrammedLinkRate; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 HwLinkRate; /* 0x15 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ChangeCount; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Flags; /* 0x17 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PhyInfo; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NegotiatedLinkRate; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved3; /* 0x1D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved4; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SAS_PHY_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_PHY_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasPhyPage0_t, MPI2_POINTER pMpi2SasPhyPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASPHY0_PAGEVERSION (0x03)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* use MPI2_SAS_APHYINFO_ defines for AttachedPhyInfo field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_PRATE_ defines for the ProgrammedLinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_HWRATE_ defines for the HwLinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS PHY Page 0 Flags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_PHY0_FLAGS_SGPIO_DIRECT_ATTACH_ENC (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* use MPI2_SAS_PHYINFO_ for the PhyInfo field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* use MPI2_SAS_NEG_LINK_RATE_ defines for the NegotiatedLinkRate field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS PHY Page 1 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SAS_PHY_1
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 InvalidDwordCount; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 RunningDisparityErrorCount; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 LossDwordSynchCount; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PhyResetProblemCount; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SAS_PHY_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_PHY_1,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasPhyPage1_t, MPI2_POINTER pMpi2SasPhyPage1_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASPHY1_PAGEVERSION (0x01)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* SAS PHY Page 2 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_SASPHY2_PHY_EVENT
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 PhyEventCode; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved1; /* 0x01 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved2; /* 0x02 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 PhyEventInfo; /* 0x04 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_SASPHY2_PHY_EVENT, MPI2_POINTER PTR_MPI2_SASPHY2_PHY_EVENT,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2SasPhy2PhyEvent_t, MPI2_POINTER pMpi2SasPhy2PhyEvent_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* use MPI2_SASPHY3_EVENT_CODE_ for the PhyEventCode field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/*
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhyEvents at runtime.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#ifndef MPI2_SASPHY2_PHY_EVENT_MAX
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY2_PHY_EVENT_MAX (1)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#endif
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_SAS_PHY_2
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved1; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 NumPhyEvents; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved2; /* 0x0D */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved3; /* 0x0E */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_SASPHY2_PHY_EVENT PhyEvent[MPI2_SASPHY2_PHY_EVENT_MAX]; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_SAS_PHY_2, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_PHY_2,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2SasPhyPage2_t, MPI2_POINTER pMpi2SasPhyPage2_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY2_PAGEVERSION (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* SAS PHY Page 3 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_SASPHY3_PHY_EVENT_CONFIG
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 PhyEventCode; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved1; /* 0x01 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved2; /* 0x02 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 CounterType; /* 0x04 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 ThresholdWindow; /* 0x05 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 TimeUnits; /* 0x06 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved3; /* 0x07 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 EventThreshold; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 ThresholdFlags; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved4; /* 0x0E */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_SASPHY3_PHY_EVENT_CONFIG, MPI2_POINTER PTR_MPI2_SASPHY3_PHY_EVENT_CONFIG,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2SasPhy3PhyEventConfig_t, MPI2_POINTER pMpi2SasPhy3PhyEventConfig_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for PhyEventCode field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_NO_EVENT (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_INVALID_DWORD (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RUNNING_DISPARITY_ERROR (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_LOSS_DWORD_SYNC (0x03)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_PHY_RESET_PROBLEM (0x04)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_ELASTICITY_BUF_OVERFLOW (0x05)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_ERROR (0x06)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_ADDR_FRAME_ERROR (0x20)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_AC_OPEN_REJECT (0x21)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_AC_OPEN_REJECT (0x22)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_RC_OPEN_REJECT (0x23)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_RC_OPEN_REJECT (0x24)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_AIP_PARTIAL_WAITING_ON (0x25)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_AIP_CONNECT_WAITING_ON (0x26)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_BREAK (0x27)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_BREAK (0x28)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_BREAK_TIMEOUT (0x29)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_CONNECTION (0x2A)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_PEAKTX_PATHWAY_BLOCKED (0x2B)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_PEAKTX_ARB_WAIT_TIME (0x2C)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_PEAK_ARB_WAIT_TIME (0x2D)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_PEAK_CONNECT_TIME (0x2E)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_SSP_FRAMES (0x40)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_SSP_FRAMES (0x41)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_SSP_ERROR_FRAMES (0x42)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_SSP_ERROR_FRAMES (0x43)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_CREDIT_BLOCKED (0x44)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_CREDIT_BLOCKED (0x45)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_SATA_FRAMES (0x50)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_SATA_FRAMES (0x51)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_SATA_OVERFLOW (0x52)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_TX_SMP_FRAMES (0x60)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_SMP_FRAMES (0x61)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_SMP_ERROR_FRAMES (0x63)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_HOTPLUG_TIMEOUT (0xD0)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_MISALIGNED_MUX_PRIMITIVE (0xD1)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_EVENT_CODE_RX_AIP (0xD2)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for the CounterType field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_COUNTER_TYPE_WRAPPING (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_COUNTER_TYPE_SATURATING (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_COUNTER_TYPE_PEAK_VALUE (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for the TimeUnits field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_TIME_UNITS_10_MICROSECONDS (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_TIME_UNITS_100_MICROSECONDS (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_TIME_UNITS_1_MILLISECOND (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_TIME_UNITS_10_MILLISECONDS (0x03)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for the ThresholdFlags field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_TFLAGS_PHY_RESET (0x0002)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_TFLAGS_EVENT_NOTIFY (0x0001)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/*
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada * Host code (drivers, BIOS, utilities, etc.) should leave this define set to
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumPhyEvents at runtime.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#ifndef MPI2_SASPHY3_PHY_EVENT_MAX
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_PHY_EVENT_MAX (1)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#endif
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_SAS_PHY_3
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved1; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 NumPhyEvents; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved2; /* 0x0D */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved3; /* 0x0E */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_SASPHY3_PHY_EVENT_CONFIG PhyEventConfig[MPI2_SASPHY3_PHY_EVENT_MAX]; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_SAS_PHY_3, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_PHY_3,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2SasPhyPage3_t, MPI2_POINTER pMpi2SasPhyPage3_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_SASPHY3_PAGEVERSION (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* SAS PHY Page 4 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_SAS_PHY_4
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Flags; /* 0x0B */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 InitialFrame[28]; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_SAS_PHY_4, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_PHY_4,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2SasPhyPage4_t, MPI2_POINTER pMpi2SasPhyPage4_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASPHY4_PAGEVERSION (0x00)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* values for the Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASPHY4_FLAGS_FRAME_VALID (0x02)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASPHY4_FLAGS_SATA_FRAME (0x01)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* SAS Port Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Port Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SAS_PORT_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortNumber; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPort; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PortWidth; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 PhysicalPortWidth; /* 0x0B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ZoneGroup; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved1; /* 0x0D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved2; /* 0x0E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 SASAddress; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 DeviceInfo; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x1C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SAS_PORT_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_PORT_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasPortPage0_t, MPI2_POINTER pMpi2SasPortPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SASPORT0_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* see mpi2_sas.h for values for SAS Port Page 0 DeviceInfo values */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* SAS Enclosure Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* SAS Enclosure Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_SAS_ENCLOSURE_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 EnclosureLogicalID; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Flags; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 EnclosureHandle; /* 0x16 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 NumSlots; /* 0x18 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 StartSlot; /* 0x1A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x1C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 EnclosureLevel; /* 0x1D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 SEPDevHandle; /* 0x1E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved3; /* 0x20 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved4; /* 0x24 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_SAS_ENCLOSURE_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_SAS_ENCLOSURE_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2SasEnclosurePage0_t, MPI2_POINTER pMpi2SasEnclosurePage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SASENCLOSURE0_PAGEVERSION (0x04)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for SAS Enclosure Page 0 Flags field */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_SAS_ENCLS0_FLAGS_ENCL_LEVEL_VALID (0x0010)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLS0_FLAGS_MNG_MASK (0x000F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLS0_FLAGS_MNG_UNKNOWN (0x0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLS0_FLAGS_MNG_IOC_SES (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLS0_FLAGS_MNG_IOC_SGPIO (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLS0_FLAGS_MNG_EXP_SGPIO (0x0003)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLS0_FLAGS_MNG_SES_ENCLOSURE (0x0004)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_SAS_ENCLS0_FLAGS_MNG_IOC_GPIO (0x0005)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* Log Config Page
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Log Page 0 */
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumLogEntries at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_LOG_0_NUM_LOG_ENTRIES
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_NUM_LOG_ENTRIES (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_LOG_DATA_LENGTH (0x1C)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_LOG_0_ENTRY
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_LOG_0_LOG_DATA_LENGTH];/* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_LOG_0_ENTRY, MPI2_POINTER PTR_MPI2_LOG_0_ENTRY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2Log0Entry_t, MPI2_POINTER pMpi2Log0Entry_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for Log Page 0 LogEntry LogEntryQualifier field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_ENTRY_QUAL_ENTRY_UNUSED (0x0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_ENTRY_QUAL_POWER_ON_RESET (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_ENTRY_QUAL_TIMESTAMP_UPDATE (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_ENTRY_QUAL_MIN_IMPLEMENT_SPEC (0x8000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_ENTRY_QUAL_MAX_IMPLEMENT_SPEC (0xFFFF)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_LOG_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved2; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 NumLogEntries; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x12 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_LOG_0_ENTRY LogEntry[MPI2_LOG_0_NUM_LOG_ENTRIES]; /* 0x14 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_LOG_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_LOG_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2LogPage0_t, MPI2_POINTER pMpi2LogPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_LOG_0_PAGEVERSION (0x02)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* RAID Config Page
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* RAID Page 0 */
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
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * one and check the value returned for NumElements at runtime.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#ifndef MPI2_RAIDCONFIG0_MAX_ELEMENTS
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_MAX_ELEMENTS (1)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_RAIDCONFIG0_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 HotSparePool; /* 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_RAIDCONFIG0_CONFIG_ELEMENT,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_RAIDCONFIG0_CONFIG_ELEMENT,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidConfig0ConfigElement_t, MPI2_POINTER pMpi2RaidConfig0ConfigElement_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for the ElementFlags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_EFLAGS_MASK_ELEMENT_TYPE (0x000F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_EFLAGS_VOLUME_ELEMENT (0x0000)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_EFLAGS_VOL_PHYS_DISK_ELEMENT (0x0001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_EFLAGS_HOT_SPARE_ELEMENT (0x0002)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_EFLAGS_OCE_ELEMENT (0x0003)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_RAID_CONFIGURATION_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumHotSpares; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumPhysDisks; /* 0x09 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumVolumes; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ConfigNum; /* 0x0B */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Flags; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 ConfigGUID[24]; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x28 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 NumElements; /* 0x2C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U8 Reserved2; /* 0x2D */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 Reserved3; /* 0x2E */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_RAIDCONFIG0_CONFIG_ELEMENT ConfigElement[MPI2_RAIDCONFIG0_MAX_ELEMENTS]; /* 0x30 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_RAID_CONFIGURATION_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_RAID_CONFIGURATION_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2RaidConfigurationPage0_t, MPI2_POINTER pMpi2RaidConfigurationPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for RAID Configuration Page 0 Flags field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_RAIDCONFIG0_FLAG_FOREIGN_CONFIG (0x00000001)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/****************************************************************************
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China* Driver Persistent Mapping Config Pages
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China****************************************************************************/
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* Driver Persistent Mapping Page 0 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_DRIVER_MAP0_ENTRY
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U64 PhysicalIdentifier; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 MappingInformation; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U16 DeviceIndex; /* 0x0A */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 PhysicalBitsMapping; /* 0x0C */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China U32 Reserved1; /* 0x10 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_DRIVER_MAP0_ENTRY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_DRIVER_MAP0_ENTRY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2DriverMap0Entry_t, MPI2_POINTER pMpi2DriverMap0Entry_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinatypedef struct _MPI2_CONFIG_PAGE_DRIVER_MAPPING_0
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China{
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_CONFIG_PAGE_DRIVER_MAP0_ENTRY Entry; /* 0x08 */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China} MPI2_CONFIG_PAGE_DRIVER_MAPPING_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China MPI2_POINTER PTR_MPI2_CONFIG_PAGE_DRIVER_MAPPING_0,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China Mpi2DriverMappingPage0_t, MPI2_POINTER pMpi2DriverMappingPage0_t;
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DRIVERMAPPING0_PAGEVERSION (0x00)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China/* values for Driver Persistent Mapping Page 0 MappingInformation field */
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DRVMAP0_MAPINFO_SLOT_MASK (0x07F0)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DRVMAP0_MAPINFO_SLOT_SHIFT (4)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#define MPI2_DRVMAP0_MAPINFO_MISSING_MASK (0x000F)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/****************************************************************************
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada* Ethernet Config Pages
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada****************************************************************************/
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* Ethernet Page 0 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* IP address (union of IPv4 and IPv6) */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef union _MPI2_ETHERNET_IP_ADDR
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 IPv4Addr;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 IPv6Addr[4];
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_ETHERNET_IP_ADDR, MPI2_POINTER PTR_MPI2_ETHERNET_IP_ADDR,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2EthernetIpAddr_t, MPI2_POINTER pMpi2EthernetIpAddr_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHERNET_HOST_NAME_LENGTH (32)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_ETHERNET_0
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 NumInterfaces; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved0; /* 0x09 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved1; /* 0x0A */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Status; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 MediaState; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved2; /* 0x11 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved3; /* 0x12 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 MacAddress[6]; /* 0x14 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved4; /* 0x1A */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved5; /* 0x1B */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR IpAddress; /* 0x1C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR SubnetMask; /* 0x2C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR GatewayIpAddress; /* 0x3C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR DNS1IpAddress; /* 0x4C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR DNS2IpAddress; /* 0x5C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR DhcpIpAddress; /* 0x6C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 HostName[MPI2_ETHERNET_HOST_NAME_LENGTH];/* 0x7C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_ETHERNET_0, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_ETHERNET_0,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2EthernetPage0_t, MPI2_POINTER pMpi2EthernetPage0_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHERNETPAGE0_PAGEVERSION (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for Ethernet Page 0 Status field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_IPV6_CAPABLE (0x80000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_IPV4_CAPABLE (0x40000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_CONSOLE_CONNECTED (0x20000000)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_DEFAULT_IF (0x00000100)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_FW_DWNLD_ENABLED (0x00000080)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_TELNET_ENABLED (0x00000040)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_SSH2_ENABLED (0x00000020)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_DHCP_CLIENT_ENABLED (0x00000010)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_IPV6_ENABLED (0x00000008)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_IPV4_ENABLED (0x00000004)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_IPV6_ADDRESSES (0x00000002)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_STATUS_ETH_IF_ENABLED (0x00000001)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for Ethernet Page 0 MediaState field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_DUPLEX_MASK (0x80)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_HALF_DUPLEX (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_FULL_DUPLEX (0x80)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_CONNECT_SPEED_MASK (0x07)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_NOT_CONNECTED (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_10MBIT (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_100MBIT (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG0_MS_1GBIT (0x03)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* Ethernet Page 1 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Adatypedef struct _MPI2_CONFIG_PAGE_ETHERNET_1
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada{
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved0; /* 0x08 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Flags; /* 0x0C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 MediaState; /* 0x10 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved1; /* 0x11 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U16 Reserved2; /* 0x12 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 MacAddress[6]; /* 0x14 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved3; /* 0x1A */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 Reserved4; /* 0x1B */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR StaticIpAddress; /* 0x1C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR StaticSubnetMask; /* 0x2C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR StaticGatewayIpAddress; /* 0x3C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR StaticDNS1IpAddress; /* 0x4C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada MPI2_ETHERNET_IP_ADDR StaticDNS2IpAddress; /* 0x5C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved5; /* 0x6C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved6; /* 0x70 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved7; /* 0x74 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U32 Reserved8; /* 0x78 */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada U8 HostName[MPI2_ETHERNET_HOST_NAME_LENGTH];/* 0x7C */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada} MPI2_CONFIG_PAGE_ETHERNET_1, MPI2_POINTER PTR_MPI2_CONFIG_PAGE_ETHERNET_1,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada Mpi2EthernetPage1_t, MPI2_POINTER pMpi2EthernetPage1_t;
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHERNETPAGE1_PAGEVERSION (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for Ethernet Page 1 Flags field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_SET_DEFAULT_IF (0x00000100)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_ENABLE_FW_DOWNLOAD (0x00000080)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_ENABLE_TELNET (0x00000040)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_ENABLE_SSH2 (0x00000020)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_ENABLE_DHCP_CLIENT (0x00000010)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_ENABLE_IPV6 (0x00000008)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_ENABLE_IPV4 (0x00000004)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_USE_IPV6_ADDRESSES (0x00000002)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_FLAG_ENABLE_ETH_IF (0x00000001)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada/* values for Ethernet Page 1 MediaState field */
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_DUPLEX_MASK (0x80)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_HALF_DUPLEX (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_FULL_DUPLEX (0x80)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_DATA_RATE_MASK (0x07)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_DATA_RATE_AUTO (0x00)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_DATA_RATE_10MBIT (0x01)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_DATA_RATE_100MBIT (0x02)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada#define MPI2_ETHPG1_MS_DATA_RATE_1GBIT (0x03)
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/****************************************************************************
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles* Extended Manufacturing Config Pages
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles****************************************************************************/
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Generic structure to use for product-specific extended manufacturing pages
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * (currently Extended Manufacturing Page 40 through Extended Manufacturing
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Page 60).
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_CONFIG_PAGE_EXT_MAN_PS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_CONFIG_EXTENDED_PAGE_HEADER Header; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 ProductSpecificInfo; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_CONFIG_PAGE_EXT_MAN_PS,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_CONFIG_PAGE_EXT_MAN_PS,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2ExtManufacturingPagePS_t, MPI2_POINTER pMpi2ExtManufacturingPagePS_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* PageVersion should be provided by product-specific code */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China#endif
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China