From: David Woodhouse Date: Sat, 26 Jan 2013 01:26:48 +0000 (-0600) Subject: post: Export functions which will be used individually by CSM X-Git-Tag: rel-1.7.3~134 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a21645146894e4b051b94b32ec2b39eecc691f3a;p=seabios.git post: Export functions which will be used individually by CSM Signed-off-by: David Woodhouse --- 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 @@ 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 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