summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/efi332/console/console.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-11 15:42:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-03-11 15:42:59 +0000
commit6335022e2062931771857bf84711dedcc32bc247 (patch)
tree827e6fa0ec49427cc4bb6a9110698669b8588666 /c/src/lib/libbsp/m68k/efi332/console/console.c
parentc43b34cf348b5a4d3ec0e2ba88b422070a52c0ee (diff)
downloadrtems-6335022e2062931771857bf84711dedcc32bc247.tar.bz2
updates from John Gwynne
Diffstat (limited to 'c/src/lib/libbsp/m68k/efi332/console/console.c')
-rw-r--r--c/src/lib/libbsp/m68k/efi332/console/console.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/c/src/lib/libbsp/m68k/efi332/console/console.c b/c/src/lib/libbsp/m68k/efi332/console/console.c
index b16ec72334..1e0e60d7f9 100644
--- a/c/src/lib/libbsp/m68k/efi332/console/console.c
+++ b/c/src/lib/libbsp/m68k/efi332/console/console.c
@@ -36,7 +36,7 @@ static volatile struct UART_buf xmt = { xmt_buf, (char *)0, (char *)1};
static volatile struct UART_buf rcv = { rcv_buf, (char *)0, (char *)1};
static volatile char _debug_flag = 0;
-#define SET_RTS(a) {*PORTF0 = (*PORTF0 & 0x4) | ( (a)? 0 : 0x4); }
+#define SET_RTS(a) {*PORTF0 = (*PORTF0 & ~0x4) | ( (a)? 0 : 0x4); }
#define GET_CTS (!(*PORTF0 & 0x2))
/* _catchSCIint, _catchCTSint, and _catchSPURIOUSint are the
@@ -234,14 +234,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;
-
*QSMCR = ( SAM(QSM_IARB,0,IARB) );
*QILR = ( SAM(ISRL_QSPI,4,ILQSPI) | SAM(ISRL_SCI,0,ILSCI) );
*QIVR = ( SAM(EFI_QIVR,0,INTV) );
@@ -252,6 +246,16 @@ rtems_device_driver console_initialize(
set_vector(_catchSPURIOUSint, EFI_SPINT, 0);
set_vector(_catchSCIint, EFI_QIVR, 0);
set_vector(_catchCTSint, EFI_INT1, 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",
major,