Deleted Added
full compact
mpi.h (156000) mpi.h (170251)
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi.h 156000 2006-02-25 07:45:54Z mjacob $ */
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi.h 170251 2007-06-03 22:58:27Z scottl $ */
2/*-
3 * Copyright (c) 2000-2005, LSI Logic Corporation and its contributors.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 * 1. Redistributions of source code must retain the above copyright

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

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.
31 *
32 * Name: mpi.h
33 * Title: MPI Message independent structures and definitions
34 * Creation Date: July 27, 2000
35 *
2/*-
3 * Copyright (c) 2000-2005, LSI Logic Corporation and its contributors.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 * 1. Redistributions of source code must retain the above copyright

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

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.
31 *
32 * Name: mpi.h
33 * Title: MPI Message independent structures and definitions
34 * Creation Date: July 27, 2000
35 *
36 * mpi.h Version: 01.05.10
36 * mpi.h Version: 01.05.13
37 *
38 * Version History
39 * ---------------
40 *
41 * Date Version Description
42 * -------- -------- ------------------------------------------------------
43 * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
44 * 05-24-00 00.10.02 Added MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH definition.

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

98 * 03-11-05 01.05.07 Removed function codes for SCSI IO 32 and
99 * TargetAssistExtended requests.
100 * Removed EEDP IOCStatus codes.
101 * 06-24-05 01.05.08 Added function codes for SCSI IO 32 and
102 * TargetAssistExtended requests.
103 * Added EEDP IOCStatus codes.
104 * 08-03-05 01.05.09 Bumped MPI_HEADER_VERSION_UNIT.
105 * 08-30-05 01.05.10 Added 2 new IOCStatus codes for Target.
37 *
38 * Version History
39 * ---------------
40 *
41 * Date Version Description
42 * -------- -------- ------------------------------------------------------
43 * 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
44 * 05-24-00 00.10.02 Added MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH definition.

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

98 * 03-11-05 01.05.07 Removed function codes for SCSI IO 32 and
99 * TargetAssistExtended requests.
100 * Removed EEDP IOCStatus codes.
101 * 06-24-05 01.05.08 Added function codes for SCSI IO 32 and
102 * TargetAssistExtended requests.
103 * Added EEDP IOCStatus codes.
104 * 08-03-05 01.05.09 Bumped MPI_HEADER_VERSION_UNIT.
105 * 08-30-05 01.05.10 Added 2 new IOCStatus codes for Target.
106 * 03-27-06 01.05.11 Bumped MPI_HEADER_VERSION_UNIT.
107 * 10-11-06 01.05.12 Bumped MPI_HEADER_VERSION_UNIT.
108 * 05-24-07 01.05.13 Bumped MPI_HEADER_VERSION_UNIT.
106 * --------------------------------------------------------------------------
107 */
108
109#ifndef MPI_H
110#define MPI_H
111
112
113/*****************************************************************************

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

128#define MPI_VERSION_01_00 (0x0100)
129#define MPI_VERSION_01_01 (0x0101)
130#define MPI_VERSION_01_02 (0x0102)
131#define MPI_VERSION_01_03 (0x0103)
132#define MPI_VERSION_01_05 (0x0105)
133/* Note: The major versions of 0xe0 through 0xff are reserved */
134
135/* versioning for this MPI header set */
109 * --------------------------------------------------------------------------
110 */
111
112#ifndef MPI_H
113#define MPI_H
114
115
116/*****************************************************************************

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

131#define MPI_VERSION_01_00 (0x0100)
132#define MPI_VERSION_01_01 (0x0101)
133#define MPI_VERSION_01_02 (0x0102)
134#define MPI_VERSION_01_03 (0x0103)
135#define MPI_VERSION_01_05 (0x0105)
136/* Note: The major versions of 0xe0 through 0xff are reserved */
137
138/* versioning for this MPI header set */
136#define MPI_HEADER_VERSION_UNIT (0x0C)
139#define MPI_HEADER_VERSION_UNIT (0x10)
137#define MPI_HEADER_VERSION_DEV (0x00)
138#define MPI_HEADER_VERSION_UNIT_MASK (0xFF00)
139#define MPI_HEADER_VERSION_UNIT_SHIFT (8)
140#define MPI_HEADER_VERSION_DEV_MASK (0x00FF)
141#define MPI_HEADER_VERSION_DEV_SHIFT (0)
142#define MPI_HEADER_VERSION ((MPI_HEADER_VERSION_UNIT << 8) | MPI_HEADER_VERSION_DEV)
143
144/*****************************************************************************

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

670* I O C S t a t u s V a l u e s
671*
672*****************************************************************************/
673
674/****************************************************************************/
675/* Common IOCStatus values for all replies */
676/****************************************************************************/
677
140#define MPI_HEADER_VERSION_DEV (0x00)
141#define MPI_HEADER_VERSION_UNIT_MASK (0xFF00)
142#define MPI_HEADER_VERSION_UNIT_SHIFT (8)
143#define MPI_HEADER_VERSION_DEV_MASK (0x00FF)
144#define MPI_HEADER_VERSION_DEV_SHIFT (0)
145#define MPI_HEADER_VERSION ((MPI_HEADER_VERSION_UNIT << 8) | MPI_HEADER_VERSION_DEV)
146
147/*****************************************************************************

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

673* I O C S t a t u s V a l u e s
674*
675*****************************************************************************/
676
677/****************************************************************************/
678/* Common IOCStatus values for all replies */
679/****************************************************************************/
680
678#define MPI_IOCSTATUS_SUCCESS (0x0000)
679#define MPI_IOCSTATUS_INVALID_FUNCTION (0x0001)
680#define MPI_IOCSTATUS_BUSY (0x0002)
681#define MPI_IOCSTATUS_INVALID_SGL (0x0003)
682#define MPI_IOCSTATUS_INTERNAL_ERROR (0x0004)
683#define MPI_IOCSTATUS_RESERVED (0x0005)
684#define MPI_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006)
685#define MPI_IOCSTATUS_INVALID_FIELD (0x0007)
686#define MPI_IOCSTATUS_INVALID_STATE (0x0008)
681#define MPI_IOCSTATUS_SUCCESS (0x0000)
682#define MPI_IOCSTATUS_INVALID_FUNCTION (0x0001)
683#define MPI_IOCSTATUS_BUSY (0x0002)
684#define MPI_IOCSTATUS_INVALID_SGL (0x0003)
685#define MPI_IOCSTATUS_INTERNAL_ERROR (0x0004)
686#define MPI_IOCSTATUS_RESERVED (0x0005)
687#define MPI_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006)
688#define MPI_IOCSTATUS_INVALID_FIELD (0x0007)
689#define MPI_IOCSTATUS_INVALID_STATE (0x0008)
687#define MPI_IOCSTATUS_OP_STATE_NOT_SUPPORTED (0x0009)
688
689/****************************************************************************/
690/* Config IOCStatus values */
691/****************************************************************************/
692
690#define MPI_IOCSTATUS_OP_STATE_NOT_SUPPORTED (0x0009)
691
692/****************************************************************************/
693/* Config IOCStatus values */
694/****************************************************************************/
695
693#define MPI_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020)
694#define MPI_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021)
695#define MPI_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022)
696#define MPI_IOCSTATUS_CONFIG_INVALID_DATA (0x0023)
697#define MPI_IOCSTATUS_CONFIG_NO_DEFAULTS (0x0024)
698#define MPI_IOCSTATUS_CONFIG_CANT_COMMIT (0x0025)
696#define MPI_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020)
697#define MPI_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021)
698#define MPI_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022)
699#define MPI_IOCSTATUS_CONFIG_INVALID_DATA (0x0023)
700#define MPI_IOCSTATUS_CONFIG_NO_DEFAULTS (0x0024)
701#define MPI_IOCSTATUS_CONFIG_CANT_COMMIT (0x0025)
699
700/****************************************************************************/
701/* SCSIIO Reply (SPI & FCP) initiator values */
702/****************************************************************************/
703
702
703/****************************************************************************/
704/* SCSIIO Reply (SPI & FCP) initiator values */
705/****************************************************************************/
706
704#define MPI_IOCSTATUS_SCSI_RECOVERED_ERROR (0x0040)
705#define MPI_IOCSTATUS_SCSI_INVALID_BUS (0x0041)
706#define MPI_IOCSTATUS_SCSI_INVALID_TARGETID (0x0042)
707#define MPI_IOCSTATUS_SCSI_DEVICE_NOT_THERE (0x0043)
708#define MPI_IOCSTATUS_SCSI_DATA_OVERRUN (0x0044)
709#define MPI_IOCSTATUS_SCSI_DATA_UNDERRUN (0x0045)
710#define MPI_IOCSTATUS_SCSI_IO_DATA_ERROR (0x0046)
711#define MPI_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047)
712#define MPI_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048)
713#define MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049)
714#define MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004A)
715#define MPI_IOCSTATUS_SCSI_IOC_TERMINATED (0x004B)
716#define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C)
707#define MPI_IOCSTATUS_SCSI_RECOVERED_ERROR (0x0040)
708#define MPI_IOCSTATUS_SCSI_INVALID_BUS (0x0041)
709#define MPI_IOCSTATUS_SCSI_INVALID_TARGETID (0x0042)
710#define MPI_IOCSTATUS_SCSI_DEVICE_NOT_THERE (0x0043)
711#define MPI_IOCSTATUS_SCSI_DATA_OVERRUN (0x0044)
712#define MPI_IOCSTATUS_SCSI_DATA_UNDERRUN (0x0045)
713#define MPI_IOCSTATUS_SCSI_IO_DATA_ERROR (0x0046)
714#define MPI_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047)
715#define MPI_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048)
716#define MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049)
717#define MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004A)
718#define MPI_IOCSTATUS_SCSI_IOC_TERMINATED (0x004B)
719#define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C)
717
718/****************************************************************************/
719/* For use by SCSI Initiator and SCSI Target end-to-end data protection */
720/****************************************************************************/
721
722#define MPI_IOCSTATUS_EEDP_GUARD_ERROR (0x004D)
723#define MPI_IOCSTATUS_EEDP_REF_TAG_ERROR (0x004E)
724#define MPI_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004F)

--- 96 unchanged lines hidden ---
720
721/****************************************************************************/
722/* For use by SCSI Initiator and SCSI Target end-to-end data protection */
723/****************************************************************************/
724
725#define MPI_IOCSTATUS_EEDP_GUARD_ERROR (0x004D)
726#define MPI_IOCSTATUS_EEDP_REF_TAG_ERROR (0x004E)
727#define MPI_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004F)

--- 96 unchanged lines hidden ---