]> xenbits.xensource.com Git - people/aperard/ovmf.git/commitdiff
RedfishPkg/Include: move protocol version definition to protocol header
authorNickle Wang <nicklew@nvidia.com>
Mon, 9 Sep 2024 03:18:44 +0000 (11:18 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 16 Sep 2024 08:35:55 +0000 (08:35 +0000)
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>
RedfishPkg/Include/Protocol/EdkIIRedfishPlatformConfig.h
RedfishPkg/RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.h

index a1d5592c7e917320690750525036c7e80a4375d7..9e28c4bd4327557c6225122cd91a0a848a94f173 100644 (file)
 \r
 typedef struct _EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL EDKII_REDFISH_PLATFORM_CONFIG_PROTOCOL;\r
 \r
+//\r
+// Redfish Platform Config Protocol interface version.\r
+//\r
+#define REDFISH_PLATFORM_CONFIG_VERSION  0x00010000\r
+\r
 ///\r
 /// Definition of EDKII_REDFISH_TYPE_VALUE\r
 ///\r
index e3e185a03b3b131276a6a7f226940ebf0818db21..6f491b2c2ea54b4f547900bb7093a76e43c0b056 100644 (file)
@@ -110,11 +110,9 @@ typedef struct {
 } REDFISH_STACK;\r
 \r
 #define REDFISH_PLATFORM_CONFIG_PRIVATE_FROM_THIS(a)  BASE_CR (a, REDFISH_PLATFORM_CONFIG_PRIVATE, Protocol)\r
-#define REGULAR_EXPRESSION_INCLUDE_ALL   L".*"\r
-#define CONFIGURE_LANGUAGE_PREFIX        "x-UEFI-redfish-"\r
-#define REDFISH_PLATFORM_CONFIG_VERSION  0x00010000\r
-\r
-#define REDFISH_MENU_PATH_SIZE  8\r
+#define REGULAR_EXPRESSION_INCLUDE_ALL  L".*"\r
+#define CONFIGURE_LANGUAGE_PREFIX       "x-UEFI-redfish-"\r
+#define REDFISH_MENU_PATH_SIZE          8\r
 \r
 // Definitions of Redfish platform config capability\r
 #define REDFISH_PLATFORM_CONFIG_BUILD_MENU_PATH   0x000000001\r