/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2004-2011 Emulex. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _EMLXS_DUMP_H
#define _EMLXS_DUMP_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct emlxs_file
{
} emlxs_file_t;
typedef struct dump_temp_event
{
/* #define EMLXS_DMP_FILE_SIZE (4*1024*1024) */
/* Maximum BC for DUMP w/o MBX Extension */
/* Conditional Compile Symbols */
/* The following define controls whether the Dump Routines, */
/* in the Port Memory Dump, */
/* use all (potentially up to 3) Dump Tables, or only Dump Table #1. */
/* This is a diagnostic feature only, and is not compiled in releases. */
/* If enabled, this feature provides a way to test all the FW Dump Tables, */
/* a debugging courtesy to the FW group. */
/* 1 = all Dump Tables; 0 = Table 1 Only */
/* Dump Type: loaded into gDumpType; controls */
/* operation of many dump functions */
/* Dump Temperature tempType Event codes (from DFC) */
/* Misc Defines */
#define DUMP_TXT_FILE 0
/* Driver Name Strings */
/* SIDs (Dump File Segment Identifiers) */
/* SID Control Bits */
/* This set of SIDs is defined in "LightPulse Dump Facility Design Guide" */
/* This set of SIDs is defined in "HBAnyware v2.3 */
/* Dump Feature Design Specification" */
/* Legend Strings */
/* Sub-Legends associated with SID_HBA_MEM_DUMP // HBA Memory Dump */
/* Sub-Legends associated with SID_REV_INFO // Revision Information */
/* Sub-Legends associated with SID_HBA_INFO // Adapter Information */
/* Sub-Legends associated with SID_CONFIG_REGION // Configuration Region */
#define LEGEND_CONFIG_REGION_17 \
"Config Region 17: Physical Environment NV Params"
/* Additional Sub-Legends for Region 4 */
/* Sub-Legends associated with SLI Interface Structures */
/* Misc Legend Data */
#define LEGEND_NV_LOG_DRIVER_NOT_SUPPORTED \
"NV Log not supported by the driver"
#define LEGEND_NV_LOG_STATUS_ERROR \
"Error in getting NV Log status"
#define LEGEND_NV_LOG_ERROR \
"Error in getting NV Log"
#define NV_LOG_NOT_INCLUDED_IN_DMP \
"Non-Volatile Log Dump is not included in the DMP file"
#define NV_LOG_INCLUDED_IN_DMP \
"Non-Volatile Log Dump is included in the DMP file"
#define NV_LOG_NOT_INCLUDED_IN_FAT \
"Non-Volatile Log Dump is not included in the FAT file"
#define NV_LOG_INCLUDED_IN_FAT \
"Non-Volatile Log Dump is included in the FAT file"
/* Dump Regions Definitions */
/* DFC_GetDriverDumpRegions Status */
#define GDDR_ST_SUCCESS 0
/* Max size supported by dump Config Region routines */
/* This is a simplified form of the wakeup params structure, */
/* w/o all the bit fields, */
/* for ease of displaying in the Dump File. */
typedef struct _DUMP_WAKE_UP_PARAMS
{
typedef struct _DUMP_TABLE_ENTRY_PORT_STRUCT
{
union
{
uint32_t w[2];
struct
{
#ifdef EMLXS_LITTLE_ENDIAN
#else
#endif
} s;
} un;
/* This is a simplified form of the Dump Table Entry structures. */
typedef struct _DUMP_TABLE_ENTRY_PORT_BLK
{
union
{
uint32_t w[2];
struct
{
#ifdef EMLXS_LITTLE_ENDIAN
#else
#endif
} s;
} un;
typedef struct _DUMP_TABLE_ENTRY
{
union
{
} un;
/* VPD Data Defines */
#ifdef __cplusplus
}
#endif
#endif /* _EMLXS_DUMP_H */