Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2013 07:05:57 +0000 (UTC)
From:      Marcel Moolenaar <marcel@svn.freebsd.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r245125 - projects/altix2/sys/ia64/sgisn
Message-ID:  <50ea73d5.1e6b.14f134e3@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50ea73d5.1e6b.14f134e3>