Deleted Added
full compact
mpi_sas.h (170251) mpi_sas.h (233425)
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_sas.h 170251 2007-06-03 22:58:27Z scottl $ */
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_sas.h 233425 2012-03-24 16:23:21Z marius $ */
2/*-
2/*-
3 * Copyright (c) 2000-2005, LSI Logic Corporation and its contributors.
3 * Copyright (c) 2000-2010, 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
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce at minimum a disclaimer

--- 16 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_sas.h
33 * Title: MPI Serial Attached SCSI structures and definitions
34 * Creation Date: August 19, 2004
35 *
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
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce at minimum a disclaimer

--- 16 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_sas.h
33 * Title: MPI Serial Attached SCSI structures and definitions
34 * Creation Date: August 19, 2004
35 *
36 * mpi_sas.h Version: 01.05.04
36 * mpi_sas.h Version: 01.05.05
37 *
38 * Version History
39 * ---------------
40 *
41 * Date Version Description
42 * -------- -------- ------------------------------------------------------
43 * 08-19-04 01.05.01 Original release.
44 * 08-30-05 01.05.02 Added DeviceInfo bit for SEP.
45 * Added PrimFlags and Primitive field to SAS IO Unit
46 * Control request, and added a new operation code.
47 * 03-27-06 01.05.03 Added Force Full Discovery, Transmit Port Select Signal,
48 * and Remove Device operations to SAS IO Unit Control.
49 * Added DevHandle field to SAS IO Unit Control request and
50 * reply.
51 * 10-11-06 01.05.04 Fixed the name of a define for Operation field of SAS IO
52 * Unit Control request.
37 *
38 * Version History
39 * ---------------
40 *
41 * Date Version Description
42 * -------- -------- ------------------------------------------------------
43 * 08-19-04 01.05.01 Original release.
44 * 08-30-05 01.05.02 Added DeviceInfo bit for SEP.
45 * Added PrimFlags and Primitive field to SAS IO Unit
46 * Control request, and added a new operation code.
47 * 03-27-06 01.05.03 Added Force Full Discovery, Transmit Port Select Signal,
48 * and Remove Device operations to SAS IO Unit Control.
49 * Added DevHandle field to SAS IO Unit Control request and
50 * reply.
51 * 10-11-06 01.05.04 Fixed the name of a define for Operation field of SAS IO
52 * Unit Control request.
53 * 01-15-08 01.05.05 Added support for MPI_SAS_OP_SET_IOC_PARAMETER,
54 * including adding IOCParameter and IOCParameter value
55 * fields to SAS IO Unit Control Request.
56 * Added MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC define.
53 * --------------------------------------------------------------------------
54 */
55
56#ifndef MPI_SAS_H
57#define MPI_SAS_H
58
59
60/*

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

82#define MPI_SASSTATUS_SDSF_CONNECTION_FAILED (0x13)
83#define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT (0x14)
84
85
86/*
87 * Values for the SAS DeviceInfo field used in SAS Device Status Change Event
88 * data and SAS IO Unit Configuration pages.
89 */
57 * --------------------------------------------------------------------------
58 */
59
60#ifndef MPI_SAS_H
61#define MPI_SAS_H
62
63
64/*

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

86#define MPI_SASSTATUS_SDSF_CONNECTION_FAILED (0x13)
87#define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT (0x14)
88
89
90/*
91 * Values for the SAS DeviceInfo field used in SAS Device Status Change Event
92 * data and SAS IO Unit Configuration pages.
93 */
94#define MPI_SAS_DEVICE_INFO_PRODUCT_SPECIFIC (0xF0000000)
95
90#define MPI_SAS_DEVICE_INFO_SEP (0x00004000)
91#define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE (0x00002000)
92#define MPI_SAS_DEVICE_INFO_LSI_DEVICE (0x00001000)
93#define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH (0x00000800)
94#define MPI_SAS_DEVICE_INFO_SSP_TARGET (0x00000400)
95#define MPI_SAS_DEVICE_INFO_STP_TARGET (0x00000200)
96#define MPI_SAS_DEVICE_INFO_SMP_TARGET (0x00000100)
97#define MPI_SAS_DEVICE_INFO_SATA_DEVICE (0x00000080)

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

