patch-2.4.21 linux-2.4.21/arch/m68k/sun3x/config.c
Next file: linux-2.4.21/arch/m68k/sun3x/prom.c
Previous file: linux-2.4.21/arch/m68k/sun3/sun3ints.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/m68k/sun3x/config.c
- Orig date:
2002-11-28 15:53:09.000000000 -0800
diff -urN linux-2.4.20/arch/m68k/sun3x/config.c linux-2.4.21/arch/m68k/sun3x/config.c
@@ -17,12 +17,14 @@
#include <asm/sun3xprom.h>
#include <asm/sun3ints.h>
#include <asm/setup.h>
+#include <asm/oplib.h>
#include "time.h"
volatile char *clock_va;
extern volatile unsigned char *sun3_intreg;
+extern void sun3_get_model(char *model);
int __init sun3x_keyb_init(void)
{
@@ -44,10 +46,16 @@
}
-/* should probably detect types of these eventually. */
-static void sun3x_get_model(char *model)
+static int sun3x_get_hardware_list(char *buffer)
{
- sprintf(model, "Sun3x");
+
+ int len = 0;
+
+ len += sprintf(buffer + len, "PROM Revision:\t%s\n",
+ romvec->pv_monid);
+
+ return len;
+
}
/*
@@ -81,7 +89,8 @@
mach_gettod = sun3x_gettod;
mach_hwclk = sun3x_hwclk;
- mach_get_model = sun3x_get_model;
+ mach_get_model = sun3_get_model;
+ mach_get_hardware_list = sun3x_get_hardware_list;
sun3_intreg = (unsigned char *)SUN3X_INTREG;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)