summaryrefslogtreecommitdiffstats
path: root/util/flashrom_tester/flashrom/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'util/flashrom_tester/flashrom/src/lib.rs')
-rw-r--r--util/flashrom_tester/flashrom/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/flashrom_tester/flashrom/src/lib.rs b/util/flashrom_tester/flashrom/src/lib.rs
index 924a71315..fff5863bc 100644
--- a/util/flashrom_tester/flashrom/src/lib.rs
+++ b/util/flashrom_tester/flashrom/src/lib.rs
@@ -114,6 +114,9 @@ pub trait Flashrom {
/// Read the whole flash to the file specified by `path`.
fn read(&self, path: &str) -> Result<(), FlashromError>;
+ /// Read only a region of the flash.
+ fn read_region(&self, path: &str, region: &str) -> Result<(), FlashromError>;
+
/// Write the whole flash to the file specified by `path`.
fn write(&self, path: &str) -> Result<(), FlashromError>;