From 831db76ff7275ae33cfb95ba9b7cfed337464ebd Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Wed, 4 Jun 2008 21:00:46 +0100 Subject: [Serial] Split serial console from serial driver --- src/include/gpxe/init.h | 5 +++-- src/include/gpxe/serial.h | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/include/gpxe/serial.h (limited to 'src/include') 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 */ -- cgit v1.2.3-55-g7522