mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-12 22:26:13 -04:00
Initial ME parser, improved ucode parser, reset vector info
This commit is contained in:
parent
f386eda430
commit
2e7aa8133a
21 changed files with 1867 additions and 166 deletions
34
common/types.cpp
Normal file → Executable file
34
common/types.cpp
Normal file → Executable file
|
@ -66,6 +66,20 @@ UString itemTypeToUString(const UINT8 type)
|
|||
case Types::FlashMapEntry: return UString("FlashMap entry");
|
||||
case Types::Microcode: return UString("Microcode");
|
||||
case Types::SlicData: return UString("SLIC data");
|
||||
// ME-specific
|
||||
case Types::FptStore: return UString("FPT store");
|
||||
case Types::FptEntry: return UString("FPT entry");
|
||||
case Types::IfwiHeader: return UString("IFWI header");
|
||||
case Types::IfwiPartition: return UString("IFWI partition");
|
||||
case Types::FptPartition: return UString("FPT partition");
|
||||
case Types::BpdtStore: return UString("BPDT store");
|
||||
case Types::BpdtEntry: return UString("BPDT entry");
|
||||
case Types::BpdtPartition: return UString("BPDT partition");
|
||||
case Types::CpdStore: return UString("CPD store");
|
||||
case Types::CpdEntry: return UString("CPD entry");
|
||||
case Types::CpdPartition: return UString("CPD partition");
|
||||
case Types::CpdExtension: return UString("CPD extension");
|
||||
case Types::CpdSpiEntry: return UString("CPD SPI entry");
|
||||
}
|
||||
|
||||
return UString("Unknown");
|
||||
|
@ -132,6 +146,26 @@ UString itemSubtypeToUString(const UINT8 type, const UINT8 subtype)
|
|||
if (subtype == Subtypes::IntelMicrocode) return UString("Intel");
|
||||
if (subtype == Subtypes::AmdMicrocode) return UString("AMD");
|
||||
break;
|
||||
// ME-specific
|
||||
case Types::FptEntry:
|
||||
if (subtype == Subtypes::ValidFptEntry) return UString("Valid");
|
||||
if (subtype == Subtypes::InvalidFptEntry) return UString("Invalid");
|
||||
break;
|
||||
case Types::FptPartition:
|
||||
if (subtype == Subtypes::CodeFptPartition) return UString("Code");
|
||||
if (subtype == Subtypes::DataFptPartition) return UString("Data");
|
||||
if (subtype == Subtypes::GlutFptPartition) return UString("GLUT");
|
||||
break;
|
||||
case Types::IfwiPartition:
|
||||
if (subtype == Subtypes::BootIfwiPartition) return UString("Boot");
|
||||
if (subtype == Subtypes::DataIfwiPartition) return UString("Data");
|
||||
break;
|
||||
case Types::CpdPartition:
|
||||
if (subtype == Subtypes::ManifestCpdPartition) return UString("Manifest");
|
||||
if (subtype == Subtypes::MetadataCpdPartition) return UString("Metadata");
|
||||
if (subtype == Subtypes::KeyCpdPartition) return UString("Key");
|
||||
if (subtype == Subtypes::CodeCpdPartition) return UString("Code");
|
||||
break;
|
||||
}
|
||||
|
||||
return UString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue