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

Go to the source code of this file.

Data Structures

struct  LSI_SCSI_DMA_BUFFER
 
struct  LSI_SCSI_DEV
 

Macros

#define LSI_SCSI_DEV_SIGNATURE   SIGNATURE_32 ('L','S','I','S')
 
#define LSI_SCSI_FROM_PASS_THRU(PassThruPtr)    CR (PassThruPtr, LSI_SCSI_DEV, PassThru, LSI_SCSI_DEV_SIGNATURE)
 
#define LSI_SCSI_DMA_ADDR(Dev, MemberName)    ((UINT32)(Dev->DmaPhysical + OFFSET_OF (LSI_SCSI_DMA_BUFFER, MemberName)))
 

Functions

EFI_STATUS EFIAPI LsiScsiControllerSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL)
 
EFI_STATUS EFIAPI LsiScsiControllerStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL)
 
EFI_STATUS EFIAPI LsiScsiControllerStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
 
EFI_STATUS EFIAPI LsiScsiPassThru (IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN UINT8 *Target, IN UINT64 Lun, IN OUT EFI_EXT_SCSI_PASS_THRU_SCSI_REQUEST_PACKET *Packet, IN EFI_EVENT Event OPTIONAL)
 
EFI_STATUS EFIAPI LsiScsiGetNextTargetLun (IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN OUT UINT8 **TargetPointer, IN OUT UINT64 *Lun)
 
EFI_STATUS EFIAPI LsiScsiBuildDevicePath (IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN UINT8 *Target, IN UINT64 Lun, IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath)
 
EFI_STATUS EFIAPI LsiScsiGetTargetLun (IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT UINT8 **TargetPointer, OUT UINT64 *Lun)
 
EFI_STATUS EFIAPI LsiScsiResetChannel (IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This)
 
EFI_STATUS EFIAPI LsiScsiResetTargetLun (IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN UINT8 *Target, IN UINT64 Lun)
 
EFI_STATUS EFIAPI LsiScsiGetNextTarget (IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL *This, IN OUT UINT8 **TargetPointer)
 
EFI_STATUS EFIAPI LsiScsiGetDriverName (IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
 
EFI_STATUS EFIAPI LsiScsiGetDeviceName (IN EFI_COMPONENT_NAME_PROTOCOL *This, IN EFI_HANDLE DeviceHandle, IN EFI_HANDLE ChildHandle, IN CHAR8 *Language, OUT CHAR16 **ControllerName)
 

Detailed Description

Internal definitions for the LSI 53C895A SCSI driver, which produces Extended SCSI Pass Thru Protocol instances for LSI 53C895A SCSI devices.

Copyright (C) 2020, SUSE LLC.

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

Definition in file LsiScsi.h.

Macro Definition Documentation

◆ LSI_SCSI_DEV_SIGNATURE

#define LSI_SCSI_DEV_SIGNATURE   SIGNATURE_32 ('L','S','I','S')

Definition at line 62 of file LsiScsi.h.

◆ LSI_SCSI_DMA_ADDR

#define LSI_SCSI_DMA_ADDR (   Dev,
  MemberName 
)     ((UINT32)(Dev->DmaPhysical + OFFSET_OF (LSI_SCSI_DMA_BUFFER, MemberName)))

Definition at line 67 of file LsiScsi.h.

◆ LSI_SCSI_FROM_PASS_THRU

#define LSI_SCSI_FROM_PASS_THRU (   PassThruPtr)     CR (PassThruPtr, LSI_SCSI_DEV, PassThru, LSI_SCSI_DEV_SIGNATURE)

Definition at line 64 of file LsiScsi.h.

Function Documentation

◆ LsiScsiBuildDevicePath()

EFI_STATUS EFIAPI LsiScsiBuildDevicePath ( IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL This,
IN UINT8 *  Target,
IN UINT64  Lun,
IN OUT EFI_DEVICE_PATH_PROTOCOL **  DevicePath 
)

Definition at line 647 of file LsiScsi.c.

◆ LsiScsiControllerStart()

EFI_STATUS EFIAPI LsiScsiControllerStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  ControllerHandle,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath  OPTIONAL 
)

Definition at line 871 of file LsiScsi.c.

◆ LsiScsiControllerStop()

EFI_STATUS EFIAPI LsiScsiControllerStop ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  ControllerHandle,
IN UINTN  NumberOfChildren,
IN EFI_HANDLE ChildHandleBuffer 
)

Definition at line 1059 of file LsiScsi.c.

◆ LsiScsiControllerSupported()

EFI_STATUS EFIAPI LsiScsiControllerSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  ControllerHandle,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath  OPTIONAL 
)

Definition at line 818 of file LsiScsi.c.

◆ LsiScsiGetDeviceName()

EFI_STATUS EFIAPI LsiScsiGetDeviceName ( IN EFI_COMPONENT_NAME_PROTOCOL This,
IN EFI_HANDLE  DeviceHandle,
IN EFI_HANDLE  ChildHandle,
IN CHAR8 *  Language,
OUT CHAR16 **  ControllerName 
)

Definition at line 1183 of file LsiScsi.c.

◆ LsiScsiGetDriverName()

EFI_STATUS EFIAPI LsiScsiGetDriverName ( IN EFI_COMPONENT_NAME_PROTOCOL This,
IN CHAR8 *  Language,
OUT CHAR16 **  DriverName 
)

Definition at line 1166 of file LsiScsi.c.

◆ LsiScsiGetNextTarget()

EFI_STATUS EFIAPI LsiScsiGetNextTarget ( IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL This,
IN OUT UINT8 **  TargetPointer 
)

Definition at line 747 of file LsiScsi.c.

◆ LsiScsiGetNextTargetLun()

EFI_STATUS EFIAPI LsiScsiGetNextTargetLun ( IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL This,
IN OUT UINT8 **  TargetPointer,
IN OUT UINT64 *  Lun 
)

Definition at line 592 of file LsiScsi.c.

◆ LsiScsiGetTargetLun()

EFI_STATUS EFIAPI LsiScsiGetTargetLun ( IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL This,
IN EFI_DEVICE_PATH_PROTOCOL DevicePath,
OUT UINT8 **  TargetPointer,
OUT UINT64 *  Lun 
)

Definition at line 686 of file LsiScsi.c.

◆ LsiScsiPassThru()

EFI_STATUS EFIAPI LsiScsiPassThru ( IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL This,
IN UINT8 *  Target,
IN UINT64  Lun,
IN OUT EFI_EXT_SCSI_PASS_THRU_SCSI_REQUEST_PACKET Packet,
IN EFI_EVENT Event  OPTIONAL 
)

Definition at line 570 of file LsiScsi.c.

◆ LsiScsiResetChannel()

EFI_STATUS EFIAPI LsiScsiResetChannel ( IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL This)

Definition at line 727 of file LsiScsi.c.

◆ LsiScsiResetTargetLun()

EFI_STATUS EFIAPI LsiScsiResetTargetLun ( IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL This,
IN UINT8 *  Target,
IN UINT64  Lun 
)

Definition at line 736 of file LsiScsi.c.