11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*-
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Copyright (c) 2013 LSI Corp.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * All rights reserved.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Redistribution and use in source and binary forms, with or without
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * modification, are permitted provided that the following conditions
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * are met:
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 1. Redistributions of source code must retain the above copyright
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * notice, this list of conditions and the following disclaimer.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 2. Redistributions in binary form must reproduce the above copyright
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * notice, this list of conditions and the following disclaimer in the
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * documentation and/or other materials provided with the distribution.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 3. Neither the name of the author nor the names of any co-contributors
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * may be used to endorse or promote products derived from this software
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * without specific prior written permission.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * SUCH DAMAGE.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Copyright (c) 2009 LSI Corporation.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Name: mpi2_ra.h
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Title: MPI RAID Accelerator messages and structures
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Creation Date: April 13, 2009
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * mpi2_ra.h Version: 02.00.00
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Version History
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * ---------------
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles *
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * Date Version Description
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * -------- -------- ------------------------------------------------------
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * 05-06-09 02.00.00 Initial version.
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles * --------------------------------------------------------------------------
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#ifndef MPI2_RA_H
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#define MPI2_RA_H
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* generic structure for RAID Accelerator Control Block */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_RAID_ACCELERATOR_CONTROL_BLOCK
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved[8]; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 RaidAcceleratorCDB[1]; /* 0x20 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_RAID_ACCELERATOR_CONTROL_BLOCK,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_CONTROL_BLOCK,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2RAIDAcceleratorControlBlock_t,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles MPI2_POINTER pMpi2RAIDAcceleratorControlBlock_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/******************************************************************************
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles* RAID Accelerator Messages
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles*
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles*******************************************************************************/
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* RAID Accelerator Request Message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_RAID_ACCELERATOR_REQUEST
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved0; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 ChainOffset; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U64 RaidAcceleratorControlBlockAddress; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 DmaEngineNumber; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved4; /* 0x15 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved5; /* 0x16 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved6; /* 0x18 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved7; /* 0x1C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 Reserved8; /* 0x20 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_RAID_ACCELERATOR_REQUEST, MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_REQUEST,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2RAIDAcceleratorRequest_t, MPI2_POINTER pMpi2RAIDAcceleratorRequest_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles/* RAID Accelerator Error Reply Message */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Gilestypedef struct _MPI2_RAID_ACCELERATOR_REPLY
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles{
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved0; /* 0x00 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgLength; /* 0x02 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Function; /* 0x03 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved1; /* 0x04 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 Reserved2; /* 0x06 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 MsgFlags; /* 0x07 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VP_ID; /* 0x08 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U8 VF_ID; /* 0x09 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved3; /* 0x0A */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 Reserved4; /* 0x0C */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U16 IOCStatus; /* 0x0E */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 IOCLogInfo; /* 0x10 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles U32 ProductSpecificData[3]; /* 0x14 */
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles} MPI2_RAID_ACCELERATOR_REPLY, MPI2_POINTER PTR_MPI2_RAID_ACCELERATOR_REPLY,
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles Mpi2RAIDAcceleratorReply_t, MPI2_POINTER pMpi2RAIDAcceleratorReply_t;
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles#endif
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles