[syslinux:elflink] core: Move write_serial() prototype to core.h

syslinux-bot for Matt Fleming matt.fleming at intel.com
Tue Apr 17 11:24:16 PDT 2012


Commit-ID:  8213cb2cf0c66a1da5c03cc79de4ee629c2934fc
Gitweb:     http://www.syslinux.org/commit/8213cb2cf0c66a1da5c03cc79de4ee629c2934fc
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Tue, 3 Apr 2012 11:37:36 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 17 Apr 2012 10:58:34 +0100

core: Move write_serial() prototype to core.h

There's nothing inherently BIOS-specific about write_serial(), so it
doesn't make sense to have it in bios.h. Move the prototype to core.h
so that files can access the prototype without pulling in all the BIOS
symbols. Also add some missing function prototypes while we're at it.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 core/include/bios.h |    2 --
 core/include/core.h |    9 +++++++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/core/include/bios.h b/core/include/bios.h
index 1248e48..2b4b029 100644
--- a/core/include/bios.h
+++ b/core/include/bios.h
@@ -73,8 +73,6 @@ extern union screen _screensize;
 #define VidCols		_screensize.b.col
 #define VidRows		_screensize.b.row
 
-extern void write_serial(char data);
-
 /* font.c */
 extern uint16_t VGAFontSize;
 extern void use_font(void);
diff --git a/core/include/core.h b/core/include/core.h
index c1b2671..7d36e98 100644
--- a/core/include/core.h
+++ b/core/include/core.h
@@ -101,4 +101,13 @@ static inline void set_flags(com32sys_t *regs, uint32_t flags)
 
 extern int start_ldlinux(char **argv);
 
+extern void write_serial(char data);
+extern void writestr(char *str);
+extern void writechr(char data);
+extern void crlf(void);
+
+extern void cleanup_hardware(void);
+extern void sirq_cleanup(void);
+extern void adjust_screen(void);
+
 #endif /* CORE_H */


More information about the Syslinux-commits mailing list