public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] MdeModulePkg/UefiBootManagerLib: Add Disk Info support for Ufs
@ 2022-06-14 17:53 Jeff Brasen
  2022-07-07 18:14 ` Jeff Brasen
  2022-07-19  1:43 ` 回复: " gaoliming
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Brasen @ 2022-06-14 17:53 UTC (permalink / raw)
  To: devel; +Cc: jian.j.wang, gaoliming, zhichao.gao, ray.ni, Jeff Brasen

Add support for getting disk info from UFS devices.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
---
 MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c    | 3 ++-
 MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c b/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c
index fac33b9ee9..87b82f299f 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c
+++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c
@@ -195,7 +195,8 @@ BmGetDescriptionFromDiskInfo (
 
       BmEliminateExtraSpaces (Description);
     }
-  } else if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoScsiInterfaceGuid)) {
+  } else if (CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoScsiInterfaceGuid) ||
+             CompareGuid (&DiskInfo->Interface, &gEfiDiskInfoUfsInterfaceGuid)) {
     BufferSize = sizeof (EFI_SCSI_INQUIRY_DATA);
     Status     = DiskInfo->Inquiry (
                              DiskInfo,
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf b/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
index fe05d5f1cc..2fc0a80a4e 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
+++ b/MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
@@ -85,6 +85,7 @@
   gEfiDiskInfoIdeInterfaceGuid                  ## SOMETIMES_CONSUMES ## GUID
   gEfiDiskInfoScsiInterfaceGuid                 ## SOMETIMES_CONSUMES ## GUID
   gEfiDiskInfoSdMmcInterfaceGuid                ## SOMETIMES_CONSUMES ## GUID
+  gEfiDiskInfoUfsInterfaceGuid                  ## SOMETIMES_CONSUMES ## GUID
 
 [Protocols]
   gEfiPciRootBridgeIoProtocolGuid               ## CONSUMES
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-06 14:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14 17:53 [PATCH] MdeModulePkg/UefiBootManagerLib: Add Disk Info support for Ufs Jeff Brasen
2022-07-07 18:14 ` Jeff Brasen
2022-07-18  8:13   ` [edk2-devel] " Gao, Zhichao
2022-07-19  1:43 ` 回复: " gaoliming
2022-07-19 15:14   ` Jeff Brasen
2022-10-06 14:23     ` Jeff Brasen
2022-10-06 14:38       ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox