Deleted Added
full compact
mpi2_targ.h (212420) mpi2_targ.h (230592)
1/* $FreeBSD: head/sys/dev/mps/mpi/mpi2_targ.h 212420 2010-09-10 15:03:56Z ken $ */
1/*-
2 * Copyright (c) 2011 LSI Corp.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
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
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR 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.
25 *
26 * LSI MPT-Fusion Host Adapter FreeBSD
27 *
28 * $FreeBSD: head/sys/dev/mps/mpi/mpi2_targ.h 230592 2012-01-26 18:17:21Z ken $
29 */
30
2/*
31/*
3 * Copyright (c) 2000-2008 LSI Corporation.
32 * Copyright (c) 2000-2011 LSI Corporation.
4 *
5 *
6 * Name: mpi2_targ.h
7 * Title: MPI Target mode messages and structures
8 * Creation Date: September 8, 2006
9 *
33 *
34 *
35 * Name: mpi2_targ.h
36 * Title: MPI Target mode messages and structures
37 * Creation Date: September 8, 2006
38 *
10 * mpi2_targ.h Version: 02.00.03
39 * mpi2_targ.h Version: 02.00.04
11 *
12 * Version History
13 * ---------------
14 *
15 * Date Version Description
16 * -------- -------- ------------------------------------------------------
17 * 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
18 * 08-31-07 02.00.01 Added Command Buffer Data Location Address Space bits to
19 * BufferPostFlags field of CommandBufferPostBase Request.
20 * 02-29-08 02.00.02 Modified various names to make them 32-character unique.
21 * 10-02-08 02.00.03 Removed NextCmdBufferOffset from
22 * MPI2_TARGET_CMD_BUF_POST_BASE_REQUEST.
23 * Target Status Send Request only takes a single SGE for
24 * response data.
40 *
41 * Version History
42 * ---------------
43 *
44 * Date Version Description
45 * -------- -------- ------------------------------------------------------
46 * 04-30-07 02.00.00 Corresponds to Fusion-MPT MPI Specification Rev A.
47 * 08-31-07 02.00.01 Added Command Buffer Data Location Address Space bits to
48 * BufferPostFlags field of CommandBufferPostBase Request.
49 * 02-29-08 02.00.02 Modified various names to make them 32-character unique.
50 * 10-02-08 02.00.03 Removed NextCmdBufferOffset from
51 * MPI2_TARGET_CMD_BUF_POST_BASE_REQUEST.
52 * Target Status Send Request only takes a single SGE for
53 * response data.
54 * 02-10-10 02.00.04 Added comment to MPI2_TARGET_SSP_RSP_IU structure.
25 * --------------------------------------------------------------------------
26 */
27
28#ifndef MPI2_TARG_H
29#define MPI2_TARG_H
30
31
32/******************************************************************************

--- 305 unchanged lines hidden (view full) ---

338
339/*
340 * NOTE: The SSP status IU is big-endian. When used on a little-endian system,
341 * this structure properly orders the bytes.
342 */
343typedef struct _MPI2_TARGET_SSP_RSP_IU
344{
345 U32 Reserved0[6]; /* reserved for SSP header */ /* 0x00 */
55 * --------------------------------------------------------------------------
56 */
57
58#ifndef MPI2_TARG_H
59#define MPI2_TARG_H
60
61
62/******************************************************************************

--- 305 unchanged lines hidden (view full) ---

368
369/*
370 * NOTE: The SSP status IU is big-endian. When used on a little-endian system,
371 * this structure properly orders the bytes.
372 */
373typedef struct _MPI2_TARGET_SSP_RSP_IU
374{
375 U32 Reserved0[6]; /* reserved for SSP header */ /* 0x00 */
376
346 /* start of RESPONSE information unit */
347 U32 Reserved1; /* 0x18 */
348 U32 Reserved2; /* 0x1C */
349 U16 Reserved3; /* 0x20 */
350 U8 DataPres; /* lower 2 bits */ /* 0x22 */
351 U8 Status; /* 0x23 */
352 U32 Reserved4; /* 0x24 */
353 U32 SenseDataLength; /* 0x28 */
354 U32 ResponseDataLength; /* 0x2C */
377 /* start of RESPONSE information unit */
378 U32 Reserved1; /* 0x18 */
379 U32 Reserved2; /* 0x1C */
380 U16 Reserved3; /* 0x20 */
381 U8 DataPres; /* lower 2 bits */ /* 0x22 */
382 U8 Status; /* 0x23 */
383 U32 Reserved4; /* 0x24 */
384 U32 SenseDataLength; /* 0x28 */
385 U32 ResponseDataLength; /* 0x2C */
386
387 /* start of Response or Sense Data (size may vary dynamically) */
355 U8 ResponseSenseData[4]; /* 0x30 */
356} MPI2_TARGET_SSP_RSP_IU, MPI2_POINTER PTR_MPI2_TARGET_SSP_RSP_IU,
357 Mpi2TargetSspRspIu_t, MPI2_POINTER pMpi2TargetSspRspIu_t;
358
359
360/****************************************************************************
361* Target Standard Reply - used with Target Assist or Target Status Send
362****************************************************************************/

--- 79 unchanged lines hidden ---
388 U8 ResponseSenseData[4]; /* 0x30 */
389} MPI2_TARGET_SSP_RSP_IU, MPI2_POINTER PTR_MPI2_TARGET_SSP_RSP_IU,
390 Mpi2TargetSspRspIu_t, MPI2_POINTER pMpi2TargetSspRspIu_t;
391
392
393/****************************************************************************
394* Target Standard Reply - used with Target Assist or Target Status Send
395****************************************************************************/

--- 79 unchanged lines hidden ---