summaryrefslogtreecommitdiff
path: root/util/cbfstool/uflashrom.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/uflashrom.h')
-rw-r--r--util/cbfstool/uflashrom.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/cbfstool/uflashrom.h b/util/cbfstool/uflashrom.h
new file mode 100644
index 0000000000..1ef0085dd9
--- /dev/null
+++ b/util/cbfstool/uflashrom.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+
+#ifndef UFLASHROM_H
+#define UFLASHROM_H
+
+#define FLASHROM_PROGRAMMER_INTERNAL_AP "internal"
+
+struct firmware_programmer {
+ const char *programmer;
+ uint32_t size;
+ uint8_t *data;
+};
+
+int flashrom_read(struct firmware_programmer *image, const char *region);
+int flashrom_write(struct firmware_programmer *image, const char *region);
+
+#endif /* UFLASHROM_H */