License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 22:07:57 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2009-01-06 17:26:31 +08:00
|
|
|
* Copyright (c) 2001-2008 LSI Corporation.
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Name: mpi_tool.h
|
|
|
|
* Title: MPI Toolbox structures and definitions
|
|
|
|
* Creation Date: July 30, 2001
|
|
|
|
*
|
2005-05-12 07:37:38 +08:00
|
|
|
* mpi_tool.h Version: 01.05.03
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
* 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.
|
2005-05-12 07:37:38 +08:00
|
|
|
* 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.
|
2005-04-17 06:20:36 +08:00
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MPI_TOOL_H
|
|
|
|
#define MPI_TOOL_H
|
|
|
|
|
|
|
|
#define MPI_TOOLBOX_CLEAN_TOOL (0x00)
|
|
|
|
#define MPI_TOOLBOX_MEMORY_MOVE_TOOL (0x01)
|
|
|
|
#define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02)
|
|
|
|
#define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
|
|
|
|
#define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04)
|
2005-05-12 07:37:38 +08:00
|
|
|
#define MPI_TOOLBOX_BEACON_TOOL (0x05)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Toolbox reply */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_TOOLBOX_REPLY
|
|
|
|
{
|
|
|
|
U8 Tool; /* 00h */
|
|
|
|
U8 Reserved; /* 01h */
|
|
|
|
U8 MsgLength; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U16 Reserved3; /* 0Ch */
|
|
|
|
U16 IOCStatus; /* 0Eh */
|
|
|
|
U32 IOCLogInfo; /* 10h */
|
|
|
|
} MSG_TOOLBOX_REPLY, MPI_POINTER PTR_MSG_TOOLBOX_REPLY,
|
|
|
|
ToolboxReply_t, MPI_POINTER pToolboxReply_t;
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Toolbox Clean Tool request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_TOOLBOX_CLEAN_REQUEST
|
|
|
|
{
|
|
|
|
U8 Tool; /* 00h */
|
|
|
|
U8 Reserved; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U32 Flags; /* 0Ch */
|
|
|
|
} MSG_TOOLBOX_CLEAN_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_CLEAN_REQUEST,
|
|
|
|
ToolboxCleanRequest_t, MPI_POINTER pToolboxCleanRequest_t;
|
|
|
|
|
|
|
|
#define MPI_TOOLBOX_CLEAN_NVSRAM (0x00000001)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_SEEPROM (0x00000002)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_FLASH (0x00000004)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_BOOTLOADER (0x04000000)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)
|
|
|
|
#define MPI_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Toolbox Memory Move request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_TOOLBOX_MEM_MOVE_REQUEST
|
|
|
|
{
|
|
|
|
U8 Tool; /* 00h */
|
|
|
|
U8 Reserved; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
SGE_SIMPLE_UNION SGL; /* 0Ch */
|
|
|
|
} MSG_TOOLBOX_MEM_MOVE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_MEM_MOVE_REQUEST,
|
|
|
|
ToolboxMemMoveRequest_t, MPI_POINTER pToolboxMemMoveRequest_t;
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Toolbox Diagnostic Data Upload request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST
|
|
|
|
{
|
|
|
|
U8 Tool; /* 00h */
|
|
|
|
U8 Reserved; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U32 Flags; /* 0Ch */
|
|
|
|
U32 Reserved3; /* 10h */
|
|
|
|
SGE_SIMPLE_UNION SGL; /* 14h */
|
|
|
|
} MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
|
|
|
|
ToolboxDiagDataUploadRequest_t, MPI_POINTER pToolboxDiagDataUploadRequest_t;
|
|
|
|
|
|
|
|
typedef struct _DIAG_DATA_UPLOAD_HEADER
|
|
|
|
{
|
|
|
|
U32 DiagDataLength; /* 00h */
|
|
|
|
U8 FormatCode; /* 04h */
|
|
|
|
U8 Reserved; /* 05h */
|
|
|
|
U16 Reserved1; /* 06h */
|
|
|
|
} DIAG_DATA_UPLOAD_HEADER, MPI_POINTER PTR_DIAG_DATA_UPLOAD_HEADER,
|
|
|
|
DiagDataUploadHeader_t, MPI_POINTER pDiagDataUploadHeader_t;
|
|
|
|
|
|
|
|
#define MPI_TB_DIAG_FORMAT_SCSI_PRINTF_1 (0x01)
|
|
|
|
#define MPI_TB_DIAG_FORMAT_SCSI_2 (0x02)
|
|
|
|
#define MPI_TB_DIAG_FORMAT_SCSI_3 (0x03)
|
|
|
|
#define MPI_TB_DIAG_FORMAT_FC_TRACE_1 (0x04)
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Toolbox ISTWI Read Write request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST
|
|
|
|
{
|
|
|
|
U8 Tool; /* 00h */
|
|
|
|
U8 Reserved; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U8 Flags; /* 0Ch */
|
|
|
|
U8 BusNum; /* 0Dh */
|
|
|
|
U16 Reserved3; /* 0Eh */
|
|
|
|
U8 NumAddressBytes; /* 10h */
|
|
|
|
U8 Reserved4; /* 11h */
|
|
|
|
U16 DataLength; /* 12h */
|
|
|
|
U8 DeviceAddr; /* 14h */
|
|
|
|
U8 Addr1; /* 15h */
|
|
|
|
U8 Addr2; /* 16h */
|
|
|
|
U8 Addr3; /* 17h */
|
|
|
|
U32 Reserved5; /* 18h */
|
|
|
|
SGE_SIMPLE_UNION SGL; /* 1Ch */
|
|
|
|
} MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
|
|
|
|
ToolboxIstwiReadWriteRequest_t, MPI_POINTER pToolboxIstwiReadWriteRequest_t;
|
|
|
|
|
|
|
|
#define MPI_TB_ISTWI_FLAGS_WRITE (0x00)
|
|
|
|
#define MPI_TB_ISTWI_FLAGS_READ (0x01)
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Toolbox FC Management request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
/* ActionInfo for Bus and TargetId */
|
|
|
|
typedef struct _MPI_TB_FC_MANAGE_BUS_TID_AI
|
|
|
|
{
|
|
|
|
U16 Reserved; /* 00h */
|
|
|
|
U8 Bus; /* 02h */
|
|
|
|
U8 TargetId; /* 03h */
|
|
|
|
} MPI_TB_FC_MANAGE_BUS_TID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_BUS_TID_AI,
|
|
|
|
MpiTbFcManageBusTidAi_t, MPI_POINTER pMpiTbFcManageBusTidAi_t;
|
|
|
|
|
|
|
|
/* ActionInfo for port identifier */
|
|
|
|
typedef struct _MPI_TB_FC_MANAGE_PID_AI
|
|
|
|
{
|
|
|
|
U32 PortIdentifier; /* 00h */
|
|
|
|
} MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI,
|
|
|
|
MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t;
|
|
|
|
|
2005-05-12 07:37:38 +08:00
|
|
|
/* ActionInfo for set max frame size */
|
|
|
|
typedef struct _MPI_TB_FC_MANAGE_FRAME_SIZE_AI
|
|
|
|
{
|
|
|
|
U16 FrameSize; /* 00h */
|
|
|
|
U8 PortNum; /* 02h */
|
|
|
|
U8 Reserved1; /* 03h */
|
|
|
|
} MPI_TB_FC_MANAGE_FRAME_SIZE_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_FRAME_SIZE_AI,
|
|
|
|
MpiTbFcManageFrameSizeAi_t, MPI_POINTER pMpiTbFcManageFrameSizeAi_t;
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/* union of ActionInfo */
|
|
|
|
typedef union _MPI_TB_FC_MANAGE_AI_UNION
|
|
|
|
{
|
|
|
|
MPI_TB_FC_MANAGE_BUS_TID_AI BusTid;
|
|
|
|
MPI_TB_FC_MANAGE_PID_AI Port;
|
2005-05-12 07:37:38 +08:00
|
|
|
MPI_TB_FC_MANAGE_FRAME_SIZE_AI FrameSize;
|
2005-04-17 06:20:36 +08:00
|
|
|
} MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION,
|
|
|
|
MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t;
|
|
|
|
|
|
|
|
typedef struct _MSG_TOOLBOX_FC_MANAGE_REQUEST
|
|
|
|
{
|
|
|
|
U8 Tool; /* 00h */
|
|
|
|
U8 Reserved; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U8 Action; /* 0Ch */
|
|
|
|
U8 Reserved3; /* 0Dh */
|
|
|
|
U16 Reserved4; /* 0Eh */
|
|
|
|
MPI_TB_FC_MANAGE_AI_UNION ActionInfo; /* 10h */
|
|
|
|
} MSG_TOOLBOX_FC_MANAGE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_FC_MANAGE_REQUEST,
|
|
|
|
ToolboxFcManageRequest_t, MPI_POINTER pToolboxFcManageRequest_t;
|
|
|
|
|
|
|
|
/* defines for the Action field */
|
|
|
|
#define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00)
|
|
|
|
#define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01)
|
|
|
|
#define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02)
|
2005-05-12 07:37:38 +08:00
|
|
|
#define MPI_TB_FC_MANAGE_ACTION_SET_MAX_FRAME_SIZE (0x03)
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Toolbox Beacon Tool request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_TOOLBOX_BEACON_REQUEST
|
|
|
|
{
|
|
|
|
U8 Tool; /* 00h */
|
|
|
|
U8 Reserved; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U8 ConnectNum; /* 0Ch */
|
|
|
|
U8 PortNum; /* 0Dh */
|
|
|
|
U8 Reserved3; /* 0Eh */
|
|
|
|
U8 Flags; /* 0Fh */
|
|
|
|
} MSG_TOOLBOX_BEACON_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_BEACON_REQUEST,
|
|
|
|
ToolboxBeaconRequest_t, MPI_POINTER pToolboxBeaconRequest_t;
|
|
|
|
|
|
|
|
#define MPI_TOOLBOX_FLAGS_BEACON_MODE_OFF (0x00)
|
|
|
|
#define MPI_TOOLBOX_FLAGS_BEACON_MODE_ON (0x01)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Diagnostic Buffer Post request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_DIAG_BUFFER_POST_REQUEST
|
|
|
|
{
|
|
|
|
U8 TraceLevel; /* 00h */
|
|
|
|
U8 BufferType; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved1; /* 04h */
|
|
|
|
U8 Reserved2; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U32 ExtendedType; /* 0Ch */
|
|
|
|
U32 BufferLength; /* 10h */
|
|
|
|
U32 ProductSpecific[4]; /* 14h */
|
2005-05-12 07:37:38 +08:00
|
|
|
U32 Reserved3; /* 24h */
|
|
|
|
U64 BufferAddress; /* 28h */
|
2005-04-17 06:20:36 +08:00
|
|
|
} MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST,
|
|
|
|
DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t;
|
|
|
|
|
|
|
|
#define MPI_DIAG_BUF_TYPE_TRACE (0x00)
|
|
|
|
#define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01)
|
|
|
|
#define MPI_DIAG_BUF_TYPE_EXTENDED (0x02)
|
2005-05-12 07:37:38 +08:00
|
|
|
/* count of the number of buffer types */
|
|
|
|
#define MPI_DIAG_BUF_TYPE_COUNT (0x03)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#define MPI_DIAG_EXTENDED_QTAG (0x00000001)
|
|
|
|
|
|
|
|
|
|
|
|
/* Diagnostic Buffer Post reply */
|
|
|
|
typedef struct _MSG_DIAG_BUFFER_POST_REPLY
|
|
|
|
{
|
|
|
|
U8 Reserved1; /* 00h */
|
|
|
|
U8 BufferType; /* 01h */
|
|
|
|
U8 MsgLength; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved2; /* 04h */
|
|
|
|
U8 Reserved3; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U16 Reserved4; /* 0Ch */
|
|
|
|
U16 IOCStatus; /* 0Eh */
|
|
|
|
U32 IOCLogInfo; /* 10h */
|
|
|
|
U32 TransferLength; /* 14h */
|
|
|
|
} MSG_DIAG_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REPLY,
|
|
|
|
DiagBufferPostReply_t, MPI_POINTER pDiagBufferPostReply_t;
|
|
|
|
|
|
|
|
|
|
|
|
/****************************************************************************/
|
|
|
|
/* Diagnostic Release request */
|
|
|
|
/****************************************************************************/
|
|
|
|
|
|
|
|
typedef struct _MSG_DIAG_RELEASE_REQUEST
|
|
|
|
{
|
|
|
|
U8 Reserved1; /* 00h */
|
|
|
|
U8 BufferType; /* 01h */
|
|
|
|
U8 ChainOffset; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved2; /* 04h */
|
|
|
|
U8 Reserved3; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
} MSG_DIAG_RELEASE_REQUEST, MPI_POINTER PTR_MSG_DIAG_RELEASE_REQUEST,
|
|
|
|
DiagReleaseRequest_t, MPI_POINTER pDiagReleaseRequest_t;
|
|
|
|
|
|
|
|
|
|
|
|
/* Diagnostic Release reply */
|
|
|
|
typedef struct _MSG_DIAG_RELEASE_REPLY
|
|
|
|
{
|
|
|
|
U8 Reserved1; /* 00h */
|
|
|
|
U8 BufferType; /* 01h */
|
|
|
|
U8 MsgLength; /* 02h */
|
|
|
|
U8 Function; /* 03h */
|
|
|
|
U16 Reserved2; /* 04h */
|
|
|
|
U8 Reserved3; /* 06h */
|
|
|
|
U8 MsgFlags; /* 07h */
|
|
|
|
U32 MsgContext; /* 08h */
|
|
|
|
U16 Reserved4; /* 0Ch */
|
|
|
|
U16 IOCStatus; /* 0Eh */
|
|
|
|
U32 IOCLogInfo; /* 10h */
|
|
|
|
} MSG_DIAG_RELEASE_REPLY, MPI_POINTER PTR_MSG_DIAG_RELEASE_REPLY,
|
|
|
|
DiagReleaseReply_t, MPI_POINTER pDiagReleaseReply_t;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|