From e712c39507cdb98e0d958e9bfe14867f046569a9 Mon Sep 17 00:00:00 2001 From: Nikolai Artemiev Date: Wed, 7 Dec 2022 11:17:19 +1100 Subject: layout.h: Add {read,write}_prot flags to flash_region Add protection bits to `struct flash_region` to keep track of the CSME restrictions for each flash region. BUG=b:260440773 BRANCH=none TEST=builds Change-Id: I0e5b3b4369dc868a8a64338935c5c5249b9a4ada CoAuthored-by: Edward O'Callaghan Signed-off-by: Edward O'Callaghan Signed-off-by: Nikolai Artemiev Reviewed-on: https://review.coreboot.org/c/flashrom/+/70437 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) --- include/layout.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/layout.h') diff --git a/include/layout.h b/include/layout.h index 6959ef74..70d99cbb 100644 --- a/include/layout.h +++ b/include/layout.h @@ -39,6 +39,8 @@ struct flash_region { char *name; chipoff_t start; chipoff_t end; + bool read_prot; + bool write_prot; }; struct romentry { -- cgit v1.2.3