xref: /titanic_41/usr/src/uts/common/sys/scsi/adapters/mpt_sas/mpi/mpi2_ra.h (revision 6824ee06c346d29bf3a2627dcbb6d0d2f4c7b9d7)
1 /*-
2  * Copyright (c) 2013 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  * 3. Neither the name of the author nor the names of any co-contributors
14  *    may be used to endorse or promote products derived from this software
15  *    without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27  * SUCH DAMAGE.
28  */
29 
30 /*
31  *  Copyright (c) 2009 LSI Corporation.
32  *
33  *
34  *           Name:  mpi2_ra.h
35  *          Title:  MPI RAID Accelerator messages and structures
36  *  Creation Date:  April 13, 2009
37  *
38  *  mpi2_ra.h Version:  02.00.00
39  *
40  *  Version History
41  *  ---------------
42  *
43  *  Date      Version   Description
44  *  --------  --------  ------------------------------------------------------
45  *  05-06-09  02.00.00  Initial version.
46  *  --------------------------------------------------------------------------
47  */
48 
49 #ifndef MPI2_RA_H
50 #define MPI2_RA_H
51 
52 /* generic structure for RAID Accelerator Control Block */
53 typedef struct _MPI2_RAID_ACCELERATOR_CONTROL_BLOCK
54 {
55     U32                 Reserved[8];                /* 0x00 */
56     U32                 RaidAcceleratorCDB[1];      /* 0x20 */
57 } MPI2_RAID_ACCELERATOR_CONTROL_BLOCK,
58   MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_CONTROL_BLOCK,
59   Mpi2RAIDAcceleratorControlBlock_t,
60   MPI2_POINTER pMpi2RAIDAcceleratorControlBlock_t;
61 
62 
63 /******************************************************************************
64 *
65 *        RAID Accelerator Messages
66 *
67 *******************************************************************************/
68 
69 /* RAID Accelerator Request Message */
70 typedef struct _MPI2_RAID_ACCELERATOR_REQUEST
71 {
72     U16                     Reserved0;                          /* 0x00 */
73     U8                      ChainOffset;                        /* 0x02 */
74     U8                      Function;                           /* 0x03 */
75     U16                     Reserved1;                          /* 0x04 */
76     U8                      Reserved2;                          /* 0x06 */
77     U8                      MsgFlags;                           /* 0x07 */
78     U8                      VP_ID;                              /* 0x08 */
79     U8                      VF_ID;                              /* 0x09 */
80     U16                     Reserved3;                          /* 0x0A */
81     U64                     RaidAcceleratorControlBlockAddress; /* 0x0C */
82     U8                      DmaEngineNumber;                    /* 0x14 */
83     U8                      Reserved4;                          /* 0x15 */
84     U16                     Reserved5;                          /* 0x16 */
85     U32                     Reserved6;                          /* 0x18 */
86     U32                     Reserved7;                          /* 0x1C */
87     U32                     Reserved8;                          /* 0x20 */
88 } MPI2_RAID_ACCELERATOR_REQUEST, MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_REQUEST,
89   Mpi2RAIDAcceleratorRequest_t, MPI2_POINTER pMpi2RAIDAcceleratorRequest_t;
90 
91 
92 /* RAID Accelerator Error Reply Message */
93 typedef struct _MPI2_RAID_ACCELERATOR_REPLY
94 {
95     U16                     Reserved0;                      /* 0x00 */
96     U8                      MsgLength;                      /* 0x02 */
97     U8                      Function;                       /* 0x03 */
98     U16                     Reserved1;                      /* 0x04 */
99     U8                      Reserved2;                      /* 0x06 */
100     U8                      MsgFlags;                       /* 0x07 */
101     U8                      VP_ID;                          /* 0x08 */
102     U8                      VF_ID;                          /* 0x09 */
103     U16                     Reserved3;                      /* 0x0A */
104     U16                     Reserved4;                      /* 0x0C */
105     U16                     IOCStatus;                      /* 0x0E */
106     U32                     IOCLogInfo;                     /* 0x10 */
107     U32                     ProductSpecificData[3];         /* 0x14 */
108 } MPI2_RAID_ACCELERATOR_REPLY, MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_REPLY,
109   Mpi2RAIDAcceleratorReply_t, MPI2_POINTER pMpi2RAIDAcceleratorReply_t;
110 
111 
112 #endif
113 
114 
115