[contrib] Allow Network Protocol header to display in rom-o-matic
[gpxe.git] / src / core / serial_console.c
blob0300482af7a6337ba7d2cd5b66f5fc13c7c5fb05
1 #include <gpxe/init.h>
2 #include <gpxe/serial.h>
3 #include "console.h"
5 /** @file
7 * Serial console
9 */
11 struct console_driver serial_console __console_driver;
13 static void serial_console_init ( void ) {
14 /* Serial driver initialization should already be done,
15 * time to enable the serial console. */
16 serial_console.disabled = 0;
19 struct console_driver serial_console __console_driver = {
20 .putchar = serial_putc,
21 .getchar = serial_getc,
22 .iskey = serial_ischar,
23 .disabled = 1,
26 /**
27 * Serial console initialisation function
29 struct init_fn serial_console_init_fn __init_fn ( INIT_CONSOLE ) = {
30 .initialise = serial_console_init,