ShellPkg: Modify the 'dh' Shell command to dump the Firmware Management Protocol Image Descriptor Information.

Modify 'dh' shell command to dump FirmwareManagement Protocol information.
Add FirmwareManagement image descriptor V1 and V2 structure definition in UefiHandleParsingLib.h to support decoding V1/V2 revisions.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hpe.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
Tapan Shah
2016-03-18 11:28:03 -05:00
committed by Qiu Shumin
parent bb7051eba9
commit 8985d6127a
3 changed files with 573 additions and 3 deletions

View File

@@ -399,3 +399,56 @@
#string STR_UNDI_IPV6_INFO #language en-US " UNDI IPv6 Supported: %%H%d%%N \r\n"
#string STR_UNKNOWN_INFO_TYPE #language en-US " The 'InformationType' - %%H%g%%N can't be recongnized\r\n"
#string STR_FMP_IMAGEID_NON_UNIQUE #language en-US " The ImageId value for each Firmware Image is not unique.\r\n"
#string STR_FMP_IMAGE_INFO_SIZE #language en-US " ImageInfoSize: %%H0x%L016x%%N\r\n"
#string STR_FMP_DESCRIPTOR_VERSION #language en-US " DescriptorVersion: %%H%d%%N\r\n"
#string STR_FMP_DESCRIPTOR_COUNT #language en-US " DescriptorCount : %%H%d%%N\r\n"
#string STR_FMP_DESCRIPTOR_SIZE #language en-US " DescriptorSize : %%H0x%Lx%%N\r\n"
#string STR_FMP_PACKAGE_VERSION #language en-US " PackageVersion : %%H0x%08x%%N\r\n"
#string STR_FMP_PACKAGE_VERSION_NAME #language en-US " PackageVersionName : %%H%s%%N\r\n"
#string STR_FMP_IMAGE_DESCRIPTOR_INFO #language en-US ""
" ImageInfo[%%H%d%%N]:\r\n"
" =============\r\n"
" ImageIndex : %%H%d%%N\r\n"
" ImageTypeId : %%H%g%%N\r\n"
" ImageId : %%H%L016x%%N\r\n"
" ImageIdName : %%H%s%%N\r\n"
" Version : %%H0x%08x%%N\r\n"
" VersionName : %%H%s%%N\r\n"
" Size : %%H0x%L016x%%N\r\n"
" AttributesSupported : %%H0x%L016x%%N\r\n"
" AttributesSetting : %%H%s%%N\r\n"
" Compatibilities : %%H0x%L016x%%N\r\n"
" LowestSupportedImageVersion : %%H0x%08x%%N\r\n"
" LastAttemptVersion : %%H0x%08x%%N\r\n"
" LastAttemptStatus : %%H0x%08x%%N\r\n"
" HardwareInstance : %%H0x%08x%%N\r\n"
#string STR_FMP_IMAGE_DESCRIPTOR_INFO_V1 #language en-US ""
" ImageInfo[%%H%d%%N]:\r\n"
" =============\r\n"
" ImageIndex : %%H%d%%N\r\n"
" ImageTypeId : %%H%g%%N\r\n"
" ImageId : %%H%L016x%%N\r\n"
" ImageIdName : %%H%s%%N\r\n"
" Version : %%H0x%08x%%N\r\n"
" VersionName : %%H%s%%N\r\n"
" Size : %%H0x%L016x%%N\r\n"
" AttributesSupported : %%H0x%L016x%%N\r\n"
" AttributesSetting : %%H%s%%N\r\n"
" Compatibilities : %%H0x%L016x%%N\r\n"
#string STR_FMP_IMAGE_DESCRIPTOR_INFO_V2 #language en-US ""
" ImageInfo[%%H%d%%N]:\r\n"
" =============\r\n"
" ImageIndex : %%H%d%%N\r\n"
" ImageTypeId : %%H%g%%N\r\n"
" ImageId : %%H%L016x%%N\r\n"
" ImageIdName : %%H%s%%N\r\n"
" Version : %%H0x%08x%%N\r\n"
" VersionName : %%H%s%%N\r\n"
" Size : %%H0x%L016x%%N\r\n"
" AttributesSupported : %%H0x%L016x%%N\r\n"
" AttributesSetting : %%H%s%%N\r\n"
" Compatibilities : %%H0x%L016x%%N\r\n"
" LowestSupportedImageVersion : %%H0x%08x%%N\r\n"