3 Internal definitions for the LSI 53C895A SCSI driver, which produces
4 Extended SCSI Pass Thru Protocol instances for LSI 53C895A SCSI devices.
6 Copyright (C) 2020, SUSE LLC.
8 SPDX-License-Identifier: BSD-2-Clause-Patent
12 #ifndef _LSI_SCSI_DXE_H_
13 #define _LSI_SCSI_DXE_H_
19 EFI_EXT_SCSI_PASS_THRU_MODE PassThruMode
;
20 EFI_EXT_SCSI_PASS_THRU_PROTOCOL PassThru
;
23 #define LSI_SCSI_DEV_SIGNATURE SIGNATURE_32 ('L','S','I','S')
25 #define LSI_SCSI_FROM_PASS_THRU(PassThruPtr) \
26 CR (PassThruPtr, LSI_SCSI_DEV, PassThru, LSI_SCSI_DEV_SIGNATURE)
30 // Probe, start and stop functions of this driver, called by the DXE core for
33 // The following specifications document these interfaces:
34 // - Driver Writer's Guide for UEFI 2.3.1 v1.01, 9 Driver Binding Protocol
35 // - UEFI Spec 2.3.1 + Errata C, 10.1 EFI Driver Binding Protocol
40 LsiScsiControllerSupported (
41 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
42 IN EFI_HANDLE ControllerHandle
,
43 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath OPTIONAL
48 LsiScsiControllerStart (
49 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
50 IN EFI_HANDLE ControllerHandle
,
51 IN EFI_DEVICE_PATH_PROTOCOL
*RemainingDevicePath OPTIONAL
56 LsiScsiControllerStop (
57 IN EFI_DRIVER_BINDING_PROTOCOL
*This
,
58 IN EFI_HANDLE ControllerHandle
,
59 IN UINTN NumberOfChildren
,
60 IN EFI_HANDLE
*ChildHandleBuffer
65 // The next seven functions implement EFI_EXT_SCSI_PASS_THRU_PROTOCOL
66 // for the LSI 53C895A SCSI Controller. Refer to UEFI Spec 2.3.1 + Errata C,
68 // - 14.1 SCSI Driver Model Overview,
69 // - 14.7 Extended SCSI Pass Thru Protocol.
75 IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL
*This
,
78 IN OUT EFI_EXT_SCSI_PASS_THRU_SCSI_REQUEST_PACKET
*Packet
,
79 IN EFI_EVENT Event OPTIONAL
84 LsiScsiGetNextTargetLun (
85 IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL
*This
,
86 IN OUT UINT8
**TargetPointer
,
92 LsiScsiBuildDevicePath (
93 IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL
*This
,
96 IN OUT EFI_DEVICE_PATH_PROTOCOL
**DevicePath
101 LsiScsiGetTargetLun (
102 IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL
*This
,
103 IN EFI_DEVICE_PATH_PROTOCOL
*DevicePath
,
104 OUT UINT8
**TargetPointer
,
110 LsiScsiResetChannel (
111 IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL
*This
116 LsiScsiResetTargetLun (
117 IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL
*This
,
124 LsiScsiGetNextTarget (
125 IN EFI_EXT_SCSI_PASS_THRU_PROTOCOL
*This
,
126 IN OUT UINT8
**TargetPointer
131 // The purpose of the following scaffolding (EFI_COMPONENT_NAME_PROTOCOL and
132 // EFI_COMPONENT_NAME2_PROTOCOL implementation) is to format the driver's name
133 // in English, for display on standard console devices. This is recommended for
134 // UEFI drivers that follow the UEFI Driver Model. Refer to the Driver Writer's
135 // Guide for UEFI 2.3.1 v1.01, 11 UEFI Driver and Controller Names.
137 // Device type names ("LSI 53C895A SCSI Controller") are not formatted because
138 // the driver supports only that device type. Therefore the driver name
139 // suffices for unambiguous identification.
144 LsiScsiGetDriverName (
145 IN EFI_COMPONENT_NAME_PROTOCOL
*This
,
147 OUT CHAR16
**DriverName
152 LsiScsiGetDeviceName (
153 IN EFI_COMPONENT_NAME_PROTOCOL
*This
,
154 IN EFI_HANDLE DeviceHandle
,
155 IN EFI_HANDLE ChildHandle
,
157 OUT CHAR16
**ControllerName
160 #endif // _LSI_SCSI_DXE_H_