patch-1.3.93 linux/arch/sparc/prom/console.c
Next file: linux/arch/sparc/prom/devops.c
Previous file: linux/arch/sparc/prom/bootstr.c
Back to the patch index
Back to the overall index
- Lines: 57
- Date:
Sun Apr 21 12:30:32 1996
- Orig file:
v1.3.92/linux/arch/sparc/prom/console.c
- Orig date:
Mon Mar 4 08:49:58 1996
diff -u --recursive --new-file v1.3.92/linux/arch/sparc/prom/console.c linux/arch/sparc/prom/console.c
@@ -1,10 +1,11 @@
-/* $Id: console.c,v 1.6 1996/01/01 02:46:27 davem Exp $
+/* $Id: console.c,v 1.8 1996/04/05 07:44:35 tridge Exp $
* console.c: Routines that deal with sending and receiving IO
* to/from the current console device using the PROM.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
*/
+#include <linux/config.h>
#include <asm/openprom.h>
#include <asm/oplib.h>
#include <linux/string.h>
@@ -28,6 +29,9 @@
return inc;
return -1;
break;
+ case PROM_AP1000:
+ return -1;
+ break;
};
return 0; /* Ugh, we could spin forever on unsupported proms ;( */
}
@@ -52,6 +56,15 @@
return 0;
return -1;
break;
+ case PROM_AP1000:
+#if CONFIG_AP1000
+ {
+ extern void ap_putchar(char );
+ ap_putchar(c);
+ return 0;
+ }
+#endif
+ break;
};
return 0; /* Ugh, we could spin forever on unsupported proms ;( */
}
@@ -110,6 +123,8 @@
return PROMDEV_ITTYB;
}
return PROMDEV_I_UNK;
+ case PROM_AP1000:
+ return PROMDEV_I_UNK;
};
}
@@ -162,6 +177,8 @@
};
}
break;
+ case PROM_AP1000:
+ return PROMDEV_I_UNK;
};
return PROMDEV_O_UNK;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this