aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2019-11-12 15:13:12 -0800
committerJulius Werner <jwerner@chromium.org>2019-11-14 03:30:03 +0000
commit6abbd5b0acec1a874160ff5061d4077663649253 (patch)
tree9faf1dd1474860b90fa0d228ef83aa5fc18ebadc /src/include
parent44da9e73c79edea8a2e7785ecf481b3eb23f813c (diff)
cbfs: Make cbfs_master_header_props() externally available
This patch makes the CBFS default locator .locate() callback externally available so that code which overrides cbfs_master_header_locator can reuse or wrap it and doesn't have to copy&paste the whole thing. Use it for the Eltan vendorcode implementation which previously did this. Change-Id: I54dad5c8ea64ea0fc472217e275daa815736991e Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36797 Reviewed-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cbfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/cbfs.h b/src/include/cbfs.h
index 85e25b3d9b..f012441896 100644
--- a/src/include/cbfs.h
+++ b/src/include/cbfs.h
@@ -73,6 +73,9 @@ struct cbfs_props {
size_t size;
};
+/* Default CBFS locator .locate() callback that locates "COREBOOT" region. */
+int cbfs_master_header_props(struct cbfs_props *props);
+
/* Return < 0 on error otherwise props are filled out accordingly. */
int cbfs_boot_region_properties(struct cbfs_props *props);