TianoCore EDK2 master
Loading...
Searching...
No Matches
FusionMptScsi.h File Reference

Go to the source code of this file.

Data Structures

struct  MPT_IO_CONTROLLER_INIT_REQUEST
 
struct  MPT_IO_CONTROLLER_INIT_REPLY
 
struct  MPT_SCSI_IO_REQUEST
 
struct  MPT_SG_ENTRY_SIMPLE
 
struct  MPT_SCSI_IO_REPLY
 
struct  MPT_SCSI_REQUEST_WITH_SG
 
union  MPT_SCSI_IO_REPLY_ALIGNED
 
union  MPT_SCSI_REQUEST_ALIGNED
 

Macros

#define LSI_LOGIC_PCI_VENDOR_ID   0x1000
 
#define LSI_53C1030_PCI_DEVICE_ID   0x0030
 
#define LSI_SAS1068_PCI_DEVICE_ID   0x0054
 
#define LSI_SAS1068E_PCI_DEVICE_ID   0x0058
 
#define MPT_REG_DOORBELL   0x00
 
#define MPT_REG_WRITE_SEQ   0x04
 
#define MPT_REG_HOST_DIAG   0x08
 
#define MPT_REG_TEST   0x0c
 
#define MPT_REG_DIAG_DATA   0x10
 
#define MPT_REG_DIAG_ADDR   0x14
 
#define MPT_REG_ISTATUS   0x30
 
#define MPT_REG_IMASK   0x34
 
#define MPT_REG_REQ_Q   0x40
 
#define MPT_REG_REP_Q   0x44
 
#define MPT_DOORBELL_RESET   0x40
 
#define MPT_DOORBELL_HANDSHAKE   0x42
 
#define MPT_IMASK_DOORBELL   0x01
 
#define MPT_IMASK_REPLY   0x08
 
#define MPT_MESSAGE_HDR_FUNCTION_SCSI_IO_REQUEST   0x00
 
#define MPT_MESSAGE_HDR_FUNCTION_IOC_INIT   0x02
 
#define MPT_SG_ENTRY_TYPE_SIMPLE   0x01
 
#define MPT_IOC_WHOINIT_ROM_BIOS   0x02
 
#define MPT_SCSIIO_REQUEST_CONTROL_TXDIR_NONE   (0x00 << 24)
 
#define MPT_SCSIIO_REQUEST_CONTROL_TXDIR_WRITE   (0x01 << 24)
 
#define MPT_SCSIIO_REQUEST_CONTROL_TXDIR_READ   (0x02 << 24)
 
#define MPT_SCSI_IOCSTATUS_SUCCESS   0x0000
 
#define MPT_SCSI_IOCSTATUS_DEVICE_NOT_THERE   0x0043
 
#define MPT_SCSI_IOCSTATUS_DATA_OVERRUN   0x0044
 
#define MPT_SCSI_IOCSTATUS_DATA_UNDERRUN   0x0045
 

Detailed Description

Macros and type definitions for LSI Fusion MPT SCSI devices.

Copyright (C) 2020, Oracle and/or its affiliates.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FusionMptScsi.h.

Macro Definition Documentation

◆ LSI_53C1030_PCI_DEVICE_ID

#define LSI_53C1030_PCI_DEVICE_ID   0x0030

Definition at line 19 of file FusionMptScsi.h.

◆ LSI_LOGIC_PCI_VENDOR_ID

#define LSI_LOGIC_PCI_VENDOR_ID   0x1000

Definition at line 18 of file FusionMptScsi.h.

◆ LSI_SAS1068_PCI_DEVICE_ID

#define LSI_SAS1068_PCI_DEVICE_ID   0x0054

Definition at line 20 of file FusionMptScsi.h.

◆ LSI_SAS1068E_PCI_DEVICE_ID

#define LSI_SAS1068E_PCI_DEVICE_ID   0x0058

Definition at line 21 of file FusionMptScsi.h.

◆ MPT_DOORBELL_HANDSHAKE

#define MPT_DOORBELL_HANDSHAKE   0x42

Definition at line 35 of file FusionMptScsi.h.

◆ MPT_DOORBELL_RESET

#define MPT_DOORBELL_RESET   0x40

Definition at line 34 of file FusionMptScsi.h.

◆ MPT_IMASK_DOORBELL

