PERFORCE change 54961 for review
Juli Mallett
jmallett at FreeBSD.org
Mon Jun 14 22:44:02 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=54961
Change 54961 by jmallett at jmallett_oingo on 2004/06/14 22:43:22
Bring back IP22 vs. IP24 detection.
Affected files ...
.. //depot/projects/mips/sys/mips/sgimips/ip22.c#9 edit
Differences ...
==== //depot/projects/mips/sys/mips/sgimips/ip22.c#9 (text+ko) ====
@@ -69,6 +69,20 @@
ip22_init(void)
{
u_int32_t address;
+ u_int32_t sysid;
+
+ sysid = *(volatile u_int32_t *)MIPS_PHYS_TO_KSEG1(0x1fbd9858);
+
+ if (sysid & 1)
+ mach_subtype = MACH_SGI_IP22_FULLHOUSE;
+ else
+ mach_subtype = MACH_SGI_IP22_GUINESS;
+
+ mach_boardrev = (sysid >> 1) & 0x0f;
+
+ printf("IOC rev %d, machine %s, board rev %d\n", (sysid >> 5) & 0x07,
+ (sysid & 1) ? "Indigo2 (Fullhouse)" : "Indy (Guiness)",
+ (sysid >> 1) & 0x0f);
if (mach_type == MACH_SGI_IP22) {
printf("int: ");
More information about the p4-projects
mailing list