summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorStefan Hajnoczi2008-06-04 22:00:46 +0200
committerMichael Brown2008-06-05 01:45:43 +0200
commit831db76ff7275ae33cfb95ba9b7cfed337464ebd (patch)
treeecdceb0019fecf807c44e2015b46c090bf09fbaf /src/include
parent[util] config-local.h to avoid accidental commits (diff)
downloadipxe-831db76ff7275ae33cfb95ba9b7cfed337464ebd.tar.gz
ipxe-831db76ff7275ae33cfb95ba9b7cfed337464ebd.tar.xz
ipxe-831db76ff7275ae33cfb95ba9b7cfed337464ebd.zip
[Serial] Split serial console from serial driver
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/init.h5
-rw-r--r--src/include/gpxe/serial.h14
2 files changed, 17 insertions, 2 deletions
diff --git a/src/include/gpxe/init.h b/src/include/gpxe/init.h
index d83aa5e55..c468213e1 100644
--- a/src/include/gpxe/init.h
+++ b/src/include/gpxe/init.h
@@ -22,8 +22,9 @@ struct init_fn {
*/
#define INIT_EARLY 01 /**< Early initialisation */
-#define INIT_CONSOLE 02 /**< Console initialisation */
-#define INIT_NORMAL 03 /**< Normal initialisation */
+#define INIT_SERIAL 02 /**< Serial driver initialisation */
+#define INIT_CONSOLE 03 /**< Console initialisation */
+#define INIT_NORMAL 04 /**< Normal initialisation */
/** @} */
diff --git a/src/include/gpxe/serial.h b/src/include/gpxe/serial.h
new file mode 100644
index 000000000..2825b9369
--- /dev/null
+++ b/src/include/gpxe/serial.h
@@ -0,0 +1,14 @@
+#ifndef _GPXE_SERIAL_H
+#define _GPXE_SERIAL_H
+
+/** @file
+ *
+ * Serial driver functions
+ *
+ */
+
+extern void serial_putc ( int ch );
+extern int serial_getc ( void );
+extern int serial_ischar ( void );
+
+#endif /* _GPXE_SERIAL_H */