aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-04-03 11:37:36 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-17 10:58:34 +0100
commit8213cb2cf0c66a1da5c03cc79de4ee629c2934fc (patch)
treeb1a0b4c58f3b62fdfd3c063634b7ccec16c364b8
parentc23ac08d9e3c1582906ca4f412effdb56fe19b37 (diff)
downloadsyslinux-8213cb2cf0c66a1da5c03cc79de4ee629c2934fc.tar.gz
syslinux-8213cb2cf0c66a1da5c03cc79de4ee629c2934fc.tar.xz
syslinux-8213cb2cf0c66a1da5c03cc79de4ee629c2934fc.zip
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@intel.com>
-rw-r--r--core/include/bios.h2
-rw-r--r--core/include/core.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/core/include/bios.h b/core/include/bios.h
index 1248e482..2b4b029e 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 c1b26714..7d36e982 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 */