[edk2-devel] [PATCH v3 01/11] OvmfPkg/LsiScsiDxe: Create the empty driver

Gary Lin glin at suse.com
Fri Jul 17 06:11:20 UTC 2020


Create the driver with only a dummy LsiScsiEntryPoint() for the further
implementation of the driver for LSI 53C895A SCSI controller.

v2: Fix the mixed-case GUID string

Cc: Jordan Justen <jordan.l.justen at intel.com>
Cc: Laszlo Ersek <lersek at redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel at arm.com>
Signed-off-by: Gary Lin <glin at suse.com>
Reviewed-by: Laszlo Ersek <lersek at redhat.com>
---
 OvmfPkg/LsiScsiDxe/LsiScsi.c      | 25 +++++++++++++++++++++++++
 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf | 26 ++++++++++++++++++++++++++
 OvmfPkg/OvmfPkgIa32.dsc           |  4 ++++
 OvmfPkg/OvmfPkgIa32.fdf           |  3 +++
 OvmfPkg/OvmfPkgIa32X64.dsc        |  4 ++++
 OvmfPkg/OvmfPkgIa32X64.fdf        |  3 +++
 OvmfPkg/OvmfPkgX64.dsc            |  4 ++++
 OvmfPkg/OvmfPkgX64.fdf            |  3 +++
 8 files changed, 72 insertions(+)
 create mode 100644 OvmfPkg/LsiScsiDxe/LsiScsi.c
 create mode 100644 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf

diff --git a/OvmfPkg/LsiScsiDxe/LsiScsi.c b/OvmfPkg/LsiScsiDxe/LsiScsi.c
new file mode 100644
index 000000000000..9c90941688ed
--- /dev/null
+++ b/OvmfPkg/LsiScsiDxe/LsiScsi.c
@@ -0,0 +1,25 @@
+/** @file

+

+  This driver produces Extended SCSI Pass Thru Protocol instances for

+  LSI 53C895A SCSI devices.

+

+  Copyright (C) 2020, SUSE LLC.

+

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

+

+**/

+

+#include <Uefi/UefiSpec.h>

+

+//

+// Entry point of this driver

+//

+EFI_STATUS

+EFIAPI

+LsiScsiEntryPoint (

+  IN EFI_HANDLE       ImageHandle,

+  IN EFI_SYSTEM_TABLE *SystemTable

+  )

+{

+  return EFI_UNSUPPORTED;

+}

diff --git a/OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf b/OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
new file mode 100644
index 000000000000..8b6dccaff3eb
--- /dev/null
+++ b/OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
@@ -0,0 +1,26 @@
+## @file

+# This driver produces Extended SCSI Pass Thru Protocol instances for

+# LSI 53C895A SCSI devices.

+#

+# Copyright (C) 2020, SUSE LLC.

+#

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

+#

+##

+

+[Defines]

+  INF_VERSION                    = 1.29

+  BASE_NAME                      = LsiScsiDxe

+  FILE_GUID                      = EB4EB21F-5A3D-40BE-8BD2-F1B0E38E5744

+  MODULE_TYPE                    = UEFI_DRIVER

+  VERSION_STRING                 = 1.0

+  ENTRY_POINT                    = LsiScsiEntryPoint

+

+[Sources]

+  LsiScsi.c

+

+[Packages]

+  MdePkg/MdePkg.dec

+

+[LibraryClasses]

+  UefiDriverEntryPoint

diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc
index b4ee7376791b..9178ffeb71cb 100644
--- a/OvmfPkg/OvmfPkgIa32.dsc
+++ b/OvmfPkg/OvmfPkgIa32.dsc
@@ -50,6 +50,7 @@ [Defines]
   #

   DEFINE PVSCSI_ENABLE           = TRUE

   DEFINE MPT_SCSI_ENABLE         = TRUE

+  DEFINE LSI_SCSI_ENABLE         = FALSE

 

   #

   # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to

