Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
This commit is contained in:
66
drivers/message/fusion/Kconfig
Normal file
66
drivers/message/fusion/Kconfig
Normal file
@@ -0,0 +1,66 @@
|
||||
|
||||
menu "Fusion MPT device support"
|
||||
|
||||
config FUSION
|
||||
tristate "Fusion MPT (base + ScsiHost) drivers"
|
||||
depends on PCI && SCSI
|
||||
---help---
|
||||
LSI Logic Fusion(TM) Message Passing Technology (MPT) device support
|
||||
provides high performance SCSI host initiator, and LAN [1] interface
|
||||
services to a host system. The Fusion architecture is capable of
|
||||
duplexing these protocols on high-speed Fibre Channel
|
||||
(up to 2 GHz x 2 ports = 4 GHz) and parallel SCSI (up to Ultra-320)
|
||||
physical medium.
|
||||
|
||||
[1] LAN is not supported on parallel SCSI medium.
|
||||
|
||||
config FUSION_MAX_SGE
|
||||
int "Maximum number of scatter gather entries"
|
||||
depends on FUSION
|
||||
default "40"
|
||||
help
|
||||
This option allows you to specify the maximum number of scatter-
|
||||
gather entries per I/O. The driver defaults to 40, a reasonable number
|
||||
for most systems. However, the user may increase this up to 128.
|
||||
Increasing this parameter will require significantly more memory
|
||||
on a per controller instance. Increasing the parameter is not
|
||||
necessary (or recommended) unless the user will be running
|
||||
large I/O's via the raw interface.
|
||||
|
||||
config FUSION_CTL
|
||||
tristate "Fusion MPT misc device (ioctl) driver"
|
||||
depends on FUSION
|
||||
---help---
|
||||
The Fusion MPT misc device driver provides specialized control
|
||||
of MPT adapters via system ioctl calls. Use of ioctl calls to
|
||||
the MPT driver requires that you create and use a misc device
|
||||
node ala:
|
||||
mknod /dev/mptctl c 10 240
|
||||
|
||||
One use of this ioctl interface is to perform an upgrade (reflash)
|
||||
of the MPT adapter firmware. Refer to readme file(s) distributed
|
||||
with the Fusion MPT linux driver for additional details.
|
||||
|
||||
If enabled by saying M to this, a driver named: mptctl
|
||||
will be compiled.
|
||||
|
||||
If unsure whether you really want or need this, say N.
|
||||
|
||||
config FUSION_LAN
|
||||
tristate "Fusion MPT LAN driver"
|
||||
depends on FUSION && NET_FC
|
||||
---help---
|
||||
This module supports LAN IP traffic over Fibre Channel port(s)
|
||||
on Fusion MPT compatible hardware (LSIFC9xx chips).
|
||||
The physical interface used is defined in RFC 2625.
|
||||
Please refer to that document for details.
|
||||
|
||||
Installing this driver requires the knowledge to configure and
|
||||
activate a new network interface, "fc0", using standard Linux tools.
|
||||
|
||||
If enabled by saying M to this, a driver named: mptlan
|
||||
will be compiled.
|
||||
|
||||
If unsure whether you really want or need this, say N.
|
||||
|
||||
endmenu
|
52
drivers/message/fusion/Makefile
Normal file
52
drivers/message/fusion/Makefile
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
# Makefile for the LSI Logic Fusion MPT (Message Passing Technology) drivers.
|
||||
#
|
||||
# Note! If you want to turn on various debug defines for an extended period of
|
||||
# time but don't want them lingering around in the Makefile when you pass it on
|
||||
# to someone else, use the MPT_CFLAGS env variable (thanks Steve). -nromer
|
||||
|
||||
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-{ LSI_LOGIC
|
||||
|
||||
# Architecture-specific...
|
||||
# # intel
|
||||
#EXTRA_CFLAGS += -g
|
||||
# # sparc64
|
||||
#EXTRA_CFLAGS += -gstabs+
|
||||
|
||||
EXTRA_CFLAGS += ${MPT_CFLAGS}
|
||||
|
||||
# Fusion MPT drivers; recognized debug defines...
|
||||
# MPT general:
|
||||
#EXTRA_CFLAGS += -DMPT_DEBUG_SCSI
|
||||
#EXTRA_CFLAGS += -DMPT_DEBUG
|
||||
#EXTRA_CFLAGS += -DMPT_DEBUG_MSG_FRAME
|
||||
#EXTRA_CFLAGS += -DMPT_DEBUG_SG
|
||||
|
||||
#
|
||||
# driver/module specifics...
|
||||
#
|
||||
# For mptbase:
|
||||
#CFLAGS_mptbase.o += -DMPT_DEBUG_HANDSHAKE
|
||||
#CFLAGS_mptbase.o += -DMPT_DEBUG_IRQ
|
||||
#
|
||||
# For mptscsih:
|
||||
#CFLAGS_mptscsih.o += -DMPT_DEBUG_SCANDV
|
||||
#CFLAGS_mptscsih.o += -DMPT_DEBUG_RESET
|
||||
#CFLAGS_mptscsih.o += -DMPT_DEBUG_NEH
|
||||
#
|
||||
# For mptctl:
|
||||
#CFLAGS_mptctl.o += -DMPT_DEBUG_IOCTL
|
||||
#
|
||||
# For mptlan:
|
||||
#CFLAGS_mptlan.o += -DMPT_LAN_IO_DEBUG
|
||||
#
|
||||
# For isense:
|
||||
|
||||
# EXP...
|
||||
##mptscsih-objs := scsihost.o scsiherr.o
|
||||
|
||||
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC
|
||||
|
||||
obj-$(CONFIG_FUSION) += mptbase.o mptscsih.o
|
||||
obj-$(CONFIG_FUSION_CTL) += mptctl.o
|
||||
obj-$(CONFIG_FUSION_LAN) += mptlan.o
|
18
drivers/message/fusion/linux_compat.h
Normal file
18
drivers/message/fusion/linux_compat.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/* drivers/message/fusion/linux_compat.h */
|
||||
|
||||
#ifndef FUSION_LINUX_COMPAT_H
|
||||
#define FUSION_LINUX_COMPAT_H
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <scsi/scsi_device.h>
|
||||
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,6))
|
||||
static int inline scsi_device_online(struct scsi_device *sdev)
|
||||
{
|
||||
return sdev->online;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*}-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
#endif /* _LINUX_COMPAT_H */
|
89
drivers/message/fusion/lsi/fc_log.h
Normal file
89
drivers/message/fusion/lsi/fc_log.h
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2001 LSI Logic Corporation. All rights reserved.
|
||||
*
|
||||
* NAME: fc_log.h
|
||||
* SUMMARY: MPI IocLogInfo definitions for the SYMFC9xx chips
|
||||
* DESCRIPTION: Contains the enumerated list of values that may be returned
|
||||
* in the IOCLogInfo field of a MPI Default Reply Message.
|
||||
*
|
||||
* CREATION DATE: 6/02/2000
|
||||
* ID: $Id: fc_log.h,v 4.6 2001/07/26 14:41:33 sschremm Exp $
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* MpiIocLogInfo_t enum
|
||||
*
|
||||
* These 32 bit values are used in the IOCLogInfo field of the MPI reply
|
||||
* messages.
|
||||
* The value is 0xabcccccc where
|
||||
* a = The type of log info as per the MPI spec. Since these codes are
|
||||
* all for Fibre Channel this value will always be 2.
|
||||
* b = Specifies a subclass of the firmware where
|
||||
* 0 = FCP Initiator
|
||||
* 1 = FCP Target
|
||||
* 2 = LAN
|
||||
* 3 = MPI Message Layer
|
||||
* 4 = FC Link
|
||||
* 5 = Context Manager
|
||||
* 6 = Invalid Field Offset
|
||||
* 7 = State Change Info
|
||||
* all others are reserved for future use
|
||||
* c = A specific value within the subclass.
|
||||
*
|
||||
* NOTE: Any new values should be added to the end of each subclass so that the
|
||||
* codes remain consistent across firmware releases.
|
||||
*/
|
||||
typedef enum _MpiIocLogInfoFc
|
||||
{
|
||||
MPI_IOCLOGINFO_FC_INIT_BASE = 0x20000000,
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_OUT_OF_ORDER_FRAME = 0x20000001, /* received an out of order frame - unsupported */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_START_OF_FRAME = 0x20000002, /* Bad Rx Frame, bad start of frame primative */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_BAD_END_OF_FRAME = 0x20000003, /* Bad Rx Frame, bad end of frame primative */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_OVER_RUN = 0x20000004, /* Bad Rx Frame, overrun */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OTHER = 0x20000005, /* Other errors caught by IOC which require retries */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_SUBPROC_DEAD = 0x20000006, /* Main processor could not initialize sub-processor */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_RX_OVERRUN = 0x20000007, /* Scatter Gather overrun */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_RX_BAD_STATUS = 0x20000008, /* Receiver detected context mismatch via invalid header */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_RX_UNEXPECTED_FRAME= 0x20000009, /* CtxMgr detected unsupported frame type */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_LINK_FAILURE = 0x2000000A, /* Link failure occurred */
|
||||
MPI_IOCLOGINFO_FC_INIT_ERROR_TX_TIMEOUT = 0x2000000B, /* Transmitter timeout error */
|
||||
|
||||
MPI_IOCLOGINFO_FC_TARGET_BASE = 0x21000000,
|
||||
MPI_IOCLOGINFO_FC_TARGET_NO_PDISC = 0x21000001, /* not sent because we are waiting for a PDISC from the initiator */
|
||||
MPI_IOCLOGINFO_FC_TARGET_NO_LOGIN = 0x21000002, /* not sent because we are not logged in to the remote node */
|
||||
MPI_IOCLOGINFO_FC_TARGET_DOAR_KILLED_BY_LIP = 0x21000003, /* Data Out, Auto Response, not sent due to a LIP */
|
||||
MPI_IOCLOGINFO_FC_TARGET_DIAR_KILLED_BY_LIP = 0x21000004, /* Data In, Auto Response, not sent due to a LIP */
|
||||
MPI_IOCLOGINFO_FC_TARGET_DIAR_MISSING_DATA = 0x21000005, /* Data In, Auto Response, missing data frames */
|
||||
MPI_IOCLOGINFO_FC_TARGET_DONR_KILLED_BY_LIP = 0x21000006, /* Data Out, No Response, not sent due to a LIP */
|
||||
MPI_IOCLOGINFO_FC_TARGET_WRSP_KILLED_BY_LIP = 0x21000007, /* Auto-response after a write not sent due to a LIP */
|
||||
MPI_IOCLOGINFO_FC_TARGET_DINR_KILLED_BY_LIP = 0x21000008, /* Data In, No Response, not completed due to a LIP */
|
||||
MPI_IOCLOGINFO_FC_TARGET_DINR_MISSING_DATA = 0x21000009, /* Data In, No Response, missing data frames */
|
||||
MPI_IOCLOGINFO_FC_TARGET_MRSP_KILLED_BY_LIP = 0x2100000a, /* Manual Response not sent due to a LIP */
|
||||
MPI_IOCLOGINFO_FC_TARGET_NO_CLASS_3 = 0x2100000b, /* not sent because remote node does not support Class 3 */
|
||||
MPI_IOCLOGINFO_FC_TARGET_LOGIN_NOT_VALID = 0x2100000c, /* not sent because login to remote node not validated */
|
||||
MPI_IOCLOGINFO_FC_TARGET_FROM_OUTBOUND = 0x2100000e, /* cleared from the outbound queue after a logout */
|
||||
MPI_IOCLOGINFO_FC_TARGET_WAITING_FOR_DATA_IN = 0x2100000f, /* cleared waiting for data after a logout */
|
||||
|
||||
MPI_IOCLOGINFO_FC_LAN_BASE = 0x22000000,
|
||||
MPI_IOCLOGINFO_FC_LAN_TRANS_SGL_MISSING = 0x22000001, /* Transaction Context Sgl Missing */
|
||||
MPI_IOCLOGINFO_FC_LAN_TRANS_WRONG_PLACE = 0x22000002, /* Transaction Context found before an EOB */
|
||||
MPI_IOCLOGINFO_FC_LAN_TRANS_RES_BITS_SET = 0x22000003, /* Transaction Context value has reserved bits set */
|
||||
MPI_IOCLOGINFO_FC_LAN_WRONG_SGL_FLAG = 0x22000004, /* Invalid SGL Flags */
|
||||
|
||||
MPI_IOCLOGINFO_FC_MSG_BASE = 0x23000000,
|
||||
|
||||
MPI_IOCLOGINFO_FC_LINK_BASE = 0x24000000,
|
||||
MPI_IOCLOGINFO_FC_LINK_LOOP_INIT_TIMEOUT = 0x24000001, /* Loop initialization timed out */
|
||||
MPI_IOCLOGINFO_FC_LINK_ALREADY_INITIALIZED = 0x24000002, /* Another system controller already initialized the loop */
|
||||
MPI_IOCLOGINFO_FC_LINK_LINK_NOT_ESTABLISHED = 0x24000003, /* Not synchronized to signal or still negotiating (possible cable problem) */
|
||||
MPI_IOCLOGINFO_FC_LINK_CRC_ERROR = 0x24000004, /* CRC check detected error on received frame */
|
||||
|
||||
MPI_IOCLOGINFO_FC_CTX_BASE = 0x25000000,
|
||||
|
||||
MPI_IOCLOGINFO_FC_INVALID_FIELD_BYTE_OFFSET = 0x26000000, /* The lower 24 bits give the byte offset of the field in the request message that is invalid */
|
||||
MPI_IOCLOGINFO_FC_INVALID_FIELD_MAX_OFFSET = 0x26ffffff,
|
||||
|
||||
MPI_IOCLOGINFO_FC_STATE_CHANGE = 0x27000000 /* The lower 24 bits give additional information concerning state change */
|
||||
|
||||
} MpiIocLogInfoFc_t;
|
746
drivers/message/fusion/lsi/mpi.h
Normal file
746
drivers/message/fusion/lsi/mpi.h
Normal file
@@ -0,0 +1,746 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi.h
|
||||
* Title: MPI Message independent structures and definitions
|
||||
* Creation Date: July 27, 2000
|
||||
*
|
||||
* mpi.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH definition.
|
||||
* 06-06-00 01.00.01 Update MPI_VERSION_MAJOR and MPI_VERSION_MINOR.
|
||||
* 06-22-00 01.00.02 Added MPI_IOCSTATUS_LAN_ definitions.
|
||||
* Removed LAN_SUSPEND function definition.
|
||||
* Added MPI_MSGFLAGS_CONTINUATION_REPLY definition.
|
||||
* 06-30-00 01.00.03 Added MPI_CONTEXT_REPLY_TYPE_LAN definition.
|
||||
* Added MPI_GET/SET_CONTEXT_REPLY_TYPE macros.
|
||||
* 07-27-00 01.00.04 Added MPI_FAULT_ definitions.
|
||||
* Removed MPI_IOCSTATUS_MSG/DATA_XFER_ERROR definitions.
|
||||
* Added MPI_IOCSTATUS_INTERNAL_ERROR definition.
|
||||
* Added MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work.
|
||||
* 12-04-00 01.01.02 Added new function codes.
|
||||
* 01-09-01 01.01.03 Added more definitions to the system interface section
|
||||
* Added MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT.
|
||||
* 01-25-01 01.01.04 Changed MPI_VERSION_MINOR from 0x00 to 0x01.
|
||||
* 02-20-01 01.01.05 Started using MPI_POINTER.
|
||||
* Fixed value for MPI_DIAG_RW_ENABLE.
|
||||
* Added defines for MPI_DIAG_PREVENT_IOC_BOOT and
|
||||
* MPI_DIAG_CLEAR_FLASH_BAD_SIG.
|
||||
* Obsoleted MPI_IOCSTATUS_TARGET_FC_ defines.
|
||||
* 02-27-01 01.01.06 Removed MPI_HOST_INDEX_REGISTER define.
|
||||
* Added function codes for RAID.
|
||||
* 04-09-01 01.01.07 Added alternate define for MPI_DOORBELL_ACTIVE,
|
||||
* MPI_DOORBELL_USED, to better match the spec.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* Changed MPI_VERSION_MINOR from 0x01 to 0x02.
|
||||
* Added define MPI_FUNCTION_TOOLBOX.
|
||||
* 09-28-01 01.02.02 New function code MPI_SCSI_ENCLOSURE_PROCESSOR.
|
||||
* 11-01-01 01.02.03 Changed name to MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR.
|
||||
* 03-14-02 01.02.04 Added MPI_HEADER_VERSION_ defines.
|
||||
* 05-31-02 01.02.05 Bumped MPI_HEADER_VERSION_UNIT.
|
||||
* 07-12-02 01.02.06 Added define for MPI_FUNCTION_MAILBOX.
|
||||
* 09-16-02 01.02.07 Bumped value for MPI_HEADER_VERSION_UNIT.
|
||||
* 11-15-02 01.02.08 Added define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX and
|
||||
* obsoleted define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX.
|
||||
* 04-01-03 01.02.09 New IOCStatus code: MPI_IOCSTATUS_FC_EXCHANGE_CANCELED
|
||||
* 06-26-03 01.02.10 Bumped MPI_HEADER_VERSION_UNIT value.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_H
|
||||
#define MPI_H
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* M P I V e r s i o n D e f i n i t i o n s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_VERSION_MAJOR (0x01)
|
||||
#define MPI_VERSION_MINOR (0x05)
|
||||
#define MPI_VERSION_MAJOR_MASK (0xFF00)
|
||||
#define MPI_VERSION_MAJOR_SHIFT (8)
|
||||
#define MPI_VERSION_MINOR_MASK (0x00FF)
|
||||
#define MPI_VERSION_MINOR_SHIFT (0)
|
||||
#define MPI_VERSION ((MPI_VERSION_MAJOR << MPI_VERSION_MAJOR_SHIFT) | \
|
||||
MPI_VERSION_MINOR)
|
||||
|
||||
#define MPI_VERSION_01_00 (0x0100)
|
||||
#define MPI_VERSION_01_01 (0x0101)
|
||||
#define MPI_VERSION_01_02 (0x0102)
|
||||
#define MPI_VERSION_01_03 (0x0103)
|
||||
#define MPI_VERSION_01_05 (0x0105)
|
||||
/* Note: The major versions of 0xe0 through 0xff are reserved */
|
||||
|
||||
/* versioning for this MPI header set */
|
||||
#define MPI_HEADER_VERSION_UNIT (0x00)
|
||||
#define MPI_HEADER_VERSION_DEV (0x00)
|
||||
#define MPI_HEADER_VERSION_UNIT_MASK (0xFF00)
|
||||
#define MPI_HEADER_VERSION_UNIT_SHIFT (8)
|
||||
#define MPI_HEADER_VERSION_DEV_MASK (0x00FF)
|
||||
#define MPI_HEADER_VERSION_DEV_SHIFT (0)
|
||||
#define MPI_HEADER_VERSION ((MPI_HEADER_VERSION_UNIT << 8) | MPI_HEADER_VERSION_DEV)
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* I O C S t a t e D e f i n i t i o n s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_IOC_STATE_RESET (0x00000000)
|
||||
#define MPI_IOC_STATE_READY (0x10000000)
|
||||
#define MPI_IOC_STATE_OPERATIONAL (0x20000000)
|
||||
#define MPI_IOC_STATE_FAULT (0x40000000)
|
||||
|
||||
#define MPI_IOC_STATE_MASK (0xF0000000)
|
||||
#define MPI_IOC_STATE_SHIFT (28)
|
||||
|
||||
/* Fault state codes (product independent range 0x8000-0xFFFF) */
|
||||
|
||||
#define MPI_FAULT_REQUEST_MESSAGE_PCI_PARITY_ERROR (0x8111)
|
||||
#define MPI_FAULT_REQUEST_MESSAGE_PCI_BUS_FAULT (0x8112)
|
||||
#define MPI_FAULT_REPLY_MESSAGE_PCI_PARITY_ERROR (0x8113)
|
||||
#define MPI_FAULT_REPLY_MESSAGE_PCI_BUS_FAULT (0x8114)
|
||||
#define MPI_FAULT_DATA_SEND_PCI_PARITY_ERROR (0x8115)
|
||||
#define MPI_FAULT_DATA_SEND_PCI_BUS_FAULT (0x8116)
|
||||
#define MPI_FAULT_DATA_RECEIVE_PCI_PARITY_ERROR (0x8117)
|
||||
#define MPI_FAULT_DATA_RECEIVE_PCI_BUS_FAULT (0x8118)
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* P C I S y s t e m I n t e r f a c e R e g i s t e r s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/* S y s t e m D o o r b e l l */
|
||||
#define MPI_DOORBELL_OFFSET (0x00000000)
|
||||
#define MPI_DOORBELL_ACTIVE (0x08000000) /* DoorbellUsed */
|
||||
#define MPI_DOORBELL_USED (MPI_DOORBELL_ACTIVE)
|
||||
#define MPI_DOORBELL_ACTIVE_SHIFT (27)
|
||||
#define MPI_DOORBELL_WHO_INIT_MASK (0x07000000)
|
||||
#define MPI_DOORBELL_WHO_INIT_SHIFT (24)
|
||||
#define MPI_DOORBELL_FUNCTION_MASK (0xFF000000)
|
||||
#define MPI_DOORBELL_FUNCTION_SHIFT (24)
|
||||
#define MPI_DOORBELL_ADD_DWORDS_MASK (0x00FF0000)
|
||||
#define MPI_DOORBELL_ADD_DWORDS_SHIFT (16)
|
||||
#define MPI_DOORBELL_DATA_MASK (0x0000FFFF)
|
||||
|
||||
|
||||
#define MPI_WRITE_SEQUENCE_OFFSET (0x00000004)
|
||||
#define MPI_WRSEQ_KEY_VALUE_MASK (0x0000000F)
|
||||
#define MPI_WRSEQ_1ST_KEY_VALUE (0x04)
|
||||
#define MPI_WRSEQ_2ND_KEY_VALUE (0x0B)
|
||||
#define MPI_WRSEQ_3RD_KEY_VALUE (0x02)
|
||||
#define MPI_WRSEQ_4TH_KEY_VALUE (0x07)
|
||||
#define MPI_WRSEQ_5TH_KEY_VALUE (0x0D)
|
||||
|
||||
#define MPI_DIAGNOSTIC_OFFSET (0x00000008)
|
||||
#define MPI_DIAG_CLEAR_FLASH_BAD_SIG (0x00000400)
|
||||
#define MPI_DIAG_PREVENT_IOC_BOOT (0x00000200)
|
||||
#define MPI_DIAG_DRWE (0x00000080)
|
||||
#define MPI_DIAG_FLASH_BAD_SIG (0x00000040)
|
||||
#define MPI_DIAG_RESET_HISTORY (0x00000020)
|
||||
#define MPI_DIAG_RW_ENABLE (0x00000010)
|
||||
#define MPI_DIAG_RESET_ADAPTER (0x00000004)
|
||||
#define MPI_DIAG_DISABLE_ARM (0x00000002)
|
||||
#define MPI_DIAG_MEM_ENABLE (0x00000001)
|
||||
|
||||
#define MPI_TEST_BASE_ADDRESS_OFFSET (0x0000000C)
|
||||
|
||||
#define MPI_DIAG_RW_DATA_OFFSET (0x00000010)
|
||||
|
||||
#define MPI_DIAG_RW_ADDRESS_OFFSET (0x00000014)
|
||||
|
||||
#define MPI_HOST_INTERRUPT_STATUS_OFFSET (0x00000030)
|
||||
#define MPI_HIS_IOP_DOORBELL_STATUS (0x80000000)
|
||||
#define MPI_HIS_REPLY_MESSAGE_INTERRUPT (0x00000008)
|
||||
#define MPI_HIS_DOORBELL_INTERRUPT (0x00000001)
|
||||
|
||||
#define MPI_HOST_INTERRUPT_MASK_OFFSET (0x00000034)
|
||||
#define MPI_HIM_RIM (0x00000008)
|
||||
#define MPI_HIM_DIM (0x00000001)
|
||||
|
||||
#define MPI_REQUEST_QUEUE_OFFSET (0x00000040)
|
||||
#define MPI_REQUEST_POST_FIFO_OFFSET (0x00000040)
|
||||
|
||||
#define MPI_REPLY_QUEUE_OFFSET (0x00000044)
|
||||
#define MPI_REPLY_POST_FIFO_OFFSET (0x00000044)
|
||||
#define MPI_REPLY_FREE_FIFO_OFFSET (0x00000044)
|
||||
|
||||
#define MPI_HI_PRI_REQUEST_QUEUE_OFFSET (0x00000048)
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* M e s s a g e F r a m e D e s c r i p t o r s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_REQ_MF_DESCRIPTOR_NB_MASK (0x00000003)
|
||||
#define MPI_REQ_MF_DESCRIPTOR_F_BIT (0x00000004)
|
||||
#define MPI_REQ_MF_DESCRIPTOR_ADDRESS_MASK (0xFFFFFFF8)
|
||||
|
||||
#define MPI_ADDRESS_REPLY_A_BIT (0x80000000)
|
||||
#define MPI_ADDRESS_REPLY_ADDRESS_MASK (0x7FFFFFFF)
|
||||
|
||||
#define MPI_CONTEXT_REPLY_A_BIT (0x80000000)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_MASK (0x60000000)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_SCSI_INIT (0x00)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_SCSI_TARGET (0x01)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_LAN (0x02)
|
||||
#define MPI_CONTEXT_REPLY_TYPE_SHIFT (29)
|
||||
#define MPI_CONTEXT_REPLY_CONTEXT_MASK (0x1FFFFFFF)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Context Reply macros */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_GET_CONTEXT_REPLY_TYPE(x) (((x) & MPI_CONTEXT_REPLY_TYPE_MASK) \
|
||||
>> MPI_CONTEXT_REPLY_TYPE_SHIFT)
|
||||
|
||||
#define MPI_SET_CONTEXT_REPLY_TYPE(x, typ) \
|
||||
((x) = ((x) & ~MPI_CONTEXT_REPLY_TYPE_MASK) | \
|
||||
(((typ) << MPI_CONTEXT_REPLY_TYPE_SHIFT) & \
|
||||
MPI_CONTEXT_REPLY_TYPE_MASK))
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* M e s s a g e F u n c t i o n s
|
||||
* 0x80 -> 0x8F reserved for private message use per product
|
||||
*
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define MPI_FUNCTION_SCSI_IO_REQUEST (0x00)
|
||||
#define MPI_FUNCTION_SCSI_TASK_MGMT (0x01)
|
||||
#define MPI_FUNCTION_IOC_INIT (0x02)
|
||||
#define MPI_FUNCTION_IOC_FACTS (0x03)
|
||||
#define MPI_FUNCTION_CONFIG (0x04)
|
||||
#define MPI_FUNCTION_PORT_FACTS (0x05)
|
||||
#define MPI_FUNCTION_PORT_ENABLE (0x06)
|
||||
#define MPI_FUNCTION_EVENT_NOTIFICATION (0x07)
|
||||
#define MPI_FUNCTION_EVENT_ACK (0x08)
|
||||
#define MPI_FUNCTION_FW_DOWNLOAD (0x09)
|
||||
#define MPI_FUNCTION_TARGET_CMD_BUFFER_POST (0x0A)
|
||||
#define MPI_FUNCTION_TARGET_ASSIST (0x0B)
|
||||
#define MPI_FUNCTION_TARGET_STATUS_SEND (0x0C)
|
||||
#define MPI_FUNCTION_TARGET_MODE_ABORT (0x0D)
|
||||
#define MPI_FUNCTION_FC_LINK_SRVC_BUF_POST (0x0E)
|
||||
#define MPI_FUNCTION_FC_LINK_SRVC_RSP (0x0F)
|
||||
#define MPI_FUNCTION_FC_EX_LINK_SRVC_SEND (0x10)
|
||||
#define MPI_FUNCTION_FC_ABORT (0x11)
|
||||
#define MPI_FUNCTION_FW_UPLOAD (0x12)
|
||||
#define MPI_FUNCTION_FC_COMMON_TRANSPORT_SEND (0x13)
|
||||
#define MPI_FUNCTION_FC_PRIMITIVE_SEND (0x14)
|
||||
|
||||
#define MPI_FUNCTION_RAID_ACTION (0x15)
|
||||
#define MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH (0x16)
|
||||
|
||||
#define MPI_FUNCTION_TOOLBOX (0x17)
|
||||
|
||||
#define MPI_FUNCTION_SCSI_ENCLOSURE_PROCESSOR (0x18)
|
||||
|
||||
#define MPI_FUNCTION_MAILBOX (0x19)
|
||||
|
||||
#define MPI_FUNCTION_SMP_PASSTHROUGH (0x1A)
|
||||
#define MPI_FUNCTION_SAS_IO_UNIT_CONTROL (0x1B)
|
||||
|
||||
#define MPI_DIAG_BUFFER_POST (0x1D)
|
||||
#define MPI_DIAG_RELEASE (0x1E)
|
||||
|
||||
#define MPI_FUNCTION_SCSI_IO_32 (0x1F)
|
||||
|
||||
#define MPI_FUNCTION_LAN_SEND (0x20)
|
||||
#define MPI_FUNCTION_LAN_RECEIVE (0x21)
|
||||
#define MPI_FUNCTION_LAN_RESET (0x22)
|
||||
|
||||
#define MPI_FUNCTION_INBAND_BUFFER_POST (0x28)
|
||||
#define MPI_FUNCTION_INBAND_SEND (0x29)
|
||||
#define MPI_FUNCTION_INBAND_RSP (0x2A)
|
||||
#define MPI_FUNCTION_INBAND_ABORT (0x2B)
|
||||
|
||||
#define MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET (0x40)
|
||||
#define MPI_FUNCTION_IO_UNIT_RESET (0x41)
|
||||
#define MPI_FUNCTION_HANDSHAKE (0x42)
|
||||
#define MPI_FUNCTION_REPLY_FRAME_REMOVAL (0x43)
|
||||
|
||||
|
||||
/* standard version format */
|
||||
typedef struct _MPI_VERSION_STRUCT
|
||||
{
|
||||
U8 Dev; /* 00h */
|
||||
U8 Unit; /* 01h */
|
||||
U8 Minor; /* 02h */
|
||||
U8 Major; /* 03h */
|
||||
} MPI_VERSION_STRUCT, MPI_POINTER PTR_MPI_VERSION_STRUCT,
|
||||
MpiVersionStruct_t, MPI_POINTER pMpiVersionStruct;
|
||||
|
||||
typedef union _MPI_VERSION_FORMAT
|
||||
{
|
||||
MPI_VERSION_STRUCT Struct;
|
||||
U32 Word;
|
||||
} MPI_VERSION_FORMAT, MPI_POINTER PTR_MPI_VERSION_FORMAT,
|
||||
MpiVersionFormat_t, MPI_POINTER pMpiVersionFormat_t;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* S c a t t e r G a t h e r E l e m e n t s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Simple element structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_SIMPLE32
|
||||
{
|
||||
U32 FlagsLength;
|
||||
U32 Address;
|
||||
} SGE_SIMPLE32, MPI_POINTER PTR_SGE_SIMPLE32,
|
||||
SGESimple32_t, MPI_POINTER pSGESimple32_t;
|
||||
|
||||
typedef struct _SGE_SIMPLE64
|
||||
{
|
||||
U32 FlagsLength;
|
||||
U64 Address;
|
||||
} SGE_SIMPLE64, MPI_POINTER PTR_SGE_SIMPLE64,
|
||||
SGESimple64_t, MPI_POINTER pSGESimple64_t;
|
||||
|
||||
typedef struct _SGE_SIMPLE_UNION
|
||||
{
|
||||
U32 FlagsLength;
|
||||
union
|
||||
{
|
||||
U32 Address32;
|
||||
U64 Address64;
|
||||
}u;
|
||||
} SGESimpleUnion_t, MPI_POINTER pSGESimpleUnion_t,
|
||||
SGE_SIMPLE_UNION, MPI_POINTER PTR_SGE_SIMPLE_UNION;
|
||||
|
||||
/****************************************************************************/
|
||||
/* Chain element structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_CHAIN32
|
||||
{
|
||||
U16 Length;
|
||||
U8 NextChainOffset;
|
||||
U8 Flags;
|
||||
U32 Address;
|
||||
} SGE_CHAIN32, MPI_POINTER PTR_SGE_CHAIN32,
|
||||
SGEChain32_t, MPI_POINTER pSGEChain32_t;
|
||||
|
||||
typedef struct _SGE_CHAIN64
|
||||
{
|
||||
U16 Length;
|
||||
U8 NextChainOffset;
|
||||
U8 Flags;
|
||||
U64 Address;
|
||||
} SGE_CHAIN64, MPI_POINTER PTR_SGE_CHAIN64,
|
||||
SGEChain64_t, MPI_POINTER pSGEChain64_t;
|
||||
|
||||
typedef struct _SGE_CHAIN_UNION
|
||||
{
|
||||
U16 Length;
|
||||
U8 NextChainOffset;
|
||||
U8 Flags;
|
||||
union
|
||||
{
|
||||
U32 Address32;
|
||||
U64 Address64;
|
||||
}u;
|
||||
} SGE_CHAIN_UNION, MPI_POINTER PTR_SGE_CHAIN_UNION,
|
||||
SGEChainUnion_t, MPI_POINTER pSGEChainUnion_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* Transaction Context element */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_TRANSACTION32
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[1];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION32, MPI_POINTER PTR_SGE_TRANSACTION32,
|
||||
SGETransaction32_t, MPI_POINTER pSGETransaction32_t;
|
||||
|
||||
typedef struct _SGE_TRANSACTION64
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[2];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION64, MPI_POINTER PTR_SGE_TRANSACTION64,
|
||||
SGETransaction64_t, MPI_POINTER pSGETransaction64_t;
|
||||
|
||||
typedef struct _SGE_TRANSACTION96
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[3];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION96, MPI_POINTER PTR_SGE_TRANSACTION96,
|
||||
SGETransaction96_t, MPI_POINTER pSGETransaction96_t;
|
||||
|
||||
typedef struct _SGE_TRANSACTION128
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
U32 TransactionContext[4];
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION128, MPI_POINTER PTR_SGE_TRANSACTION128,
|
||||
SGETransaction_t128, MPI_POINTER pSGETransaction_t128;
|
||||
|
||||
typedef struct _SGE_TRANSACTION_UNION
|
||||
{
|
||||
U8 Reserved;
|
||||
U8 ContextSize;
|
||||
U8 DetailsLength;
|
||||
U8 Flags;
|
||||
union
|
||||
{
|
||||
U32 TransactionContext32[1];
|
||||
U32 TransactionContext64[2];
|
||||
U32 TransactionContext96[3];
|
||||
U32 TransactionContext128[4];
|
||||
}u;
|
||||
U32 TransactionDetails[1];
|
||||
} SGE_TRANSACTION_UNION, MPI_POINTER PTR_SGE_TRANSACTION_UNION,
|
||||
SGETransactionUnion_t, MPI_POINTER pSGETransactionUnion_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE IO types union for IO SGL's */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_IO_UNION
|
||||
{
|
||||
union
|
||||
{
|
||||
SGE_SIMPLE_UNION Simple;
|
||||
SGE_CHAIN_UNION Chain;
|
||||
} u;
|
||||
} SGE_IO_UNION, MPI_POINTER PTR_SGE_IO_UNION,
|
||||
SGEIOUnion_t, MPI_POINTER pSGEIOUnion_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE union for SGL's with Simple and Transaction elements */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_TRANS_SIMPLE_UNION
|
||||
{
|
||||
union
|
||||
{
|
||||
SGE_SIMPLE_UNION Simple;
|
||||
SGE_TRANSACTION_UNION Transaction;
|
||||
} u;
|
||||
} SGE_TRANS_SIMPLE_UNION, MPI_POINTER PTR_SGE_TRANS_SIMPLE_UNION,
|
||||
SGETransSimpleUnion_t, MPI_POINTER pSGETransSimpleUnion_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* All SGE types union */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _SGE_MPI_UNION
|
||||
{
|
||||
union
|
||||
{
|
||||
SGE_SIMPLE_UNION Simple;
|
||||
SGE_CHAIN_UNION Chain;
|
||||
SGE_TRANSACTION_UNION Transaction;
|
||||
} u;
|
||||
} SGE_MPI_UNION, MPI_POINTER PTR_SGE_MPI_UNION,
|
||||
MPI_SGE_UNION_t, MPI_POINTER pMPI_SGE_UNION_t,
|
||||
SGEAllUnion_t, MPI_POINTER pSGEAllUnion_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE field definition and masks */
|
||||
/****************************************************************************/
|
||||
|
||||
/* Flags field bit definitions */
|
||||
|
||||
#define MPI_SGE_FLAGS_LAST_ELEMENT (0x80)
|
||||
#define MPI_SGE_FLAGS_END_OF_BUFFER (0x40)
|
||||
#define MPI_SGE_FLAGS_ELEMENT_TYPE_MASK (0x30)
|
||||
#define MPI_SGE_FLAGS_LOCAL_ADDRESS (0x08)
|
||||
#define MPI_SGE_FLAGS_DIRECTION (0x04)
|
||||
#define MPI_SGE_FLAGS_ADDRESS_SIZE (0x02)
|
||||
#define MPI_SGE_FLAGS_END_OF_LIST (0x01)
|
||||
|
||||
#define MPI_SGE_FLAGS_SHIFT (24)
|
||||
|
||||
#define MPI_SGE_LENGTH_MASK (0x00FFFFFF)
|
||||
#define MPI_SGE_CHAIN_LENGTH_MASK (0x0000FFFF)
|
||||
|
||||
/* Element Type */
|
||||
|
||||
#define MPI_SGE_FLAGS_TRANSACTION_ELEMENT (0x00)
|
||||
#define MPI_SGE_FLAGS_SIMPLE_ELEMENT (0x10)
|
||||
#define MPI_SGE_FLAGS_CHAIN_ELEMENT (0x30)
|
||||
#define MPI_SGE_FLAGS_ELEMENT_MASK (0x30)
|
||||
|
||||
/* Address location */
|
||||
|
||||
#define MPI_SGE_FLAGS_SYSTEM_ADDRESS (0x00)
|
||||
|
||||
/* Direction */
|
||||
|
||||
#define MPI_SGE_FLAGS_IOC_TO_HOST (0x00)
|
||||
#define MPI_SGE_FLAGS_HOST_TO_IOC (0x04)
|
||||
|
||||
/* Address Size */
|
||||
|
||||
#define MPI_SGE_FLAGS_32_BIT_ADDRESSING (0x00)
|
||||
#define MPI_SGE_FLAGS_64_BIT_ADDRESSING (0x02)
|
||||
|
||||
/* Context Size */
|
||||
|
||||
#define MPI_SGE_FLAGS_32_BIT_CONTEXT (0x00)
|
||||
#define MPI_SGE_FLAGS_64_BIT_CONTEXT (0x02)
|
||||
#define MPI_SGE_FLAGS_96_BIT_CONTEXT (0x04)
|
||||
#define MPI_SGE_FLAGS_128_BIT_CONTEXT (0x06)
|
||||
|
||||
#define MPI_SGE_CHAIN_OFFSET_MASK (0x00FF0000)
|
||||
#define MPI_SGE_CHAIN_OFFSET_SHIFT (16)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SGE operation Macros */
|
||||
/****************************************************************************/
|
||||
|
||||
/* SIMPLE FlagsLength manipulations... */
|
||||
#define MPI_SGE_SET_FLAGS(f) ((U32)(f) << MPI_SGE_FLAGS_SHIFT)
|
||||
#define MPI_SGE_GET_FLAGS(fl) (((fl) & ~MPI_SGE_LENGTH_MASK) >> MPI_SGE_FLAGS_SHIFT)
|
||||
#define MPI_SGE_LENGTH(fl) ((fl) & MPI_SGE_LENGTH_MASK)
|
||||
#define MPI_SGE_CHAIN_LENGTH(fl) ((fl) & MPI_SGE_CHAIN_LENGTH_MASK)
|
||||
|
||||
#define MPI_SGE_SET_FLAGS_LENGTH(f,l) (MPI_SGE_SET_FLAGS(f) | MPI_SGE_LENGTH(l))
|
||||
|
||||
#define MPI_pSGE_GET_FLAGS(psg) MPI_SGE_GET_FLAGS((psg)->FlagsLength)
|
||||
#define MPI_pSGE_GET_LENGTH(psg) MPI_SGE_LENGTH((psg)->FlagsLength)
|
||||
#define MPI_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI_SGE_SET_FLAGS_LENGTH(f,l)
|
||||
/* CAUTION - The following are READ-MODIFY-WRITE! */
|
||||
#define MPI_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI_SGE_SET_FLAGS(f)
|
||||
#define MPI_pSGE_SET_LENGTH(psg,l) (psg)->FlagsLength |= MPI_SGE_LENGTH(l)
|
||||
|
||||
#define MPI_GET_CHAIN_OFFSET(x) ((x&MPI_SGE_CHAIN_OFFSET_MASK)>>MPI_SGE_CHAIN_OFFSET_SHIFT)
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* S t a n d a r d M e s s a g e S t r u c t u r e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Standard message request header for all request messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_REQUEST_HEADER
|
||||
{
|
||||
U8 Reserved[2]; /* function specific */
|
||||
U8 ChainOffset;
|
||||
U8 Function;
|
||||
U8 Reserved1[3]; /* function specific */
|
||||
U8 MsgFlags;
|
||||
U32 MsgContext;
|
||||
} MSG_REQUEST_HEADER, MPI_POINTER PTR_MSG_REQUEST_HEADER,
|
||||
MPIHeader_t, MPI_POINTER pMPIHeader_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Default Reply */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_DEFAULT_REPLY
|
||||
{
|
||||
U8 Reserved[2]; /* function specific */
|
||||
U8 MsgLength;
|
||||
U8 Function;
|
||||
U8 Reserved1[3]; /* function specific */
|
||||
U8 MsgFlags;
|
||||
U32 MsgContext;
|
||||
U8 Reserved2[2]; /* function specific */
|
||||
U16 IOCStatus;
|
||||
U32 IOCLogInfo;
|
||||
} MSG_DEFAULT_REPLY, MPI_POINTER PTR_MSG_DEFAULT_REPLY,
|
||||
MPIDefaultReply_t, MPI_POINTER pMPIDefaultReply_t;
|
||||
|
||||
|
||||
/* MsgFlags definition for all replies */
|
||||
|
||||
#define MPI_MSGFLAGS_CONTINUATION_REPLY (0x80)
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* I O C S t a t u s V a l u e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Common IOCStatus values for all replies */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_SUCCESS (0x0000)
|
||||
#define MPI_IOCSTATUS_INVALID_FUNCTION (0x0001)
|
||||
#define MPI_IOCSTATUS_BUSY (0x0002)
|
||||
#define MPI_IOCSTATUS_INVALID_SGL (0x0003)
|
||||
#define MPI_IOCSTATUS_INTERNAL_ERROR (0x0004)
|
||||
#define MPI_IOCSTATUS_RESERVED (0x0005)
|
||||
#define MPI_IOCSTATUS_INSUFFICIENT_RESOURCES (0x0006)
|
||||
#define MPI_IOCSTATUS_INVALID_FIELD (0x0007)
|
||||
#define MPI_IOCSTATUS_INVALID_STATE (0x0008)
|
||||
#define MPI_IOCSTATUS_OP_STATE_NOT_SUPPORTED (0x0009)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Config IOCStatus values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_ACTION (0x0020)
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_TYPE (0x0021)
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_PAGE (0x0022)
|
||||
#define MPI_IOCSTATUS_CONFIG_INVALID_DATA (0x0023)
|
||||
#define MPI_IOCSTATUS_CONFIG_NO_DEFAULTS (0x0024)
|
||||
#define MPI_IOCSTATUS_CONFIG_CANT_COMMIT (0x0025)
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSIIO Reply (SPI & FCP) initiator values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_SCSI_RECOVERED_ERROR (0x0040)
|
||||
#define MPI_IOCSTATUS_SCSI_INVALID_BUS (0x0041)
|
||||
#define MPI_IOCSTATUS_SCSI_INVALID_TARGETID (0x0042)
|
||||
#define MPI_IOCSTATUS_SCSI_DEVICE_NOT_THERE (0x0043)
|
||||
#define MPI_IOCSTATUS_SCSI_DATA_OVERRUN (0x0044)
|
||||
#define MPI_IOCSTATUS_SCSI_DATA_UNDERRUN (0x0045)
|
||||
#define MPI_IOCSTATUS_SCSI_IO_DATA_ERROR (0x0046)
|
||||
#define MPI_IOCSTATUS_SCSI_PROTOCOL_ERROR (0x0047)
|
||||
#define MPI_IOCSTATUS_SCSI_TASK_TERMINATED (0x0048)
|
||||
#define MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH (0x0049)
|
||||
#define MPI_IOCSTATUS_SCSI_TASK_MGMT_FAILED (0x004A)
|
||||
#define MPI_IOCSTATUS_SCSI_IOC_TERMINATED (0x004B)
|
||||
#define MPI_IOCSTATUS_SCSI_EXT_TERMINATED (0x004C)
|
||||
|
||||
/****************************************************************************/
|
||||
/* For use by SCSI Initiator and SCSI Target end-to-end data protection */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_EEDP_CRC_ERROR (0x004D)
|
||||
#define MPI_IOCSTATUS_EEDP_LBA_TAG_ERROR (0x004E)
|
||||
#define MPI_IOCSTATUS_EEDP_APP_TAG_ERROR (0x004F)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI (SPI & FCP) target values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_TARGET_PRIORITY_IO (0x0060)
|
||||
#define MPI_IOCSTATUS_TARGET_INVALID_PORT (0x0061)
|
||||
#define MPI_IOCSTATUS_TARGET_INVALID_IOCINDEX (0x0062) /* obsolete */
|
||||
#define MPI_IOCSTATUS_TARGET_INVALID_IO_INDEX (0x0062)
|
||||
#define MPI_IOCSTATUS_TARGET_ABORTED (0x0063)
|
||||
#define MPI_IOCSTATUS_TARGET_NO_CONN_RETRYABLE (0x0064)
|
||||
#define MPI_IOCSTATUS_TARGET_NO_CONNECTION (0x0065)
|
||||
#define MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH (0x006A)
|
||||
#define MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT (0x006B)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Additional FCP target values (obsolete) */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_TARGET_FC_ABORTED (0x0066) /* obsolete */
|
||||
#define MPI_IOCSTATUS_TARGET_FC_RX_ID_INVALID (0x0067) /* obsolete */
|
||||
#define MPI_IOCSTATUS_TARGET_FC_DID_INVALID (0x0068) /* obsolete */
|
||||
#define MPI_IOCSTATUS_TARGET_FC_NODE_LOGGED_OUT (0x0069) /* obsolete */
|
||||
|
||||
/****************************************************************************/
|
||||
/* Fibre Channel Direct Access values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_FC_ABORTED (0x0066)
|
||||
#define MPI_IOCSTATUS_FC_RX_ID_INVALID (0x0067)
|
||||
#define MPI_IOCSTATUS_FC_DID_INVALID (0x0068)
|
||||
#define MPI_IOCSTATUS_FC_NODE_LOGGED_OUT (0x0069)
|
||||
#define MPI_IOCSTATUS_FC_EXCHANGE_CANCELED (0x006C)
|
||||
|
||||
/****************************************************************************/
|
||||
/* LAN values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_LAN_DEVICE_NOT_FOUND (0x0080)
|
||||
#define MPI_IOCSTATUS_LAN_DEVICE_FAILURE (0x0081)
|
||||
#define MPI_IOCSTATUS_LAN_TRANSMIT_ERROR (0x0082)
|
||||
#define MPI_IOCSTATUS_LAN_TRANSMIT_ABORTED (0x0083)
|
||||
#define MPI_IOCSTATUS_LAN_RECEIVE_ERROR (0x0084)
|
||||
#define MPI_IOCSTATUS_LAN_RECEIVE_ABORTED (0x0085)
|
||||
#define MPI_IOCSTATUS_LAN_PARTIAL_PACKET (0x0086)
|
||||
#define MPI_IOCSTATUS_LAN_CANCELED (0x0087)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Serial Attached SCSI values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_SAS_SMP_REQUEST_FAILED (0x0090)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Inband values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_INBAND_ABORTED (0x0098)
|
||||
#define MPI_IOCSTATUS_INBAND_NO_CONNECTION (0x0099)
|
||||
|
||||
/****************************************************************************/
|
||||
/* Diagnostic Tools values */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_DIAGNOSTIC_RELEASED (0x00A0)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* IOCStatus flag to indicate that log info is available */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE (0x8000)
|
||||
#define MPI_IOCSTATUS_MASK (0x7FFF)
|
||||
|
||||
/****************************************************************************/
|
||||
/* LogInfo Types */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_IOCLOGINFO_TYPE_MASK (0xF0000000)
|
||||
#define MPI_IOCLOGINFO_TYPE_SHIFT (28)
|
||||
#define MPI_IOCLOGINFO_TYPE_NONE (0x0)
|
||||
#define MPI_IOCLOGINFO_TYPE_SCSI (0x1)
|
||||
#define MPI_IOCLOGINFO_TYPE_FC (0x2)
|
||||
#define MPI_IOCLOGINFO_TYPE_SAS (0x3)
|
||||
#define MPI_IOCLOGINFO_TYPE_ISCSI (0x4)
|
||||
#define MPI_IOCLOGINFO_LOG_DATA_MASK (0x0FFFFFFF)
|
||||
|
||||
|
||||
#endif
|
2105
drivers/message/fusion/lsi/mpi_cnfg.h
Normal file
2105
drivers/message/fusion/lsi/mpi_cnfg.h
Normal file
File diff suppressed because it is too large
Load Diff
363
drivers/message/fusion/lsi/mpi_fc.h
Normal file
363
drivers/message/fusion/lsi/mpi_fc.h
Normal file
@@ -0,0 +1,363 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_fc.h
|
||||
* Title: MPI Fibre Channel messages and structures
|
||||
* Creation Date: June 12, 2000
|
||||
*
|
||||
* mpi_fc.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-12-00 01.00.02 Added _MSG_FC_ABORT_REPLY structure.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 12-04-00 01.01.02 Added messages for Common Transport Send and
|
||||
* Primitive Send.
|
||||
* 01-09-01 01.01.03 Modifed some of the new flags to have an MPI prefix
|
||||
* and modified the FcPrimitiveSend flags.
|
||||
* 01-25-01 01.01.04 Move InitiatorIndex in LinkServiceRsp reply to a larger
|
||||
* field.
|
||||
* Added FC_ABORT_TYPE_CT_SEND_REQUEST and
|
||||
* FC_ABORT_TYPE_EXLINKSEND_REQUEST for FcAbort request.
|
||||
* Added MPI_FC_PRIM_SEND_FLAGS_STOP_SEND.
|
||||
* 02-20-01 01.01.05 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.06 Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY
|
||||
* and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED.
|
||||
* Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define.
|
||||
* Added structure offset comments.
|
||||
* 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 09-28-01 01.02.02 Change name of reserved field in
|
||||
* MSG_LINK_SERVICE_RSP_REPLY.
|
||||
* 05-31-02 01.02.03 Adding AliasIndex to FC Direct Access requests.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_FC_H
|
||||
#define MPI_FC_H
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* F C D i r e c t A c c e s s M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Link Service Buffer Post messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REQUEST
|
||||
{
|
||||
U8 BufferPostFlags; /* 00h */
|
||||
U8 BufferCount; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved; /* 04h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
SGE_TRANS_SIMPLE_UNION SGL;
|
||||
} MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
|
||||
MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REQUEST,
|
||||
LinkServiceBufferPostRequest_t, MPI_POINTER pLinkServiceBufferPostRequest_t;
|
||||
|
||||
#define LINK_SERVICE_BUFFER_POST_FLAGS_PORT_MASK (0x01)
|
||||
|
||||
typedef struct _WWNFORMAT
|
||||
{
|
||||
U32 PortNameHigh; /* 00h */
|
||||
U32 PortNameLow; /* 04h */
|
||||
U32 NodeNameHigh; /* 08h */
|
||||
U32 NodeNameLow; /* 0Ch */
|
||||
} WWNFORMAT,
|
||||
WwnFormat_t;
|
||||
|
||||
/* Link Service Buffer Post Reply */
|
||||
typedef struct _MSG_LINK_SERVICE_BUFFER_POST_REPLY
|
||||
{
|
||||
U8 Flags; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferLength; /* 14h */
|
||||
U32 TransactionContext; /* 18h */
|
||||
U32 Rctl_Did; /* 1Ch */
|
||||
U32 Csctl_Sid; /* 20h */
|
||||
U32 Type_Fctl; /* 24h */
|
||||
U16 SeqCnt; /* 28h */
|
||||
U8 Dfctl; /* 2Ah */
|
||||
U8 SeqId; /* 2Bh */
|
||||
U16 Rxid; /* 2Ch */
|
||||
U16 Oxid; /* 2Eh */
|
||||
U32 Parameter; /* 30h */
|
||||
WWNFORMAT Wwn; /* 34h */
|
||||
} MSG_LINK_SERVICE_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_BUFFER_POST_REPLY,
|
||||
LinkServiceBufferPostReply_t, MPI_POINTER pLinkServiceBufferPostReply_t;
|
||||
|
||||
#define MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED (0x80)
|
||||
|
||||
#define MPI_FC_DID_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_DID_SHIFT (0)
|
||||
#define MPI_FC_RCTL_MASK (0xFF000000)
|
||||
#define MPI_FC_RCTL_SHIFT (24)
|
||||
#define MPI_FC_SID_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_SID_SHIFT (0)
|
||||
#define MPI_FC_CSCTL_MASK (0xFF000000)
|
||||
#define MPI_FC_CSCTL_SHIFT (24)
|
||||
#define MPI_FC_FCTL_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_FCTL_SHIFT (0)
|
||||
#define MPI_FC_TYPE_MASK (0xFF000000)
|
||||
#define MPI_FC_TYPE_SHIFT (24)
|
||||
|
||||
/* obsolete name for the above */
|
||||
#define FCP_TARGET_DID_MASK (0x00FFFFFF)
|
||||
#define FCP_TARGET_DID_SHIFT (0)
|
||||
#define FCP_TARGET_RCTL_MASK (0xFF000000)
|
||||
#define FCP_TARGET_RCTL_SHIFT (24)
|
||||
#define FCP_TARGET_SID_MASK (0x00FFFFFF)
|
||||
#define FCP_TARGET_SID_SHIFT (0)
|
||||
#define FCP_TARGET_CSCTL_MASK (0xFF000000)
|
||||
#define FCP_TARGET_CSCTL_SHIFT (24)
|
||||
#define FCP_TARGET_FCTL_MASK (0x00FFFFFF)
|
||||
#define FCP_TARGET_FCTL_SHIFT (0)
|
||||
#define FCP_TARGET_TYPE_MASK (0xFF000000)
|
||||
#define FCP_TARGET_TYPE_SHIFT (24)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Link Service Response messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_LINK_SERVICE_RSP_REQUEST
|
||||
{
|
||||
U8 RspFlags; /* 00h */
|
||||
U8 RspLength; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Rctl_Did; /* 0Ch */
|
||||
U32 Csctl_Sid; /* 10h */
|
||||
U32 Type_Fctl; /* 14h */
|
||||
U16 SeqCnt; /* 18h */
|
||||
U8 Dfctl; /* 1Ah */
|
||||
U8 SeqId; /* 1Bh */
|
||||
U16 Rxid; /* 1Ch */
|
||||
U16 Oxid; /* 1Eh */
|
||||
U32 Parameter; /* 20h */
|
||||
SGE_SIMPLE_UNION SGL; /* 24h */
|
||||
} MSG_LINK_SERVICE_RSP_REQUEST, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REQUEST,
|
||||
LinkServiceRspRequest_t, MPI_POINTER pLinkServiceRspRequest_t;
|
||||
|
||||
#define LINK_SERVICE_RSP_FLAGS_IMMEDIATE (0x80)
|
||||
#define LINK_SERVICE_RSP_FLAGS_PORT_MASK (0x01)
|
||||
|
||||
|
||||
/* Link Service Response Reply */
|
||||
typedef struct _MSG_LINK_SERVICE_RSP_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved_0100_InitiatorIndex; /* 06h */ /* obsolete InitiatorIndex */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 InitiatorIndex; /* 14h */
|
||||
} MSG_LINK_SERVICE_RSP_REPLY, MPI_POINTER PTR_MSG_LINK_SERVICE_RSP_REPLY,
|
||||
LinkServiceRspReply_t, MPI_POINTER pLinkServiceRspReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Extended Link Service Send messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_EXLINK_SERVICE_SEND_REQUEST
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U32 MsgFlags_Did; /* 04h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 ElsCommandCode; /* 0Ch */
|
||||
SGE_SIMPLE_UNION SGL; /* 10h */
|
||||
} MSG_EXLINK_SERVICE_SEND_REQUEST, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REQUEST,
|
||||
ExLinkServiceSendRequest_t, MPI_POINTER pExLinkServiceSendRequest_t;
|
||||
|
||||
#define EX_LINK_SERVICE_SEND_DID_MASK (0x00FFFFFF)
|
||||
#define EX_LINK_SERVICE_SEND_DID_SHIFT (0)
|
||||
#define EX_LINK_SERVICE_SEND_MSGFLAGS_MASK (0xFF000000)
|
||||
#define EX_LINK_SERVICE_SEND_MSGFLAGS_SHIFT (24)
|
||||
|
||||
|
||||
/* Extended Link Service Send Reply */
|
||||
typedef struct _MSG_EXLINK_SERVICE_SEND_REPLY
|
||||
{
|
||||
U8 Reserved; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ResponseLength; /* 14h */
|
||||
} MSG_EXLINK_SERVICE_SEND_REPLY, MPI_POINTER PTR_MSG_EXLINK_SERVICE_SEND_REPLY,
|
||||
ExLinkServiceSendReply_t, MPI_POINTER pExLinkServiceSendReply_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* FC Abort messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FC_ABORT_REQUEST
|
||||
{
|
||||
U8 AbortFlags; /* 00h */
|
||||
U8 AbortType; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 TransactionContextToAbort; /* 0Ch */
|
||||
} MSG_FC_ABORT_REQUEST, MPI_POINTER PTR_MSG_FC_ABORT_REQUEST,
|
||||
FcAbortRequest_t, MPI_POINTER pFcAbortRequest_t;
|
||||
|
||||
#define FC_ABORT_FLAG_PORT_MASK (0x01)
|
||||
|
||||
#define FC_ABORT_TYPE_ALL_FC_BUFFERS (0x00)
|
||||
#define FC_ABORT_TYPE_EXACT_FC_BUFFER (0x01)
|
||||
#define FC_ABORT_TYPE_CT_SEND_REQUEST (0x02)
|
||||
#define FC_ABORT_TYPE_EXLINKSEND_REQUEST (0x03)
|
||||
|
||||
/* FC Abort Reply */
|
||||
typedef struct _MSG_FC_ABORT_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_FC_ABORT_REPLY, MPI_POINTER PTR_MSG_FC_ABORT_REPLY,
|
||||
FcAbortReply_t, MPI_POINTER pFcAbortReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* FC Common Transport Send messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REQUEST
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U32 MsgFlags_Did; /* 04h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 CTCommandCode; /* 0Ch */
|
||||
U8 FsType; /* 0Eh */
|
||||
U8 Reserved1; /* 0Fh */
|
||||
SGE_SIMPLE_UNION SGL; /* 10h */
|
||||
} MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
|
||||
MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REQUEST,
|
||||
FcCommonTransportSendRequest_t, MPI_POINTER pFcCommonTransportSendRequest_t;
|
||||
|
||||
#define MPI_FC_CT_SEND_DID_MASK (0x00FFFFFF)
|
||||
#define MPI_FC_CT_SEND_DID_SHIFT (0)
|
||||
#define MPI_FC_CT_SEND_MSGFLAGS_MASK (0xFF000000)
|
||||
#define MPI_FC_CT_SEND_MSGFLAGS_SHIFT (24)
|
||||
|
||||
|
||||
/* FC Common Transport Send Reply */
|
||||
typedef struct _MSG_FC_COMMON_TRANSPORT_SEND_REPLY
|
||||
{
|
||||
U8 Reserved; /* 00h */
|
||||
U8 AliasIndex; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ResponseLength; /* 14h */
|
||||
} MSG_FC_COMMON_TRANSPORT_SEND_REPLY, MPI_POINTER PTR_MSG_FC_COMMON_TRANSPORT_SEND_REPLY,
|
||||
FcCommonTransportSendReply_t, MPI_POINTER pFcCommonTransportSendReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* FC Primitive Send messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FC_PRIMITIVE_SEND_REQUEST
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 FcPrimitive[4]; /* 0Ch */
|
||||
} MSG_FC_PRIMITIVE_SEND_REQUEST, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REQUEST,
|
||||
FcPrimitiveSendRequest_t, MPI_POINTER pFcPrimitiveSendRequest_t;
|
||||
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_PORT_MASK (0x01)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_ML_RESET_LINK (0x02)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_RESET_LINK (0x04)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_STOP_SEND (0x08)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_SEND_ONCE (0x10)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_SEND_AROUND (0x20)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_UNTIL_FULL (0x40)
|
||||
#define MPI_FC_PRIM_SEND_FLAGS_FOREVER (0x80)
|
||||
|
||||
/* FC Primitive Send Reply */
|
||||
typedef struct _MSG_FC_PRIMITIVE_SEND_REPLY
|
||||
{
|
||||
U8 SendFlags; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_FC_PRIMITIVE_SEND_REPLY, MPI_POINTER PTR_MSG_FC_PRIMITIVE_SEND_REPLY,
|
||||
FcPrimitiveSendReply_t, MPI_POINTER pFcPrimitiveSendReply_t;
|
||||
|
||||
#endif
|
||||
|
276
drivers/message/fusion/lsi/mpi_history.txt
Normal file
276
drivers/message/fusion/lsi/mpi_history.txt
Normal file
@@ -0,0 +1,276 @@
|
||||
|
||||
==============================
|
||||
MPI Header File Change History
|
||||
==============================
|
||||
|
||||
Copyright (c) 2000-2001 LSI Logic Corporation.
|
||||
|
||||
---------------------------------------
|
||||
Header Set Release Version: 01.01.10
|
||||
Header Set Release Date: 04-09-01
|
||||
---------------------------------------
|
||||
|
||||
Filename Current version Prior version
|
||||
---------- --------------- -------------
|
||||
mpi.h 01.01.07 01.01.06
|
||||
mpi_ioc.h 01.01.07 01.01.06
|
||||
mpi_cnfg.h 01.01.11 01.01.10
|
||||
mpi_init.h 01.01.05 01.01.04
|
||||
mpi_targ.h 01.01.04 01.01.04
|
||||
mpi_fc.h 01.01.07 01.01.06
|
||||
mpi_lan.h 01.01.03 01.01.03
|
||||
mpi_raid.h 01.01.02 01.01.02
|
||||
mpi_type.h 01.01.02 01.01.02
|
||||
mpi_history.txt 01.01.09 01.01.09
|
||||
|
||||
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
|
||||
mpi.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added MPI_IOCSTATUS_SCSI_RESIDUAL_MISMATCH definition.
|
||||
* 06-06-00 01.00.01 Update MPI_VERSION_MAJOR and MPI_VERSION_MINOR.
|
||||
* 06-22-00 01.00.02 Added MPI_IOCSTATUS_LAN_ definitions.
|
||||
* Removed LAN_SUSPEND function definition.
|
||||
* Added MPI_MSGFLAGS_CONTINUATION_REPLY definition.
|
||||
* 06-30-00 01.00.03 Added MPI_CONTEXT_REPLY_TYPE_LAN definition.
|
||||
* Added MPI_GET/SET_CONTEXT_REPLY_TYPE macros.
|
||||
* 07-27-00 01.00.04 Added MPI_FAULT_ definitions.
|
||||
* Removed MPI_IOCSTATUS_MSG/DATA_XFER_ERROR definitions.
|
||||
* Added MPI_IOCSTATUS_INTERNAL_ERROR definition.
|
||||
* Added MPI_IOCSTATUS_TARGET_XFER_COUNT_MISMATCH.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 12-04-00 01.01.02 Added new function codes.
|
||||
* 01-09-01 01.01.03 Added more definitions to the system interface section
|
||||
* Added MPI_IOCSTATUS_TARGET_STS_DATA_NOT_SENT.
|
||||
* 01-25-01 01.01.04 Changed MPI_VERSION_MINOR from 0x00 to 0x01.
|
||||
* 02-20-01 01.01.05 Started using MPI_POINTER.
|
||||
* Added defines for MPI_DIAG_PREVENT_IOC_BOOT and
|
||||
* MPI_DIAG_CLEAR_FLASH_BAD_SIG.
|
||||
* Obsoleted MPI_IOCSTATUS_TARGET_FC_ defines.
|
||||
* 02-27-01 01.01.06 Removed MPI_HOST_INDEX_REGISTER define.
|
||||
* Added function codes for RAID.
|
||||
* 04-09-01 01.01.07 Added alternate define for MPI_DOORBELL_ACTIVE,
|
||||
* MPI_DOORBELL_USED, to better match the spec.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_ioc.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added _MSG_IOC_INIT_REPLY structure.
|
||||
* 06-06-00 01.00.01 Added CurReplyFrameSize field to _MSG_IOC_FACTS_REPLY.
|
||||
* 06-12-00 01.00.02 Added _MSG_PORT_ENABLE_REPLY structure.
|
||||
* Added _MSG_EVENT_ACK_REPLY structure.
|
||||
* Added _MSG_FW_DOWNLOAD_REPLY structure.
|
||||
* Added _MSG_TOOLBOX_REPLY structure.
|
||||
* 06-30-00 01.00.03 Added MaxLanBuckets to _PORT_FACT_REPLY structure.
|
||||
* 07-27-00 01.00.04 Added _EVENT_DATA structure definitions for _SCSI,
|
||||
* _LINK_STATUS, _LOOP_STATE and _LOGOUT.
|
||||
* 08-11-00 01.00.05 Switched positions of MsgLength and Function fields in
|
||||
* _MSG_EVENT_ACK_REPLY structure to match specification.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* Added a value for Manufacturer to WhoInit
|
||||
* 12-04-00 01.01.02 Modified IOCFacts reply, added FWUpload messages, and
|
||||
* removed toolbox message.
|
||||
* 01-09-01 01.01.03 Added event enabled and disabled defines.
|
||||
* Added structures for FwHeader and DataHeader.
|
||||
* Added ImageType to FwUpload reply.
|
||||
* 02-20-01 01.01.04 Started using MPI_POINTER.
|
||||
* 02-27-01 01.01.05 Added event for RAID status change and its event data.
|
||||
* Added IocNumber field to MSG_IOC_FACTS_REPLY.
|
||||
* 03-27-01 01.01.06 Added defines for ProductId field of MPI_FW_HEADER.
|
||||
* Added structure offset comments.
|
||||
* 04-09-01 01.01.07 Added structure EVENT_DATA_EVENT_CHANGE.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_cnfg.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-08-00 01.00.02 Added _PAGEVERSION definitions for all pages.
|
||||
* Added FcPhLowestVersion, FcPhHighestVersion, Reserved2
|
||||
* fields to FC_DEVICE_0 page, updated the page version.
|
||||
* Changed _FREE_RUNNING_CLOCK to _PACING_TRANSFERS in
|
||||
* SCSI_PORT_0, SCSI_DEVICE_0 and SCSI_DEVICE_1 pages
|
||||
* and updated the page versions.
|
||||
* Added _RESPONSE_ID_MASK definition to SCSI_PORT_1
|
||||
* page and updated the page version.
|
||||
* Added Information field and _INFO_PARAMS_NEGOTIATED
|
||||
* definitionto SCSI_DEVICE_0 page.
|
||||
* 06-22-00 01.00.03 Removed batch controls from LAN_0 page and updated the
|
||||
* page version.
|
||||
* Added BucketsRemaining to LAN_1 page, redefined the
|
||||
* state values, and updated the page version.
|
||||
* Revised bus width definitions in SCSI_PORT_0,
|
||||
* SCSI_DEVICE_0 and SCSI_DEVICE_1 pages.
|
||||
* 06-30-00 01.00.04 Added MaxReplySize to LAN_1 page and updated the page
|
||||
* version.
|
||||
* Moved FC_DEVICE_0 PageAddress description to spec.
|
||||
* 07-27-00 01.00.05 Corrected the SubsystemVendorID and SubsystemID field
|
||||
* widths in IOC_0 page and updated the page version.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* Added Manufacturing pages, IO Unit Page 2, SCSI SPI
|
||||
* Port Page 2, FC Port Page 4, FC Port Page 5
|
||||
* 12-04-00 01.01.03 Config page changes to match MPI rev 1.00.01.
|
||||
* 12-05-00 01.01.04 Modified config page actions.
|
||||
* 01-09-01 01.01.05 Added defines for page address formats.
|
||||
* Data size for Manufacturing pages 2 and 3 no longer
|
||||
* defined here.
|
||||
* Io Unit Page 2 size is fixed at 4 adapters and some
|
||||
* flags were changed.
|
||||
* SCSI Port Page 2 Device Settings modified.
|
||||
* New fields added to FC Port Page 0 and some flags
|
||||
* cleaned up.
|
||||
* Removed impedance flash from FC Port Page 1.
|
||||
* Added FC Port pages 6 and 7.
|
||||
* 01-25-01 01.01.06 Added MaxInitiators field to FcPortPage0.
|
||||
* 01-29-01 01.01.07 Changed some defines to make them 32 character unique.
|
||||
* Added some LinkType defines for FcPortPage0.
|
||||
* 02-20-01 01.01.08 Started using MPI_POINTER.
|
||||
* 02-27-01 01.01.09 Replaced MPI_CONFIG_PAGETYPE_SCSI_LUN with
|
||||
* MPI_CONFIG_PAGETYPE_RAID_VOLUME.
|
||||
* Added definitions and structures for IOC Page 2 and
|
||||
* RAID Volume Page 2.
|
||||
* 03-27-01 01.01.10 Added CONFIG_PAGE_FC_PORT_8 and CONFIG_PAGE_FC_PORT_9.
|
||||
* CONFIG_PAGE_FC_PORT_3 now supports persistent by DID.
|
||||
* Added VendorId and ProductRevLevel fields to
|
||||
* RAIDVOL2_IM_PHYS_ID struct.
|
||||
* Modified values for MPI_FCPORTPAGE0_FLAGS_ATTACH_
|
||||
* defines to make them compatible to MPI version 1.0.
|
||||
* Added structure offset comments.
|
||||
* 04-09-01 01.01.11 Added some new defines for the PageAddress field and
|
||||
* removed some obsolete ones.
|
||||
* Added IO Unit Page 3.
|
||||
* Modified defines for Scsi Port Page 2.
|
||||
* Modified RAID Volume Pages.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_init.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added SenseBufferLength to _MSG_SCSI_IO_REPLY.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-08-00 01.00.02 Added MPI_SCSI_RSP_INFO_ definitions.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 12-04-00 01.01.02 Added MPI_SCSIIO_CONTROL_NO_DISCONNECT.
|
||||
* 02-20-01 01.01.03 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.04 Added structure offset comments.
|
||||
* 04-10-01 01.01.05 Added new MsgFlag for MSG_SCSI_TASK_MGMT.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_targ.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-22-00 01.00.02 Added _MSG_TARGET_CMD_BUFFER_POST_REPLY structure.
|
||||
* Corrected DECSRIPTOR typo to DESCRIPTOR.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* Modified target mode to use IoIndex instead of
|
||||
* HostIndex and IocIndex. Added Alias.
|
||||
* 01-09-01 01.01.02 Added defines for TARGET_ASSIST_FLAGS_REPOST_CMD_BUFFER
|
||||
* and TARGET_STATUS_SEND_FLAGS_REPOST_CMD_BUFFER.
|
||||
* 02-20-01 01.01.03 Started using MPI_POINTER.
|
||||
* Added structures for MPI_TARGET_SCSI_SPI_CMD_BUFFER and
|
||||
* MPI_TARGET_FCP_CMD_BUFFER.
|
||||
* 03-27-01 01.01.04 Added structure offset comments.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_fc.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-12-00 01.00.02 Added _MSG_FC_ABORT_REPLY structure.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 12-04-00 01.01.02 Added messages for Common Transport Send and
|
||||
* Primitive Send.
|
||||
* 01-09-01 01.01.03 Modifed some of the new flags to have an MPI prefix
|
||||
* and modified the FcPrimitiveSend flags.
|
||||
* 01-25-01 01.01.04 Move InitiatorIndex in LinkServiceRsp reply to a larger
|
||||
* field.
|
||||
* Added FC_ABORT_TYPE_CT_SEND_REQUEST and
|
||||
* FC_ABORT_TYPE_EXLINKSEND_REQUEST for FcAbort request.
|
||||
* Added MPI_FC_PRIM_SEND_FLAGS_STOP_SEND.
|
||||
* 02-20-01 01.01.05 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.06 Added Flags field to MSG_LINK_SERVICE_BUFFER_POST_REPLY
|
||||
* and defined MPI_LS_BUF_POST_REPLY_FLAG_NO_RSP_NEEDED.
|
||||
* Added MPI_FC_PRIM_SEND_FLAGS_RESET_LINK define.
|
||||
* Added structure offset comments.
|
||||
* 04-09-01 01.01.07 Added RspLength field to MSG_LINK_SERVICE_RSP_REQUEST.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_lan.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added LANStatus field to _MSG_LAN_SEND_REPLY.
|
||||
* Added LANStatus field to _MSG_LAN_RECEIVE_POST_REPLY.
|
||||
* Moved ListCount field in _MSG_LAN_RECEIVE_POST_REPLY.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-12-00 01.00.02 Added MPI_ to BUCKETSTATUS_ definitions.
|
||||
* 06-22-00 01.00.03 Major changes to match new LAN definition in 1.0 spec.
|
||||
* 06-30-00 01.00.04 Added Context Reply definitions per revised proposal.
|
||||
* Changed transaction context usage to bucket/buffer.
|
||||
* 07-05-00 01.00.05 Removed LAN_RECEIVE_POST_BUCKET_CONTEXT_MASK definition
|
||||
* to lan private header file
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 02-20-01 01.01.02 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.03 Added structure offset comments.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_raid.h
|
||||
* 02-27-01 01.01.01 Original release for this file.
|
||||
* 03-27-01 01.01.02 Added structure offset comments.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_type.h
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER.
|
||||
* --------------------------------------------------------------------------
|
||||
|
||||
mpi_history.txt Parts list history
|
||||
|
||||
Filename 01.01.10
|
||||
---------- --------
|
||||
mpi.h 01.01.07
|
||||
mpi_ioc.h 01.01.07
|
||||
mpi_cnfg.h 01.01.11
|
||||
mpi_init.h 01.01.05
|
||||
mpi_targ.h 01.01.04
|
||||
mpi_fc.h 01.01.07
|
||||
mpi_lan.h 01.01.03
|
||||
mpi_raid.h 01.01.02
|
||||
mpi_type.h 01.01.02
|
||||
|
||||
Filename 01.01.09 01.01.08 01.01.07 01.01.06 01.01.05 01.01.04
|
||||
---------- -------- -------- -------- -------- -------- --------
|
||||
mpi.h 01.01.06 01.01.06 01.01.05 01.01.04 01.01.04 01.01.03
|
||||
mpi_ioc.h 01.01.06 01.01.05 01.01.04 01.01.03 01.01.03 01.01.03
|
||||
mpi_cnfg.h 01.01.10 01.01.09 01.01.08 01.01.07 01.01.06 01.01.05
|
||||
mpi_init.h 01.01.04 01.01.03 01.01.03 01.01.02 01.01.02 01.01.02
|
||||
mpi_targ.h 01.01.04 01.01.03 01.01.03 01.01.02 01.01.02 01.01.02
|
||||
mpi_fc.h 01.01.06 01.01.05 01.01.05 01.01.04 01.01.04 01.01.03
|
||||
mpi_lan.h 01.01.03 01.01.02 01.01.02 01.01.01 01.01.01 01.01.01
|
||||
mpi_raid.h 01.01.02 01.01.01
|
||||
mpi_type.h 01.01.02 01.01.02 01.01.02 01.01.01 01.01.01 01.01.01
|
||||
|
||||
Filename 01.01.03 01.01.02 01.01.01 01.00.07 01.00.06 01.00.05
|
||||
---------- -------- -------- -------- -------- -------- --------
|
||||
mpi.h 01.01.02 01.01.02 01.01.01 01.00.04 01.00.04 01.00.03
|
||||
mpi_ioc.h 01.01.02 01.01.02 01.01.01 01.00.05 01.00.04 01.00.03
|
||||
mpi_cnfg.h 01.01.04 01.01.03 01.01.01 01.00.05 01.00.05 01.00.04
|
||||
mpi_init.h 01.01.02 01.01.02 01.01.01 01.00.02 01.00.02 01.00.02
|
||||
mpi_targ.h 01.01.01 01.01.01 01.01.01 01.00.02 01.00.02 01.00.02
|
||||
mpi_fc.h 01.01.02 01.01.02 01.01.01 01.00.02 01.00.02 01.00.02
|
||||
mpi_lan.h 01.01.01 01.01.01 01.01.01 01.00.05 01.00.05 01.00.05
|
||||
mpi_type.h 01.01.01 01.01.01 01.01.01 01.00.01 01.00.01 01.00.01
|
||||
|
||||
Filename 01.00.04 01.00.03 01.00.02 01.00.01 00.10.02 00.10.01
|
||||
---------- -------- -------- -------- -------- -------- --------
|
||||
mpi.h 01.00.02 01.00.01 01.00.01 01.00.01 00.10.02 00.10.01
|
||||
mpi_ioc.h 01.00.02 01.00.02 01.00.01 01.00.01 00.10.02 00.10.01
|
||||
mpi_cnfg.h 01.00.03 01.00.02 01.00.02 01.00.01 00.10.01 00.10.01
|
||||
mpi_init.h 01.00.02 01.00.02 01.00.02 01.00.01 00.10.02 00.10.01
|
||||
mpi_targ.h 01.00.02 01.00.01 01.00.01 01.00.01 00.10.01 00.10.01
|
||||
mpi_fc.h 01.00.02 01.00.02 01.00.01 01.00.01 00.10.01 00.10.01
|
||||
mpi_lan.h 01.00.03 01.00.02 01.00.01 01.00.01 00.10.02 00.10.01
|
||||
mpi_type.h 01.00.01 01.00.01 01.00.01 01.00.01 00.10.01 00.10.01
|
||||
|
||||
|
||||
* --------------------------------------------------------------------------
|
||||
|
220
drivers/message/fusion/lsi/mpi_inb.h
Normal file
220
drivers/message/fusion/lsi/mpi_inb.h
Normal file
@@ -0,0 +1,220 @@
|
||||
/*
|
||||
* Copyright (c) 2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_inb.h
|
||||
* Title: MPI Inband structures and definitions
|
||||
* Creation Date: September 30, 2003
|
||||
*
|
||||
* mpi_inb.h Version: 01.03.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* ??-??-?? 01.03.01 Original release.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_INB_H
|
||||
#define MPI_INB_H
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* I n b a n d M e s s a g e s
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Inband Buffer Post Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_INBAND_BUFFER_POST_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 BufferCount; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved4; /* 0Ch */
|
||||
SGE_TRANS_SIMPLE_UNION SGL; /* 10h */
|
||||
} MSG_INBAND_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_INBAND_BUFFER_POST_REQUEST,
|
||||
MpiInbandBufferPostRequest_t , MPI_POINTER pMpiInbandBufferPostRequest_t;
|
||||
|
||||
|
||||
typedef struct _WWN_FC_FORMAT
|
||||
{
|
||||
U64 NodeName; /* 00h */
|
||||
U64 PortName; /* 08h */
|
||||
} WWN_FC_FORMAT, MPI_POINTER PTR_WWN_FC_FORMAT,
|
||||
WwnFcFormat_t, MPI_POINTER pWwnFcFormat_t;
|
||||
|
||||
typedef struct _WWN_SAS_FORMAT
|
||||
{
|
||||
U64 WorldWideID; /* 00h */
|
||||
U32 Reserved1; /* 08h */
|
||||
U32 Reserved2; /* 0Ch */
|
||||
} WWN_SAS_FORMAT, MPI_POINTER PTR_WWN_SAS_FORMAT,
|
||||
WwnSasFormat_t, MPI_POINTER pWwnSasFormat_t;
|
||||
|
||||
typedef union _WWN_INBAND_FORMAT
|
||||
{
|
||||
WWN_FC_FORMAT Fc;
|
||||
WWN_SAS_FORMAT Sas;
|
||||
} WWN_INBAND_FORMAT, MPI_POINTER PTR_WWN_INBAND_FORMAT,
|
||||
WwnInbandFormat, MPI_POINTER pWwnInbandFormat;
|
||||
|
||||
|
||||
/* Inband Buffer Post reply message */
|
||||
|
||||
typedef struct _MSG_INBAND_BUFFER_POST_REPLY
|
||||
{
|
||||
U16 Reserved1; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferLength; /* 14h */
|
||||
U32 TransactionContext; /* 18h */
|
||||
WWN_INBAND_FORMAT Wwn; /* 1Ch */
|
||||
U32 IOCIdentifier[4]; /* 2Ch */
|
||||
} MSG_INBAND_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_INBAND_BUFFER_POST_REPLY,
|
||||
MpiInbandBufferPostReply_t, MPI_POINTER pMpiInbandBufferPostReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Inband Send Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_INBAND_SEND_REQUEST
|
||||
{
|
||||
U16 Reserved1; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved4; /* 0Ch */
|
||||
WWN_INBAND_FORMAT Wwn; /* 10h */
|
||||
U32 Reserved5; /* 20h */
|
||||
SGE_IO_UNION SGL; /* 24h */
|
||||
} MSG_INBAND_SEND_REQUEST, MPI_POINTER PTR_MSG_INBAND_SEND_REQUEST,
|
||||
MpiInbandSendRequest_t , MPI_POINTER pMpiInbandSendRequest_t;
|
||||
|
||||
|
||||
/* Inband Send reply message */
|
||||
|
||||
typedef struct _MSG_INBAND_SEND_REPLY
|
||||
{
|
||||
U16 Reserved1; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ResponseLength; /* 14h */
|
||||
} MSG_INBAND_SEND_REPLY, MPI_POINTER PTR_MSG_INBAND_SEND_REPLY,
|
||||
MpiInbandSendReply_t, MPI_POINTER pMpiInbandSendReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Inband Response Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_INBAND_RSP_REQUEST
|
||||
{
|
||||
U16 Reserved1; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved4; /* 0Ch */
|
||||
WWN_INBAND_FORMAT Wwn; /* 10h */
|
||||
U32 IOCIdentifier[4]; /* 20h */
|
||||
U32 ResponseLength; /* 30h */
|
||||
SGE_IO_UNION SGL; /* 34h */
|
||||
} MSG_INBAND_RSP_REQUEST, MPI_POINTER PTR_MSG_INBAND_RSP_REQUEST,
|
||||
MpiInbandRspRequest_t , MPI_POINTER pMpiInbandRspRequest_t;
|
||||
|
||||
|
||||
/* Inband Response reply message */
|
||||
|
||||
typedef struct _MSG_INBAND_RSP_REPLY
|
||||
{
|
||||
U16 Reserved1; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_INBAND_RSP_REPLY, MPI_POINTER PTR_MSG_INBAND_RSP_REPLY,
|
||||
MpiInbandRspReply_t, MPI_POINTER pMpiInbandRspReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Inband Abort Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_INBAND_ABORT_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 AbortType; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved4; /* 0Ch */
|
||||
U32 ContextToAbort; /* 10h */
|
||||
} MSG_INBAND_ABORT_REQUEST, MPI_POINTER PTR_MSG_INBAND_ABORT_REQUEST,
|
||||
MpiInbandAbortRequest_t , MPI_POINTER pMpiInbandAbortRequest_t;
|
||||
|
||||
#define MPI_INBAND_ABORT_TYPE_ALL_BUFFERS (0x00)
|
||||
#define MPI_INBAND_ABORT_TYPE_EXACT_BUFFER (0x01)
|
||||
#define MPI_INBAND_ABORT_TYPE_SEND_REQUEST (0x02)
|
||||
#define MPI_INBAND_ABORT_TYPE_RESPONSE_REQUEST (0x03)
|
||||
|
||||
|
||||
/* Inband Abort reply message */
|
||||
|
||||
typedef struct _MSG_INBAND_ABORT_REPLY
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 AbortType; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_INBAND_ABORT_REPLY, MPI_POINTER PTR_MSG_INBAND_ABORT_REPLY,
|
||||
MpiInbandAbortReply_t, MPI_POINTER pMpiInbandAbortReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
362
drivers/message/fusion/lsi/mpi_init.h
Normal file
362
drivers/message/fusion/lsi/mpi_init.h
Normal file
@@ -0,0 +1,362 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_init.h
|
||||
* Title: MPI initiator mode messages and structures
|
||||
* Creation Date: June 8, 2000
|
||||
*
|
||||
* mpi_init.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added SenseBufferLength to _MSG_SCSI_IO_REPLY.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-08-00 01.00.02 Added MPI_SCSI_RSP_INFO_ definitions.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work.
|
||||
* 12-04-00 01.01.02 Added MPI_SCSIIO_CONTROL_NO_DISCONNECT.
|
||||
* 02-20-01 01.01.03 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.04 Added structure offset comments.
|
||||
* 04-10-01 01.01.05 Added new MsgFlag for MSG_SCSI_TASK_MGMT.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 08-29-01 01.02.02 Added MPI_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET.
|
||||
* Added MPI_SCSI_STATE_QUEUE_TAG_REJECTED for
|
||||
* MSG_SCSI_IO_REPLY.
|
||||
* 09-28-01 01.02.03 Added structures and defines for SCSI Enclosure
|
||||
* Processor messages.
|
||||
* 10-04-01 01.02.04 Added defines for SEP request Action field.
|
||||
* 05-31-02 01.02.05 Added MPI_SCSIIO_MSGFLGS_CMD_DETERMINES_DATA_DIR define
|
||||
* for SCSI IO requests.
|
||||
* 11-15-02 01.02.06 Added special extended SCSI Status defines for FCP.
|
||||
* 06-26-03 01.02.07 Added MPI_SCSI_STATUS_FCPEXT_UNASSIGNED define.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_INIT_H
|
||||
#define MPI_INIT_H
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* S C S I I n i t i a t o r M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI IO messages and associated structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SCSI_IO_REQUEST
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Reserved; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Control; /* 14h */
|
||||
U8 CDB[16]; /* 18h */
|
||||
U32 DataLength; /* 28h */
|
||||
U32 SenseBufferLowAddr; /* 2Ch */
|
||||
SGE_IO_UNION SGL; /* 30h */
|
||||
} MSG_SCSI_IO_REQUEST, MPI_POINTER PTR_MSG_SCSI_IO_REQUEST,
|
||||
SCSIIORequest_t, MPI_POINTER pSCSIIORequest_t;
|
||||
|
||||
|
||||
/* SCSI IO MsgFlags bits */
|
||||
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH (0x01)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_32 (0x00)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_WIDTH_64 (0x01)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_LOCATION (0x02)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_LOC_HOST (0x00)
|
||||
#define MPI_SCSIIO_MSGFLGS_SENSE_LOC_IOC (0x02)
|
||||
#define MPI_SCSIIO_MSGFLGS_CMD_DETERMINES_DATA_DIR (0x04)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_TYPE_MASK (0xE0)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_NONE (0x00)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_RDPROTECT_T10 (0x20)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_VRPROTECT_T10 (0x40)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_WRPROTECT_T10 (0x60)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_520_READ_MODE1 (0x20)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_520_WRITE_MODE1 (0x40)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_8_9_READ_MODE1 (0x60)
|
||||
#define MPI_SCSIIO_MSGFLGS_EEDP_8_9_WRITE_MODE1 (0x80)
|
||||
|
||||
|
||||
/* SCSI IO LUN fields */
|
||||
|
||||
#define MPI_SCSIIO_LUN_FIRST_LEVEL_ADDRESSING (0x0000FFFF)
|
||||
#define MPI_SCSIIO_LUN_SECOND_LEVEL_ADDRESSING (0xFFFF0000)
|
||||
#define MPI_SCSIIO_LUN_THIRD_LEVEL_ADDRESSING (0x0000FFFF)
|
||||
#define MPI_SCSIIO_LUN_FOURTH_LEVEL_ADDRESSING (0xFFFF0000)
|
||||
#define MPI_SCSIIO_LUN_LEVEL_1_WORD (0xFF00)
|
||||
#define MPI_SCSIIO_LUN_LEVEL_1_DWORD (0x0000FF00)
|
||||
|
||||
/* SCSI IO Control bits */
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_DATADIRECTION_MASK (0x03000000)
|
||||
#define MPI_SCSIIO_CONTROL_NODATATRANSFER (0x00000000)
|
||||
#define MPI_SCSIIO_CONTROL_WRITE (0x01000000)
|
||||
#define MPI_SCSIIO_CONTROL_READ (0x02000000)
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_ADDCDBLEN_MASK (0x3C000000)
|
||||
#define MPI_SCSIIO_CONTROL_ADDCDBLEN_SHIFT (26)
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_TASKATTRIBUTE_MASK (0x00000700)
|
||||
#define MPI_SCSIIO_CONTROL_SIMPLEQ (0x00000000)
|
||||
#define MPI_SCSIIO_CONTROL_HEADOFQ (0x00000100)
|
||||
#define MPI_SCSIIO_CONTROL_ORDEREDQ (0x00000200)
|
||||
#define MPI_SCSIIO_CONTROL_ACAQ (0x00000400)
|
||||
#define MPI_SCSIIO_CONTROL_UNTAGGED (0x00000500)
|
||||
#define MPI_SCSIIO_CONTROL_NO_DISCONNECT (0x00000700)
|
||||
|
||||
#define MPI_SCSIIO_CONTROL_TASKMANAGE_MASK (0x00FF0000)
|
||||
#define MPI_SCSIIO_CONTROL_OBSOLETE (0x00800000)
|
||||
#define MPI_SCSIIO_CONTROL_CLEAR_ACA_RSV (0x00400000)
|
||||
#define MPI_SCSIIO_CONTROL_TARGET_RESET (0x00200000)
|
||||
#define MPI_SCSIIO_CONTROL_LUN_RESET_RSV (0x00100000)
|
||||
#define MPI_SCSIIO_CONTROL_RESERVED (0x00080000)
|
||||
#define MPI_SCSIIO_CONTROL_CLR_TASK_SET_RSV (0x00040000)
|
||||
#define MPI_SCSIIO_CONTROL_ABORT_TASK_SET (0x00020000)
|
||||
#define MPI_SCSIIO_CONTROL_RESERVED2 (0x00010000)
|
||||
|
||||
|
||||
/* SCSI IO reply structure */
|
||||
typedef struct _MSG_SCSI_IO_REPLY
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Reserved; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 SCSIStatus; /* 0Ch */
|
||||
U8 SCSIState; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferCount; /* 14h */
|
||||
U32 SenseCount; /* 18h */
|
||||
U32 ResponseInfo; /* 1Ch */
|
||||
} MSG_SCSI_IO_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_REPLY,
|
||||
SCSIIOReply_t, MPI_POINTER pSCSIIOReply_t;
|
||||
|
||||
|
||||
/* SCSI IO Reply SCSIStatus values (SAM-2 status codes) */
|
||||
|
||||
#define MPI_SCSI_STATUS_SUCCESS (0x00)
|
||||
#define MPI_SCSI_STATUS_CHECK_CONDITION (0x02)
|
||||
#define MPI_SCSI_STATUS_CONDITION_MET (0x04)
|
||||
#define MPI_SCSI_STATUS_BUSY (0x08)
|
||||
#define MPI_SCSI_STATUS_INTERMEDIATE (0x10)
|
||||
#define MPI_SCSI_STATUS_INTERMEDIATE_CONDMET (0x14)
|
||||
#define MPI_SCSI_STATUS_RESERVATION_CONFLICT (0x18)
|
||||
#define MPI_SCSI_STATUS_COMMAND_TERMINATED (0x22)
|
||||
#define MPI_SCSI_STATUS_TASK_SET_FULL (0x28)
|
||||
#define MPI_SCSI_STATUS_ACA_ACTIVE (0x30)
|
||||
|
||||
#define MPI_SCSI_STATUS_FCPEXT_DEVICE_LOGGED_OUT (0x80)
|
||||
#define MPI_SCSI_STATUS_FCPEXT_NO_LINK (0x81)
|
||||
#define MPI_SCSI_STATUS_FCPEXT_UNASSIGNED (0x82)
|
||||
|
||||
|
||||
/* SCSI IO Reply SCSIState values */
|
||||
|
||||
#define MPI_SCSI_STATE_AUTOSENSE_VALID (0x01)
|
||||
#define MPI_SCSI_STATE_AUTOSENSE_FAILED (0x02)
|
||||
#define MPI_SCSI_STATE_NO_SCSI_STATUS (0x04)
|
||||
#define MPI_SCSI_STATE_TERMINATED (0x08)
|
||||
#define MPI_SCSI_STATE_RESPONSE_INFO_VALID (0x10)
|
||||
#define MPI_SCSI_STATE_QUEUE_TAG_REJECTED (0x20)
|
||||
|
||||
/* SCSI IO Reply ResponseInfo values */
|
||||
/* (FCP-1 RSP_CODE values and SPI-3 Packetized Failure codes) */
|
||||
|
||||
#define MPI_SCSI_RSP_INFO_FUNCTION_COMPLETE (0x00000000)
|
||||
#define MPI_SCSI_RSP_INFO_FCP_BURST_LEN_ERROR (0x01000000)
|
||||
#define MPI_SCSI_RSP_INFO_CMND_FIELDS_INVALID (0x02000000)
|
||||
#define MPI_SCSI_RSP_INFO_FCP_DATA_RO_ERROR (0x03000000)
|
||||
#define MPI_SCSI_RSP_INFO_TASK_MGMT_UNSUPPORTED (0x04000000)
|
||||
#define MPI_SCSI_RSP_INFO_TASK_MGMT_FAILED (0x05000000)
|
||||
#define MPI_SCSI_RSP_INFO_SPI_LQ_INVALID_TYPE (0x06000000)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI IO 32 Request message structure */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SCSI_IO32_REQUEST
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Reserved; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Control; /* 14h */
|
||||
U8 CDB[32]; /* 18h */
|
||||
U32 DataLength; /* 38h */
|
||||
U32 SenseBufferLowAddr; /* 3Ch */
|
||||
SGE_IO_UNION SGL; /* 40h */
|
||||
} MSG_SCSI_IO32_REQUEST, MPI_POINTER PTR_MSG_SCSI_IO32_REQUEST,
|
||||
SCSIIO32Request_t, MPI_POINTER pSCSIIO32Request_t;
|
||||
|
||||
/* SCSI IO 32 uses the same defines as above for SCSI IO */
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI Task Management messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SCSI_TASK_MGMT
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved; /* 04h */
|
||||
U8 TaskType; /* 05h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Reserved2[7]; /* 14h */
|
||||
U32 TaskMsgContext; /* 30h */
|
||||
} MSG_SCSI_TASK_MGMT, MPI_POINTER PTR_SCSI_TASK_MGMT,
|
||||
SCSITaskMgmt_t, MPI_POINTER pSCSITaskMgmt_t;
|
||||
|
||||
/* TaskType values */
|
||||
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_ABORT_TASK (0x01)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_ABRT_TASK_SET (0x02)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET (0x03)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS (0x04)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_LOGICAL_UNIT_RESET (0x05)
|
||||
#define MPI_SCSITASKMGMT_TASKTYPE_CLEAR_TASK_SET (0x06)
|
||||
|
||||
/* MsgFlags bits */
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_TARGET_RESET_OPTION (0x00)
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_LIP_RESET_OPTION (0x02)
|
||||
#define MPI_SCSITASKMGMT_MSGFLAGS_LIPRESET_RESET_OPTION (0x04)
|
||||
|
||||
/* SCSI Task Management Reply */
|
||||
typedef struct _MSG_SCSI_TASK_MGMT_REPLY
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved; /* 04h */
|
||||
U8 TaskType; /* 05h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Reserved2[2]; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TerminationCount; /* 14h */
|
||||
} MSG_SCSI_TASK_MGMT_REPLY, MPI_POINTER PTR_MSG_SCSI_TASK_MGMT_REPLY,
|
||||
SCSITaskMgmtReply_t, MPI_POINTER pSCSITaskMgmtReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI Enclosure Processor messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SEP_REQUEST
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Action; /* 04h */
|
||||
U8 Reserved1; /* 05h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 SlotStatus; /* 0Ch */
|
||||
} MSG_SEP_REQUEST, MPI_POINTER PTR_MSG_SEP_REQUEST,
|
||||
SEPRequest_t, MPI_POINTER pSEPRequest_t;
|
||||
|
||||
/* Action defines */
|
||||
#define MPI_SEP_REQ_ACTION_WRITE_STATUS (0x00)
|
||||
#define MPI_SEP_REQ_ACTION_READ_STATUS (0x01)
|
||||
|
||||
/* SlotStatus bits for MSG_SEP_REQUEST */
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_NO_ERROR (0x00000001)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DEV_FAULTY (0x00000002)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DEV_REBUILDING (0x00000004)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_IN_FAILED_ARRAY (0x00000008)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_IN_CRITICAL_ARRAY (0x00000010)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_PARITY_CHECK (0x00000020)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT (0x00000040)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_UNCONFIGURED (0x00000080)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_HOT_SPARE (0x00000100)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REBUILD_STOPPED (0x00000200)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_IDENTIFY_REQUEST (0x00020000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REQUEST_REMOVE (0x00040000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_REQUEST_INSERT (0x00080000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DO_NOT_MOVE (0x00400000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_B_ENABLE_BYPASS (0x04000000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_A_ENABLE_BYPASS (0x08000000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_DEV_OFF (0x10000000)
|
||||
#define MPI_SEP_REQ_SLOTSTATUS_SWAP_RESET (0x80000000)
|
||||
|
||||
|
||||
typedef struct _MSG_SEP_REPLY
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Action; /* 04h */
|
||||
U8 Reserved1; /* 05h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 SlotStatus; /* 14h */
|
||||
} MSG_SEP_REPLY, MPI_POINTER PTR_MSG_SEP_REPLY,
|
||||
SEPReply_t, MPI_POINTER pSEPReply_t;
|
||||
|
||||
/* SlotStatus bits for MSG_SEP_REPLY */
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_NO_ERROR (0x00000001)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DEV_FAULTY (0x00000002)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DEV_REBUILDING (0x00000004)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_IN_FAILED_ARRAY (0x00000008)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_IN_CRITICAL_ARRAY (0x00000010)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_PARITY_CHECK (0x00000020)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_PREDICTED_FAULT (0x00000040)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_UNCONFIGURED (0x00000080)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_HOT_SPARE (0x00000100)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_REBUILD_STOPPED (0x00000200)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_REPORT (0x00010000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_IDENTIFY_REQUEST (0x00020000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_REMOVE_READY (0x00040000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_INSERT_READY (0x00080000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DO_NOT_REMOVE (0x00400000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_B_BYPASS_ENABLED (0x01000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_A_BYPASS_ENABLED (0x02000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_B_ENABLE_BYPASS (0x04000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_A_ENABLE_BYPASS (0x08000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_DEV_OFF (0x10000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_FAULT_SENSED (0x40000000)
|
||||
#define MPI_SEP_REPLY_SLOTSTATUS_SWAPPED (0x80000000)
|
||||
|
||||
#endif
|
770
drivers/message/fusion/lsi/mpi_ioc.h
Normal file
770
drivers/message/fusion/lsi/mpi_ioc.h
Normal file
@@ -0,0 +1,770 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_ioc.h
|
||||
* Title: MPI IOC, Port, Event, FW Download, and FW Upload messages
|
||||
* Creation Date: August 11, 2000
|
||||
*
|
||||
* mpi_ioc.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added _MSG_IOC_INIT_REPLY structure.
|
||||
* 06-06-00 01.00.01 Added CurReplyFrameSize field to _MSG_IOC_FACTS_REPLY.
|
||||
* 06-12-00 01.00.02 Added _MSG_PORT_ENABLE_REPLY structure.
|
||||
* Added _MSG_EVENT_ACK_REPLY structure.
|
||||
* Added _MSG_FW_DOWNLOAD_REPLY structure.
|
||||
* Added _MSG_TOOLBOX_REPLY structure.
|
||||
* 06-30-00 01.00.03 Added MaxLanBuckets to _PORT_FACT_REPLY structure.
|
||||
* 07-27-00 01.00.04 Added _EVENT_DATA structure definitions for _SCSI,
|
||||
* _LINK_STATUS, _LOOP_STATE and _LOGOUT.
|
||||
* 08-11-00 01.00.05 Switched positions of MsgLength and Function fields in
|
||||
* _MSG_EVENT_ACK_REPLY structure to match specification.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work.
|
||||
* Added a value for Manufacturer to WhoInit.
|
||||
* 12-04-00 01.01.02 Modified IOCFacts reply, added FWUpload messages, and
|
||||
* removed toolbox message.
|
||||
* 01-09-01 01.01.03 Added event enabled and disabled defines.
|
||||
* Added structures for FwHeader and DataHeader.
|
||||
* Added ImageType to FwUpload reply.
|
||||
* 02-20-01 01.01.04 Started using MPI_POINTER.
|
||||
* 02-27-01 01.01.05 Added event for RAID status change and its event data.
|
||||
* Added IocNumber field to MSG_IOC_FACTS_REPLY.
|
||||
* 03-27-01 01.01.06 Added defines for ProductId field of MPI_FW_HEADER.
|
||||
* Added structure offset comments.
|
||||
* 04-09-01 01.01.07 Added structure EVENT_DATA_EVENT_CHANGE.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* New format for FWVersion and ProductId in
|
||||
* MSG_IOC_FACTS_REPLY and MPI_FW_HEADER.
|
||||
* 08-31-01 01.02.02 Addded event MPI_EVENT_SCSI_DEVICE_STATUS_CHANGE and
|
||||
* related structure and defines.
|
||||
* Added event MPI_EVENT_ON_BUS_TIMER_EXPIRED.
|
||||
* Added MPI_IOCINIT_FLAGS_DISCARD_FW_IMAGE.
|
||||
* Replaced a reserved field in MSG_IOC_FACTS_REPLY with
|
||||
* IOCExceptions and changed DataImageSize to reserved.
|
||||
* Added MPI_FW_DOWNLOAD_ITYPE_NVSTORE_DATA and
|
||||
* MPI_FW_UPLOAD_ITYPE_NVDATA.
|
||||
* 09-28-01 01.02.03 Modified Event Data for Integrated RAID.
|
||||
* 11-01-01 01.02.04 Added defines for MPI_EXT_IMAGE_HEADER ImageType field.
|
||||
* 03-14-02 01.02.05 Added HeaderVersion field to MSG_IOC_FACTS_REPLY.
|
||||
* 05-31-02 01.02.06 Added define for
|
||||
* MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID.
|
||||
* Added AliasIndex to EVENT_DATA_LOGOUT structure.
|
||||
* 04-01-03 01.02.07 Added defines for MPI_FW_HEADER_SIGNATURE_.
|
||||
* 06-26-03 01.02.08 Added new values to the product family defines.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_IOC_H
|
||||
#define MPI_IOC_H
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* I O C M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* IOCInit message */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_IOC_INIT
|
||||
{
|
||||
U8 WhoInit; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Flags; /* 04h */
|
||||
U8 MaxDevices; /* 05h */
|
||||
U8 MaxBuses; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 ReplyFrameSize; /* 0Ch */
|
||||
U8 Reserved1[2]; /* 0Eh */
|
||||
U32 HostMfaHighAddr; /* 10h */
|
||||
U32 SenseBufferHighAddr; /* 14h */
|
||||
U32 ReplyFifoHostSignalingAddr; /* 18h */
|
||||
} MSG_IOC_INIT, MPI_POINTER PTR_MSG_IOC_INIT,
|
||||
IOCInit_t, MPI_POINTER pIOCInit_t;
|
||||
|
||||
/* WhoInit values */
|
||||
#define MPI_WHOINIT_NO_ONE (0x00)
|
||||
#define MPI_WHOINIT_SYSTEM_BIOS (0x01)
|
||||
#define MPI_WHOINIT_ROM_BIOS (0x02)
|
||||
#define MPI_WHOINIT_PCI_PEER (0x03)
|
||||
#define MPI_WHOINIT_HOST_DRIVER (0x04)
|
||||
#define MPI_WHOINIT_MANUFACTURER (0x05)
|
||||
|
||||
/* Flags values */
|
||||
#define MPI_IOCINIT_FLAGS_DISCARD_FW_IMAGE (0x01)
|
||||
#define MPI_IOCINIT_FLAGS_REPLY_FIFO_HOST_SIGNAL (0x02)
|
||||
|
||||
typedef struct _MSG_IOC_INIT_REPLY
|
||||
{
|
||||
U8 WhoInit; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Flags; /* 04h */
|
||||
U8 MaxDevices; /* 05h */
|
||||
U8 MaxBuses; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_IOC_INIT_REPLY, MPI_POINTER PTR_MSG_IOC_INIT_REPLY,
|
||||
IOCInitReply_t, MPI_POINTER pIOCInitReply_t;
|
||||
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* IOC Facts message */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_IOC_FACTS
|
||||
{
|
||||
U8 Reserved[2]; /* 00h */
|
||||
U8 ChainOffset; /* 01h */
|
||||
U8 Function; /* 02h */
|
||||
U8 Reserved1[3]; /* 03h */
|
||||
U8 MsgFlags; /* 04h */
|
||||
U32 MsgContext; /* 08h */
|
||||
} MSG_IOC_FACTS, MPI_POINTER PTR_IOC_FACTS,
|
||||
IOCFacts_t, MPI_POINTER pIOCFacts_t;
|
||||
|
||||
typedef struct _MPI_FW_VERSION_STRUCT
|
||||
{
|
||||
U8 Dev; /* 00h */
|
||||
U8 Unit; /* 01h */
|
||||
U8 Minor; /* 02h */
|
||||
U8 Major; /* 03h */
|
||||
} MPI_FW_VERSION_STRUCT;
|
||||
|
||||
typedef union _MPI_FW_VERSION
|
||||
{
|
||||
MPI_FW_VERSION_STRUCT Struct;
|
||||
U32 Word;
|
||||
} MPI_FW_VERSION;
|
||||
|
||||
/* IOC Facts Reply */
|
||||
typedef struct _MSG_IOC_FACTS_REPLY
|
||||
{
|
||||
U16 MsgVersion; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 HeaderVersion; /* 04h */
|
||||
U8 IOCNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 IOCExceptions; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U8 MaxChainDepth; /* 14h */
|
||||
U8 WhoInit; /* 15h */
|
||||
U8 BlockSize; /* 16h */
|
||||
U8 Flags; /* 17h */
|
||||
U16 ReplyQueueDepth; /* 18h */
|
||||
U16 RequestFrameSize; /* 1Ah */
|
||||
U16 Reserved_0101_FWVersion; /* 1Ch */ /* obsolete 16-bit FWVersion */
|
||||
U16 ProductID; /* 1Eh */
|
||||
U32 CurrentHostMfaHighAddr; /* 20h */
|
||||
U16 GlobalCredits; /* 24h */
|
||||
U8 NumberOfPorts; /* 26h */
|
||||
U8 EventState; /* 27h */
|
||||
U32 CurrentSenseBufferHighAddr; /* 28h */
|
||||
U16 CurReplyFrameSize; /* 2Ch */
|
||||
U8 MaxDevices; /* 2Eh */
|
||||
U8 MaxBuses; /* 2Fh */
|
||||
U32 FWImageSize; /* 30h */
|
||||
U32 IOCCapabilities; /* 34h */
|
||||
MPI_FW_VERSION FWVersion; /* 38h */
|
||||
U16 HighPriorityQueueDepth; /* 3Ch */
|
||||
U16 Reserved2; /* 3Eh */
|
||||
} MSG_IOC_FACTS_REPLY, MPI_POINTER PTR_MSG_IOC_FACTS_REPLY,
|
||||
IOCFactsReply_t, MPI_POINTER pIOCFactsReply_t;
|
||||
|
||||
#define MPI_IOCFACTS_MSGVERSION_MAJOR_MASK (0xFF00)
|
||||
#define MPI_IOCFACTS_MSGVERSION_MINOR_MASK (0x00FF)
|
||||
|
||||
#define MPI_IOCFACTS_HEADERVERSION_UNIT_MASK (0xFF00)
|
||||
#define MPI_IOCFACTS_HEADERVERSION_DEV_MASK (0x00FF)
|
||||
|
||||
#define MPI_IOCFACTS_EXCEPT_CONFIG_CHECKSUM_FAIL (0x0001)
|
||||
#define MPI_IOCFACTS_EXCEPT_RAID_CONFIG_INVALID (0x0002)
|
||||
#define MPI_IOCFACTS_EXCEPT_FW_CHECKSUM_FAIL (0x0004)
|
||||
#define MPI_IOCFACTS_EXCEPT_PERSISTENT_TABLE_FULL (0x0008)
|
||||
|
||||
#define MPI_IOCFACTS_FLAGS_FW_DOWNLOAD_BOOT (0x01)
|
||||
|
||||
#define MPI_IOCFACTS_EVENTSTATE_DISABLED (0x00)
|
||||
#define MPI_IOCFACTS_EVENTSTATE_ENABLED (0x01)
|
||||
|
||||
#define MPI_IOCFACTS_CAPABILITY_HIGH_PRI_Q (0x00000001)
|
||||
#define MPI_IOCFACTS_CAPABILITY_REPLY_HOST_SIGNAL (0x00000002)
|
||||
#define MPI_IOCFACTS_CAPABILITY_QUEUE_FULL_HANDLING (0x00000004)
|
||||
#define MPI_IOCFACTS_CAPABILITY_DIAG_TRACE_BUFFER (0x00000008)
|
||||
#define MPI_IOCFACTS_CAPABILITY_SNAPSHOT_BUFFER (0x00000010)
|
||||
#define MPI_IOCFACTS_CAPABILITY_EXTENDED_BUFFER (0x00000020)
|
||||
#define MPI_IOCFACTS_CAPABILITY_EEDP (0x00000040)
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* P o r t M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Port Facts message and Reply */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_PORT_FACTS
|
||||
{
|
||||
U8 Reserved[2]; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[2]; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
} MSG_PORT_FACTS, MPI_POINTER PTR_MSG_PORT_FACTS,
|
||||
PortFacts_t, MPI_POINTER pPortFacts_t;
|
||||
|
||||
typedef struct _MSG_PORT_FACTS_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U8 Reserved3; /* 14h */
|
||||
U8 PortType; /* 15h */
|
||||
U16 MaxDevices; /* 16h */
|
||||
U16 PortSCSIID; /* 18h */
|
||||
U16 ProtocolFlags; /* 1Ah */
|
||||
U16 MaxPostedCmdBuffers; /* 1Ch */
|
||||
U16 MaxPersistentIDs; /* 1Eh */
|
||||
U16 MaxLanBuckets; /* 20h */
|
||||
U16 Reserved4; /* 22h */
|
||||
U32 Reserved5; /* 24h */
|
||||
} MSG_PORT_FACTS_REPLY, MPI_POINTER PTR_MSG_PORT_FACTS_REPLY,
|
||||
PortFactsReply_t, MPI_POINTER pPortFactsReply_t;
|
||||
|
||||
|
||||
/* PortTypes values */
|
||||
|
||||
#define MPI_PORTFACTS_PORTTYPE_INACTIVE (0x00)
|
||||
#define MPI_PORTFACTS_PORTTYPE_SCSI (0x01)
|
||||
#define MPI_PORTFACTS_PORTTYPE_FC (0x10)
|
||||
#define MPI_PORTFACTS_PORTTYPE_ISCSI (0x20)
|
||||
#define MPI_PORTFACTS_PORTTYPE_SAS (0x30)
|
||||
|
||||
/* ProtocolFlags values */
|
||||
|
||||
#define MPI_PORTFACTS_PROTOCOL_LOGBUSADDR (0x01)
|
||||
#define MPI_PORTFACTS_PROTOCOL_LAN (0x02)
|
||||
#define MPI_PORTFACTS_PROTOCOL_TARGET (0x04)
|
||||
#define MPI_PORTFACTS_PROTOCOL_INITIATOR (0x08)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Port Enable Message */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_PORT_ENABLE
|
||||
{
|
||||
U8 Reserved[2]; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[2]; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
} MSG_PORT_ENABLE, MPI_POINTER PTR_MSG_PORT_ENABLE,
|
||||
PortEnable_t, MPI_POINTER pPortEnable_t;
|
||||
|
||||
typedef struct _MSG_PORT_ENABLE_REPLY
|
||||
{
|
||||
U8 Reserved[2]; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[2]; /* 04h */
|
||||
U8 PortNumber; /* 05h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_PORT_ENABLE_REPLY, MPI_POINTER PTR_MSG_PORT_ENABLE_REPLY,
|
||||
PortEnableReply_t, MPI_POINTER pPortEnableReply_t;
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* E v e n t M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Event Notification messages */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_EVENT_NOTIFY
|
||||
{
|
||||
U8 Switch; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[3]; /* 04h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
} MSG_EVENT_NOTIFY, MPI_POINTER PTR_MSG_EVENT_NOTIFY,
|
||||
EventNotification_t, MPI_POINTER pEventNotification_t;
|
||||
|
||||
/* Event Notification Reply */
|
||||
|
||||
typedef struct _MSG_EVENT_NOTIFY_REPLY
|
||||
{
|
||||
U16 EventDataLength; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[2]; /* 04h */
|
||||
U8 AckRequired; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Reserved2[2]; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 Event; /* 14h */
|
||||
U32 EventContext; /* 18h */
|
||||
U32 Data[1]; /* 1Ch */
|
||||
} MSG_EVENT_NOTIFY_REPLY, MPI_POINTER PTR_MSG_EVENT_NOTIFY_REPLY,
|
||||
EventNotificationReply_t, MPI_POINTER pEventNotificationReply_t;
|
||||
|
||||
/* Event Acknowledge */
|
||||
|
||||
typedef struct _MSG_EVENT_ACK
|
||||
{
|
||||
U8 Reserved[2]; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[3]; /* 04h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Event; /* 0Ch */
|
||||
U32 EventContext; /* 10h */
|
||||
} MSG_EVENT_ACK, MPI_POINTER PTR_MSG_EVENT_ACK,
|
||||
EventAck_t, MPI_POINTER pEventAck_t;
|
||||
|
||||
typedef struct _MSG_EVENT_ACK_REPLY
|
||||
{
|
||||
U8 Reserved[2]; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[3]; /* 04h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_EVENT_ACK_REPLY, MPI_POINTER PTR_MSG_EVENT_ACK_REPLY,
|
||||
EventAckReply_t, MPI_POINTER pEventAckReply_t;
|
||||
|
||||
/* Switch */
|
||||
|
||||
#define MPI_EVENT_NOTIFICATION_SWITCH_OFF (0x00)
|
||||
#define MPI_EVENT_NOTIFICATION_SWITCH_ON (0x01)
|
||||
|
||||
/* Event */
|
||||
|
||||
#define MPI_EVENT_NONE (0x00000000)
|
||||
#define MPI_EVENT_LOG_DATA (0x00000001)
|
||||
#define MPI_EVENT_STATE_CHANGE (0x00000002)
|
||||
#define MPI_EVENT_UNIT_ATTENTION (0x00000003)
|
||||
#define MPI_EVENT_IOC_BUS_RESET (0x00000004)
|
||||
#define MPI_EVENT_EXT_BUS_RESET (0x00000005)
|
||||
#define MPI_EVENT_RESCAN (0x00000006)
|
||||
#define MPI_EVENT_LINK_STATUS_CHANGE (0x00000007)
|
||||
#define MPI_EVENT_LOOP_STATE_CHANGE (0x00000008)
|
||||
#define MPI_EVENT_LOGOUT (0x00000009)
|
||||
#define MPI_EVENT_EVENT_CHANGE (0x0000000A)
|
||||
#define MPI_EVENT_INTEGRATED_RAID (0x0000000B)
|
||||
#define MPI_EVENT_SCSI_DEVICE_STATUS_CHANGE (0x0000000C)
|
||||
#define MPI_EVENT_ON_BUS_TIMER_EXPIRED (0x0000000D)
|
||||
#define MPI_EVENT_QUEUE_FULL (0x0000000E)
|
||||
#define MPI_EVENT_SAS_DEVICE_STATUS_CHANGE (0x0000000F)
|
||||
#define MPI_EVENT_SAS_SES (0x00000010)
|
||||
#define MPI_EVENT_PERSISTENT_TABLE_FULL (0x00000011)
|
||||
|
||||
/* AckRequired field values */
|
||||
|
||||
#define MPI_EVENT_NOTIFICATION_ACK_NOT_REQUIRED (0x00)
|
||||
#define MPI_EVENT_NOTIFICATION_ACK_REQUIRED (0x01)
|
||||
|
||||
/* EventChange Event data */
|
||||
|
||||
typedef struct _EVENT_DATA_EVENT_CHANGE
|
||||
{
|
||||
U8 EventState; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U16 Reserved1; /* 02h */
|
||||
} EVENT_DATA_EVENT_CHANGE, MPI_POINTER PTR_EVENT_DATA_EVENT_CHANGE,
|
||||
EventDataEventChange_t, MPI_POINTER pEventDataEventChange_t;
|
||||
|
||||
/* SCSI Event data for Port, Bus and Device forms */
|
||||
|
||||
typedef struct _EVENT_DATA_SCSI
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 BusPort; /* 01h */
|
||||
U16 Reserved; /* 02h */
|
||||
} EVENT_DATA_SCSI, MPI_POINTER PTR_EVENT_DATA_SCSI,
|
||||
EventDataScsi_t, MPI_POINTER pEventDataScsi_t;
|
||||
|
||||
/* SCSI Device Status Change Event data */
|
||||
|
||||
typedef struct _EVENT_DATA_SCSI_DEVICE_STATUS_CHANGE
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ReasonCode; /* 02h */
|
||||
U8 LUN; /* 03h */
|
||||
U8 ASC; /* 04h */
|
||||
U8 ASCQ; /* 05h */
|
||||
U16 Reserved; /* 06h */
|
||||
} EVENT_DATA_SCSI_DEVICE_STATUS_CHANGE,
|
||||
MPI_POINTER PTR_EVENT_DATA_SCSI_DEVICE_STATUS_CHANGE,
|
||||
MpiEventDataScsiDeviceStatusChange_t,
|
||||
MPI_POINTER pMpiEventDataScsiDeviceStatusChange_t;
|
||||
|
||||
/* MPI SCSI Device Status Change Event data ReasonCode values */
|
||||
#define MPI_EVENT_SCSI_DEV_STAT_RC_ADDED (0x03)
|
||||
#define MPI_EVENT_SCSI_DEV_STAT_RC_NOT_RESPONDING (0x04)
|
||||
#define MPI_EVENT_SCSI_DEV_STAT_RC_SMART_DATA (0x05)
|
||||
|
||||
/* SAS Device Status Change Event data */
|
||||
|
||||
typedef struct _EVENT_DATA_SAS_DEVICE_STATUS_CHANGE
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U8 ReasonCode; /* 02h */
|
||||
U8 Reserved; /* 03h */
|
||||
U8 ASC; /* 04h */
|
||||
U8 ASCQ; /* 05h */
|
||||
U16 DevHandle; /* 06h */
|
||||
U32 DeviceInfo; /* 08h */
|
||||
} EVENT_DATA_SAS_DEVICE_STATUS_CHANGE,
|
||||
MPI_POINTER PTR_EVENT_DATA_SAS_DEVICE_STATUS_CHANGE,
|
||||
MpiEventDataSasDeviceStatusChange_t,
|
||||
MPI_POINTER pMpiEventDataSasDeviceStatusChange_t;
|
||||
|
||||
/* MPI SAS Device Status Change Event data ReasonCode values */
|
||||
#define MPI_EVENT_SAS_DEV_STAT_RC_ADDED (0x03)
|
||||
#define MPI_EVENT_SAS_DEV_STAT_RC_NOT_RESPONDING (0x04)
|
||||
#define MPI_EVENT_SAS_DEV_STAT_RC_SMART_DATA (0x05)
|
||||
#define MPI_EVENT_SAS_DEV_STAT_RC_NO_PERSIST_ADDED (0x06)
|
||||
|
||||
/* SCSI Event data for Queue Full event */
|
||||
|
||||
typedef struct _EVENT_DATA_QUEUE_FULL
|
||||
{
|
||||
U8 TargetID; /* 00h */
|
||||
U8 Bus; /* 01h */
|
||||
U16 CurrentDepth; /* 02h */
|
||||
} EVENT_DATA_QUEUE_FULL, MPI_POINTER PTR_EVENT_DATA_QUEUE_FULL,
|
||||
EventDataQueueFull_t, MPI_POINTER pEventDataQueueFull_t;
|
||||
|
||||
/* MPI Link Status Change Event data */
|
||||
|
||||
typedef struct _EVENT_DATA_LINK_STATUS
|
||||
{
|
||||
U8 State; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U16 Reserved1; /* 02h */
|
||||
U8 Reserved2; /* 04h */
|
||||
U8 Port; /* 05h */
|
||||
U16 Reserved3; /* 06h */
|
||||
} EVENT_DATA_LINK_STATUS, MPI_POINTER PTR_EVENT_DATA_LINK_STATUS,
|
||||
EventDataLinkStatus_t, MPI_POINTER pEventDataLinkStatus_t;
|
||||
|
||||
#define MPI_EVENT_LINK_STATUS_FAILURE (0x00000000)
|
||||
#define MPI_EVENT_LINK_STATUS_ACTIVE (0x00000001)
|
||||
|
||||
/* MPI Loop State Change Event data */
|
||||
|
||||
typedef struct _EVENT_DATA_LOOP_STATE
|
||||
{
|
||||
U8 Character4; /* 00h */
|
||||
U8 Character3; /* 01h */
|
||||
U8 Type; /* 02h */
|
||||
U8 Reserved; /* 03h */
|
||||
U8 Reserved1; /* 04h */
|
||||
U8 Port; /* 05h */
|
||||
U16 Reserved2; /* 06h */
|
||||
} EVENT_DATA_LOOP_STATE, MPI_POINTER PTR_EVENT_DATA_LOOP_STATE,
|
||||
EventDataLoopState_t, MPI_POINTER pEventDataLoopState_t;
|
||||
|
||||
#define MPI_EVENT_LOOP_STATE_CHANGE_LIP (0x0001)
|
||||
#define MPI_EVENT_LOOP_STATE_CHANGE_LPE (0x0002)
|
||||
#define MPI_EVENT_LOOP_STATE_CHANGE_LPB (0x0003)
|
||||
|
||||
/* MPI LOGOUT Event data */
|
||||
|
||||
typedef struct _EVENT_DATA_LOGOUT
|
||||
{
|
||||
U32 NPortID; /* 00h */
|
||||
U8 AliasIndex; /* 04h */
|
||||
U8 Port; /* 05h */
|
||||
U16 Reserved1; /* 06h */
|
||||
} EVENT_DATA_LOGOUT, MPI_POINTER PTR_EVENT_DATA_LOGOUT,
|
||||
EventDataLogout_t, MPI_POINTER pEventDataLogout_t;
|
||||
|
||||
#define MPI_EVENT_LOGOUT_ALL_ALIASES (0xFF)
|
||||
|
||||
|
||||
/* MPI Integrated RAID Event data */
|
||||
|
||||
typedef struct _EVENT_DATA_RAID
|
||||
{
|
||||
U8 VolumeID; /* 00h */
|
||||
U8 VolumeBus; /* 01h */
|
||||
U8 ReasonCode; /* 02h */
|
||||
U8 PhysDiskNum; /* 03h */
|
||||
U8 ASC; /* 04h */
|
||||
U8 ASCQ; /* 05h */
|
||||
U16 Reserved; /* 06h */
|
||||
U32 SettingsStatus; /* 08h */
|
||||
} EVENT_DATA_RAID, MPI_POINTER PTR_EVENT_DATA_RAID,
|
||||
MpiEventDataRaid_t, MPI_POINTER pMpiEventDataRaid_t;
|
||||
|
||||
/* MPI Integrated RAID Event data ReasonCode values */
|
||||
#define MPI_EVENT_RAID_RC_VOLUME_CREATED (0x00)
|
||||
#define MPI_EVENT_RAID_RC_VOLUME_DELETED (0x01)
|
||||
#define MPI_EVENT_RAID_RC_VOLUME_SETTINGS_CHANGED (0x02)
|
||||
#define MPI_EVENT_RAID_RC_VOLUME_STATUS_CHANGED (0x03)
|
||||
#define MPI_EVENT_RAID_RC_VOLUME_PHYSDISK_CHANGED (0x04)
|
||||
#define MPI_EVENT_RAID_RC_PHYSDISK_CREATED (0x05)
|
||||
#define MPI_EVENT_RAID_RC_PHYSDISK_DELETED (0x06)
|
||||
#define MPI_EVENT_RAID_RC_PHYSDISK_SETTINGS_CHANGED (0x07)
|
||||
#define MPI_EVENT_RAID_RC_PHYSDISK_STATUS_CHANGED (0x08)
|
||||
#define MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED (0x09)
|
||||
#define MPI_EVENT_RAID_RC_SMART_DATA (0x0A)
|
||||
#define MPI_EVENT_RAID_RC_REPLACE_ACTION_STARTED (0x0B)
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* F i r m w a r e L o a d M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Firmware Download message and associated structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FW_DOWNLOAD
|
||||
{
|
||||
U8 ImageType; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[3]; /* 04h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
SGE_MPI_UNION SGL; /* 0Ch */
|
||||
} MSG_FW_DOWNLOAD, MPI_POINTER PTR_MSG_FW_DOWNLOAD,
|
||||
FWDownload_t, MPI_POINTER pFWDownload_t;
|
||||
|
||||
#define MPI_FW_DOWNLOAD_ITYPE_RESERVED (0x00)
|
||||
#define MPI_FW_DOWNLOAD_ITYPE_FW (0x01)
|
||||
#define MPI_FW_DOWNLOAD_ITYPE_BIOS (0x02)
|
||||
#define MPI_FW_DOWNLOAD_ITYPE_NVDATA (0x03)
|
||||
#define MPI_FW_DOWNLOAD_ITYPE_BOOTLOADER (0x04)
|
||||
|
||||
|
||||
typedef struct _FWDownloadTCSGE
|
||||
{
|
||||
U8 Reserved; /* 00h */
|
||||
U8 ContextSize; /* 01h */
|
||||
U8 DetailsLength; /* 02h */
|
||||
U8 Flags; /* 03h */
|
||||
U32 Reserved_0100_Checksum; /* 04h */ /* obsolete Checksum */
|
||||
U32 ImageOffset; /* 08h */
|
||||
U32 ImageSize; /* 0Ch */
|
||||
} FW_DOWNLOAD_TCSGE, MPI_POINTER PTR_FW_DOWNLOAD_TCSGE,
|
||||
FWDownloadTCSGE_t, MPI_POINTER pFWDownloadTCSGE_t;
|
||||
|
||||
/* Firmware Download reply */
|
||||
typedef struct _MSG_FW_DOWNLOAD_REPLY
|
||||
{
|
||||
U8 ImageType; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[3]; /* 04h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_FW_DOWNLOAD_REPLY, MPI_POINTER PTR_MSG_FW_DOWNLOAD_REPLY,
|
||||
FWDownloadReply_t, MPI_POINTER pFWDownloadReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Firmware Upload message and associated structures */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_FW_UPLOAD
|
||||
{
|
||||
U8 ImageType; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[3]; /* 04h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
SGE_MPI_UNION SGL; /* 0Ch */
|
||||
} MSG_FW_UPLOAD, MPI_POINTER PTR_MSG_FW_UPLOAD,
|
||||
FWUpload_t, MPI_POINTER pFWUpload_t;
|
||||
|
||||
#define MPI_FW_UPLOAD_ITYPE_FW_IOC_MEM (0x00)
|
||||
#define MPI_FW_UPLOAD_ITYPE_FW_FLASH (0x01)
|
||||
#define MPI_FW_UPLOAD_ITYPE_BIOS_FLASH (0x02)
|
||||
#define MPI_FW_UPLOAD_ITYPE_NVDATA (0x03)
|
||||
#define MPI_FW_UPLOAD_ITYPE_BOOTLOADER (0x04)
|
||||
|
||||
typedef struct _FWUploadTCSGE
|
||||
{
|
||||
U8 Reserved; /* 00h */
|
||||
U8 ContextSize; /* 01h */
|
||||
U8 DetailsLength; /* 02h */
|
||||
U8 Flags; /* 03h */
|
||||
U32 Reserved1; /* 04h */
|
||||
U32 ImageOffset; /* 08h */
|
||||
U32 ImageSize; /* 0Ch */
|
||||
} FW_UPLOAD_TCSGE, MPI_POINTER PTR_FW_UPLOAD_TCSGE,
|
||||
FWUploadTCSGE_t, MPI_POINTER pFWUploadTCSGE_t;
|
||||
|
||||
/* Firmware Upload reply */
|
||||
typedef struct _MSG_FW_UPLOAD_REPLY
|
||||
{
|
||||
U8 ImageType; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved1[3]; /* 04h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ActualImageSize; /* 14h */
|
||||
} MSG_FW_UPLOAD_REPLY, MPI_POINTER PTR_MSG_FW_UPLOAD_REPLY,
|
||||
FWUploadReply_t, MPI_POINTER pFWUploadReply_t;
|
||||
|
||||
|
||||
typedef struct _MPI_FW_HEADER
|
||||
{
|
||||
U32 ArmBranchInstruction0; /* 00h */
|
||||
U32 Signature0; /* 04h */
|
||||
U32 Signature1; /* 08h */
|
||||
U32 Signature2; /* 0Ch */
|
||||
U32 ArmBranchInstruction1; /* 10h */
|
||||
U32 ArmBranchInstruction2; /* 14h */
|
||||
U32 Reserved; /* 18h */
|
||||
U32 Checksum; /* 1Ch */
|
||||
U16 VendorId; /* 20h */
|
||||
U16 ProductId; /* 22h */
|
||||
MPI_FW_VERSION FWVersion; /* 24h */
|
||||
U32 SeqCodeVersion; /* 28h */
|
||||
U32 ImageSize; /* 2Ch */
|
||||
U32 NextImageHeaderOffset; /* 30h */
|
||||
U32 LoadStartAddress; /* 34h */
|
||||
U32 IopResetVectorValue; /* 38h */
|
||||
U32 IopResetRegAddr; /* 3Ch */
|
||||
U32 VersionNameWhat; /* 40h */
|
||||
U8 VersionName[32]; /* 44h */
|
||||
U32 VendorNameWhat; /* 64h */
|
||||
U8 VendorName[32]; /* 68h */
|
||||
} MPI_FW_HEADER, MPI_POINTER PTR_MPI_FW_HEADER,
|
||||
MpiFwHeader_t, MPI_POINTER pMpiFwHeader_t;
|
||||
|
||||
#define MPI_FW_HEADER_WHAT_SIGNATURE (0x29232840)
|
||||
|
||||
/* defines for using the ProductId field */
|
||||
#define MPI_FW_HEADER_PID_TYPE_MASK (0xF000)
|
||||
#define MPI_FW_HEADER_PID_TYPE_SCSI (0x0000)
|
||||
#define MPI_FW_HEADER_PID_TYPE_FC (0x1000)
|
||||
#define MPI_FW_HEADER_PID_TYPE_SAS (0x2000)
|
||||
|
||||
#define MPI_FW_HEADER_SIGNATURE_0 (0x5AEAA55A)
|
||||
#define MPI_FW_HEADER_SIGNATURE_1 (0xA55AEAA5)
|
||||
#define MPI_FW_HEADER_SIGNATURE_2 (0x5AA55AEA)
|
||||
|
||||
#define MPI_FW_HEADER_PID_PROD_MASK (0x0F00)
|
||||
#define MPI_FW_HEADER_PID_PROD_INITIATOR_SCSI (0x0100)
|
||||
#define MPI_FW_HEADER_PID_PROD_TARGET_INITIATOR_SCSI (0x0200)
|
||||
#define MPI_FW_HEADER_PID_PROD_TARGET_SCSI (0x0300)
|
||||
#define MPI_FW_HEADER_PID_PROD_IM_SCSI (0x0400)
|
||||
#define MPI_FW_HEADER_PID_PROD_IS_SCSI (0x0500)
|
||||
#define MPI_FW_HEADER_PID_PROD_CTX_SCSI (0x0600)
|
||||
|
||||
#define MPI_FW_HEADER_PID_FAMILY_MASK (0x00FF)
|
||||
/* SCSI */
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1030A0_SCSI (0x0001)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1030B0_SCSI (0x0002)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1030B1_SCSI (0x0003)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1030C0_SCSI (0x0004)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1020A0_SCSI (0x0005)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1020B0_SCSI (0x0006)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1020B1_SCSI (0x0007)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1020C0_SCSI (0x0008)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1035A0_SCSI (0x0009)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1035B0_SCSI (0x000A)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1030TA0_SCSI (0x000B)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1020TA0_SCSI (0x000C)
|
||||
/* Fibre Channel */
|
||||
#define MPI_FW_HEADER_PID_FAMILY_909_FC (0x0000)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_919_FC (0x0001)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_919X_FC (0x0002)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_919XL_FC (0x0003)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_949_FC (0x0004)
|
||||
#define MPI_FW_HEADER_PID_FAMILY_959_FC (0x0005)
|
||||
/* SAS */
|
||||
#define MPI_FW_HEADER_PID_FAMILY_1064_SAS (0x0001)
|
||||
|
||||
typedef struct _MPI_EXT_IMAGE_HEADER
|
||||
{
|
||||
U8 ImageType; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U16 Reserved1; /* 02h */
|
||||
U32 Checksum; /* 04h */
|
||||
U32 ImageSize; /* 08h */
|
||||
U32 NextImageHeaderOffset; /* 0Ch */
|
||||
U32 LoadStartAddress; /* 10h */
|
||||
U32 Reserved2; /* 14h */
|
||||
} MPI_EXT_IMAGE_HEADER, MPI_POINTER PTR_MPI_EXT_IMAGE_HEADER,
|
||||
MpiExtImageHeader_t, MPI_POINTER pMpiExtImageHeader_t;
|
||||
|
||||
/* defines for the ImageType field */
|
||||
#define MPI_EXT_IMAGE_TYPE_UNSPECIFIED (0x00)
|
||||
#define MPI_EXT_IMAGE_TYPE_FW (0x01)
|
||||
#define MPI_EXT_IMAGE_TYPE_NVDATA (0x03)
|
||||
#define MPI_EXT_IMAGE_TYPE_BOOTLOADER (0x04)
|
||||
|
||||
#endif
|
212
drivers/message/fusion/lsi/mpi_lan.h
Normal file
212
drivers/message/fusion/lsi/mpi_lan.h
Normal file
@@ -0,0 +1,212 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_lan.h
|
||||
* Title: MPI LAN messages and structures
|
||||
* Creation Date: June 30, 2000
|
||||
*
|
||||
* mpi_lan.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 05-24-00 00.10.02 Added LANStatus field to _MSG_LAN_SEND_REPLY.
|
||||
* Added LANStatus field to _MSG_LAN_RECEIVE_POST_REPLY.
|
||||
* Moved ListCount field in _MSG_LAN_RECEIVE_POST_REPLY.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-12-00 01.00.02 Added MPI_ to BUCKETSTATUS_ definitions.
|
||||
* 06-22-00 01.00.03 Major changes to match new LAN definition in 1.0 spec.
|
||||
* 06-30-00 01.00.04 Added Context Reply definitions per revised proposal.
|
||||
* Changed transaction context usage to bucket/buffer.
|
||||
* 07-05-00 01.00.05 Removed LAN_RECEIVE_POST_BUCKET_CONTEXT_MASK definition
|
||||
* to lan private header file
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 02-20-01 01.01.02 Started using MPI_POINTER.
|
||||
* 03-27-01 01.01.03 Added structure offset comments.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_LAN_H
|
||||
#define MPI_LAN_H
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* L A N M e s s a g e s
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
/* LANSend messages */
|
||||
|
||||
typedef struct _MSG_LAN_SEND_REQUEST
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
SGE_MPI_UNION SG_List[1]; /* 0Ch */
|
||||
} MSG_LAN_SEND_REQUEST, MPI_POINTER PTR_MSG_LAN_SEND_REQUEST,
|
||||
LANSendRequest_t, MPI_POINTER pLANSendRequest_t;
|
||||
|
||||
|
||||
typedef struct _MSG_LAN_SEND_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved2; /* 04h */
|
||||
U8 NumberOfContexts; /* 05h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 BufferContext; /* 14h */
|
||||
} MSG_LAN_SEND_REPLY, MPI_POINTER PTR_MSG_LAN_SEND_REPLY,
|
||||
LANSendReply_t, MPI_POINTER pLANSendReply_t;
|
||||
|
||||
|
||||
/* LANReceivePost */
|
||||
|
||||
typedef struct _MSG_LAN_RECEIVE_POST_REQUEST
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 BucketCount; /* 0Ch */
|
||||
SGE_MPI_UNION SG_List[1]; /* 10h */
|
||||
} MSG_LAN_RECEIVE_POST_REQUEST, MPI_POINTER PTR_MSG_LAN_RECEIVE_POST_REQUEST,
|
||||
LANReceivePostRequest_t, MPI_POINTER pLANReceivePostRequest_t;
|
||||
|
||||
|
||||
typedef struct _MSG_LAN_RECEIVE_POST_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 Reserved2; /* 04h */
|
||||
U8 NumberOfContexts; /* 05h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 BucketsRemaining; /* 14h */
|
||||
U32 PacketOffset; /* 18h */
|
||||
U32 PacketLength; /* 1Ch */
|
||||
U32 BucketContext[1]; /* 20h */
|
||||
} MSG_LAN_RECEIVE_POST_REPLY, MPI_POINTER PTR_MSG_LAN_RECEIVE_POST_REPLY,
|
||||
LANReceivePostReply_t, MPI_POINTER pLANReceivePostReply_t;
|
||||
|
||||
|
||||
/* LANReset */
|
||||
|
||||
typedef struct _MSG_LAN_RESET_REQUEST
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 PortNumber; /* 05h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
} MSG_LAN_RESET_REQUEST, MPI_POINTER PTR_MSG_LAN_RESET_REQUEST,
|
||||
LANResetRequest_t, MPI_POINTER pLANResetRequest_t;
|
||||
|
||||
|
||||
typedef struct _MSG_LAN_RESET_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 PortNumber; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_LAN_RESET_REPLY, MPI_POINTER PTR_MSG_LAN_RESET_REPLY,
|
||||
LANResetReply_t, MPI_POINTER pLANResetReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* LAN Context Reply defines and macros */
|
||||
/****************************************************************************/
|
||||
|
||||
#define LAN_REPLY_PACKET_LENGTH_MASK (0x0000FFFF)
|
||||
#define LAN_REPLY_PACKET_LENGTH_SHIFT (0)
|
||||
#define LAN_REPLY_BUCKET_CONTEXT_MASK (0x07FF0000)
|
||||
#define LAN_REPLY_BUCKET_CONTEXT_SHIFT (16)
|
||||
#define LAN_REPLY_BUFFER_CONTEXT_MASK (0x07FFFFFF)
|
||||
#define LAN_REPLY_BUFFER_CONTEXT_SHIFT (0)
|
||||
#define LAN_REPLY_FORM_MASK (0x18000000)
|
||||
#define LAN_REPLY_FORM_RECEIVE_SINGLE (0x00)
|
||||
#define LAN_REPLY_FORM_RECEIVE_MULTIPLE (0x01)
|
||||
#define LAN_REPLY_FORM_SEND_SINGLE (0x02)
|
||||
#define LAN_REPLY_FORM_MESSAGE_CONTEXT (0x03)
|
||||
#define LAN_REPLY_FORM_SHIFT (27)
|
||||
|
||||
#define GET_LAN_PACKET_LENGTH(x) (((x) & LAN_REPLY_PACKET_LENGTH_MASK) \
|
||||
>> LAN_REPLY_PACKET_LENGTH_SHIFT)
|
||||
|
||||
#define SET_LAN_PACKET_LENGTH(x, lth) \
|
||||
((x) = ((x) & ~LAN_REPLY_PACKET_LENGTH_MASK) | \
|
||||
(((lth) << LAN_REPLY_PACKET_LENGTH_SHIFT) & \
|
||||
LAN_REPLY_PACKET_LENGTH_MASK))
|
||||
|
||||
#define GET_LAN_BUCKET_CONTEXT(x) (((x) & LAN_REPLY_BUCKET_CONTEXT_MASK) \
|
||||
>> LAN_REPLY_BUCKET_CONTEXT_SHIFT)
|
||||
|
||||
#define SET_LAN_BUCKET_CONTEXT(x, ctx) \
|
||||
((x) = ((x) & ~LAN_REPLY_BUCKET_CONTEXT_MASK) | \
|
||||
(((ctx) << LAN_REPLY_BUCKET_CONTEXT_SHIFT) & \
|
||||
LAN_REPLY_BUCKET_CONTEXT_MASK))
|
||||
|
||||
#define GET_LAN_BUFFER_CONTEXT(x) (((x) & LAN_REPLY_BUFFER_CONTEXT_MASK) \
|
||||
>> LAN_REPLY_BUFFER_CONTEXT_SHIFT)
|
||||
|
||||
#define SET_LAN_BUFFER_CONTEXT(x, ctx) \
|
||||
((x) = ((x) & ~LAN_REPLY_BUFFER_CONTEXT_MASK) | \
|
||||
(((ctx) << LAN_REPLY_BUFFER_CONTEXT_SHIFT) & \
|
||||
LAN_REPLY_BUFFER_CONTEXT_MASK))
|
||||
|
||||
#define GET_LAN_FORM(x) (((x) & LAN_REPLY_FORM_MASK) \
|
||||
>> LAN_REPLY_FORM_SHIFT)
|
||||
|
||||
#define SET_LAN_FORM(x, frm) \
|
||||
((x) = ((x) & ~LAN_REPLY_FORM_MASK) | \
|
||||
(((frm) << LAN_REPLY_FORM_SHIFT) & \
|
||||
LAN_REPLY_FORM_MASK))
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* LAN Current Device State defines */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_LAN_DEVICE_STATE_RESET (0x00)
|
||||
#define MPI_LAN_DEVICE_STATE_OPERATIONAL (0x01)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* LAN Loopback defines */
|
||||
/****************************************************************************/
|
||||
|
||||
#define MPI_LAN_TX_MODES_ENABLE_LOOPBACK_SUPPRESSION (0x01)
|
||||
|
||||
#endif
|
||||
|
232
drivers/message/fusion/lsi/mpi_raid.h
Normal file
232
drivers/message/fusion/lsi/mpi_raid.h
Normal file
@@ -0,0 +1,232 @@
|
||||
/*
|
||||
* Copyright (c) 2001-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_raid.h
|
||||
* Title: MPI RAID message and structures
|
||||
* Creation Date: February 27, 2001
|
||||
*
|
||||
* mpi_raid.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 02-27-01 01.01.01 Original release for this file.
|
||||
* 03-27-01 01.01.02 Added structure offset comments.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 09-28-01 01.02.02 Major rework for MPI v1.2 Integrated RAID changes.
|
||||
* 10-04-01 01.02.03 Added ActionData defines for
|
||||
* MPI_RAID_ACTION_DELETE_VOLUME action.
|
||||
* 11-01-01 01.02.04 Added define for MPI_RAID_ACTION_ADATA_DO_NOT_SYNC.
|
||||
* 03-14-02 01.02.05 Added define for MPI_RAID_ACTION_ADATA_LOW_LEVEL_INIT.
|
||||
* 05-07-02 01.02.06 Added define for MPI_RAID_ACTION_ACTIVATE_VOLUME,
|
||||
* MPI_RAID_ACTION_INACTIVATE_VOLUME, and
|
||||
* MPI_RAID_ACTION_ADATA_INACTIVATE_ALL.
|
||||
* 07-12-02 01.02.07 Added structures for Mailbox request and reply.
|
||||
* 11-15-02 01.02.08 Added missing MsgContext field to MSG_MAILBOX_REQUEST.
|
||||
* 04-01-03 01.02.09 New action data option flag for
|
||||
* MPI_RAID_ACTION_DELETE_VOLUME.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_RAID_H
|
||||
#define MPI_RAID_H
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* R A I D M e s s a g e s
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* RAID Action Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_RAID_ACTION
|
||||
{
|
||||
U8 Action; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 VolumeID; /* 04h */
|
||||
U8 VolumeBus; /* 05h */
|
||||
U8 PhysDiskNum; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved2; /* 0Ch */
|
||||
U32 ActionDataWord; /* 10h */
|
||||
SGE_SIMPLE_UNION ActionDataSGE; /* 14h */
|
||||
} MSG_RAID_ACTION_REQUEST, MPI_POINTER PTR_MSG_RAID_ACTION_REQUEST,
|
||||
MpiRaidActionRequest_t , MPI_POINTER pMpiRaidActionRequest_t;
|
||||
|
||||
|
||||
/* RAID Action request Action values */
|
||||
|
||||
#define MPI_RAID_ACTION_STATUS (0x00)
|
||||
#define MPI_RAID_ACTION_INDICATOR_STRUCT (0x01)
|
||||
#define MPI_RAID_ACTION_CREATE_VOLUME (0x02)
|
||||
#define MPI_RAID_ACTION_DELETE_VOLUME (0x03)
|
||||
#define MPI_RAID_ACTION_DISABLE_VOLUME (0x04)
|
||||
#define MPI_RAID_ACTION_ENABLE_VOLUME (0x05)
|
||||
#define MPI_RAID_ACTION_QUIESCE_PHYS_IO (0x06)
|
||||
#define MPI_RAID_ACTION_ENABLE_PHYS_IO (0x07)
|
||||
#define MPI_RAID_ACTION_CHANGE_VOLUME_SETTINGS (0x08)
|
||||
#define MPI_RAID_ACTION_PHYSDISK_OFFLINE (0x0A)
|
||||
#define MPI_RAID_ACTION_PHYSDISK_ONLINE (0x0B)
|
||||
#define MPI_RAID_ACTION_CHANGE_PHYSDISK_SETTINGS (0x0C)
|
||||
#define MPI_RAID_ACTION_CREATE_PHYSDISK (0x0D)
|
||||
#define MPI_RAID_ACTION_DELETE_PHYSDISK (0x0E)
|
||||
#define MPI_RAID_ACTION_FAIL_PHYSDISK (0x0F)
|
||||
#define MPI_RAID_ACTION_REPLACE_PHYSDISK (0x10)
|
||||
#define MPI_RAID_ACTION_ACTIVATE_VOLUME (0x11)
|
||||
#define MPI_RAID_ACTION_INACTIVATE_VOLUME (0x12)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_CREATE_VOLUME action */
|
||||
#define MPI_RAID_ACTION_ADATA_DO_NOT_SYNC (0x00000001)
|
||||
#define MPI_RAID_ACTION_ADATA_LOW_LEVEL_INIT (0x00000002)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_DELETE_VOLUME action */
|
||||
#define MPI_RAID_ACTION_ADATA_KEEP_PHYS_DISKS (0x00000000)
|
||||
#define MPI_RAID_ACTION_ADATA_DEL_PHYS_DISKS (0x00000001)
|
||||
|
||||
#define MPI_RAID_ACTION_ADATA_KEEP_LBA0 (0x00000000)
|
||||
#define MPI_RAID_ACTION_ADATA_ZERO_LBA0 (0x00000002)
|
||||
|
||||
/* ActionDataWord defines for use with MPI_RAID_ACTION_ACTIVATE_VOLUME action */
|
||||
#define MPI_RAID_ACTION_ADATA_INACTIVATE_ALL (0x00000001)
|
||||
|
||||
|
||||
/* RAID Action reply message */
|
||||
|
||||
typedef struct _MSG_RAID_ACTION_REPLY
|
||||
{
|
||||
U8 Action; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 VolumeID; /* 04h */
|
||||
U8 VolumeBus; /* 05h */
|
||||
U8 PhysDiskNum; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 ActionStatus; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 VolumeStatus; /* 14h */
|
||||
U32 ActionData; /* 18h */
|
||||
} MSG_RAID_ACTION_REPLY, MPI_POINTER PTR_MSG_RAID_ACTION_REPLY,
|
||||
MpiRaidActionReply_t, MPI_POINTER pMpiRaidActionReply_t;
|
||||
|
||||
|
||||
/* RAID Volume reply ActionStatus values */
|
||||
|
||||
#define MPI_RAID_ACTION_ASTATUS_SUCCESS (0x0000)
|
||||
#define MPI_RAID_ACTION_ASTATUS_INVALID_ACTION (0x0001)
|
||||
#define MPI_RAID_ACTION_ASTATUS_FAILURE (0x0002)
|
||||
#define MPI_RAID_ACTION_ASTATUS_IN_PROGRESS (0x0003)
|
||||
|
||||
|
||||
/* RAID Volume reply RAID Volume Indicator structure */
|
||||
|
||||
typedef struct _MPI_RAID_VOL_INDICATOR
|
||||
{
|
||||
U64 TotalBlocks; /* 00h */
|
||||
U64 BlocksRemaining; /* 08h */
|
||||
} MPI_RAID_VOL_INDICATOR, MPI_POINTER PTR_MPI_RAID_VOL_INDICATOR,
|
||||
MpiRaidVolIndicator_t, MPI_POINTER pMpiRaidVolIndicator_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SCSI IO RAID Passthrough Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SCSI_IO_RAID_PT_REQUEST
|
||||
{
|
||||
U8 PhysDiskNum; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 LUN[8]; /* 0Ch */
|
||||
U32 Control; /* 14h */
|
||||
U8 CDB[16]; /* 18h */
|
||||
U32 DataLength; /* 28h */
|
||||
U32 SenseBufferLowAddr; /* 2Ch */
|
||||
SGE_IO_UNION SGL; /* 30h */
|
||||
} MSG_SCSI_IO_RAID_PT_REQUEST, MPI_POINTER PTR_MSG_SCSI_IO_RAID_PT_REQUEST,
|
||||
SCSIIORaidPassthroughRequest_t, MPI_POINTER pSCSIIORaidPassthroughRequest_t;
|
||||
|
||||
|
||||
/* SCSI IO RAID Passthrough reply structure */
|
||||
|
||||
typedef struct _MSG_SCSI_IO_RAID_PT_REPLY
|
||||
{
|
||||
U8 PhysDiskNum; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 CDBLength; /* 04h */
|
||||
U8 SenseBufferLength; /* 05h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 SCSIStatus; /* 0Ch */
|
||||
U8 SCSIState; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferCount; /* 14h */
|
||||
U32 SenseCount; /* 18h */
|
||||
U32 ResponseInfo; /* 1Ch */
|
||||
} MSG_SCSI_IO_RAID_PT_REPLY, MPI_POINTER PTR_MSG_SCSI_IO_RAID_PT_REPLY,
|
||||
SCSIIORaidPassthroughReply_t, MPI_POINTER pSCSIIORaidPassthroughReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Mailbox reqeust structure */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_MAILBOX_REQUEST
|
||||
{
|
||||
U16 Reserved1;
|
||||
U8 ChainOffset;
|
||||
U8 Function;
|
||||
U16 Reserved2;
|
||||
U8 Reserved3;
|
||||
U8 MsgFlags;
|
||||
U32 MsgContext;
|
||||
U8 Command[10];
|
||||
U16 Reserved4;
|
||||
SGE_IO_UNION SGL;
|
||||
} MSG_MAILBOX_REQUEST, MPI_POINTER PTR_MSG_MAILBOX_REQUEST,
|
||||
MailboxRequest_t, MPI_POINTER pMailboxRequest_t;
|
||||
|
||||
|
||||
/* Mailbox reply structure */
|
||||
typedef struct _MSG_MAILBOX_REPLY
|
||||
{
|
||||
U16 Reserved1; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 MailboxStatus; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 Reserved4; /* 14h */
|
||||
} MSG_MAILBOX_REPLY, MPI_POINTER PTR_MSG_MAILBOX_REPLY,
|
||||
MailboxReply_t, MPI_POINTER pMailboxReply_t;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
181
drivers/message/fusion/lsi/mpi_sas.h
Normal file
181
drivers/message/fusion/lsi/mpi_sas.h
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* Copyright (c) 2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_sas.h
|
||||
* Title: MPI Serial Attached SCSI structures and definitions
|
||||
* Creation Date: April 23, 2003
|
||||
*
|
||||
* mpi_sas.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* xx-yy-zz 01.05.01 Original release.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_SAS_H
|
||||
#define MPI_SAS_H
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* S e r i a l A t t a c h e d S C S I M e s s a g e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Serial Management Protocol Passthrough Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SMP_PASSTHROUGH_REQUEST
|
||||
{
|
||||
U8 PassthroughFlags; /* 00h */
|
||||
U8 PhysicalPort; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 RequestDataLength; /* 04h */
|
||||
U8 ConnectionRate; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Reserved1; /* 0Ch */
|
||||
U64 SASAddress; /* 10h */
|
||||
U32 Reserved2; /* 18h */
|
||||
U32 Reserved3; /* 1Ch */
|
||||
SGE_SIMPLE_UNION SGL; /* 20h */
|
||||
} MSG_SMP_PASSTHROUGH_REQUEST, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REQUEST,
|
||||
SmpPassthroughRequest_t, MPI_POINTER pSmpPassthroughRequest_t;
|
||||
|
||||
#define MPI_SMP_PT_REQ_PT_FLAGS_IMMEDIATE (0x80)
|
||||
|
||||
#define MPI_SMP_PT_REQ_CONNECT_RATE_NEGOTIATED (0x00)
|
||||
#define MPI_SMP_PT_REQ_CONNECT_RATE_1_5 (0x08)
|
||||
#define MPI_SMP_PT_REQ_CONNECT_RATE_3_0 (0x09)
|
||||
|
||||
|
||||
/* Serial Management Protocol Passthrough Reply */
|
||||
typedef struct _MSG_SMP_PASSTHROUGH_REPLY
|
||||
{
|
||||
U8 PassthroughFlags; /* 00h */
|
||||
U8 PhysicalPort; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 ResponseDataLength; /* 04h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Reserved2; /* 0Ch */
|
||||
U8 SASStatus; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 Reserved3; /* 14h */
|
||||
U8 ResponseData[4]; /* 18h */
|
||||
} MSG_SMP_PASSTHROUGH_REPLY, MPI_POINTER PTR_MSG_SMP_PASSTHROUGH_REPLY,
|
||||
SmpPassthroughReply_t, MPI_POINTER pSmpPassthroughReply_t;
|
||||
|
||||
#define MPI_SMP_PT_REPLY_PT_FLAGS_IMMEDIATE (0x80)
|
||||
|
||||
/* values for the SASStatus field */
|
||||
#define MPI_SASSTATUS_SUCCESS (0x00)
|
||||
#define MPI_SASSTATUS_UNKNOWN_ERROR (0x01)
|
||||
#define MPI_SASSTATUS_INVALID_FRAME (0x02)
|
||||
#define MPI_SASSTATUS_UTC_BAD_DEST (0x03)
|
||||
#define MPI_SASSTATUS_UTC_BREAK_RECEIVED (0x04)
|
||||
#define MPI_SASSTATUS_UTC_CONNECT_RATE_NOT_SUPPORTED (0x05)
|
||||
#define MPI_SASSTATUS_UTC_PORT_LAYER_REQUEST (0x06)
|
||||
#define MPI_SASSTATUS_UTC_PROTOCOL_NOT_SUPPORTED (0x07)
|
||||
#define MPI_SASSTATUS_UTC_STP_RESOURCES_BUSY (0x08)
|
||||
#define MPI_SASSTATUS_UTC_WRONG_DESTINATION (0x09)
|
||||
#define MPI_SASSTATUS_SHORT_INFORMATION_UNIT (0x0A)
|
||||
#define MPI_SASSTATUS_LONG_INFORMATION_UNIT (0x0B)
|
||||
#define MPI_SASSTATUS_XFER_RDY_INCORRECT_WRITE_DATA (0x0C)
|
||||
#define MPI_SASSTATUS_XFER_RDY_REQUEST_OFFSET_ERROR (0x0D)
|
||||
#define MPI_SASSTATUS_XFER_RDY_NOT_EXPECTED (0x0E)
|
||||
#define MPI_SASSTATUS_DATA_INCORRECT_DATA_LENGTH (0x0F)
|
||||
#define MPI_SASSTATUS_DATA_TOO_MUCH_READ_DATA (0x10)
|
||||
#define MPI_SASSTATUS_DATA_OFFSET_ERROR (0x11)
|
||||
#define MPI_SASSTATUS_SDSF_NAK_RECEIVED (0x12)
|
||||
#define MPI_SASSTATUS_SDSF_CONNECTION_FAILED (0x13)
|
||||
#define MPI_SASSTATUS_INITIATOR_RESPONSE_TIMEOUT (0x14)
|
||||
|
||||
|
||||
/*
|
||||
* Values for the SAS DeviceInfo field used in SAS Device Status Change Event
|
||||
* data and SAS IO Unit Configuration pages.
|
||||
*/
|
||||
#define MPI_SAS_DEVICE_INFO_ATAPI_DEVICE (0x00002000)
|
||||
#define MPI_SAS_DEVICE_INFO_LSI_DEVICE (0x00001000)
|
||||
#define MPI_SAS_DEVICE_INFO_DIRECT_ATTACH (0x00000800)
|
||||
#define MPI_SAS_DEVICE_INFO_SSP_TARGET (0x00000400)
|
||||
#define MPI_SAS_DEVICE_INFO_STP_TARGET (0x00000200)
|
||||
#define MPI_SAS_DEVICE_INFO_SMP_TARGET (0x00000100)
|
||||
#define MPI_SAS_DEVICE_INFO_SATA_DEVICE (0x00000080)
|
||||
#define MPI_SAS_DEVICE_INFO_SSP_INITIATOR (0x00000040)
|
||||
#define MPI_SAS_DEVICE_INFO_STP_INITIATOR (0x00000020)
|
||||
#define MPI_SAS_DEVICE_INFO_SMP_INITIATOR (0x00000010)
|
||||
#define MPI_SAS_DEVICE_INFO_SATA_HOST (0x00000008)
|
||||
|
||||
#define MPI_SAS_DEVICE_INFO_MASK_DEVICE_TYPE (0x00000007)
|
||||
#define MPI_SAS_DEVICE_INFO_NO_DEVICE (0x00000000)
|
||||
#define MPI_SAS_DEVICE_INFO_END_DEVICE (0x00000001)
|
||||
#define MPI_SAS_DEVICE_INFO_EDGE_EXPANDER (0x00000002)
|
||||
#define MPI_SAS_DEVICE_INFO_FANOUT_EXPANDER (0x00000003)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* SAS IO Unit Control Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_SAS_IOUNIT_CONTROL_REQUEST
|
||||
{
|
||||
U8 Operation; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 TargetID; /* 0Ch */
|
||||
U8 Bus; /* 0Dh */
|
||||
U8 PhyNum; /* 0Eh */
|
||||
U8 Reserved4; /* 0Fh */
|
||||
U32 Reserved5; /* 10h */
|
||||
U64 SASAddress; /* 14h */
|
||||
U32 Reserved6; /* 1Ch */
|
||||
} MSG_SAS_IOUNIT_CONTROL_REQUEST, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REQUEST,
|
||||
SasIoUnitControlRequest_t, MPI_POINTER pSasIoUnitControlRequest_t;
|
||||
|
||||
/* values for the ... field */
|
||||
#define MPI_SAS_OP_CLEAR_NOT_PRESENT (0x01)
|
||||
#define MPI_SAS_OP_CLEAR_ALL (0x02)
|
||||
#define MPI_SAS_OP_MAP (0x03)
|
||||
#define MPI_SAS_OP_MOVE (0x04)
|
||||
#define MPI_SAS_OP_CLEAR (0x05)
|
||||
#define MPI_SAS_OP_PHY_LINK_RESET (0x06)
|
||||
#define MPI_SAS_OP_PHY_HARD_RESET (0x07)
|
||||
#define MPI_SAS_OP_PHY_CLEAR_ERROR_LOG (0x08)
|
||||
|
||||
|
||||
/* SAS IO Unit Control Reply */
|
||||
typedef struct _MSG_SAS_IOUNIT_CONTROL_REPLY
|
||||
{
|
||||
U8 Operation; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_SAS_IOUNIT_CONTROL_REPLY, MPI_POINTER PTR_MSG_SAS_IOUNIT_CONTROL_REPLY,
|
||||
SasIoUnitControlReply_t, MPI_POINTER pSasIoUnitControlReply_t;
|
||||
|
||||
#endif
|
||||
|
||||
|
435
drivers/message/fusion/lsi/mpi_targ.h
Normal file
435
drivers/message/fusion/lsi/mpi_targ.h
Normal file
@@ -0,0 +1,435 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_targ.h
|
||||
* Title: MPI Target mode messages and structures
|
||||
* Creation Date: June 22, 2000
|
||||
*
|
||||
* mpi_targ.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 06-22-00 01.00.02 Added _MSG_TARGET_CMD_BUFFER_POST_REPLY structure.
|
||||
* Corrected DECSRIPTOR typo to DESCRIPTOR.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* Modified target mode to use IoIndex instead of
|
||||
* HostIndex and IocIndex. Added Alias.
|
||||
* 01-09-01 01.01.02 Added defines for TARGET_ASSIST_FLAGS_REPOST_CMD_BUFFER
|
||||
* and TARGET_STATUS_SEND_FLAGS_REPOST_CMD_BUFFER.
|
||||
* 02-20-01 01.01.03 Started using MPI_POINTER.
|
||||
* Added structures for MPI_TARGET_SCSI_SPI_CMD_BUFFER and
|
||||
* MPI_TARGET_FCP_CMD_BUFFER.
|
||||
* 03-27-01 01.01.04 Added structure offset comments.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* 09-28-01 01.02.02 Added structure for MPI_TARGET_SCSI_SPI_STATUS_IU.
|
||||
* Added PriorityReason field to some replies and
|
||||
* defined more PriorityReason codes.
|
||||
* Added some defines for to support previous version
|
||||
* of MPI.
|
||||
* 10-04-01 01.02.03 Added PriorityReason to MSG_TARGET_ERROR_REPLY.
|
||||
* 11-01-01 01.02.04 Added define for TARGET_STATUS_SEND_FLAGS_HIGH_PRIORITY.
|
||||
* 03-14-02 01.02.05 Modified MPI_TARGET_FCP_RSP_BUFFER to get the proper
|
||||
* byte ordering.
|
||||
* 05-31-02 01.02.06 Modified TARGET_MODE_REPLY_ALIAS_MASK to only include
|
||||
* one bit.
|
||||
* Added AliasIndex field to MPI_TARGET_FCP_CMD_BUFFER.
|
||||
* 09-16-02 01.02.07 Added flags for confirmed completion.
|
||||
* Added PRIORITY_REASON_TARGET_BUSY.
|
||||
* 11-15-02 01.02.08 Added AliasID field to MPI_TARGET_SCSI_SPI_CMD_BUFFER.
|
||||
* 04-01-03 01.02.09 Added OptionalOxid field to MPI_TARGET_FCP_CMD_BUFFER.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_TARG_H
|
||||
#define MPI_TARG_H
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* S C S I T a r g e t M e s s a g e s
|
||||
*
|
||||
*******************************************************************************/
|
||||
|
||||
typedef struct _CMD_BUFFER_DESCRIPTOR
|
||||
{
|
||||
U16 IoIndex; /* 00h */
|
||||
U16 Reserved; /* 02h */
|
||||
union /* 04h */
|
||||
{
|
||||
U32 PhysicalAddress32;
|
||||
U64 PhysicalAddress64;
|
||||
} u;
|
||||
} CMD_BUFFER_DESCRIPTOR, MPI_POINTER PTR_CMD_BUFFER_DESCRIPTOR,
|
||||
CmdBufferDescriptor_t, MPI_POINTER pCmdBufferDescriptor_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Target Command Buffer Post Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TARGET_CMD_BUFFER_POST_REQUEST
|
||||
{
|
||||
U8 BufferPostFlags; /* 00h */
|
||||
U8 BufferCount; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 BufferLength; /* 04h */
|
||||
U8 Reserved; /* 05h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
CMD_BUFFER_DESCRIPTOR Buffer[1]; /* 0Ch */
|
||||
} MSG_TARGET_CMD_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_REQUEST,
|
||||
TargetCmdBufferPostRequest_t, MPI_POINTER pTargetCmdBufferPostRequest_t;
|
||||
|
||||
#define CMD_BUFFER_POST_FLAGS_PORT_MASK (0x01)
|
||||
#define CMD_BUFFER_POST_FLAGS_ADDR_MODE_MASK (0x80)
|
||||
#define CMD_BUFFER_POST_FLAGS_ADDR_MODE_32 (0)
|
||||
#define CMD_BUFFER_POST_FLAGS_ADDR_MODE_64 (1)
|
||||
#define CMD_BUFFER_POST_FLAGS_64_BIT_ADDR (0x80)
|
||||
|
||||
#define CMD_BUFFER_POST_IO_INDEX_MASK (0x00003FFF)
|
||||
#define CMD_BUFFER_POST_IO_INDEX_MASK_0100 (0x000003FF) /* obsolete */
|
||||
|
||||
|
||||
typedef struct _MSG_TARGET_CMD_BUFFER_POST_REPLY
|
||||
{
|
||||
U8 BufferPostFlags; /* 00h */
|
||||
U8 BufferCount; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U8 BufferLength; /* 04h */
|
||||
U8 Reserved; /* 05h */
|
||||
U8 Reserved1; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved2; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_TARGET_CMD_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_REPLY,
|
||||
TargetCmdBufferPostReply_t, MPI_POINTER pTargetCmdBufferPostReply_t;
|
||||
|
||||
/* the following structure is obsolete as of MPI v1.2 */
|
||||
typedef struct _MSG_PRIORITY_CMD_RECEIVED_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 PriorityReason; /* 0Ch */
|
||||
U8 Reserved3; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ReplyWord; /* 14h */
|
||||
} MSG_PRIORITY_CMD_RECEIVED_REPLY, MPI_POINTER PTR_MSG_PRIORITY_CMD_RECEIVED_REPLY,
|
||||
PriorityCommandReceivedReply_t, MPI_POINTER pPriorityCommandReceivedReply_t;
|
||||
|
||||
#define PRIORITY_REASON_NO_DISCONNECT (0x00)
|
||||
#define PRIORITY_REASON_SCSI_TASK_MANAGEMENT (0x01)
|
||||
#define PRIORITY_REASON_CMD_PARITY_ERR (0x02)
|
||||
#define PRIORITY_REASON_MSG_OUT_PARITY_ERR (0x03)
|
||||
#define PRIORITY_REASON_LQ_CRC_ERR (0x04)
|
||||
#define PRIORITY_REASON_CMD_CRC_ERR (0x05)
|
||||
#define PRIORITY_REASON_PROTOCOL_ERR (0x06)
|
||||
#define PRIORITY_REASON_DATA_OUT_PARITY_ERR (0x07)
|
||||
#define PRIORITY_REASON_DATA_OUT_CRC_ERR (0x08)
|
||||
#define PRIORITY_REASON_TARGET_BUSY (0x09)
|
||||
#define PRIORITY_REASON_UNKNOWN (0xFF)
|
||||
|
||||
|
||||
typedef struct _MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 PriorityReason; /* 0Ch */
|
||||
U8 Reserved3; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ReplyWord; /* 14h */
|
||||
} MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY,
|
||||
MPI_POINTER PTR_MSG_TARGET_CMD_BUFFER_POST_ERROR_REPLY,
|
||||
TargetCmdBufferPostErrorReply_t, MPI_POINTER pTargetCmdBufferPostErrorReply_t;
|
||||
|
||||
|
||||
typedef struct _MPI_TARGET_FCP_CMD_BUFFER
|
||||
{
|
||||
U8 FcpLun[8]; /* 00h */
|
||||
U8 FcpCntl[4]; /* 08h */
|
||||
U8 FcpCdb[16]; /* 0Ch */
|
||||
U32 FcpDl; /* 1Ch */
|
||||
U8 AliasIndex; /* 20h */
|
||||
U8 Reserved1; /* 21h */
|
||||
U16 OptionalOxid; /* 22h */
|
||||
} MPI_TARGET_FCP_CMD_BUFFER, MPI_POINTER PTR_MPI_TARGET_FCP_CMD_BUFFER,
|
||||
MpiTargetFcpCmdBuffer, MPI_POINTER pMpiTargetFcpCmdBuffer;
|
||||
|
||||
|
||||
typedef struct _MPI_TARGET_SCSI_SPI_CMD_BUFFER
|
||||
{
|
||||
/* SPI L_Q information unit */
|
||||
U8 L_QType; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U16 Tag; /* 02h */
|
||||
U8 LogicalUnitNumber[8]; /* 04h */
|
||||
U32 DataLength; /* 0Ch */
|
||||
/* SPI command information unit */
|
||||
U8 ReservedFirstByteOfCommandIU; /* 10h */
|
||||
U8 TaskAttribute; /* 11h */
|
||||
U8 TaskManagementFlags; /* 12h */
|
||||
U8 AdditionalCDBLength; /* 13h */
|
||||
U8 CDB[16]; /* 14h */
|
||||
/* Alias ID */
|
||||
U8 AliasID; /* 24h */
|
||||
U8 Reserved1; /* 25h */
|
||||
U16 Reserved2; /* 26h */
|
||||
} MPI_TARGET_SCSI_SPI_CMD_BUFFER,
|
||||
MPI_POINTER PTR_MPI_TARGET_SCSI_SPI_CMD_BUFFER,
|
||||
MpiTargetScsiSpiCmdBuffer, MPI_POINTER pMpiTargetScsiSpiCmdBuffer;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Target Assist Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TARGET_ASSIST_REQUEST
|
||||
{
|
||||
U8 StatusCode; /* 00h */
|
||||
U8 TargetAssistFlags; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 QueueTag; /* 04h */
|
||||
U8 Reserved; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 ReplyWord; /* 0Ch */
|
||||
U8 LUN[8]; /* 10h */
|
||||
U32 RelativeOffset; /* 18h */
|
||||
U32 DataLength; /* 1Ch */
|
||||
SGE_IO_UNION SGL[1]; /* 20h */
|
||||
} MSG_TARGET_ASSIST_REQUEST, MPI_POINTER PTR_MSG_TARGET_ASSIST_REQUEST,
|
||||
TargetAssistRequest_t, MPI_POINTER pTargetAssistRequest_t;
|
||||
|
||||
#define TARGET_ASSIST_FLAGS_DATA_DIRECTION (0x01)
|
||||
#define TARGET_ASSIST_FLAGS_AUTO_STATUS (0x02)
|
||||
#define TARGET_ASSIST_FLAGS_HIGH_PRIORITY (0x04)
|
||||
#define TARGET_ASSIST_FLAGS_CONFIRMED (0x08)
|
||||
#define TARGET_ASSIST_FLAGS_REPOST_CMD_BUFFER (0x80)
|
||||
|
||||
|
||||
typedef struct _MSG_TARGET_ERROR_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 PriorityReason; /* 0Ch */
|
||||
U8 Reserved3; /* 0Dh */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 ReplyWord; /* 14h */
|
||||
U32 TransferCount; /* 18h */
|
||||
} MSG_TARGET_ERROR_REPLY, MPI_POINTER PTR_MSG_TARGET_ERROR_REPLY,
|
||||
TargetErrorReply_t, MPI_POINTER pTargetErrorReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Target Status Send Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TARGET_STATUS_SEND_REQUEST
|
||||
{
|
||||
U8 StatusCode; /* 00h */
|
||||
U8 StatusFlags; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 QueueTag; /* 04h */
|
||||
U8 Reserved; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 ReplyWord; /* 0Ch */
|
||||
U8 LUN[8]; /* 10h */
|
||||
SGE_SIMPLE_UNION StatusDataSGE; /* 18h */
|
||||
} MSG_TARGET_STATUS_SEND_REQUEST, MPI_POINTER PTR_MSG_TARGET_STATUS_SEND_REQUEST,
|
||||
TargetStatusSendRequest_t, MPI_POINTER pTargetStatusSendRequest_t;
|
||||
|
||||
#define TARGET_STATUS_SEND_FLAGS_AUTO_GOOD_STATUS (0x01)
|
||||
#define TARGET_STATUS_SEND_FLAGS_HIGH_PRIORITY (0x04)
|
||||
#define TARGET_STATUS_SEND_FLAGS_CONFIRMED (0x08)
|
||||
#define TARGET_STATUS_SEND_FLAGS_REPOST_CMD_BUFFER (0x80)
|
||||
|
||||
/*
|
||||
* NOTE: FCP_RSP data is big-endian. When used on a little-endian system, this
|
||||
* structure properly orders the bytes.
|
||||
*/
|
||||
typedef struct _MPI_TARGET_FCP_RSP_BUFFER
|
||||
{
|
||||
U8 Reserved0[8]; /* 00h */
|
||||
U8 Reserved1[2]; /* 08h */
|
||||
U8 FcpFlags; /* 0Ah */
|
||||
U8 FcpStatus; /* 0Bh */
|
||||
U32 FcpResid; /* 0Ch */
|
||||
U32 FcpSenseLength; /* 10h */
|
||||
U32 FcpResponseLength; /* 14h */
|
||||
U8 FcpResponseData[8]; /* 18h */
|
||||
U8 FcpSenseData[32]; /* Pad to 64 bytes */ /* 20h */
|
||||
} MPI_TARGET_FCP_RSP_BUFFER, MPI_POINTER PTR_MPI_TARGET_FCP_RSP_BUFFER,
|
||||
MpiTargetFcpRspBuffer, MPI_POINTER pMpiTargetFcpRspBuffer;
|
||||
|
||||
/*
|
||||
* NOTE: The SPI status IU is big-endian. When used on a little-endian system,
|
||||
* this structure properly orders the bytes.
|
||||
*/
|
||||
typedef struct _MPI_TARGET_SCSI_SPI_STATUS_IU
|
||||
{
|
||||
U8 Reserved0; /* 00h */
|
||||
U8 Reserved1; /* 01h */
|
||||
U8 Valid; /* 02h */
|
||||
U8 Status; /* 03h */
|
||||
U32 SenseDataListLength; /* 04h */
|
||||
U32 PktFailuresListLength; /* 08h */
|
||||
U8 SenseData[52]; /* Pad the IU to 64 bytes */ /* 0Ch */
|
||||
} MPI_TARGET_SCSI_SPI_STATUS_IU, MPI_POINTER PTR_MPI_TARGET_SCSI_SPI_STATUS_IU,
|
||||
TargetScsiSpiStatusIU_t, MPI_POINTER pTargetScsiSpiStatusIU_t;
|
||||
|
||||
/****************************************************************************/
|
||||
/* Target Mode Abort Request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TARGET_MODE_ABORT_REQUEST
|
||||
{
|
||||
U8 AbortType; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 ReplyWord; /* 0Ch */
|
||||
U32 MsgContextToAbort; /* 10h */
|
||||
} MSG_TARGET_MODE_ABORT, MPI_POINTER PTR_MSG_TARGET_MODE_ABORT,
|
||||
TargetModeAbort_t, MPI_POINTER pTargetModeAbort_t;
|
||||
|
||||
#define TARGET_MODE_ABORT_TYPE_ALL_CMD_BUFFERS (0x00)
|
||||
#define TARGET_MODE_ABORT_TYPE_ALL_IO (0x01)
|
||||
#define TARGET_MODE_ABORT_TYPE_EXACT_IO (0x02)
|
||||
#define TARGET_MODE_ABORT_TYPE_EXACT_IO_REQUEST (0x03)
|
||||
|
||||
/* Target Mode Abort Reply */
|
||||
|
||||
typedef struct _MSG_TARGET_MODE_ABORT_REPLY
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 AbortCount; /* 14h */
|
||||
} MSG_TARGET_MODE_ABORT_REPLY, MPI_POINTER PTR_MSG_TARGET_MODE_ABORT_REPLY,
|
||||
TargetModeAbortReply_t, MPI_POINTER pTargetModeAbortReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Target Mode Context Reply */
|
||||
/****************************************************************************/
|
||||
|
||||
#define TARGET_MODE_REPLY_IO_INDEX_MASK (0x00003FFF)
|
||||
#define TARGET_MODE_REPLY_IO_INDEX_SHIFT (0)
|
||||
#define TARGET_MODE_REPLY_INITIATOR_INDEX_MASK (0x03FFC000)
|
||||
#define TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT (14)
|
||||
#define TARGET_MODE_REPLY_ALIAS_MASK (0x04000000)
|
||||
#define TARGET_MODE_REPLY_ALIAS_SHIFT (26)
|
||||
#define TARGET_MODE_REPLY_PORT_MASK (0x10000000)
|
||||
#define TARGET_MODE_REPLY_PORT_SHIFT (28)
|
||||
|
||||
|
||||
#define GET_IO_INDEX(x) (((x) & TARGET_MODE_REPLY_IO_INDEX_MASK) \
|
||||
>> TARGET_MODE_REPLY_IO_INDEX_SHIFT)
|
||||
|
||||
#define SET_IO_INDEX(t, i) \
|
||||
((t) = ((t) & ~TARGET_MODE_REPLY_IO_INDEX_MASK) | \
|
||||
(((i) << TARGET_MODE_REPLY_IO_INDEX_SHIFT) & \
|
||||
TARGET_MODE_REPLY_IO_INDEX_MASK))
|
||||
|
||||
#define GET_INITIATOR_INDEX(x) (((x) & TARGET_MODE_REPLY_INITIATOR_INDEX_MASK) \
|
||||
>> TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT)
|
||||
|
||||
#define SET_INITIATOR_INDEX(t, ii) \
|
||||
((t) = ((t) & ~TARGET_MODE_REPLY_INITIATOR_INDEX_MASK) | \
|
||||
(((ii) << TARGET_MODE_REPLY_INITIATOR_INDEX_SHIFT) & \
|
||||
TARGET_MODE_REPLY_INITIATOR_INDEX_MASK))
|
||||
|
||||
#define GET_ALIAS(x) (((x) & TARGET_MODE_REPLY_ALIAS_MASK) \
|
||||
>> TARGET_MODE_REPLY_ALIAS_SHIFT)
|
||||
|
||||
#define SET_ALIAS(t, a) ((t) = ((t) & ~TARGET_MODE_REPLY_ALIAS_MASK) | \
|
||||
(((a) << TARGET_MODE_REPLY_ALIAS_SHIFT) & \
|
||||
TARGET_MODE_REPLY_ALIAS_MASK))
|
||||
|
||||
#define GET_PORT(x) (((x) & TARGET_MODE_REPLY_PORT_MASK) \
|
||||
>> TARGET_MODE_REPLY_PORT_SHIFT)
|
||||
|
||||
#define SET_PORT(t, p) ((t) = ((t) & ~TARGET_MODE_REPLY_PORT_MASK) | \
|
||||
(((p) << TARGET_MODE_REPLY_PORT_SHIFT) & \
|
||||
TARGET_MODE_REPLY_PORT_MASK))
|
||||
|
||||
/* the following obsolete values are for MPI v1.0 support */
|
||||
#define TARGET_MODE_REPLY_0100_MASK_HOST_INDEX (0x000003FF)
|
||||
#define TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX (0)
|
||||
#define TARGET_MODE_REPLY_0100_MASK_IOC_INDEX (0x001FF800)
|
||||
#define TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX (11)
|
||||
#define TARGET_MODE_REPLY_0100_PORT_MASK (0x00400000)
|
||||
#define TARGET_MODE_REPLY_0100_PORT_SHIFT (22)
|
||||
#define TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX (0x1F800000)
|
||||
#define TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX (23)
|
||||
|
||||
#define GET_HOST_INDEX_0100(x) (((x) & TARGET_MODE_REPLY_0100_MASK_HOST_INDEX) \
|
||||
>> TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX)
|
||||
|
||||
#define SET_HOST_INDEX_0100(t, hi) \
|
||||
((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_HOST_INDEX) | \
|
||||
(((hi) << TARGET_MODE_REPLY_0100_SHIFT_HOST_INDEX) & \
|
||||
TARGET_MODE_REPLY_0100_MASK_HOST_INDEX))
|
||||
|
||||
#define GET_IOC_INDEX_0100(x) (((x) & TARGET_MODE_REPLY_0100_MASK_IOC_INDEX) \
|
||||
>> TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX)
|
||||
|
||||
#define SET_IOC_INDEX_0100(t, ii) \
|
||||
((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_IOC_INDEX) | \
|
||||
(((ii) << TARGET_MODE_REPLY_0100_SHIFT_IOC_INDEX) & \
|
||||
TARGET_MODE_REPLY_0100_MASK_IOC_INDEX))
|
||||
|
||||
#define GET_INITIATOR_INDEX_0100(x) \
|
||||
(((x) & TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX) \
|
||||
>> TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX)
|
||||
|
||||
#define SET_INITIATOR_INDEX_0100(t, ii) \
|
||||
((t) = ((t) & ~TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX) | \
|
||||
(((ii) << TARGET_MODE_REPLY_0100_SHIFT_INITIATOR_INDEX) & \
|
||||
TARGET_MODE_REPLY_0100_MASK_INITIATOR_INDEX))
|
||||
|
||||
|
||||
#endif
|
||||
|
305
drivers/message/fusion/lsi/mpi_tool.h
Normal file
305
drivers/message/fusion/lsi/mpi_tool.h
Normal file
@@ -0,0 +1,305 @@
|
||||
/*
|
||||
* Copyright (c) 2001-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_tool.h
|
||||
* Title: MPI Toolbox structures and definitions
|
||||
* Creation Date: July 30, 2001
|
||||
*
|
||||
* mpi_tool.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 08-08-01 01.02.01 Original release.
|
||||
* 08-29-01 01.02.02 Added DIAG_DATA_UPLOAD_HEADER and related defines.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_TOOL_H
|
||||
#define MPI_TOOL_H
|
||||
|
||||
#define MPI_TOOLBOX_CLEAN_TOOL (0x00)
|
||||
#define MPI_TOOLBOX_MEMORY_MOVE_TOOL (0x01)
|
||||
#define MPI_TOOLBOX_DIAG_DATA_UPLOAD_TOOL (0x02)
|
||||
#define MPI_TOOLBOX_ISTWI_READ_WRITE_TOOL (0x03)
|
||||
#define MPI_TOOLBOX_FC_MANAGEMENT_TOOL (0x04)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox reply */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_REPLY
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved3; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_TOOLBOX_REPLY, MPI_POINTER PTR_MSG_TOOLBOX_REPLY,
|
||||
ToolboxReply_t, MPI_POINTER pToolboxReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox Clean Tool request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_CLEAN_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Flags; /* 0Ch */
|
||||
} MSG_TOOLBOX_CLEAN_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_CLEAN_REQUEST,
|
||||
ToolboxCleanRequest_t, MPI_POINTER pToolboxCleanRequest_t;
|
||||
|
||||
#define MPI_TOOLBOX_CLEAN_NVSRAM (0x00000001)
|
||||
#define MPI_TOOLBOX_CLEAN_SEEPROM (0x00000002)
|
||||
#define MPI_TOOLBOX_CLEAN_FLASH (0x00000004)
|
||||
#define MPI_TOOLBOX_CLEAN_BOOTLOADER (0x04000000)
|
||||
#define MPI_TOOLBOX_CLEAN_FW_BACKUP (0x08000000)
|
||||
#define MPI_TOOLBOX_CLEAN_FW_CURRENT (0x10000000)
|
||||
#define MPI_TOOLBOX_CLEAN_OTHER_PERSIST_PAGES (0x20000000)
|
||||
#define MPI_TOOLBOX_CLEAN_PERSIST_MANUFACT_PAGES (0x40000000)
|
||||
#define MPI_TOOLBOX_CLEAN_BOOT_SERVICES (0x80000000)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox Memory Move request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_MEM_MOVE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
SGE_SIMPLE_UNION SGL; /* 0Ch */
|
||||
} MSG_TOOLBOX_MEM_MOVE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_MEM_MOVE_REQUEST,
|
||||
ToolboxMemMoveRequest_t, MPI_POINTER pToolboxMemMoveRequest_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox Diagnostic Data Upload request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 Flags; /* 0Ch */
|
||||
U32 Reserved3; /* 10h */
|
||||
SGE_SIMPLE_UNION SGL; /* 14h */
|
||||
} MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_DIAG_DATA_UPLOAD_REQUEST,
|
||||
ToolboxDiagDataUploadRequest_t, MPI_POINTER pToolboxDiagDataUploadRequest_t;
|
||||
|
||||
typedef struct _DIAG_DATA_UPLOAD_HEADER
|
||||
{
|
||||
U32 DiagDataLength; /* 00h */
|
||||
U8 FormatCode; /* 04h */
|
||||
U8 Reserved; /* 05h */
|
||||
U16 Reserved1; /* 06h */
|
||||
} DIAG_DATA_UPLOAD_HEADER, MPI_POINTER PTR_DIAG_DATA_UPLOAD_HEADER,
|
||||
DiagDataUploadHeader_t, MPI_POINTER pDiagDataUploadHeader_t;
|
||||
|
||||
#define MPI_TB_DIAG_FORMAT_SCSI_PRINTF_1 (0x01)
|
||||
#define MPI_TB_DIAG_FORMAT_SCSI_2 (0x02)
|
||||
#define MPI_TB_DIAG_FORMAT_SCSI_3 (0x03)
|
||||
#define MPI_TB_DIAG_FORMAT_FC_TRACE_1 (0x04)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox ISTWI Read Write request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Flags; /* 0Ch */
|
||||
U8 BusNum; /* 0Dh */
|
||||
U16 Reserved3; /* 0Eh */
|
||||
U8 NumAddressBytes; /* 10h */
|
||||
U8 Reserved4; /* 11h */
|
||||
U16 DataLength; /* 12h */
|
||||
U8 DeviceAddr; /* 14h */
|
||||
U8 Addr1; /* 15h */
|
||||
U8 Addr2; /* 16h */
|
||||
U8 Addr3; /* 17h */
|
||||
U32 Reserved5; /* 18h */
|
||||
SGE_SIMPLE_UNION SGL; /* 1Ch */
|
||||
} MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_ISTWI_READ_WRITE_REQUEST,
|
||||
ToolboxIstwiReadWriteRequest_t, MPI_POINTER pToolboxIstwiReadWriteRequest_t;
|
||||
|
||||
#define MPI_TB_ISTWI_FLAGS_WRITE (0x00)
|
||||
#define MPI_TB_ISTWI_FLAGS_READ (0x01)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Toolbox FC Management request */
|
||||
/****************************************************************************/
|
||||
|
||||
/* ActionInfo for Bus and TargetId */
|
||||
typedef struct _MPI_TB_FC_MANAGE_BUS_TID_AI
|
||||
{
|
||||
U16 Reserved; /* 00h */
|
||||
U8 Bus; /* 02h */
|
||||
U8 TargetId; /* 03h */
|
||||
} MPI_TB_FC_MANAGE_BUS_TID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_BUS_TID_AI,
|
||||
MpiTbFcManageBusTidAi_t, MPI_POINTER pMpiTbFcManageBusTidAi_t;
|
||||
|
||||
/* ActionInfo for port identifier */
|
||||
typedef struct _MPI_TB_FC_MANAGE_PID_AI
|
||||
{
|
||||
U32 PortIdentifier; /* 00h */
|
||||
} MPI_TB_FC_MANAGE_PID_AI, MPI_POINTER PTR_MPI_TB_FC_MANAGE_PID_AI,
|
||||
MpiTbFcManagePidAi_t, MPI_POINTER pMpiTbFcManagePidAi_t;
|
||||
|
||||
/* union of ActionInfo */
|
||||
typedef union _MPI_TB_FC_MANAGE_AI_UNION
|
||||
{
|
||||
MPI_TB_FC_MANAGE_BUS_TID_AI BusTid;
|
||||
MPI_TB_FC_MANAGE_PID_AI Port;
|
||||
} MPI_TB_FC_MANAGE_AI_UNION, MPI_POINTER PTR_MPI_TB_FC_MANAGE_AI_UNION,
|
||||
MpiTbFcManageAiUnion_t, MPI_POINTER pMpiTbFcManageAiUnion_t;
|
||||
|
||||
typedef struct _MSG_TOOLBOX_FC_MANAGE_REQUEST
|
||||
{
|
||||
U8 Tool; /* 00h */
|
||||
U8 Reserved; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U8 Action; /* 0Ch */
|
||||
U8 Reserved3; /* 0Dh */
|
||||
U16 Reserved4; /* 0Eh */
|
||||
MPI_TB_FC_MANAGE_AI_UNION ActionInfo; /* 10h */
|
||||
} MSG_TOOLBOX_FC_MANAGE_REQUEST, MPI_POINTER PTR_MSG_TOOLBOX_FC_MANAGE_REQUEST,
|
||||
ToolboxFcManageRequest_t, MPI_POINTER pToolboxFcManageRequest_t;
|
||||
|
||||
/* defines for the Action field */
|
||||
#define MPI_TB_FC_MANAGE_ACTION_DISC_ALL (0x00)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_DISC_PID (0x01)
|
||||
#define MPI_TB_FC_MANAGE_ACTION_DISC_BUS_TID (0x02)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Diagnostic Buffer Post request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_DIAG_BUFFER_POST_REQUEST
|
||||
{
|
||||
U8 TraceLevel; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved1; /* 04h */
|
||||
U8 Reserved2; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U32 ExtendedType; /* 0Ch */
|
||||
U32 BufferLength; /* 10h */
|
||||
U32 ProductSpecific[4]; /* 14h */
|
||||
U32 Reserved3; /* 18h */
|
||||
SGE_SIMPLE_UNION SGL; /* 28h */
|
||||
} MSG_DIAG_BUFFER_POST_REQUEST, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REQUEST,
|
||||
DiagBufferPostRequest_t, MPI_POINTER pDiagBufferPostRequest_t;
|
||||
|
||||
#define MPI_DIAG_BUF_TYPE_TRACE (0x00)
|
||||
#define MPI_DIAG_BUF_TYPE_SNAPSHOT (0x01)
|
||||
#define MPI_DIAG_BUF_TYPE_EXTENDED (0x02)
|
||||
|
||||
#define MPI_DIAG_EXTENDED_QTAG (0x00000001)
|
||||
|
||||
|
||||
/* Diagnostic Buffer Post reply */
|
||||
typedef struct _MSG_DIAG_BUFFER_POST_REPLY
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
U32 TransferLength; /* 14h */
|
||||
} MSG_DIAG_BUFFER_POST_REPLY, MPI_POINTER PTR_MSG_DIAG_BUFFER_POST_REPLY,
|
||||
DiagBufferPostReply_t, MPI_POINTER pDiagBufferPostReply_t;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Diagnostic Release request */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef struct _MSG_DIAG_RELEASE_REQUEST
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 ChainOffset; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
} MSG_DIAG_RELEASE_REQUEST, MPI_POINTER PTR_MSG_DIAG_RELEASE_REQUEST,
|
||||
DiagReleaseRequest_t, MPI_POINTER pDiagReleaseRequest_t;
|
||||
|
||||
|
||||
/* Diagnostic Release reply */
|
||||
typedef struct _MSG_DIAG_RELEASE_REPLY
|
||||
{
|
||||
U8 Reserved1; /* 00h */
|
||||
U8 BufferType; /* 01h */
|
||||
U8 MsgLength; /* 02h */
|
||||
U8 Function; /* 03h */
|
||||
U16 Reserved2; /* 04h */
|
||||
U8 Reserved3; /* 06h */
|
||||
U8 MsgFlags; /* 07h */
|
||||
U32 MsgContext; /* 08h */
|
||||
U16 Reserved4; /* 0Ch */
|
||||
U16 IOCStatus; /* 0Eh */
|
||||
U32 IOCLogInfo; /* 10h */
|
||||
} MSG_DIAG_RELEASE_REPLY, MPI_POINTER PTR_MSG_DIAG_RELEASE_REPLY,
|
||||
DiagReleaseReply_t, MPI_POINTER pDiagReleaseReply_t;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
86
drivers/message/fusion/lsi/mpi_type.h
Normal file
86
drivers/message/fusion/lsi/mpi_type.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright (c) 2000-2003 LSI Logic Corporation.
|
||||
*
|
||||
*
|
||||
* Name: mpi_type.h
|
||||
* Title: MPI Basic type definitions
|
||||
* Creation Date: June 6, 2000
|
||||
*
|
||||
* mpi_type.h Version: 01.05.xx
|
||||
*
|
||||
* Version History
|
||||
* ---------------
|
||||
*
|
||||
* Date Version Description
|
||||
* -------- -------- ------------------------------------------------------
|
||||
* 05-08-00 00.10.01 Original release for 0.10 spec dated 4/26/2000.
|
||||
* 06-06-00 01.00.01 Update version number for 1.0 release.
|
||||
* 11-02-00 01.01.01 Original release for post 1.0 work
|
||||
* 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER.
|
||||
* 08-08-01 01.02.01 Original release for v1.2 work.
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#ifndef MPI_TYPE_H
|
||||
#define MPI_TYPE_H
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER
|
||||
* is defined to be a near pointer. MPI_POINTER can be defined as a far pointer
|
||||
* by defining MPI_POINTER as "far *" before this header file is included.
|
||||
*/
|
||||
#ifndef MPI_POINTER
|
||||
#define MPI_POINTER *
|
||||
#endif
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* B a s i c T y p e s
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
typedef signed char S8;
|
||||
typedef unsigned char U8;
|
||||
typedef signed short S16;
|
||||
typedef unsigned short U16;
|
||||
|
||||
|
||||
typedef int32_t S32;
|
||||
typedef u_int32_t U32;
|
||||
|
||||
/*
|
||||
* The only way crap below could work on big-endian boxen would be if it
|
||||
* wasn't used at all.
|
||||
*/
|
||||
|
||||
typedef struct _S64
|
||||
{
|
||||
U32 Low;
|
||||
S32 High;
|
||||
} S64;
|
||||
|
||||
typedef struct _U64
|
||||
{
|
||||
U32 Low;
|
||||
U32 High;
|
||||
} U64;
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
/* Pointers */
|
||||
/****************************************************************************/
|
||||
|
||||
typedef S8 *PS8;
|
||||
typedef U8 *PU8;
|
||||
typedef S16 *PS16;
|
||||
typedef U16 *PU16;
|
||||
typedef S32 *PS32;
|
||||
typedef U32 *PU32;
|
||||
typedef S64 *PS64;
|
||||
typedef U64 *PU64;
|
||||
|
||||
|
||||
#endif
|
||||
|
5946
drivers/message/fusion/mptbase.c
Normal file
5946
drivers/message/fusion/mptbase.c
Normal file
File diff suppressed because it is too large
Load Diff
1021
drivers/message/fusion/mptbase.h
Normal file
1021
drivers/message/fusion/mptbase.h
Normal file
File diff suppressed because it is too large
Load Diff
2878
drivers/message/fusion/mptctl.c
Normal file
2878
drivers/message/fusion/mptctl.c
Normal file
File diff suppressed because it is too large
Load Diff
484
drivers/message/fusion/mptctl.h
Normal file
484
drivers/message/fusion/mptctl.h
Normal file
@@ -0,0 +1,484 @@
|
||||
/*
|
||||
* linux/drivers/message/fusion/mptioctl.h
|
||||
* Fusion MPT misc device (ioctl) driver.
|
||||
* For use with PCI chip/adapter(s):
|
||||
* LSIFC9xx/LSI409xx Fibre Channel
|
||||
* running LSI Logic Fusion MPT (Message Passing Technology) firmware.
|
||||
*
|
||||
* Credits:
|
||||
* This driver would not exist if not for Alan Cox's development
|
||||
* of the linux i2o driver.
|
||||
*
|
||||
* A huge debt of gratitude is owed to David S. Miller (DaveM)
|
||||
* for fixing much of the stupid and broken stuff in the early
|
||||
* driver while porting to sparc64 platform. THANK YOU!
|
||||
*
|
||||
* (see also mptbase.c)
|
||||
*
|
||||
* Copyright (c) 1999-2004 LSI Logic Corporation
|
||||
* Originally By: Steven J. Ralston
|
||||
* (mailto:sjralston1@netscape.net)
|
||||
* (mailto:mpt_linux_developer@lsil.com)
|
||||
*
|
||||
* $Id: mptctl.h,v 1.13 2002/12/03 21:26:33 pdelaney Exp $
|
||||
*/
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 of the License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
NO WARRANTY
|
||||
THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
|
||||
LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
|
||||
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
|
||||
solely responsible for determining the appropriateness of using and
|
||||
distributing the Program and assumes all risks associated with its
|
||||
exercise of rights under this Agreement, including but not limited to
|
||||
the risks and costs of program errors, damage to or loss of data,
|
||||
programs or equipment, and unavailability or interruption of operations.
|
||||
|
||||
DISCLAIMER OF LIABILITY
|
||||
NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
|
||||
HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef MPTCTL_H_INCLUDED
|
||||
#define MPTCTL_H_INCLUDED
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
|
||||
#include "linux/version.h"
|
||||
|
||||
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
/*
|
||||
*
|
||||
*/
|
||||
#define MPT_MISCDEV_BASENAME "mptctl"
|
||||
#define MPT_MISCDEV_PATHNAME "/dev/" MPT_MISCDEV_BASENAME
|
||||
|
||||
#define MPT_PRODUCT_LENGTH 12
|
||||
|
||||
/*
|
||||
* Generic MPT Control IOCTLs and structures
|
||||
*/
|
||||
#define MPT_MAGIC_NUMBER 'm'
|
||||
|
||||
#define MPTRWPERF _IOWR(MPT_MAGIC_NUMBER,0,struct mpt_raw_r_w)
|
||||
|
||||
#define MPTFWDOWNLOAD _IOWR(MPT_MAGIC_NUMBER,15,struct mpt_fw_xfer)
|
||||
#define MPTCOMMAND _IOWR(MPT_MAGIC_NUMBER,20,struct mpt_ioctl_command)
|
||||
|
||||
#if defined(__KERNEL__) && defined(CONFIG_COMPAT)
|
||||
#define MPTFWDOWNLOAD32 _IOWR(MPT_MAGIC_NUMBER,15,struct mpt_fw_xfer32)
|
||||
#define MPTCOMMAND32 _IOWR(MPT_MAGIC_NUMBER,20,struct mpt_ioctl_command32)
|
||||
#endif
|
||||
|
||||
#define MPTIOCINFO _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo)
|
||||
#define MPTIOCINFO1 _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo_rev0)
|
||||
#define MPTIOCINFO2 _IOWR(MPT_MAGIC_NUMBER,17,struct mpt_ioctl_iocinfo_rev1)
|
||||
#define MPTTARGETINFO _IOWR(MPT_MAGIC_NUMBER,18,struct mpt_ioctl_targetinfo)
|
||||
#define MPTTEST _IOWR(MPT_MAGIC_NUMBER,19,struct mpt_ioctl_test)
|
||||
#define MPTEVENTQUERY _IOWR(MPT_MAGIC_NUMBER,21,struct mpt_ioctl_eventquery)
|
||||
#define MPTEVENTENABLE _IOWR(MPT_MAGIC_NUMBER,22,struct mpt_ioctl_eventenable)
|
||||
#define MPTEVENTREPORT _IOWR(MPT_MAGIC_NUMBER,23,struct mpt_ioctl_eventreport)
|
||||
#define MPTHARDRESET _IOWR(MPT_MAGIC_NUMBER,24,struct mpt_ioctl_diag_reset)
|
||||
#define MPTFWREPLACE _IOWR(MPT_MAGIC_NUMBER,25,struct mpt_ioctl_replace_fw)
|
||||
|
||||
/*
|
||||
* SPARC PLATFORM REMARKS:
|
||||
* IOCTL data structures that contain pointers
|
||||
* will have different sizes in the driver and applications
|
||||
* (as the app. will not use 8-byte pointers).
|
||||
* Apps should use MPTFWDOWNLOAD and MPTCOMMAND.
|
||||
* The driver will convert data from
|
||||
* mpt_fw_xfer32 (mpt_ioctl_command32) to mpt_fw_xfer (mpt_ioctl_command)
|
||||
* internally.
|
||||
*
|
||||
* If data structures change size, must handle as in IOCGETINFO.
|
||||
*/
|
||||
struct mpt_fw_xfer {
|
||||
unsigned int iocnum; /* IOC unit number */
|
||||
unsigned int fwlen;
|
||||
void __user *bufp; /* Pointer to firmware buffer */
|
||||
};
|
||||
|
||||
#if defined(__KERNEL__) && defined(CONFIG_COMPAT)
|
||||
struct mpt_fw_xfer32 {
|
||||
unsigned int iocnum;
|
||||
unsigned int fwlen;
|
||||
u32 bufp;
|
||||
};
|
||||
#endif /*}*/
|
||||
|
||||
/*
|
||||
* IOCTL header structure.
|
||||
* iocnum - must be defined.
|
||||
* port - must be defined for all IOCTL commands other than MPTIOCINFO
|
||||
* maxDataSize - ignored on MPTCOMMAND commands
|
||||
* - ignored on MPTFWREPLACE commands
|
||||
* - on query commands, reports the maximum number of bytes to be returned
|
||||
* to the host driver (count includes the header).
|
||||
* That is, set to sizeof(struct mpt_ioctl_iocinfo) for fixed sized commands.
|
||||
* Set to sizeof(struct mpt_ioctl_targetinfo) + datasize for variable
|
||||
* sized commands. (MPTTARGETINFO, MPTEVENTREPORT)
|
||||
*/
|
||||
typedef struct _mpt_ioctl_header {
|
||||
unsigned int iocnum; /* IOC unit number */
|
||||
unsigned int port; /* IOC port number */
|
||||
int maxDataSize; /* Maximum Num. bytes to transfer on read */
|
||||
} mpt_ioctl_header;
|
||||
|
||||
/*
|
||||
* Issue a diagnostic reset
|
||||
*/
|
||||
struct mpt_ioctl_diag_reset {
|
||||
mpt_ioctl_header hdr;
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* PCI bus/device/function information structure.
|
||||
*/
|
||||
struct mpt_ioctl_pci_info {
|
||||
union {
|
||||
struct {
|
||||
unsigned int deviceNumber : 5;
|
||||
unsigned int functionNumber : 3;
|
||||
unsigned int busNumber : 24;
|
||||
} bits;
|
||||
unsigned int asUlong;
|
||||
} u;
|
||||
};
|
||||
|
||||
struct mpt_ioctl_pci_info2 {
|
||||
union {
|
||||
struct {
|
||||
unsigned int deviceNumber : 5;
|
||||
unsigned int functionNumber : 3;
|
||||
unsigned int busNumber : 24;
|
||||
} bits;
|
||||
unsigned int asUlong;
|
||||
} u;
|
||||
int segmentID;
|
||||
};
|
||||
|
||||
/*
|
||||
* Adapter Information Page
|
||||
* Read only.
|
||||
* Data starts at offset 0xC
|
||||
*/
|
||||
#define MPT_IOCTL_INTERFACE_FC (0x01)
|
||||
#define MPT_IOCTL_INTERFACE_SCSI (0x00)
|
||||
#define MPT_IOCTL_VERSION_LENGTH (32)
|
||||
|
||||
struct mpt_ioctl_iocinfo {
|
||||
mpt_ioctl_header hdr;
|
||||
int adapterType; /* SCSI or FCP */
|
||||
int port; /* port number */
|
||||
int pciId; /* PCI Id. */
|
||||
int hwRev; /* hardware revision */
|
||||
int subSystemDevice; /* PCI subsystem Device ID */
|
||||
int subSystemVendor; /* PCI subsystem Vendor ID */
|
||||
int numDevices; /* number of devices */
|
||||
int FWVersion; /* FW Version (integer) */
|
||||
int BIOSVersion; /* BIOS Version (integer) */
|
||||
char driverVersion[MPT_IOCTL_VERSION_LENGTH]; /* Driver Version (string) */
|
||||
char busChangeEvent;
|
||||
char hostId;
|
||||
char rsvd[2];
|
||||
struct mpt_ioctl_pci_info2 pciInfo; /* Added Rev 2 */
|
||||
};
|
||||
|
||||
struct mpt_ioctl_iocinfo_rev1 {
|
||||
mpt_ioctl_header hdr;
|
||||
int adapterType; /* SCSI or FCP */
|
||||
int port; /* port number */
|
||||
int pciId; /* PCI Id. */
|
||||
int hwRev; /* hardware revision */
|
||||
int subSystemDevice; /* PCI subsystem Device ID */
|
||||
int subSystemVendor; /* PCI subsystem Vendor ID */
|
||||
int numDevices; /* number of devices */
|
||||
int FWVersion; /* FW Version (integer) */
|
||||
int BIOSVersion; /* BIOS Version (integer) */
|
||||
char driverVersion[MPT_IOCTL_VERSION_LENGTH]; /* Driver Version (string) */
|
||||
char busChangeEvent;
|
||||
char hostId;
|
||||
char rsvd[2];
|
||||
struct mpt_ioctl_pci_info pciInfo; /* Added Rev 1 */
|
||||
};
|
||||
|
||||
/* Original structure, must always accept these
|
||||
* IOCTLs. 4 byte pads can occur based on arch with
|
||||
* above structure. Wish to re-align, but cannot.
|
||||
*/
|
||||
struct mpt_ioctl_iocinfo_rev0 {
|
||||
mpt_ioctl_header hdr;
|
||||
int adapterType; /* SCSI or FCP */
|
||||
int port; /* port number */
|
||||
int pciId; /* PCI Id. */
|
||||
int hwRev; /* hardware revision */
|
||||
int subSystemDevice; /* PCI subsystem Device ID */
|
||||
int subSystemVendor; /* PCI subsystem Vendor ID */
|
||||
int numDevices; /* number of devices */
|
||||
int FWVersion; /* FW Version (integer) */
|
||||
int BIOSVersion; /* BIOS Version (integer) */
|
||||
char driverVersion[MPT_IOCTL_VERSION_LENGTH]; /* Driver Version (string) */
|
||||
char busChangeEvent;
|
||||
char hostId;
|
||||
char rsvd[2];
|
||||
};
|
||||
|
||||
/*
|
||||
* Device Information Page
|
||||
* Report the number of, and ids of, all targets
|
||||
* on this IOC. The ids array is a packed structure
|
||||
* of the known targetInfo.
|
||||
* bits 31-24: reserved
|
||||
* 23-16: LUN
|
||||
* 15- 8: Bus Number
|
||||
* 7- 0: Target ID
|
||||
*/
|
||||
struct mpt_ioctl_targetinfo {
|
||||
mpt_ioctl_header hdr;
|
||||
int numDevices; /* Num targets on this ioc */
|
||||
int targetInfo[1];
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Event reporting IOCTL's. These IOCTL's will
|
||||
* use the following defines:
|
||||
*/
|
||||
struct mpt_ioctl_eventquery {
|
||||
mpt_ioctl_header hdr;
|
||||
unsigned short eventEntries;
|
||||
unsigned short reserved;
|
||||
unsigned int eventTypes;
|
||||
};
|
||||
|
||||
struct mpt_ioctl_eventenable {
|
||||
mpt_ioctl_header hdr;
|
||||
unsigned int eventTypes;
|
||||
};
|
||||
|
||||
#ifndef __KERNEL__
|
||||
typedef struct {
|
||||
uint event;
|
||||
uint eventContext;
|
||||
uint data[2];
|
||||
} MPT_IOCTL_EVENTS;
|
||||
#endif
|
||||
|
||||
struct mpt_ioctl_eventreport {
|
||||
mpt_ioctl_header hdr;
|
||||
MPT_IOCTL_EVENTS eventData[1];
|
||||
};
|
||||
|
||||
#define MPT_MAX_NAME 32
|
||||
struct mpt_ioctl_test {
|
||||
mpt_ioctl_header hdr;
|
||||
u8 name[MPT_MAX_NAME];
|
||||
int chip_type;
|
||||
u8 product [MPT_PRODUCT_LENGTH];
|
||||
};
|
||||
|
||||
/* Replace the FW image cached in host driver memory
|
||||
* newImageSize - image size in bytes
|
||||
* newImage - first byte of the new image
|
||||
*/
|
||||
typedef struct mpt_ioctl_replace_fw {
|
||||
mpt_ioctl_header hdr;
|
||||
int newImageSize;
|
||||
u8 newImage[1];
|
||||
} mpt_ioctl_replace_fw_t;
|
||||
|
||||
/* General MPT Pass through data strucutre
|
||||
*
|
||||
* iocnum
|
||||
* timeout - in seconds, command timeout. If 0, set by driver to
|
||||
* default value.
|
||||
* replyFrameBufPtr - reply location
|
||||
* dataInBufPtr - destination for read
|
||||
* dataOutBufPtr - data source for write
|
||||
* senseDataPtr - sense data location
|
||||
* maxReplyBytes - maximum number of reply bytes to be sent to app.
|
||||
* dataInSize - num bytes for data transfer in (read)
|
||||
* dataOutSize - num bytes for data transfer out (write)
|
||||
* dataSgeOffset - offset in words from the start of the request message
|
||||
* to the first SGL
|
||||
* MF[1];
|
||||
*
|
||||
* Remark: Some config pages have bi-directional transfer,
|
||||
* both a read and a write. The basic structure allows for
|
||||
* a bidirectional set up. Normal messages will have one or
|
||||
* both of these buffers NULL.
|
||||
*/
|
||||
struct mpt_ioctl_command {
|
||||
mpt_ioctl_header hdr;
|
||||
int timeout; /* optional (seconds) */
|
||||
char __user *replyFrameBufPtr;
|
||||
char __user *dataInBufPtr;
|
||||
char __user *dataOutBufPtr;
|
||||
char __user *senseDataPtr;
|
||||
int maxReplyBytes;
|
||||
int dataInSize;
|
||||
int dataOutSize;
|
||||
int maxSenseBytes;
|
||||
int dataSgeOffset;
|
||||
char MF[1];
|
||||
};
|
||||
|
||||
/*
|
||||
* SPARC PLATFORM: See earlier remark.
|
||||
*/
|
||||
#if defined(__KERNEL__) && defined(CONFIG_COMPAT)
|
||||
struct mpt_ioctl_command32 {
|
||||
mpt_ioctl_header hdr;
|
||||
int timeout;
|
||||
u32 replyFrameBufPtr;
|
||||
u32 dataInBufPtr;
|
||||
u32 dataOutBufPtr;
|
||||
u32 senseDataPtr;
|
||||
int maxReplyBytes;
|
||||
int dataInSize;
|
||||
int dataOutSize;
|
||||
int maxSenseBytes;
|
||||
int dataSgeOffset;
|
||||
char MF[1];
|
||||
};
|
||||
#endif /*}*/
|
||||
|
||||
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
/*
|
||||
* HP Specific IOCTL Defines and Structures
|
||||
*/
|
||||
|
||||
#define CPQFCTS_IOC_MAGIC 'Z'
|
||||
#define HP_IOC_MAGIC 'Z'
|
||||
#define HP_GETHOSTINFO _IOR(HP_IOC_MAGIC, 20, hp_host_info_t)
|
||||
#define HP_GETHOSTINFO1 _IOR(HP_IOC_MAGIC, 20, hp_host_info_rev0_t)
|
||||
#define HP_GETTARGETINFO _IOR(HP_IOC_MAGIC, 21, hp_target_info_t)
|
||||
|
||||
/* All HP IOCTLs must include this header
|
||||
*/
|
||||
typedef struct _hp_header {
|
||||
unsigned int iocnum;
|
||||
unsigned int host;
|
||||
unsigned int channel;
|
||||
unsigned int id;
|
||||
unsigned int lun;
|
||||
} hp_header_t;
|
||||
|
||||
/*
|
||||
* Header:
|
||||
* iocnum required (input)
|
||||
* host ignored
|
||||
* channe ignored
|
||||
* id ignored
|
||||
* lun ignored
|
||||
*/
|
||||
typedef struct _hp_host_info {
|
||||
hp_header_t hdr;
|
||||
u16 vendor;
|
||||
u16 device;
|
||||
u16 subsystem_vendor;
|
||||
u16 subsystem_id;
|
||||
u8 devfn;
|
||||
u8 bus;
|
||||
ushort host_no; /* SCSI Host number, if scsi driver not loaded*/
|
||||
u8 fw_version[16]; /* string */
|
||||
u8 serial_number[24]; /* string */
|
||||
u32 ioc_status;
|
||||
u32 bus_phys_width;
|
||||
u32 base_io_addr;
|
||||
u32 rsvd;
|
||||
unsigned int hard_resets; /* driver initiated resets */
|
||||
unsigned int soft_resets; /* ioc, external resets */
|
||||
unsigned int timeouts; /* num timeouts */
|
||||
} hp_host_info_t;
|
||||
|
||||
/* replace ulongs with uints, need to preserve backwards
|
||||
* compatibility.
|
||||
*/
|
||||
typedef struct _hp_host_info_rev0 {
|
||||
hp_header_t hdr;
|
||||
u16 vendor;
|
||||
u16 device;
|
||||
u16 subsystem_vendor;
|
||||
u16 subsystem_id;
|
||||
u8 devfn;
|
||||
u8 bus;
|
||||
ushort host_no; /* SCSI Host number, if scsi driver not loaded*/
|
||||
u8 fw_version[16]; /* string */
|
||||
u8 serial_number[24]; /* string */
|
||||
u32 ioc_status;
|
||||
u32 bus_phys_width;
|
||||
u32 base_io_addr;
|
||||
u32 rsvd;
|
||||
unsigned long hard_resets; /* driver initiated resets */
|
||||
unsigned long soft_resets; /* ioc, external resets */
|
||||
unsigned long timeouts; /* num timeouts */
|
||||
} hp_host_info_rev0_t;
|
||||
|
||||
/*
|
||||
* Header:
|
||||
* iocnum required (input)
|
||||
* host required
|
||||
* channel required (bus number)
|
||||
* id required
|
||||
* lun ignored
|
||||
*
|
||||
* All error values between 0 and 0xFFFF in size.
|
||||
*/
|
||||
typedef struct _hp_target_info {
|
||||
hp_header_t hdr;
|
||||
u32 parity_errors;
|
||||
u32 phase_errors;
|
||||
u32 select_timeouts;
|
||||
u32 message_rejects;
|
||||
u32 negotiated_speed;
|
||||
u8 negotiated_width;
|
||||
u8 rsvd[7]; /* 8 byte alignment */
|
||||
} hp_target_info_t;
|
||||
|
||||
#define HP_STATUS_OTHER 1
|
||||
#define HP_STATUS_OK 2
|
||||
#define HP_STATUS_FAILED 3
|
||||
|
||||
#define HP_BUS_WIDTH_UNK 1
|
||||
#define HP_BUS_WIDTH_8 2
|
||||
#define HP_BUS_WIDTH_16 3
|
||||
#define HP_BUS_WIDTH_32 4
|
||||
|
||||
#define HP_DEV_SPEED_ASYNC 2
|
||||
#define HP_DEV_SPEED_FAST 3
|
||||
#define HP_DEV_SPEED_ULTRA 4
|
||||
#define HP_DEV_SPEED_ULTRA2 5
|
||||
#define HP_DEV_SPEED_ULTRA160 6
|
||||
#define HP_DEV_SPEED_SCSI1 7
|
||||
#define HP_DEV_SPEED_ULTRA320 8
|
||||
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
|
||||
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
|
||||
#endif
|
||||
|
1688
drivers/message/fusion/mptlan.c
Normal file
1688
drivers/message/fusion/mptlan.c
Normal file
File diff suppressed because it is too large
Load Diff
85
drivers/message/fusion/mptlan.h
Normal file
85
drivers/message/fusion/mptlan.h
Normal file
@@ -0,0 +1,85 @@
|
||||
/* mptlan.h */
|
||||
|
||||
#ifndef LINUX_MPTLAN_H_INCLUDED
|
||||
#define LINUX_MPTLAN_H_INCLUDED
|
||||
/*****************************************************************************/
|
||||
|
||||
#if !defined(__GENKSYMS__)
|
||||
#include <linux/module.h>
|
||||
#endif
|
||||
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/errno.h>
|
||||
// #include <linux/etherdevice.h>
|
||||
#include <linux/fcdevice.h>
|
||||
// #include <linux/fddidevice.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/if_arp.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/miscdevice.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/version.h>
|
||||
#include <linux/workqueue.h>
|
||||
#include <linux/delay.h>
|
||||
// #include <linux/trdevice.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
/* Override mptbase.h by pre-defining these! */
|
||||
#define MODULEAUTHOR "Noah Romer, Eddie C. Dost"
|
||||
|
||||
#include "mptbase.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
#define LANAME "Fusion MPT LAN driver"
|
||||
#define LANVER MPT_LINUX_VERSION_COMMON
|
||||
|
||||
#ifdef MODULE
|
||||
MODULE_AUTHOR(MODULEAUTHOR);
|
||||
MODULE_DESCRIPTION(LANAME);
|
||||
#endif
|
||||
/*****************************************************************************/
|
||||
|
||||
#define MPT_LAN_MAX_BUCKETS_OUT 256
|
||||
#define MPT_LAN_BUCKET_THRESH 18 /* 9 buckets in one message */
|
||||
#define MPT_LAN_BUCKETS_REMAIN_MISMATCH_THRESH 10
|
||||
#define MPT_LAN_RX_COPYBREAK 200
|
||||
#define MPT_LAN_TX_TIMEOUT (1*HZ)
|
||||
#define MPT_TX_MAX_OUT_LIM 127
|
||||
|
||||
#define MPT_LAN_MIN_MTU 96 /* RFC2625 */
|
||||
#define MPT_LAN_MAX_MTU 65280 /* RFC2625 */
|
||||
#define MPT_LAN_MTU 13312 /* Max perf range + lower mem
|
||||
usage than 16128 */
|
||||
|
||||
#define MPT_LAN_NAA_RFC2625 0x1
|
||||
#define MPT_LAN_NAA_QLOGIC 0x2
|
||||
|
||||
/* MPT LAN Reset and Suspend Resource Flags Defines */
|
||||
|
||||
#define MPT_LAN_RESOURCE_FLAG_RETURN_POSTED_BUCKETS 0x01
|
||||
#define MPT_LAN_RESOURCE_FLAG_RETURN_PEND_TRANSMITS 0x02
|
||||
|
||||
/*****************************************************************************/
|
||||
#ifdef MPT_LAN_IO_DEBUG
|
||||
#define dioprintk(x) printk x
|
||||
#else
|
||||
#define dioprintk(x)
|
||||
#endif
|
||||
|
||||
#ifdef MPT_LAN_DEBUG
|
||||
#define dlprintk(x) printk x
|
||||
#else
|
||||
#define dlprintk(x)
|
||||
#endif
|
||||
|
||||
#define NETDEV_TO_LANPRIV_PTR(d) ((struct mpt_lan_priv *)(d)->priv)
|
||||
#define NETDEV_PTR_TO_IOC_NAME_s(d) (NETDEV_TO_LANPRIV_PTR(d)->mpt_dev->name)
|
||||
#define IOC_AND_NETDEV_NAMES_s_s(d) NETDEV_PTR_TO_IOC_NAME_s(d), (d)->name
|
||||
|
||||
/*****************************************************************************/
|
||||
#endif
|
||||
|
6021
drivers/message/fusion/mptscsih.c
Normal file
6021
drivers/message/fusion/mptscsih.c
Normal file
File diff suppressed because it is too large
Load Diff
94
drivers/message/fusion/mptscsih.h
Normal file
94
drivers/message/fusion/mptscsih.h
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* linux/drivers/message/fusion/mptscsih.h
|
||||
* High performance SCSI / Fibre Channel SCSI Host device driver.
|
||||
* For use with PCI chip/adapter(s):
|
||||
* LSIFC9xx/LSI409xx Fibre Channel
|
||||
* running LSI Logic Fusion MPT (Message Passing Technology) firmware.
|
||||
*
|
||||
* Credits:
|
||||
* This driver would not exist if not for Alan Cox's development
|
||||
* of the linux i2o driver.
|
||||
*
|
||||
* A huge debt of gratitude is owed to David S. Miller (DaveM)
|
||||
* for fixing much of the stupid and broken stuff in the early
|
||||
* driver while porting to sparc64 platform. THANK YOU!
|
||||
*
|
||||
* (see also mptbase.c)
|
||||
*
|
||||
* Copyright (c) 1999-2004 LSI Logic Corporation
|
||||
* Originally By: Steven J. Ralston
|
||||
* (mailto:netscape.net)
|
||||
* (mailto:mpt_linux_developer@lsil.com)
|
||||
*
|
||||
* $Id: mptscsih.h,v 1.21 2002/12/03 21:26:35 pdelaney Exp $
|
||||
*/
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 of the License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
NO WARRANTY
|
||||
THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
|
||||
LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
|
||||
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
|
||||
solely responsible for determining the appropriateness of using and
|
||||
distributing the Program and assumes all risks associated with its
|
||||
exercise of rights under this Agreement, including but not limited to
|
||||
the risks and costs of program errors, damage to or loss of data,
|
||||
programs or equipment, and unavailability or interruption of operations.
|
||||
|
||||
DISCLAIMER OF LIABILITY
|
||||
NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
||||
USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
|
||||
HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef SCSIHOST_H_INCLUDED
|
||||
#define SCSIHOST_H_INCLUDED
|
||||
|
||||
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
|
||||
/*
|
||||
* SCSI Public stuff...
|
||||
*/
|
||||
|
||||
#define MPT_SCSI_CMD_PER_DEV_HIGH 31
|
||||
#define MPT_SCSI_CMD_PER_DEV_LOW 7
|
||||
|
||||
#define MPT_SCSI_CMD_PER_LUN 7
|
||||
|
||||
#define MPT_SCSI_MAX_SECTORS 8192
|
||||
|
||||
/* To disable domain validation, uncomment the
|
||||
* following line. No effect for FC devices.
|
||||
* For SCSI devices, driver will negotiate to
|
||||
* NVRAM settings (if available) or to maximum adapter
|
||||
* capabilities.
|
||||
*/
|
||||
|
||||
#define MPTSCSIH_ENABLE_DOMAIN_VALIDATION
|
||||
|
||||
|
||||
/* SCSI driver setup structure. Settings can be overridden
|
||||
* by command line options.
|
||||
*/
|
||||
#define MPTSCSIH_DOMAIN_VALIDATION 1
|
||||
#define MPTSCSIH_MAX_WIDTH 1
|
||||
#define MPTSCSIH_MIN_SYNC 0x08
|
||||
#define MPTSCSIH_SAF_TE 0
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user