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

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)