From: Duke Zhai <duke.z...@amd.com>

BZ #:4640

A small part of Chachani platform code and FSPWrapperPkg needs IdsHookExtLib.

Initial AmdIdsHookExtLibNull for ChachaniBoardPkg module.



Signed-off-by: Ken Yao <ken....@amd.com>

Cc: Duke Zhai <duke.z...@amd.com>

Cc: Eric Xing <eric.x...@amd.com>

Cc: Igniculus Fu <igniculus...@amd.com>

Cc: Abner Chang <abner.ch...@amd.com>

---

 .../AmdIdsExtLibNull/AmdIdsHookExtLibNull.c   | 33 ++++++++++++++++

 .../AmdIdsExtLibNull/AmdIdsHookExtLibNull.inf | 39 +++++++++++++++++++

 2 files changed, 72 insertions(+)

 create mode 100644 
Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.c

 create mode 100644 
Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.inf



diff --git 
a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.c
 
b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.c

new file mode 100644

index 0000000000..f59b5beea1

--- /dev/null

+++ 
b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.c

@@ -0,0 +1,33 @@

+/** @file

+  Implements AmdIdsHookExtLibNull.c

+

+  Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>

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

+

+**/

+

+#include <Uefi.h>

+#include <Pi/PiMultiPhase.h>

+

+typedef enum {

+  IDS_HOOK_UNSUPPORTED = 1

+} IDS_HOOK_STATUS;

+

+IDS_HOOK_STATUS

+IdsHookExtEntry (

+  UINT32  HookId,

+  VOID    *Handle,

+  VOID    *Data

+  )

+{

+  return IDS_HOOK_UNSUPPORTED;

+}

+

+IDS_HOOK_STATUS

+GetIdsNvTable (

+  IN OUT   VOID    *IdsNvTable,

+  IN OUT   UINT32  *IdsNvTableSize

+  )

+{

+  return IDS_HOOK_UNSUPPORTED;

+}

diff --git 
a/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.inf
 
b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.inf

new file mode 100644

index 0000000000..354c19dd19

--- /dev/null

+++ 
b/Platform/AMD/VanGoghBoard/ChachaniBoardPkg/Library/AmdIdsExtLibNull/AmdIdsHookExtLibNull.inf

@@ -0,0 +1,39 @@

+## @file

+#  Amd Ids Hook Ext Lib Module INF file

+#

+# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>

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

+#

+##

+

+[Defines]

+  INF_VERSION                    = 0x00010006

+  BASE_NAME                      = AmdIdsHookExtLibNull.inf

+  FILE_GUID                      = CB364A1C-793D-46CE-B80A-0AB5FCB16D76

+  MODULE_TYPE                    = BASE

+  VERSION_STRING                 = 1.0

+  LIBRARY_CLASS                  = AmdIdsHookExtLib

+

+[Sources.common]

+  AmdIdsHookExtLibNull.c

+

+[Packages]

+  MdePkg/MdePkg.dec

+

+[LibraryClasses]

+

+[Guids]

+

+[Protocols]

+

+[Ppis]

+

+[FeaturePcd]

+

+[Pcd]

+

+[Depex]

+  TRUE

+

+[BuildOptions]

+

--

2.31.1





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#114055): https://edk2.groups.io/g/devel/message/114055
Mute This Topic: https://groups.io/mt/103831167/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to