post: Export functions which will be used individually by CSM
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
diff --git a/src/post.c b/src/post.c
index 7df021e..18efd53 100644
--- a/src/post.c
+++ b/src/post.c
@@ -29,6 +29,7 @@
#include "lsi-scsi.h" // lsi_scsi_setup
#include "esp-scsi.h" // esp_scsi_setup
#include "megasas.h" // megasas_setup
+#include "post.h" // interface_init
/****************************************************************
@@ -157,7 +158,7 @@
StackPos = (void*)(&ExtraStack[BUILD_EXTRA_STACK_SIZE] - datalow_base);
}
-static void
+void
interface_init(void)
{
// Running at new code address - do code relocation fixups
@@ -182,7 +183,7 @@
}
// Initialize hardware devices
-static void
+void
device_hardware_setup(void)
{
usb_setup();
@@ -251,7 +252,7 @@
biostable_setup();
}
-static void
+void
prepareboot(void)
{
// Run BCVs
@@ -334,7 +335,7 @@
// Relocate init code and then call a function at its new address.
// The passed function should be in the "init" section and must not
// return.
-static void __noreturn
+void __noreturn
reloc_preinit(void *f, void *arg)
{
void (*func)(void *) __noreturn = f;
diff --git a/src/post.h b/src/post.h
new file mode 100644
index 0000000..5536eb9
--- /dev/null
+++ b/src/post.h
@@ -0,0 +1,10 @@
+#ifndef __POST_H
+#define __POST_H
+
+void interface_init(void);
+void device_hardware_setup(void);
+void prepareboot(void);
+void startBoot(void);
+void reloc_preinit(void *f, void *arg);
+
+#endif // __POST_H