Edward O'Callaghan submitted this change.

View Change



1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Approvals: build bot (Jenkins): Verified Edward O'Callaghan: Looks good to me, approved
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>
---
M include/layout.h
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/include/layout.h b/include/layout.h
index 6959ef7..70d99cb 100644
--- a/include/layout.h
+++ b/include/layout.h
@@ -39,6 +39,8 @@
char *name;
chipoff_t start;
chipoff_t end;
+ bool read_prot;
+ bool write_prot;
};

struct romentry {

To view, visit change 70437. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I0e5b3b4369dc868a8a64338935c5c5249b9a4ada
Gerrit-Change-Number: 70437
Gerrit-PatchSet: 5
Gerrit-Owner: Nikolai Artemiev <nartemiev@google.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-MessageType: merged