svn commit: r245125 - projects/altix2/sys/ia64/sgisn

Marcel Moolenaar marcel at svn.freebsd.org
Mon Jan 7 07:05:57 UTC 2013


Author: marcel
Date: Mon Jan  7 07:05:57 2013
New Revision: 245125
URL: http://svnweb.freebsd.org/changeset/base/245125

Log:
  Print the revision of the SHub under bootverbose.

Modified:
  projects/altix2/sys/ia64/sgisn/sgisn_shub.c

Modified: projects/altix2/sys/ia64/sgisn/sgisn_shub.c
==============================================================================
--- projects/altix2/sys/ia64/sgisn/sgisn_shub.c	Mon Jan  7 06:37:22 2013	(r245124)
+++ projects/altix2/sys/ia64/sgisn/sgisn_shub.c	Mon Jan  7 07:05:57 2013	(r245125)
@@ -377,6 +377,7 @@ sgisn_shub_attach(device_t dev)
 	ACPI_TABLE_HEADER *tbl;
 	device_t child;
 	void *ptr;
+	uint64_t id;
 	u_long addr;
 	u_int bus, seg, wdgt;
 
@@ -421,8 +422,11 @@ sgisn_shub_attach(device_t dev)
 	sc->sc_tag = IA64_BUS_SPACE_MEM;
 	bus_space_map(sc->sc_tag, sc->sc_mmraddr, 1UL << 32, 0, &sc->sc_hndl);
 
-	if (bootverbose)
-		device_printf(dev, "NASID=%#x\n", sc->sc_nasid);
+	if (bootverbose) {
+		id = bus_space_read_8(sc->sc_tag, sc->sc_hndl, SHUB_MMR_ID);
+		device_printf(dev, "Revision=%u, NASID=%#x\n",
+		    (u_int)((id >> 28) & 0xf), sc->sc_nasid);
+	}
 
 	/*
 	 * Allocate contiguous memory, local to the SHub, for collecting


More information about the svn-src-projects mailing list