patch-2.4.19 linux-2.4.19/arch/mips/dec/prom/identify.c
Next file: linux-2.4.19/arch/mips/dec/prom/memory.c
Previous file: linux-2.4.19/arch/mips/dec/prom/cmdline.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/mips/dec/prom/identify.c
- Orig date:
Mon Feb 28 07:18:20 2000
diff -urN linux-2.4.18/arch/mips/dec/prom/identify.c linux-2.4.19/arch/mips/dec/prom/identify.c
@@ -2,8 +2,6 @@
* identify.c: machine identification code.
*
* Copyright (C) 1998 Harald Koerfgen and Paul M. Antoine
- *
- * $Id: identify.c,v 1.2 1999/10/09 00:00:58 ralf Exp $
*/
#include <linux/init.h>
#include <linux/kernel.h>
@@ -21,6 +19,26 @@
extern unsigned long mips_machgroup;
extern unsigned long mips_machtype;
+extern unsigned long mips_machtype;
+const char *get_system_type(void)
+{
+ static char system[32];
+ int called = 0;
+ const char *dec_system_strings[] = { "unknown", "DECstation 2100/3100",
+ "DECstation 5100", "DECstation 5000/200", "DECstation 5000/1xx",
+ "Personal DECstation 5000/xx", "DECstation 5000/2x0",
+ "DECstation 5400", "DECstation 5500", "DECstation 5800"
+ };
+
+ if (called == 0) {
+ called = 1;
+ strcpy(system, "Digital ");
+ strcat(system, dec_system_strings[mips_machtype]);
+ }
+
+ return system;
+}
+
void __init prom_identify_arch (unsigned int magic)
{
unsigned char dec_cpunum, dec_firmrev, dec_etc;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)