summaryrefslogtreecommitdiff
path: root/include/chromeos/gbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/chromeos/gbb.h')
-rw-r--r--include/chromeos/gbb.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/chromeos/gbb.h b/include/chromeos/gbb.h
index c3bc304b38..d3770f51b1 100644
--- a/include/chromeos/gbb.h
+++ b/include/chromeos/gbb.h
@@ -22,9 +22,11 @@
* @param gbb Buffer for holding GBB
* @param file Flashrom device handle
* @param gbb_offset Offset of GBB in flashrom device
+ * @param gbb_size Size of the buffer holding GBB
* @return zero if this succeeds, non-zero if this fails
*/
-int gbb_init(read_buf_type gbb, firmware_storage_t *file, uint32_t gbb_offset);
+int gbb_init(read_buf_type gbb, firmware_storage_t *file, uint32_t gbb_offset,
+ size_t gbb_size);
#ifndef CONFIG_HARDWARE_MAPPED_SPI
/**
@@ -33,10 +35,11 @@ int gbb_init(read_buf_type gbb, firmware_storage_t *file, uint32_t gbb_offset);
* @param gbb Buffer for holding GBB
* @param file Flashrom device handle
* @param gbb_offset Offset of GBB in flashrom device
+ * @param gbb_size Size of the buffer holding GBB
* @return zero if this succeeds, non-zero if this fails
*/
-int gbb_read_bmp_block(read_buf_type gbb,
- firmware_storage_t *file, uint32_t gbb_offset);
+int gbb_read_bmp_block(read_buf_type gbb, firmware_storage_t *file,
+ uint32_t gbb_offset, size_t gbb_size);
/*
* This loads the recovery key of GBB from flashrom.
@@ -44,10 +47,11 @@ int gbb_read_bmp_block(read_buf_type gbb,
* @param gbb Buffer for holding GBB
* @param file Flashrom device handle
* @param gbb_offset Offset of GBB in flashrom device
+ * @param gbb_size Size of the buffer holding GBB
* @return zero if this succeeds, non-zero if this fails
*/
-int gbb_read_recovery_key(read_buf_type gbb,
- firmware_storage_t *file, uint32_t gbb_offset);
+int gbb_read_recovery_key(read_buf_type gbb, firmware_storage_t *file,
+ uint32_t gbb_offset, size_t gbb_size);
#else