From: Duke Zhai <[email protected]> BZ #:4640 In V2: Improve coding style. 1.Remove the leading underscore and use double underscore at trailing in C header files. 2.Remove old tianocore licenses and redundant license description. 3.Improve coding style. For example: remove space between @param.
In V1: A small part of Chachani platform code and FSPWrapperPkg needs IdsHookExtLib. Initial AmdIdsHookExtLibNull for ChachaniBoardPkg module. Signed-off-by: Ken Yao <[email protected]> Cc: Duke Zhai <[email protected]> Cc: Eric Xing <[email protected]> Cc: Igniculus Fu <[email protected]> Cc: Abner Chang <[email protected]> --- .../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 (#114499): https://edk2.groups.io/g/devel/message/114499 Mute This Topic: https://groups.io/mt/103971396/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
