summaryrefslogtreecommitdiff
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorThejaswani Putta <tputta@nvidia.com>2025-04-01 17:44:40 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-04-02 03:32:19 +0000
commit213973e9e5ab361f77fe136a810053244a97f018 (patch)
treea8ccf2e3d24ff38f5eb04357985b6b6f3f6a116d /EmulatorPkg
parent4a055eb4863cee8fa0cba830b2865a826e45288f (diff)
downloadedk2-master.zip
edk2-master.tar.gz
edk2-master.tar.bz2
EmulatorPkg: Add stub to read redfish host interface serial numberHEADmaster
Signed-off-by: Thejaswani Putta <tputta@nvidia.com>
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Library/RedfishPlatformHostInterfaceLib/RedfishPlatformHostInterfaceLib.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/EmulatorPkg/Library/RedfishPlatformHostInterfaceLib/RedfishPlatformHostInterfaceLib.c b/EmulatorPkg/Library/RedfishPlatformHostInterfaceLib/RedfishPlatformHostInterfaceLib.c
index 71b3dfc..2fec935 100644
--- a/EmulatorPkg/Library/RedfishPlatformHostInterfaceLib/RedfishPlatformHostInterfaceLib.c
+++ b/EmulatorPkg/Library/RedfishPlatformHostInterfaceLib/RedfishPlatformHostInterfaceLib.c
@@ -4,6 +4,7 @@
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.<BR>
+ Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -566,3 +567,20 @@ RedfishPlatformHostInterfaceNotification (
{
return EFI_UNSUPPORTED;
}
+
+/**
+ Get USB device serial number.
+
+ @param[out] SerialNumber Pointer to retrieve complete serial number.
+ It is the responsibility of the caller to free the allocated
+ memory for serial number.
+ @retval EFI_SUCCESS Serial number is returned.
+ @retval Others Failed to get the serial number
+**/
+EFI_STATUS
+RedfishPlatformHostInterfaceSerialNumber (
+ OUT CHAR8 **SerialNumber
+ )
+{
+ return EFI_UNSUPPORTED;
+}