summaryrefslogtreecommitdiff
path: root/chip/g/flash_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/flash_info.h')
-rw-r--r--chip/g/flash_info.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chip/g/flash_info.h b/chip/g/flash_info.h
index fae622c24b..308446df4d 100644
--- a/chip/g/flash_info.h
+++ b/chip/g/flash_info.h
@@ -6,7 +6,10 @@
#ifndef __EC_CHIP_G_FLASH_INFO_H
#define __EC_CHIP_G_FLASH_INFO_H
-void flash_info_write_enable(void);
+#include <stddef.h>
+
+int flash_info_read_enable(uint32_t offset, size_t size);
+int flash_info_write_enable(uint32_t offset, size_t size);
void flash_info_write_disable(void);
int flash_info_physical_write(int byte_offset, int num_bytes, const char *data);
int flash_physical_info_read_word(int byte_offset, uint32_t *dst);