[Serial] Split serial console from serial driver

This commit is contained in:
Stefan Hajnoczi
2008-06-04 21:00:46 +01:00
committed by Michael Brown
parent f866b17998
commit 831db76ff7
5 changed files with 62 additions and 32 deletions

View File

@@ -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 */
/** @} */

14
src/include/gpxe/serial.h Normal file
View File

@@ -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 */