patch-2.1.127 linux/drivers/sbus/char/sunserial.c
Next file: linux/drivers/sbus/char/vfc_dev.c
Previous file: linux/drivers/sbus/char/su32.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Tue Oct 27 09:52:21 1998
- Orig file:
v2.1.126/linux/drivers/sbus/char/sunserial.c
- Orig date:
Mon Oct 5 13:13:40 1998
diff -u --recursive --new-file v2.1.126/linux/drivers/sbus/char/sunserial.c linux/drivers/sbus/char/sunserial.c
@@ -1,4 +1,4 @@
-/* $Id: sunserial.c,v 1.66 1998/09/21 05:48:48 jj Exp $
+/* $Id: sunserial.c,v 1.67 1998/10/25 03:22:46 jj Exp $
* serial.c: Serial port driver infrastructure for the Sparc.
*
* Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
@@ -399,6 +399,14 @@
if (!ret)
return memory_start;
+
+#ifdef __sparc_v9__
+ ret = prom_finddevice("/ssp-serial");
+ if (ret && ret != -1) {
+ /* Hello, Starfire. Pleased to meet you :) */
+ return memory_start;
+ }
+#endif
prom_printf("No serial devices found, bailing out.\n");
prom_halt();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov