[serial] Use new UART abstraction in serial console driver

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-06-29 08:43:16 +01:00
parent 5e622dc085
commit 2a696ab963
7 changed files with 173 additions and 300 deletions

View File

@@ -26,10 +26,9 @@ struct init_fn {
*/
#define INIT_EARLY 01 /**< Early initialisation */
#define INIT_SERIAL 02 /**< Serial driver initialisation */
#define INIT_CONSOLE 03 /**< Console initialisation */
#define INIT_NORMAL 04 /**< Normal initialisation */
#define INIT_LATE 05 /**< Late initialisation */
#define INIT_CONSOLE 02 /**< Console initialisation */
#define INIT_NORMAL 03 /**< Normal initialisation */
#define INIT_LATE 04 /**< Late initialisation */
/** @} */

View File

@@ -3,15 +3,14 @@
/** @file
*
* Serial driver functions
* Serial console
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
extern void serial_putc ( int ch );
extern int serial_getc ( void );
extern int serial_ischar ( void );
extern int serial_initialized;
#include <ipxe/uart.h>
extern struct uart serial_console;
#endif /* _IPXE_SERIAL_H */