mpi_fc.h (139749) | mpi_fc.h (147883) |
---|---|
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_fc.h 139749 2005-01-06 01:43:34Z imp $ */ | 1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_fc.h 147883 2005-07-10 15:05:39Z scottl $ */ |
2/*- | 2/*- |
3 * Copyright (c) 2000, 2001 by LSI Logic Corporation 4 * | 3 * Copyright (c) 2000-2005, LSI Logic Corporation and its contributors. 4 * All rights reserved. 5 * |
5 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions 7 * are met: | 7 * modification, are permitted provided that the following conditions are 8 * met: |
8 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
9 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. The name of the author may not be used to endorse or promote products 12 * derived from this software without specific prior written permission. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12 * substantially similar to the "NO WARRANTY" disclaimer below 13 * ("Disclaimer") and any redistribution must be conditioned upon including 14 * a substantially similar Disclaimer requirement for further binary 15 * redistribution. 16 * 3. Neither the name of the LSI Logic Corporation nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 18 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. | 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT 30 * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 * 26 * 27 * Name: MPI_FC.H 28 * Title: MPI Fibre Channel messages and structures 29 * Creation Date: June 12, 2000 30 * | 31 * 32 * 33 * Name: MPI_FC.H 34 * Title: MPI Fibre Channel messages and structures 35 * Creation Date: June 12, 2000 36 * |
31 * MPI Version: 01.02.02 | 37 * MPI_FC.H Version: 01.02.04 |
32 * 33 * Version History 34 * --------------- 35 * 36 * Date Version Description 37 * -------- -------- ------------------------------------------------------ 38 * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000. 39 * 06-06-00 01.00.01 Update version number for 1.0 release. --- 12 unchanged lines hidden (view full) --- 52 * 03-27-01 01.01.06 Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY 53 * and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED. 54 * Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define. 55 * Added structure offset comments. 56 * 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST. 57 * 08-08-01 01.02.01 Original release for v1.2 work. 58 * 09-28-01 01.02.02 Change name of reserved field in 59 * MSG_LINK_SERVICE_RSP_REPLY. | 38 * 39 * Version History 40 * --------------- 41 * 42 * Date Version Description 43 * -------- -------- ------------------------------------------------------ 44 * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000. 45 * 06-06-00 01.00.01 Update version number for 1.0 release. --- 12 unchanged lines hidden (view full) --- 58 * 03-27-01 01.01.06 Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY 59 * and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED. 60 * Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define. 61 * Added structure offset comments. 62 * 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST. 63 * 08-08-01 01.02.01 Original release for v1.2 work. 64 * 09-28-01 01.02.02 Change name of reserved field in 65 * MSG_LINK_SERVICE_RSP_REPLY. |
66 * 05-31-02 01.02.03 Adding AliasIndex to FC Direct Access requests. 67 * 01-16-04 01.02.04 Added define for MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK. |
|
60 * -------------------------------------------------------------------------- 61 */ 62 63#ifndef MPI_FC_H 64#define MPI_FC_H 65 66 67/***************************************************************************** --- 142 unchanged lines hidden (view full) --- 210 211/****************************************************************************/ 212/* Extended Link Service Send messages */ 213/****************************************************************************/ 214 215typedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST 216{ 217 U8 SendFlags; /* 00h */ | 68 * -------------------------------------------------------------------------- 69 */ 70 71#ifndef MPI_FC_H 72#define MPI_FC_H 73 74 75/***************************************************************************** --- 142 unchanged lines hidden (view full) --- 218 219/****************************************************************************/ 220/* Extended Link Service Send messages */ 221/****************************************************************************/ 222 223typedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST 224{ 225 U8 SendFlags; /* 00h */ |
218 U8 Reserved; /* 01h */ | 226 U8 AliasIndex; /* 01h */ |
219 U8 ChainOffset; /* 02h */ 220 U8 Function; /* 03h */ 221 U32 MsgFlags_Did; /* 04h */ 222 U32 MsgContext; /* 08h */ 223 U32 ElsCommandCode; /* 0Ch */ 224 SGE_SIMPLE_UNION SGL; /* 10h */ 225} MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST, 226 ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t; 227 228#define EX_LINK_SERVICE_SEND_DID_MASK (0x00FFFFFF) 229#define EX_LINK_SERVICE_SEND_DID_SHIFT (0) 230#define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK (0xFF000000) 231#define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT (24) 232 233 234/* Extended Link Service Send Reply */ 235typedef struct _MSG_EXLINK_SERVICE_SEND_REPLY 236{ | 227 U8 ChainOffset; /* 02h */ 228 U8 Function; /* 03h */ 229 U32 MsgFlags_Did; /* 04h */ 230 U32 MsgContext; /* 08h */ 231 U32 ElsCommandCode; /* 0Ch */ 232 SGE_SIMPLE_UNION SGL; /* 10h */ 233} MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST, 234 ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t; 235 236#define EX_LINK_SERVICE_SEND_DID_MASK (0x00FFFFFF) 237#define EX_LINK_SERVICE_SEND_DID_SHIFT (0) 238#define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK (0xFF000000) 239#define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT (24) 240 241 242/* Extended Link Service Send Reply */ 243typedef struct _MSG_EXLINK_SERVICE_SEND_REPLY 244{ |
237 U16 Reserved; /* 00h */ | 245 U8 Reserved; /* 00h */ 246 U8 AliasIndex; /* 01h */ |
238 U8 MsgLength; /* 02h */ 239 U8 Function; /* 03h */ 240 U16 Reserved1; /* 04h */ 241 U8 Reserved2; /* 06h */ 242 U8 MsgFlags; /* 07h */ 243 U32 MsgContext; /* 08h */ 244 U16 Reserved3; /* 0Ch */ 245 U16 IOCStatus; /* 0Eh */ --- 46 unchanged lines hidden (view full) --- 292 293/****************************************************************************/ 294/* FC Common Transport Send messages */ 295/****************************************************************************/ 296 297typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST 298{ 299 U8 SendFlags; /* 00h */ | 247 U8 MsgLength; /* 02h */ 248 U8 Function; /* 03h */ 249 U16 Reserved1; /* 04h */ 250 U8 Reserved2; /* 06h */ 251 U8 MsgFlags; /* 07h */ 252 U32 MsgContext; /* 08h */ 253 U16 Reserved3; /* 0Ch */ 254 U16 IOCStatus; /* 0Eh */ --- 46 unchanged lines hidden (view full) --- 301 302/****************************************************************************/ 303/* FC Common Transport Send messages */ 304/****************************************************************************/ 305 306typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST 307{ 308 U8 SendFlags; /* 00h */ |
300 U8 Reserved; /* 01h */ | 309 U8 AliasIndex; /* 01h */ |
301 U8 ChainOffset; /* 02h */ 302 U8 Function; /* 03h */ 303 U32 MsgFlags_Did; /* 04h */ 304 U32 MsgContext; /* 08h */ 305 U16 CTCommandCode; /* 0Ch */ 306 U8 FsType; /* 0Eh */ 307 U8 Reserved1; /* 0Fh */ 308 SGE_SIMPLE_UNION SGL; /* 10h */ --- 5 unchanged lines hidden (view full) --- 314#define MPI_FC_CT_SEND_DID_SHIFT (0) 315#define MPI_FC_CT_SEND_MSGFLAGS_MASK (0xFF000000) 316#define MPI_FC_CT_SEND_MSGFLAGS_SHIFT (24) 317 318 319/* FC Common Transport Send Reply */ 320typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY 321{ | 310 U8 ChainOffset; /* 02h */ 311 U8 Function; /* 03h */ 312 U32 MsgFlags_Did; /* 04h */ 313 U32 MsgContext; /* 08h */ 314 U16 CTCommandCode; /* 0Ch */ 315 U8 FsType; /* 0Eh */ 316 U8 Reserved1; /* 0Fh */ 317 SGE_SIMPLE_UNION SGL; /* 10h */ --- 5 unchanged lines hidden (view full) --- 323#define MPI_FC_CT_SEND_DID_SHIFT (0) 324#define MPI_FC_CT_SEND_MSGFLAGS_MASK (0xFF000000) 325#define MPI_FC_CT_SEND_MSGFLAGS_SHIFT (24) 326 327 328/* FC Common Transport Send Reply */ 329typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY 330{ |
322 U16 Reserved; /* 00h */ | 331 U8 Reserved; /* 00h */ 332 U8 AliasIndex; /* 01h */ |
323 U8 MsgLength; /* 02h */ 324 U8 Function; /* 03h */ 325 U16 Reserved1; /* 04h */ 326 U8 Reserved2; /* 06h */ 327 U8 MsgFlags; /* 07h */ 328 U32 MsgContext; /* 08h */ 329 U16 Reserved3; /* 0Ch */ 330 U16 IOCStatus; /* 0Eh */ --- 17 unchanged lines hidden (view full) --- 348 U8 Reserved2; /* 06h */ 349 U8 MsgFlags; /* 07h */ 350 U32 MsgContext; /* 08h */ 351 U8 FcPrimitive[4]; /* 0Ch */ 352} MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST, 353 FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t; 354 355#define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK (0x01) | 333 U8 MsgLength; /* 02h */ 334 U8 Function; /* 03h */ 335 U16 Reserved1; /* 04h */ 336 U8 Reserved2; /* 06h */ 337 U8 MsgFlags; /* 07h */ 338 U32 MsgContext; /* 08h */ 339 U16 Reserved3; /* 0Ch */ 340 U16 IOCStatus; /* 0Eh */ --- 17 unchanged lines hidden (view full) --- 358 U8 Reserved2; /* 06h */ 359 U8 MsgFlags; /* 07h */ 360 U32 MsgContext; /* 08h */ 361 U8 FcPrimitive[4]; /* 0Ch */ 362} MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST, 363 FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t; 364 365#define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK (0x01) |
366#define MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK (0x02) |
|
356#define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK (0x04) 357#define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND (0x08) 358#define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE (0x10) 359#define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND (0x20) 360#define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL (0x40) 361#define MPI_FC_PRIM_SEND_FLAGS_FOREVER (0x80) 362 363/* FC Primitive Send Reply */ --- 18 unchanged lines hidden --- | 367#define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK (0x04) 368#define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND (0x08) 369#define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE (0x10) 370#define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND (0x20) 371#define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL (0x40) 372#define MPI_FC_PRIM_SEND_FLAGS_FOREVER (0x80) 373 374/* FC Primitive Send Reply */ --- 18 unchanged lines hidden --- |