Home | History | Annotate | Download | only in core
      1 #include <gpxe/init.h>
      2 #include <gpxe/serial.h>
      3 #include "console.h"
      4 
      5 /** @file
      6  *
      7  * Serial console
      8  *
      9  */
     10 
     11 struct console_driver serial_console __console_driver;
     12 
     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;
     17 }
     18 
     19 struct console_driver serial_console __console_driver = {
     20 	.putchar = serial_putc,
     21 	.getchar = serial_getc,
     22 	.iskey = serial_ischar,
     23 	.disabled = 1,
     24 };
     25 
     26 /**
     27  * Serial console initialisation function
     28  */
     29 struct init_fn serial_console_init_fn __init_fn ( INIT_CONSOLE ) = {
     30 	.initialise = serial_console_init,
     31 };
     32