summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cbfs.h5
-rw-r--r--src/include/memlayout.h2
-rw-r--r--src/include/symbols.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index c46d2a0be3..086fa19eb6 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -84,5 +84,10 @@ void *cbfs_simple_buffer_unmap(struct cbfs_simple_buffer *buffer,
*/
int init_default_cbfs_media(struct cbfs_media *media);
+#if (IS_ENABLED(CONFIG_MULTIPLE_CBFS_INSTANCES))
+void cbfs_set_header_offset(size_t offset);
+#else
+static inline void cbfs_set_header_offset(size_t offset) {}
+#endif
#endif
diff --git a/src/include/memlayout.h b/src/include/memlayout.h
index a80e03ef85..263dc5ceda 100644
--- a/src/include/memlayout.h
+++ b/src/include/memlayout.h
@@ -102,4 +102,6 @@
. += sz;
#endif
+#define CBFS_HEADER_OFFSET(addr) REGION(cbfs_header_offset, addr, 4, 4)
+
#endif /* __MEMLAYOUT_H */
diff --git a/src/include/symbols.h b/src/include/symbols.h
index c3ced87d3f..279c5a214a 100644
--- a/src/include/symbols.h
+++ b/src/include/symbols.h
@@ -27,6 +27,7 @@ extern u8 _esram[];
#define _sram_size (_esram - _sram)
extern u8 _dram[];
+extern u32 _cbfs_header_offset[];
extern u8 _preram_cbmem_console[];
extern u8 _epreram_cbmem_console[];