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

Unified Diff: include/chromeos/firmware_storage.h

Issue 6650024: Factor out read_firmware_device() (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/u-boot-next.git@chromeos-v2010.09
Patch Set: Created 9 years, 9 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 | « common/cmd_cros_bootstub.c ('k') | lib/chromeos/load_firmware_fw.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/chromeos/firmware_storage.h
diff --git a/include/chromeos/firmware_storage.h b/include/chromeos/firmware_storage.h
index 672b39534a70b60db4e7d727753317d8d153dcee..3349b1be6d7419c64ec98f9dc75e96083f1a1ccf 100644
--- a/include/chromeos/firmware_storage.h
+++ b/include/chromeos/firmware_storage.h
@@ -72,4 +72,13 @@ void GetFirmwareBody_setup(firmware_storage_t *f,
/* Dispose fields that are used for communicating with GetFirmwareBody(). */
void GetFirmwareBody_dispose(firmware_storage_t *f);
+/*
+ * Read <count> bytes, starting from <offset>, from firmware storage
+ * device <file> into buffer <buf>.
+ *
+ * Return 0 on success, non-zero on error.
+ */
+int read_firmware_device(firmware_storage_t *file, off_t offset, void *buf,
+ size_t count);
+
#endif /* __FIRMWARE_STORAGE_H_ */
« no previous file with comments | « common/cmd_cros_bootstub.c ('k') | lib/chromeos/load_firmware_fw.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698