#define MPT_IMASK_DOORBELL   0x01

Definition at line 37 of file FusionMptScsi.h.

◆ MPT_IMASK_REPLY

#define MPT_IMASK_REPLY   0x08

Definition at line 38 of file FusionMptScsi.h.

◆ MPT_IOC_WHOINIT_ROM_BIOS

#define MPT_IOC_WHOINIT_ROM_BIOS   0x02

Definition at line 45 of file FusionMptScsi.h.

◆ MPT_MESSAGE_HDR_FUNCTION_IOC_INIT

#define MPT_MESSAGE_HDR_FUNCTION_IOC_INIT   0x02

Definition at line 41 of file FusionMptScsi.h.

◆ MPT_MESSAGE_HDR_FUNCTION_SCSI_IO_REQUEST

#define MPT_MESSAGE_HDR_FUNCTION_SCSI_IO_REQUEST   0x00

Definition at line 40 of file FusionMptScsi.h.

◆ MPT_REG_DIAG_ADDR

#define MPT_REG_DIAG_ADDR   0x14

Definition at line 28 of file FusionMptScsi.h.

◆ MPT_REG_DIAG_DATA

#define MPT_REG_DIAG_DATA   0x10

Definition at line 27 of file FusionMptScsi.h.

◆ MPT_REG_DOORBELL

#define MPT_REG_DOORBELL   0x00

Definition at line 23 of file FusionMptScsi.h.

◆ MPT_REG_HOST_DIAG

#define MPT_REG_HOST_DIAG   0x08

Definition at line 25 of file FusionMptScsi.h.

◆ MPT_REG_IMASK

#define MPT_REG_IMASK   0x34

Definition at line 30 of file FusionMptScsi.h.

◆ MPT_REG_ISTATUS

#define MPT_REG_ISTATUS   0x30

Definition at line 29 of file FusionMptScsi.h.

◆ MPT_REG_REP_Q

#define MPT_REG_REP_Q   0x44

Definition at line 32 of file FusionMptScsi.h.

◆ MPT_REG_REQ_Q

#define MPT_REG_REQ_Q   0x40

Definition at line 31 of file FusionMptScsi.h.

◆ MPT_REG_TEST

#define MPT_REG_TEST   0x0c

Definition at line 26 of file FusionMptScsi.h.

◆ MPT_REG_WRITE_SEQ

#define MPT_REG_WRITE_SEQ   0x04

Definition at line 24 of file FusionMptScsi.h.

◆ MPT_SCSI_IOCSTATUS_DATA_OVERRUN

#define MPT_SCSI_IOCSTATUS_DATA_OVERRUN   0x0044

Definition at line 53 of file FusionMptScsi.h.

◆ MPT_SCSI_IOCSTATUS_DATA_UNDERRUN

#define MPT_SCSI_IOCSTATUS_DATA_UNDERRUN   0x0045

Definition at line 54 of file FusionMptScsi.h.

◆ MPT_SCSI_IOCSTATUS_DEVICE_NOT_THERE

#define MPT_SCSI_IOCSTATUS_DEVICE_NOT_THERE   0x0043

Definition at line 52 of file FusionMptScsi.h.

◆ MPT_SCSI_IOCSTATUS_SUCCESS

#define MPT_SCSI_IOCSTATUS_SUCCESS   0x0000

Definition at line 51 of file FusionMptScsi.h.

◆ MPT_SCSIIO_REQUEST_CONTROL_TXDIR_NONE

#define MPT_SCSIIO_REQUEST_CONTROL_TXDIR_NONE   (0x00 << 24)

Definition at line 47 of file FusionMptScsi.h.

◆ MPT_SCSIIO_REQUEST_CONTROL_TXDIR_READ

#define MPT_SCSIIO_REQUEST_CONTROL_TXDIR_READ   (0x02 << 24)

Definition at line 49 of file FusionMptScsi.h.

◆ MPT_SCSIIO_REQUEST_CONTROL_TXDIR_WRITE

#define MPT_SCSIIO_REQUEST_CONTROL_TXDIR_WRITE   (0x01 << 24)

Definition at line 48 of file FusionMptScsi.h.

◆ MPT_SG_ENTRY_TYPE_SIMPLE

#define MPT_SG_ENTRY_TYPE_SIMPLE   0x01

Definition at line 43 of file FusionMptScsi.h.