patch-2.4.22 linux-2.4.22/drivers/char/serial_tx3912.c
Next file: linux-2.4.22/drivers/char/serial_txx9.c
Previous file: linux-2.4.22/drivers/char/serial.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
2003-08-25 04:44:41.000000000 -0700
- Orig file:
linux-2.4.21/drivers/char/serial_tx3912.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.21/drivers/char/serial_tx3912.c linux-2.4.22/drivers/char/serial_tx3912.c
@@ -752,6 +752,21 @@
outl(int2, TX3912_INT2_ENABLE);
}
+static int serial_console_wait_key(struct console *co)
+{
+ unsigned int int2, res;
+
+ int2 = inl(TX3912_INT2_ENABLE);
+ outl(0, TX3912_INT2_ENABLE);
+
+ while (!(inl(TX3912_UARTA_CTRL1) & TX3912_UART_CTRL1_RXHOLDFULL));
+ res = inl(TX3912_UARTA_DATA);
+ udelay(10);
+
+ outl(int2, TX3912_INT2_ENABLE);
+ return res;
+}
+
static void serial_console_write(struct console *co, const char *s,
unsigned count)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)