summaryrefslogtreecommitdiffstats
path: root/RedfishPkg
diff options
context:
space:
mode:
authorNickle Wang <nicklew@nvidia.com>2024-09-09 11:18:44 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-09-16 08:35:55 +0000
commit7843c8da060484cdb4239078544cab807377070d (patch)
tree680a1c4602cd3d5bc1488d9dbccb62ac09c87022 /RedfishPkg
parentbe36ddb23463e0238406129eff1e89c56df561eb (diff)
downloadedk2-7843c8da060484cdb4239078544cab807377070d.tar.gz
edk2-7843c8da060484cdb4239078544cab807377070d.tar.bz2
edk2-7843c8da060484cdb4239078544cab807377070d.zip
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 <nicklew@nvidia.com>
Diffstat (limited to 'RedfishPkg')
-rw-r--r--RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h5
-rw-r--r--RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h8
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