aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
diff options
context:
space:
mode:
authorSreekanth Reddy <sreekanth.reddy@avagotech.com>2014-09-12 06:05:17 -0400
committerChristoph Hellwig <hch@lst.de>2014-09-16 12:14:13 -0400
commitff4637d6d1f2f4fdf014404b5b4b1d1e4adc6283 (patch)
tree046e1a2e85065534868a44bb951d133a366e99a6 /drivers/scsi/mpt2sas/mpi/mpi2_tool.h
parent4e1f20ae4f92706518d6c18b13da8c2bc28339c7 (diff)
mpt2sas: MPI2 Rev Y (2.00.17) and Rev Z (2.00.18) specifications
Below is the change set in MPI2 Rev Y specification and in 2.00.17 header files 1) Added SCSIStatusQualifier to SCSI IO Error Reply message. 2) Added ATA Security Freeze Lock to IO Unit Page 1 Flags field. Below is the change set in MPI2 Rev Z specification and in 2.00.19 header files 1) Added reserved fields to IO Unit Page 7 for future use. 2) Added optional functionality to IOCInit Request so that the host may specify a separate base address for each Reply Descriptor Post Queue. IOC support for this is indicated using a new IOCCapabilities bit in the IOCFacts Reply. 3) Added Toolbox Console Text Display Tool The host uses the Console Text Display Tool to send a string to IOC's Console using different console types (eg: UART serial terminal or Ethernet terminal). The copyright in the mpi files is updated for year 2014 Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@avagotech.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_tool.h')
-rw-r--r--drivers/scsi/mpt2sas/mpi/mpi2_tool.h44
1 files changed, 42 insertions, 2 deletions
diff --git a/drivers/scsi/mpt2sas/mpi/mpi2_tool.h b/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
index 11b2ac4e7c6e..9be03ed46180 100644
--- a/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
+++ b/drivers/scsi/mpt2sas/mpi/mpi2_tool.h
@@ -1,12 +1,12 @@
1/* 1/*
2 * Copyright (c) 2000-2013 LSI Corporation. 2 * Copyright (c) 2000-2014 LSI Corporation.
3 * 3 *
4 * 4 *
5 * Name: mpi2_tool.h 5 * Name: mpi2_tool.h
6 * Title: MPI diagnostic tool structures and definitions 6 * Title: MPI diagnostic tool structures and definitions
7 * Creation Date: March 26, 2007 7 * Creation Date: March 26, 2007
8 * 8 *
9 * mpi2_tool.h Version: 02.00.10 9 * mpi2_tool.h Version: 02.00.11
10 * 10 *
11 * Version History 11 * Version History
12 * --------------- 12 * ---------------
@@ -29,6 +29,7 @@
29 * MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST. 29 * MPI2_TOOLBOX_ISTWI_READ_WRITE_REQUEST.
30 * 07-26-12 02.00.10 Modified MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST so that 30 * 07-26-12 02.00.10 Modified MPI2_TOOLBOX_DIAGNOSTIC_CLI_REQUEST so that
31 * it uses MPI Chain SGE as well as MPI Simple SGE. 31 * it uses MPI Chain SGE as well as MPI Simple SGE.
32 * 08-19-13 02.00.11 Added MPI2_TOOLBOX_TEXT_DISPLAY_TOOL and related info.
32 * -------------------------------------------------------------------------- 33 * --------------------------------------------------------------------------
33 */ 34 */
34 35
@@ -48,6 +49,7 @@
48#define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03) 49#define MPI2_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
49#define MPI2_TOOLBOX_BEACON_TOOL (0x05) 50#define MPI2_TOOLBOX_BEACON_TOOL (0x05)
50#define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL (0x06) 51#define MPI2_TOOLBOX_DIAGNOSTIC_CLI_TOOL (0x06)
52#define MPI2_TOOLBOX_TEXT_DISPLAY_TOOL (0x07)
51 53
52 54
53/**************************************************************************** 55/****************************************************************************
@@ -321,6 +323,44 @@ typedef struct _MPI2_TOOLBOX_DIAGNOSTIC_CLI_REPLY {
321 MPI2_POINTER pMpi2ToolboxDiagnosticCliReply_t; 323 MPI2_POINTER pMpi2ToolboxDiagnosticCliReply_t;
322 324
323 325
326/****************************************************************************
327* Toolbox Console Text Display Tool
328****************************************************************************/
329
330/* Toolbox Console Text Display Tool request message */
331typedef struct _MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST {
332 U8 Tool; /* 0x00 */
333 U8 Reserved1; /* 0x01 */
334 U8 ChainOffset; /* 0x02 */
335 U8 Function; /* 0x03 */
336 U16 Reserved2; /* 0x04 */
337 U8 Reserved3; /* 0x06 */
338 U8 MsgFlags; /* 0x07 */
339 U8 VP_ID; /* 0x08 */
340 U8 VF_ID; /* 0x09 */
341 U16 Reserved4; /* 0x0A */
342 U8 Console; /* 0x0C */
343 U8 Flags; /* 0x0D */
344 U16 Reserved6; /* 0x0E */
345 U8 TextToDisplay[4]; /* 0x10 */
346} MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST,
347MPI2_POINTER PTR_MPI2_TOOLBOX_TEXT_DISPLAY_REQUEST,
348Mpi2ToolboxTextDisplayRequest_t,
349MPI2_POINTER pMpi2ToolboxTextDisplayRequest_t;
350
351/* defines for the Console field */
352#define MPI2_TOOLBOX_CONSOLE_TYPE_MASK (0xF0)
353#define MPI2_TOOLBOX_CONSOLE_TYPE_DEFAULT (0x00)
354#define MPI2_TOOLBOX_CONSOLE_TYPE_UART (0x10)
355#define MPI2_TOOLBOX_CONSOLE_TYPE_ETHERNET (0x20)
356
357#define MPI2_TOOLBOX_CONSOLE_NUMBER_MASK (0x0F)
358
359/* defines for the Flags field */
360#define MPI2_TOOLBOX_CONSOLE_FLAG_TIMESTAMP (0x01)
361
362
363
324/***************************************************************************** 364/*****************************************************************************
325* 365*
326* Diagnostic Buffer Messages 366* Diagnostic Buffer Messages