Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: flash.h

Issue 6611015: Support -i partition:file feature for both read and write. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flashrom.git@master
Patch Set: fixed according to code review and security check. Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cli_mfg.c ('k') | flashrom.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: flash.h
diff --git a/flash.h b/flash.h
index c9e79bec2f29fd5853b33a20a4683ec61741a226..f7d280344b3fddf4fbc626b17ca5bb774eecd2e8 100644
--- a/flash.h
+++ b/flash.h
@@ -254,6 +254,13 @@ int cli_mfg(int argc, char *argv[]);
int read_romlayout(char *name);
int find_romentry(char *name);
int handle_romentries(struct flashchip *flash, uint8_t *oldcontents, uint8_t *newcontents);
+int handle_partial_read(
+ struct flashchip *flash,
+ uint8_t *buf,
+ int (*read) (struct flashchip *flash, uint8_t *buf, int start, int len));
+ /* RETURN: the number of partitions that have beenpartial read.
+ * ==0 means no partition is specified.
+ * < 0 means writing file error. */
/* spi.c */
struct spi_command {
« no previous file with comments | « cli_mfg.c ('k') | flashrom.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698