]> xenbits.xensource.com Git - seabios.git/commitdiff
post: Export functions which will be used individually by CSM
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 26 Jan 2013 01:26:48 +0000 (19:26 -0600)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 7 Feb 2013 05:10:29 +0000 (00:10 -0500)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
src/post.c
src/post.h [new file with mode: 0644]

index 7df021e4e58c2b5bef297459e0a69b8a0f1c98fc..18efd53e89b9546b9db279b9f3e21b058aac81a1 100644 (file)
@@ -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 @@ bda_init(void)
     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 @@ interface_init(void)
 }
 
 // Initialize hardware devices
-static void
+void
 device_hardware_setup(void)
 {
     usb_setup();
@@ -251,7 +252,7 @@ platform_hardware_setup(void)
     biostable_setup();
 }
 
-static void
+void
 prepareboot(void)
 {
     // Run BCVs
@@ -334,7 +335,7 @@ updateRelocs(void *dest, u32 *rstart, u32 *rend, u32 delta)
 // 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 (file)
index 0000000..5536eb9
--- /dev/null
@@ -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