aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNikolai Artemiev <nartemiev@google.com>2022-12-07 11:17:19 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-12-15 23:57:12 +0000
commite712c39507cdb98e0d958e9bfe14867f046569a9 (patch)
treeec59d952df22ed7d1f6dc3ee294a87182d1c8270 /include
parent66655b74236eb01ac0fd21ee11b5082ea720ed6b (diff)
downloadflashrom-e712c39507cdb98e0d958e9bfe14867f046569a9.tar.gz
flashrom-e712c39507cdb98e0d958e9bfe14867f046569a9.tar.bz2
flashrom-e712c39507cdb98e0d958e9bfe14867f046569a9.zip
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 <quasisec@google.com> Signed-off-by: Edward O'Callaghan <quasisec@google.com> Signed-off-by: Nikolai Artemiev <nartemiev@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/70437 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/layout.h2
1 files changed, 2 insertions, 0 deletions
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 {