diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-03-11 15:42:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-03-11 15:42:59 +0000 |
commit | 6335022e2062931771857bf84711dedcc32bc247 (patch) | |
tree | 827e6fa0ec49427cc4bb6a9110698669b8588666 /c/src/lib/libbsp/m68k/efi68k/console/console.c | |
parent | modified _Chain_Insert_unprotected to have the form required to be used (diff) | |
download | rtems-6335022e2062931771857bf84711dedcc32bc247.tar.bz2 |
updates from John Gwynne
Diffstat (limited to 'c/src/lib/libbsp/m68k/efi68k/console/console.c')
-rw-r--r-- | c/src/lib/libbsp/m68k/efi68k/console/console.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/m68k/efi68k/console/console.c b/c/src/lib/libbsp/m68k/efi68k/console/console.c index 73e3cff1fe..2efbca6605 100644 --- a/c/src/lib/libbsp/m68k/efi68k/console/console.c +++ b/c/src/lib/libbsp/m68k/efi68k/console/console.c @@ -194,14 +194,8 @@ void _UART_flush(void) { * Return values: */ -rtems_device_driver console_initialize( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *arg -) +void console_init() { - rtems_status_code status; - /* set clock divisor */ *LCR = (char)(DLAB); *DLL = (char)((int)(CLK_FREQ/BAUD/16.0+0.5) & 0xFF); @@ -223,6 +217,15 @@ rtems_device_driver console_initialize( _tx_stop = ( (*MDSR & CTS) ? 0 : 1); set_vector(_catchUARTint, UART_ISR_LEVEL+24, 0); +} + +rtems_device_driver console_initialize( + rtems_device_major_number major, + rtems_device_minor_number minor, + void *arg +) +{ + rtems_status_code status; status = rtems_io_register_name( "/dev/console", |