Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2004 22:43:39 GMT
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54961 for review
Message-ID:  <200406142243.i5EMhdKj042282@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54961

Change 54961 by jmallett@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: ");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406142243.i5EMhdKj042282>