patch-2.4.19 linux-2.4.19/drivers/macintosh/macserial.c
Next file: linux-2.4.19/drivers/macintosh/via-cuda.c
Previous file: linux-2.4.19/drivers/macintosh/mac_keyb.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/macintosh/macserial.c
- Orig date:
Mon Feb 25 11:37:58 2002
diff -urN linux-2.4.18/drivers/macintosh/macserial.c linux-2.4.19/drivers/macintosh/macserial.c
@@ -2866,30 +2866,6 @@
/* Don't disable the transmitter. */
}
-/*
- * Receive character from the serial port
- */
-static int serial_console_wait_key(struct console *co)
-{
- struct mac_serial *info = zs_soft + co->index;
- int val;
-
- /* Turn of interrupts and enable the transmitter. */
- write_zsreg(info->zs_channel, R1, info->curregs[1] & ~INT_ALL_Rx);
- write_zsreg(info->zs_channel, R3, info->curregs[3] | RxENABLE);
-
- /* Wait for something in the receive buffer. */
- while((read_zsreg(info->zs_channel, 0) & Rx_CH_AV) == 0)
- eieio();
- val = read_zsdata(info->zs_channel);
-
- /* Restore the values in the registers. */
- write_zsreg(info->zs_channel, R1, info->curregs[1]);
- write_zsreg(info->zs_channel, R3, info->curregs[3]);
-
- return val;
-}
-
static kdev_t serial_console_device(struct console *c)
{
return MKDEV(TTY_MAJOR, 64 + c->index);
@@ -3080,7 +3056,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)