From fe9e68bcd4b8d3839ef66046a334918a85fda708 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Thu, 11 Apr 2019 00:01:09 +0300 Subject: [PATCH] OcConfigurationLib: Add FirmwareFeatures and FirmwareFeaturesMask to PlatformNVRAM --- Include/Library/OcConfigurationLib.h | 8 +++++--- Library/OcConfigurationLib/OcConfigurationLib.c | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Include/Library/OcConfigurationLib.h b/Include/Library/OcConfigurationLib.h index 065fc936..add93249 100644 --- a/Include/Library/OcConfigurationLib.h +++ b/Include/Library/OcConfigurationLib.h @@ -286,9 +286,11 @@ OC_DECLARE (OC_PLATFORM_DATA_HUB_CONFIG) #define OC_PLATFORM_NVRAM_CONFIG_FIELDS(_, __) \ - _(OC_STRING , Bid , , OC_STRING_CONSTR ("", _, __) , OC_DESTR (OC_STRING) ) \ - _(OC_STRING , Mlb , , OC_STRING_CONSTR ("", _, __) , OC_DESTR (OC_STRING) ) \ - _(UINT8 , Rom , [6] , {0} , () ) + _(OC_STRING , Bid , , OC_STRING_CONSTR ("", _, __) , OC_DESTR (OC_STRING) ) \ + _(OC_STRING , Mlb , , OC_STRING_CONSTR ("", _, __) , OC_DESTR (OC_STRING) ) \ + _(UINT8 , Rom , [6] , {0} , () ) \ + _(UINT64 , FirmwareFeatures , , 0 , () ) \ + _(UINT64 , FirmwareFeaturesMask , , 0 , () ) OC_DECLARE (OC_PLATFORM_NVRAM_CONFIG) #define OC_PLATFORM_SMBIOS_CONFIG_FIELDS(_, __) \ diff --git a/Library/OcConfigurationLib/OcConfigurationLib.c b/Library/OcConfigurationLib/OcConfigurationLib.c index 36ae98aa..5bf52b62 100644 --- a/Library/OcConfigurationLib/OcConfigurationLib.c +++ b/Library/OcConfigurationLib/OcConfigurationLib.c @@ -316,9 +316,11 @@ mPlatformConfigurationGenericSchema[] = { STATIC OC_SCHEMA mPlatformConfigurationNvramSchema[] = { - OC_SCHEMA_STRING_IN ("BID", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.Bid), - OC_SCHEMA_STRING_IN ("MLB", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.Mlb), - OC_SCHEMA_DATAF_IN ("ROM", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.Rom) + OC_SCHEMA_STRING_IN ("BID", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.Bid), + OC_SCHEMA_DATAF_IN ("FirmwareFeatures", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.FirmwareFeatures), + OC_SCHEMA_DATAF_IN ("FirmwareFeaturesMask", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.FirmwareFeaturesMask), + OC_SCHEMA_STRING_IN ("MLB", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.Mlb), + OC_SCHEMA_DATAF_IN ("ROM", OC_GLOBAL_CONFIG, PlatformInfo.Nvram.Rom) }; STATIC