From 7843c8da060484cdb4239078544cab807377070d Mon Sep 17 00:00:00 2001 From: Nickle Wang Date: Mon, 9 Sep 2024 11:18:44 +0800 Subject: RedfishPkg/Include: move protocol version definition to protocol header Move protocol interface version definition to public protocol header file. So, driver can decide which version it is supported. Signed-off-by: Nickle Wang --- RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h | 5 +++++ RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h b/RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h index a1d5592c7e..9e28c4bd43 100644 --- a/RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h +++ b/RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h @@ -13,6 +13,11 @@ typedef struct _EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL; +// +// Redfish Platform Config Protocol interface version. +// +#define REDFISH_PLATFORM_CONFIG_VERSION 0x00010000 + /// /// Definition of EDKII_REDFISH_TYPE_VALUE /// diff --git a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h index e3e185a03b..6f491b2c2e 100644 --- a/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h +++ b/RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h @@ -110,11 +110,9 @@ typedef struct { } REDFISH_STACK; #define REDFISH_PLATFORM_CONFIG_PRIVATE_FROM_THIS(a) BASE_CR (a, REDFISH_PLATFORM_CONFIG_PRIVATE, Protocol) -#define REGULAR_EXPRESSION_INCLUDE_ALL L".*" -#define CONFIGURE_LANGUAGE_PREFIX "x-UEFI-redfish-" -#define REDFISH_PLATFORM_CONFIG_VERSION 0x00010000 - -#define REDFISH_MENU_PATH_SIZE 8 +#define REGULAR_EXPRESSION_INCLUDE_ALL L".*" +#define CONFIGURE_LANGUAGE_PREFIX "x-UEFI-redfish-" +#define REDFISH_MENU_PATH_SIZE 8 // Definitions of Redfish platform config capability #define REDFISH_PLATFORM_CONFIG_BUILD_MENU_PATH 0x000000001 -- cgit