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

/* SPDX-License-Identifier: GPL-2.0 */
/*
 *  Copyright (c) 2001-2008 LSI Corporation.
 *
 *
 *           Name:  mpi_tool.h
 *          Title:  MPI Toolbox structures and definitions
 *  Creation Date:  July 30, 2001
 *
 *    mpi_tool.h Version:  01.05.03
 *
 *  Version History
 *  ---------------
 *
 *  Date      Version   Description
 *  --------  --------  ------------------------------------------------------
 *  08-08-01  01.02.01  Original release.
 *  08-29-01  01.02.02  Added DIAG_DATA_UPLOAD_HEADER and related defines.
 *  01-16-04  01.02.03  Added defines and structures for new tools
 *.                     MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL and
 *                      MPI_TOOLBOX_FC_MANAGEMENT_TOOL.
 *  04-29-04  01.02.04  Added message structures for Diagnostic Buffer Post and
 *                      Diagnostic Release requests and replies.
 *  05-11-04  01.03.01  Original release for MPI v1.3.
 *  08-19-04  01.05.01  Original release for MPI v1.5.
 *  10-06-04  01.05.02  Added define for MPI_DIAG_BUF_TYPE_COUNT.
 *  02-09-05  01.05.03  Added frame size option to FC management tool.
 *                      Added Beacon tool to the Toolbox.
 *  --------------------------------------------------------------------------
 */

#ifndef MPI_TOOL_H
#define MPI_TOOL_H

#define MPI_TOOLBOX_CLEAN_TOOL
#define MPI_TOOLBOX_MEMORY_MOVE_TOOL
#define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL
#define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL
#define MPI_TOOLBOX_FC_MANAGEMENT_TOOL
#define MPI_TOOLBOX_BEACON_TOOL


/****************************************************************************/
/* Toolbox reply                                                            */
/****************************************************************************/

pToolboxReply_t;


/****************************************************************************/
/* Toolbox Clean Tool request                                               */
/****************************************************************************/

pToolboxCleanRequest_t;

#define MPI_TOOLBOX_CLEAN_NVSRAM
#define MPI_TOOLBOX_CLEAN_SEEPROM
#define MPI_TOOLBOX_CLEAN_FLASH
#define MPI_TOOLBOX_CLEAN_BOOTLOADER
#define MPI_TOOLBOX_CLEAN_FW_BACKUP
#define MPI_TOOLBOX_CLEAN_FW_CURRENT
#define MPI_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES
#define MPI_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES
#define MPI_TOOLBOX_CLEAN_BOOT_SERVICES


/****************************************************************************/
/* Toolbox Memory Move request                                              */
/****************************************************************************/

pToolboxMemMoveRequest_t;


/****************************************************************************/
/* Toolbox Diagnostic Data Upload request                                   */
/****************************************************************************/

pToolboxDiagDataUploadRequest_t;

pDiagDataUploadHeader_t;

#define MPI_TB_DIAG_FORMAT_SCSI_PRINTF_1
#define MPI_TB_DIAG_FORMAT_SCSI_2
#define MPI_TB_DIAG_FORMAT_SCSI_3
#define MPI_TB_DIAG_FORMAT_FC_TRACE_1


/****************************************************************************/
/* Toolbox ISTWI Read Write request                                         */
/****************************************************************************/

pToolboxIstwiReadWriteRequest_t;

#define MPI_TB_ISTWI_FLAGS_WRITE
#define MPI_TB_ISTWI_FLAGS_READ


/****************************************************************************/
/* Toolbox FC Management request                                            */
/****************************************************************************/

/* ActionInfo for Bus and TargetId */
pMpiTbFcManageBusTidAi_t;

/* ActionInfo for port identifier */
pMpiTbFcManagePidAi_t;

/* ActionInfo for set max frame size */
pMpiTbFcManageFrameSizeAi_t;

/* union of ActionInfo */
pMpiTbFcManageAiUnion_t;

pToolboxFcManageRequest_t;

/* defines for the Action field */
#define MPI_TB_FC_MANAGE_ACTION_DISC_ALL
#define MPI_TB_FC_MANAGE_ACTION_DISC_PID
#define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID
#define MPI_TB_FC_MANAGE_ACTION_SET_MAX_FRAME_SIZE


/****************************************************************************/
/* Toolbox Beacon Tool request                                               */
/****************************************************************************/

pToolboxBeaconRequest_t;

#define MPI_TOOLBOX_FLAGS_BEACON_MODE_OFF
#define MPI_TOOLBOX_FLAGS_BEACON_MODE_ON


/****************************************************************************/
/* Diagnostic Buffer Post request                                           */
/****************************************************************************/

pDiagBufferPostRequest_t;

#define MPI_DIAG_BUF_TYPE_TRACE
#define MPI_DIAG_BUF_TYPE_SNAPSHOT
#define MPI_DIAG_BUF_TYPE_EXTENDED
/* count of the number of buffer types */
#define MPI_DIAG_BUF_TYPE_COUNT

#define MPI_DIAG_EXTENDED_QTAG


/* Diagnostic Buffer Post reply */
pDiagBufferPostReply_t;


/****************************************************************************/
/* Diagnostic Release request                                               */
/****************************************************************************/

pDiagReleaseRequest_t;


/* Diagnostic Release reply */
pDiagReleaseReply_t;


#endif