@@ -771,6 +772,9 @@ [Components]
 !endif

 !if $(MPT_SCSI_ENABLE) == TRUE

   OvmfPkg/MptScsiDxe/MptScsiDxe.inf

+!endif

+!if $(LSI_SCSI_ENABLE) == TRUE

+  OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf

 !endif

   MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf

   MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf

diff --git a/OvmfPkg/OvmfPkgIa32.fdf b/OvmfPkg/OvmfPkgIa32.fdf
index e2b759aa8d05..2b9a6b58015f 100644
--- a/OvmfPkg/OvmfPkgIa32.fdf
+++ b/OvmfPkg/OvmfPkgIa32.fdf
@@ -236,6 +236,9 @@ [FV.DXEFV]
 !if $(MPT_SCSI_ENABLE) == TRUE

 INF  OvmfPkg/MptScsiDxe/MptScsiDxe.inf

 !endif

+!if $(LSI_SCSI_ENABLE) == TRUE

+INF  OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf

+!endif

 

 !if $(SECURE_BOOT_ENABLE) == TRUE

   INF  SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf

diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc
index ed68b080f2a2..a665f78f0dc7 100644
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
@@ -49,6 +49,7 @@ [Defines]
   #

   DEFINE PVSCSI_ENABLE           = TRUE

   DEFINE MPT_SCSI_ENABLE         = TRUE

+  DEFINE LSI_SCSI_ENABLE         = FALSE

 

   #

   # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to

@@ -785,6 +786,9 @@ [Components.X64]
 !endif

 !if $(MPT_SCSI_ENABLE) == TRUE

   OvmfPkg/MptScsiDxe/MptScsiDxe.inf

+!endif

+!if $(LSI_SCSI_ENABLE) == TRUE

+  OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf

 !endif

   MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf

   MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf

diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf
index bfca1eff9e83..83ff6aef2e8c 100644
--- a/OvmfPkg/OvmfPkgIa32X64.fdf
+++ b/OvmfPkg/OvmfPkgIa32X64.fdf
@@ -237,6 +237,9 @@ [FV.DXEFV]
 !if $(MPT_SCSI_ENABLE) == TRUE

 INF  OvmfPkg/MptScsiDxe/MptScsiDxe.inf

 !endif

+!if $(LSI_SCSI_ENABLE) == TRUE

+INF  OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf

+!endif

 

 !if $(SECURE_BOOT_ENABLE) == TRUE

   INF  SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf

diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc
index cb7e8068a3d8..17f345acf4ee 100644
--- a/OvmfPkg/OvmfPkgX64.dsc
+++ b/OvmfPkg/OvmfPkgX64.dsc
@@ -49,6 +49,7 @@ [Defines]
   #

   DEFINE PVSCSI_ENABLE           = TRUE

   DEFINE MPT_SCSI_ENABLE         = TRUE

+  DEFINE LSI_SCSI_ENABLE         = FALSE

 

   #

   # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to

@@ -781,6 +782,9 @@ [Components]
 !endif

 !if $(MPT_SCSI_ENABLE) == TRUE

   OvmfPkg/MptScsiDxe/MptScsiDxe.inf

+!endif

+!if $(LSI_SCSI_ENABLE) == TRUE

+  OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf

 !endif

   MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf

   MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf

diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf
index bfca1eff9e83..83ff6aef2e8c 100644
--- a/OvmfPkg/OvmfPkgX64.fdf
+++ b/OvmfPkg/OvmfPkgX64.fdf
@@ -237,6 +237,9 @@ [FV.DXEFV]
 !if $(MPT_SCSI_ENABLE) == TRUE

 INF  OvmfPkg/MptScsiDxe/MptScsiDxe.inf

 !endif

+!if $(LSI_SCSI_ENABLE) == TRUE

+INF  OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf

+!endif

 

 !if $(SECURE_BOOT_ENABLE) == TRUE

   INF  SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf

-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#62721): https://edk2.groups.io/g/devel/message/62721
Mute This Topic: https://groups.io/mt/75607027/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list