238
239typedef struct _MSG_SAS_IOUNIT_CONTROL_REQUEST
240{
241 U8 Operation; /* 00h */
242 U8 Reserved1; /* 01h */
243 U8 ChainOffset; /* 02h */
244 U8 Function; /* 03h */
245 U16 DevHandle; /* 04h */
96#define MPI_SAS_DEVICE_INFO_SEP (0x00004000)
97#define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE (0x00002000)
98#define MPI_SAS_DEVICE_INFO_LSI_DEVICE (0x00001000)
99#define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH (0x00000800)
100#define MPI_SAS_DEVICE_INFO_SSP_TARGET (0x00000400)
101#define MPI_SAS_DEVICE_INFO_STP_TARGET (0x00000200)
102#define MPI_SAS_DEVICE_INFO_SMP_TARGET (0x00000100)
103#define MPI_SAS_DEVICE_INFO_SATA_DEVICE (0x00000080)

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

244
245typedef struct _MSG_SAS_IOUNIT_CONTROL_REQUEST
246{
247 U8 Operation; /* 00h */
248 U8 Reserved1; /* 01h */
249 U8 ChainOffset; /* 02h */
250 U8 Function; /* 03h */
251 U16 DevHandle; /* 04h */
246 U8 Reserved3; /* 06h */
252 U8 IOCParameter; /* 06h */
247 U8 MsgFlags; /* 07h */
248 U32 MsgContext; /* 08h */
249 U8 TargetID; /* 0Ch */
250 U8 Bus; /* 0Dh */
251 U8 PhyNum; /* 0Eh */
252 U8 PrimFlags; /* 0Fh */
253 U32 Primitive; /* 10h */
254 U64 SASAddress; /* 14h */
253 U8 MsgFlags; /* 07h */
254 U32 MsgContext; /* 08h */
255 U8 TargetID; /* 0Ch */
256 U8 Bus; /* 0Dh */
257 U8 PhyNum; /* 0Eh */
258 U8 PrimFlags; /* 0Fh */
259 U32 Primitive; /* 10h */
260 U64 SASAddress; /* 14h */
255 U32 Reserved4; /* 1Ch */
261 U32 IOCParameterValue; /* 1Ch */
256} MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST,
257 SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t;
258
259/* values for the Operation field */
260#define MPI_SAS_OP_CLEAR_NOT_PRESENT (0x01)
261#define MPI_SAS_OP_CLEAR_ALL_PERSISTENT (0x02)
262#define MPI_SAS_OP_PHY_LINK_RESET (0x06)
263#define MPI_SAS_OP_PHY_HARD_RESET (0x07)
264#define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG (0x08)
265#define MPI_SAS_OP_MAP_CURRENT (0x09)
266#define MPI_SAS_OP_SEND_PRIMITIVE (0x0A)
267#define MPI_SAS_OP_FORCE_FULL_DISCOVERY (0x0B)
268#define MPI_SAS_OP_TRANSMIT_PORT_SELECT_SIGNAL (0x0C)
269#define MPI_SAS_OP_TRANSMIT_REMOVE_DEVICE (0x0D) /* obsolete name */
270#define MPI_SAS_OP_REMOVE_DEVICE (0x0D)
262} MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST,
263 SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t;
264
265/* values for the Operation field */
266#define MPI_SAS_OP_CLEAR_NOT_PRESENT (0x01)
267#define MPI_SAS_OP_CLEAR_ALL_PERSISTENT (0x02)
268#define MPI_SAS_OP_PHY_LINK_RESET (0x06)
269#define MPI_SAS_OP_PHY_HARD_RESET (0x07)
270#define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG (0x08)
271#define MPI_SAS_OP_MAP_CURRENT (0x09)
272#define MPI_SAS_OP_SEND_PRIMITIVE (0x0A)
273#define MPI_SAS_OP_FORCE_FULL_DISCOVERY (0x0B)
274#define MPI_SAS_OP_TRANSMIT_PORT_SELECT_SIGNAL (0x0C)
275#define MPI_SAS_OP_TRANSMIT_REMOVE_DEVICE (0x0D) /* obsolete name */
276#define MPI_SAS_OP_REMOVE_DEVICE (0x0D)
277#define MPI_SAS_OP_SET_IOC_PARAMETER (0x0E)
278#define MPI_SAS_OP_PRODUCT_SPECIFIC_MIN (0x80)
271
272/* values for the PrimFlags field */
273#define MPI_SAS_PRIMFLAGS_SINGLE (0x08)
274#define MPI_SAS_PRIMFLAGS_TRIPLE (0x02)
275#define MPI_SAS_PRIMFLAGS_REDUNDANT (0x01)
276
277
278/* SAS IO Unit Control Reply */
279typedef struct _MSG_SAS_IOUNIT_CONTROL_REPLY
280{
281 U8 Operation; /* 00h */
282 U8 Reserved1; /* 01h */
283 U8 MsgLength; /* 02h */
284 U8 Function; /* 03h */
285 U16 DevHandle; /* 04h */
279
280/* values for the PrimFlags field */
281#define MPI_SAS_PRIMFLAGS_SINGLE (0x08)
282#define MPI_SAS_PRIMFLAGS_TRIPLE (0x02)
283#define MPI_SAS_PRIMFLAGS_REDUNDANT (0x01)
284
285
286/* SAS IO Unit Control Reply */
287typedef struct _MSG_SAS_IOUNIT_CONTROL_REPLY
288{
289 U8 Operation; /* 00h */
290 U8 Reserved1; /* 01h */
291 U8 MsgLength; /* 02h */
292 U8 Function; /* 03h */
293 U16 DevHandle; /* 04h */
286 U8 Reserved3; /* 06h */
294 U8 IOCParameter; /* 06h */
287 U8 MsgFlags; /* 07h */
288 U32 MsgContext; /* 08h */
289 U16 Reserved4; /* 0Ch */
290 U16 IOCStatus; /* 0Eh */
291 U32 IOCLogInfo; /* 10h */
292} MSG_SAS_IOUNIT_CONTROL_REPLY, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REPLY,
293 SasIoUnitControlReply_t, MPI_POINTER pSasIoUnitControlReply_t;
294
295#endif
296
297
295 U8 MsgFlags; /* 07h */
296 U32 MsgContext; /* 08h */
297 U16 Reserved4; /* 0Ch */
298 U16 IOCStatus; /* 0Eh */
299 U32 IOCLogInfo; /* 10h */
300} MSG_SAS_IOUNIT_CONTROL_REPLY, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REPLY,
301 SasIoUnitControlReply_t, MPI_POINTER pSasIoUnitControlReply_t;
302
303#endif
304
305