diff options
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_tool.h')
-rw-r--r-- | drivers/message/fusion/lsi/mpi_tool.h | 57 |
1 files changed, 53 insertions, 4 deletions
diff --git a/drivers/message/fusion/lsi/mpi_tool.h b/drivers/message/fusion/lsi/mpi_tool.h index 536d197c4142..aa9053da1f58 100644 --- a/drivers/message/fusion/lsi/mpi_tool.h +++ b/drivers/message/fusion/lsi/mpi_tool.h | |||
@@ -1,12 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2001-2003 LSI Logic Corporation. | 2 | * Copyright (c) 2001-2005 LSI Logic Corporation. |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Name: mpi_tool.h | 5 | * Name: mpi_tool.h |
6 | * Title: MPI Toolbox structures and definitions | 6 | * Title: MPI Toolbox structures and definitions |
7 | * Creation Date: July 30, 2001 | 7 | * Creation Date: July 30, 2001 |
8 | * | 8 | * |
9 | * mpi_tool.h Version: 01.05.xx | 9 | * mpi_tool.h Version: 01.05.03 |
10 | * | 10 | * |
11 | * Version History | 11 | * Version History |
12 | * --------------- | 12 | * --------------- |
@@ -15,6 +15,16 @@ | |||
15 | * -------- -------- ------------------------------------------------------ | 15 | * -------- -------- ------------------------------------------------------ |
16 | * 08-08-01 01.02.01 Original release. | 16 | * 08-08-01 01.02.01 Original release. |
17 | * 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines. | 17 | * 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines. |
18 | * 01-16-04 01.02.03 Added defines and structures for new tools | ||
19 | *. MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL and | ||
20 | * MPI_TOOLBOX_FC_MANAGEMENT_TOOL. | ||
21 | * 04-29-04 01.02.04 Added message structures for Diagnostic Buffer Post and | ||
22 | * Diagnostic Release requests and replies. | ||
23 | * 05-11-04 01.03.01 Original release for MPI v1.3. | ||
24 | * 08-19-04 01.05.01 Original release for MPI v1.5. | ||
25 | * 10-06-04 01.05.02 Added define for MPI_DIAG_BUF_TYPE_COUNT. | ||
26 | * 02-09-05 01.05.03 Added frame size option to FC management tool. | ||
27 | * Added Beacon tool to the Toolbox. | ||
18 | * -------------------------------------------------------------------------- | 28 | * -------------------------------------------------------------------------- |
19 | */ | 29 | */ |
20 | 30 | ||
@@ -26,6 +36,7 @@ | |||
26 | #define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02) | 36 | #define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02) |
27 | #define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03) | 37 | #define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03) |
28 | #define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04) | 38 | #define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04) |
39 | #define MPI_TOOLBOX_BEACON_TOOL (0x05) | ||
29 | 40 | ||
30 | 41 | ||
31 | /****************************************************************************/ | 42 | /****************************************************************************/ |
@@ -185,11 +196,21 @@ typedef struct _MPI_TB_FC_MANAGE_PID_AI | |||
185 | } MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI, | 196 | } MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI, |
186 | MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t; | 197 | MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t; |
187 | 198 | ||
199 | /* ActionInfo for set max frame size */ | ||
200 | typedef struct _MPI_TB_FC_MANAGE_FRAME_SIZE_AI | ||
201 | { | ||
202 | U16 FrameSize; /* 00h */ | ||
203 | U8 PortNum; /* 02h */ | ||
204 | U8 Reserved1; /* 03h */ | ||
205 | } MPI_TB_FC_MANAGE_FRAME_SIZE_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_FRAME_SIZE_AI, | ||
206 | MpiTbFcManageFrameSizeAi_t, MPI_POINTER pMpiTbFcManageFrameSizeAi_t; | ||
207 | |||
188 | /* union of ActionInfo */ | 208 | /* union of ActionInfo */ |
189 | typedef union _MPI_TB_FC_MANAGE_AI_UNION | 209 | typedef union _MPI_TB_FC_MANAGE_AI_UNION |
190 | { | 210 | { |
191 | MPI_TB_FC_MANAGE_BUS_TID_AI BusTid; | 211 | MPI_TB_FC_MANAGE_BUS_TID_AI BusTid; |
192 | MPI_TB_FC_MANAGE_PID_AI Port; | 212 | MPI_TB_FC_MANAGE_PID_AI Port; |
213 | MPI_TB_FC_MANAGE_FRAME_SIZE_AI FrameSize; | ||
193 | } MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION, | 214 | } MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION, |
194 | MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t; | 215 | MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t; |
195 | 216 | ||
@@ -214,6 +235,32 @@ typedef struct _MSG_TOOLBOX_FC_MANAGE_REQUEST | |||
214 | #define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00) | 235 | #define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00) |
215 | #define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01) | 236 | #define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01) |
216 | #define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02) | 237 | #define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02) |
238 | #define MPI_TB_FC_MANAGE_ACTION_SET_MAX_FRAME_SIZE (0x03) | ||
239 | |||
240 | |||
241 | /****************************************************************************/ | ||
242 | /* Toolbox Beacon Tool request */ | ||
243 | /****************************************************************************/ | ||
244 | |||
245 | typedef struct _MSG_TOOLBOX_BEACON_REQUEST | ||
246 | { | ||
247 | U8 Tool; /* 00h */ | ||
248 | U8 Reserved; /* 01h */ | ||
249 | U8 ChainOffset; /* 02h */ | ||
250 | U8 Function; /* 03h */ | ||
251 | U16 Reserved1; /* 04h */ | ||
252 | U8 Reserved2; /* 06h */ | ||
253 | U8 MsgFlags; /* 07h */ | ||
254 | U32 MsgContext; /* 08h */ | ||
255 | U8 ConnectNum; /* 0Ch */ | ||
256 | U8 PortNum; /* 0Dh */ | ||
257 | U8 Reserved3; /* 0Eh */ | ||
258 | U8 Flags; /* 0Fh */ | ||
259 | } MSG_TOOLBOX_BEACON_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_BEACON_REQUEST, | ||
260 | ToolboxBeaconRequest_t, MPI_POINTER pToolboxBeaconRequest_t; | ||
261 | |||
262 | #define MPI_TOOLBOX_FLAGS_BEACON_MODE_OFF (0x00) | ||
263 | #define MPI_TOOLBOX_FLAGS_BEACON_MODE_ON (0x01) | ||
217 | 264 | ||
218 | 265 | ||
219 | /****************************************************************************/ | 266 | /****************************************************************************/ |
@@ -233,14 +280,16 @@ typedef struct _MSG_DIAG_BUFFER_POST_REQUEST | |||
233 | U32 ExtendedType; /* 0Ch */ | 280 | U32 ExtendedType; /* 0Ch */ |
234 | U32 BufferLength; /* 10h */ | 281 | U32 BufferLength; /* 10h */ |
235 | U32 ProductSpecific[4]; /* 14h */ | 282 | U32 ProductSpecific[4]; /* 14h */ |
236 | U32 Reserved3; /* 18h */ | 283 | U32 Reserved3; /* 24h */ |
237 | SGE_SIMPLE_UNION SGL; /* 28h */ | 284 | U64 BufferAddress; /* 28h */ |
238 | } MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST, | 285 | } MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST, |
239 | DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t; | 286 | DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t; |
240 | 287 | ||
241 | #define MPI_DIAG_BUF_TYPE_TRACE (0x00) | 288 | #define MPI_DIAG_BUF_TYPE_TRACE (0x00) |
242 | #define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01) | 289 | #define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01) |
243 | #define MPI_DIAG_BUF_TYPE_EXTENDED (0x02) | 290 | #define MPI_DIAG_BUF_TYPE_EXTENDED (0x02) |
291 | /* count of the number of buffer types */ | ||
292 | #define MPI_DIAG_BUF_TYPE_COUNT (0x03) | ||
244 | 293 | ||
245 | #define MPI_DIAG_EXTENDED_QTAG (0x00000001) | 294 | #define MPI_DIAG_EXTENDED_QTAG (0x00000001) |
246 | 295 | ||