aboutsummaryrefslogtreecommitdiff
path: root/util/intelmetool/intelmetool.h
diff options
context:
space:
mode:
authorPablo Stebler <pablo@stebler.xyz>2020-09-18 10:32:22 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-09-23 20:58:28 +0000
commit9ac91d220f18377825aac8889e99b2cf078e4afc (patch)
treef8449ee6a4bbaaabba80577ab682046b320367f6 /util/intelmetool/intelmetool.h
parentca128a0eb42dfc41c80aef9659dae06274dd65b3 (diff)
util/intelmetool: Fix the BootGuard dump feature
Read the correct bits for measured and verified boot, print information about some other bits. Signed-off-by: Pablo Stebler <pablo@stebler.xyz> Change-Id: Ie79d6da33032aee94d716bf0698b5501bbc424fa Reviewed-on: https://review.coreboot.org/c/coreboot/+/45516 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/intelmetool/intelmetool.h')
-rw-r--r--util/intelmetool/intelmetool.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/util/intelmetool/intelmetool.h b/util/intelmetool/intelmetool.h
index 47b892ed25..bab661f9ae 100644
--- a/util/intelmetool/intelmetool.h
+++ b/util/intelmetool/intelmetool.h
@@ -48,11 +48,6 @@
#define ME_MESSAGE_LEN 256
extern int debug;
-static inline void print_cap(const char *name, int state)
-{
- printf("ME Capability: %-30s : %s\n",
- name, state ? CRED "ON" RESET : CGRN "OFF" RESET);
-}
#define PCI_VENDOR_ID_INTEL 0x8086
@@ -495,13 +490,3 @@ static inline void print_cap(const char *name, int state)
((x) == PCI_DEVICE_ID_INTEL_LEWISBURG_IE3) || \
((x) == PCI_DEVICE_ID_INTEL_CANNONLAKE) || \
0)
-
-#define BOOTGUARD_DISABLED 0x400000000
-#define BOOTGUARD_ENABLED_VERIFIED_MODE 0x100000000
-#define BOOTGUARD_ENABLED_MEASUREMENT_MODE 0x200000000
-#define BOOTGUARD_ENABLED_COMBI_MODE 0x300000000
-#define BOOTGUARD_CAPABILITY(x) ( \
- ((x) == BOOTGUARD_DISABLED) || \
- ((x) == BOOTGUARD_ENABLED_VERIFIED_MODE) || \
- ((x) == BOOTGUARD_ENABLED_MEASUREMENT_MODE) || \
- ((x) == BOOTGUARD_ENABLED_COMBI_MODE))