mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PvScsiDxe: Create empty driver
In preparation for support booting from PvScsi devices, create a basic scaffolding for a driver. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2567 Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Liran Alon <liran.alon@oracle.com> Message-Id: <20200328200100.60786-2-liran.alon@oracle.com> Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
This commit is contained in:
parent
6c1fb56802
commit
478c07d483
|
@ -45,6 +45,11 @@
|
|||
|
||||
!include NetworkPkg/NetworkDefines.dsc.inc
|
||||
|
||||
#
|
||||
# Device drivers
|
||||
#
|
||||
DEFINE PVSCSI_ENABLE = TRUE
|
||||
|
||||
#
|
||||
# Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
|
||||
# one of the supported values, in place of any of the convenience macros, is
|
||||
|
@ -736,6 +741,9 @@
|
|||
OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
||||
OvmfPkg/XenBusDxe/XenBusDxe.inf
|
||||
OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
||||
!if $(PVSCSI_ENABLE) == TRUE
|
||||
OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
||||
!endif
|
||||
MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
||||
MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
||||
MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
||||
|
|
|
@ -230,6 +230,9 @@ INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
|
|||
INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
||||
INF OvmfPkg/XenBusDxe/XenBusDxe.inf
|
||||
INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
||||
!if $(PVSCSI_ENABLE) == TRUE
|
||||
INF OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
||||
!endif
|
||||
|
||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||
INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
||||
|
|
|
@ -44,6 +44,11 @@
|
|||
|
||||
!include NetworkPkg/NetworkDefines.dsc.inc
|
||||
|
||||
#
|
||||
# Device drivers
|
||||
#
|
||||
DEFINE PVSCSI_ENABLE = TRUE
|
||||
|
||||
#
|
||||
# Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
|
||||
# one of the supported values, in place of any of the convenience macros, is
|
||||
|
@ -748,6 +753,9 @@
|
|||
OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
||||
OvmfPkg/XenBusDxe/XenBusDxe.inf
|
||||
OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
||||
!if $(PVSCSI_ENABLE) == TRUE
|
||||
OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
||||
!endif
|
||||
MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
||||
MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
||||
MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
||||
|
|
|
@ -231,6 +231,9 @@ INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
|
|||
INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
||||
INF OvmfPkg/XenBusDxe/XenBusDxe.inf
|
||||
INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
||||
!if $(PVSCSI_ENABLE) == TRUE
|
||||
INF OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
||||
!endif
|
||||
|
||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||
INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
||||
|
|
|
@ -44,6 +44,11 @@
|
|||
|
||||
!include NetworkPkg/NetworkDefines.dsc.inc
|
||||
|
||||
#
|
||||
# Device drivers
|
||||
#
|
||||
DEFINE PVSCSI_ENABLE = TRUE
|
||||
|
||||
#
|
||||
# Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
|
||||
# one of the supported values, in place of any of the convenience macros, is
|
||||
|
@ -746,6 +751,9 @@
|
|||
OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
||||
OvmfPkg/XenBusDxe/XenBusDxe.inf
|
||||
OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
||||
!if $(PVSCSI_ENABLE) == TRUE
|
||||
OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
||||
!endif
|
||||
MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
||||
MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
||||
MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
||||
|
|
|
@ -231,6 +231,9 @@ INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
|
|||
INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
||||
INF OvmfPkg/XenBusDxe/XenBusDxe.inf
|
||||
INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
||||
!if $(PVSCSI_ENABLE) == TRUE
|
||||
INF OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
||||
!endif
|
||||
|
||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||
INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
/** @file
|
||||
|
||||
This driver produces Extended SCSI Pass Thru Protocol instances for
|
||||
pvscsi devices.
|
||||
|
||||
Copyright (C) 2020, Oracle and/or its affiliates.
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
|
||||
#include <Uefi/UefiSpec.h>
|
||||
|
||||
//
|
||||
// Entry Point
|
||||
//
|
||||
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PvScsiEntryPoint (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
)
|
||||
{
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
## @file
|
||||
#
|
||||
# This driver produces Extended SCSI Pass Thru Protocol instances for
|
||||
# pvscsi devices.
|
||||
#
|
||||
# Copyright (C) 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 1.29
|
||||
BASE_NAME = PvScsiDxe
|
||||
FILE_GUID = 30346B14-1580-4781-879D-BA0C55AE9BB2
|
||||
MODULE_TYPE = UEFI_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
ENTRY_POINT = PvScsiEntryPoint
|
||||
|
||||
[Sources]
|
||||
PvScsi.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
UefiDriverEntryPoint
|
Loading…
Reference in New Issue