mei: Document some more of HFSTS6

This commit is contained in:
Richard Hughes 2020-09-07 09:20:23 +01:00
parent 9b688d0b73
commit 45fbc50f8d
2 changed files with 24 additions and 9 deletions

View File

@ -271,20 +271,30 @@ fu_mei_hfsts2_to_string (FuMeiHfsts2 hfsts2, guint idt, GString *str)
void void
fu_mei_hfsts3_to_string (FuMeiHfsts3 hfsts3, guint idt, GString *str) fu_mei_hfsts3_to_string (FuMeiHfsts3 hfsts3, guint idt, GString *str)
{ {
fu_common_string_append_kx (str, idt, "Reserved0", fu_common_string_append_kx (str, idt, "Chunk0",
hfsts3.fields.reserved_0); hfsts3.fields.chunk0);
fu_common_string_append_kx (str, idt, "Chunk1",
hfsts3.fields.chunk1);
fu_common_string_append_kx (str, idt, "Chunk2",
hfsts3.fields.chunk2);
fu_common_string_append_kx (str, idt, "Chunk3",
hfsts3.fields.chunk3);
fu_common_string_append_kx (str, idt, "FwSku", fu_common_string_append_kx (str, idt, "FwSku",
hfsts3.fields.fw_sku); hfsts3.fields.fw_sku);
fu_common_string_append_kb (str, idt, "EncryptKeyCheck", fu_common_string_append_kb (str, idt, "EncryptKeyCheck",
hfsts3.fields.encrypt_key_check); hfsts3.fields.encrypt_key_check);
fu_common_string_append_kb (str, idt, "PchConfigChange", fu_common_string_append_kb (str, idt, "PchConfigChange",
hfsts3.fields.pch_config_change); hfsts3.fields.pch_config_change);
fu_common_string_append_kx (str, idt, "Reserved9", fu_common_string_append_kb (str, idt, "IbbVerificationResult",
hfsts3.fields.reserved_9); hfsts3.fields.ibb_verification_result);
fu_common_string_append_kb (str, idt, "IbbVerificationDone",
hfsts3.fields.ibb_verification_done);
fu_common_string_append_kx (str, idt, "Reserved11", fu_common_string_append_kx (str, idt, "Reserved11",
hfsts3.fields.reserved_11); hfsts3.fields.reserved_11);
fu_common_string_append_kx (str, idt, "Reserved14", fu_common_string_append_kx (str, idt, "ActualIbbSize",
hfsts3.fields.reserved_14); hfsts3.fields.actual_ibb_size * 1024);
fu_common_string_append_ku (str, idt, "NumberOfChunks",
hfsts3.fields.number_of_chunks);
fu_common_string_append_kb (str, idt, "EncryptKeyOverride", fu_common_string_append_kb (str, idt, "EncryptKeyOverride",
hfsts3.fields.encrypt_key_override); hfsts3.fields.encrypt_key_override);
fu_common_string_append_kb (str, idt, "PowerDownMitigation", fu_common_string_append_kb (str, idt, "PowerDownMitigation",

View File

@ -83,13 +83,18 @@ typedef union {
typedef union { typedef union {
guint32 data; guint32 data;
struct { struct {
guint32 reserved_0 : 4; guint32 chunk0 : 1;
guint32 chunk1 : 1;
guint32 chunk2 : 1;
guint32 chunk3 : 1;
guint32 fw_sku : 3; guint32 fw_sku : 3;
guint32 encrypt_key_check : 1; guint32 encrypt_key_check : 1;
guint32 pch_config_change : 1; guint32 pch_config_change : 1;
guint32 reserved_9 : 2; guint32 ibb_verification_result : 1;
guint32 ibb_verification_done : 1;
guint32 reserved_11 : 3; guint32 reserved_11 : 3;
guint32 reserved_14 : 16; guint32 actual_ibb_size : 14;
guint32 number_of_chunks : 2;
guint32 encrypt_key_override : 1; guint32 encrypt_key_override : 1;
guint32 power_down_mitigation : 1; guint32 power_down_mitigation : 1;
} __attribute__((packed)) fields; } __attribute__((packed)) fields;