patch-2.4.19 linux-2.4.19/drivers/sbus/char/su.c
Next file: linux-2.4.19/drivers/sbus/char/sunkbd.c
Previous file: linux-2.4.19/drivers/sbus/char/sab82532.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/sbus/char/su.c
- Orig date:
Tue Nov 13 09:16:05 2001
diff -urN linux-2.4.18/drivers/sbus/char/su.c linux-2.4.19/drivers/sbus/char/su.c
@@ -2854,40 +2854,6 @@
su_outb(info, UART_IER, ier);
}
-/*
- * Receive character from the serial port
- */
-static int
-serial_console_wait_key(struct console *co)
-{
- struct su_struct *info;
- int ier;
- int lsr;
- int c;
-
- info = su_table + co->index;
-
- /*
- * First save the IER then disable the interrupts so
- * that the real driver for the port does not get the
- * character.
- */
- ier = su_inb(info, UART_IER);
- su_outb(info, UART_IER, 0x00);
-
- do {
- lsr = su_inb(info, UART_LSR);
- } while (!(lsr & UART_LSR_DR));
- c = su_inb(info, UART_RX);
-
- /*
- * Restore the interrupts
- */
- su_outb(info, UART_IER, ier);
-
- return c;
-}
-
static kdev_t
serial_console_device(struct console *c)
{
@@ -3013,7 +2979,6 @@
name: "ttyS",
write: serial_console_write,
device: serial_console_device,
- wait_key: serial_console_wait_key,
setup: serial_console_setup,
flags: CON_PRINTBUFFER,
index: -1,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)