svn commit: r243286 - stable/9/sys/dev/aac
Ed Maste
emaste at FreeBSD.org
Mon Nov 19 16:16:34 UTC 2012
Author: emaste
Date: Mon Nov 19 16:16:34 2012
New Revision: 243286
URL: http://svnweb.freebsd.org/changeset/base/243286
Log:
MFC r231589: Add a sysctl to report the firmware build number.
Some older firmware versions have issues that can be worked around by
avoiding certain operations. Add a sysctl dev.aac.#.firmware_build to
make it easy for scripts or userland tools to detect the firmware
version.
Modified:
stable/9/sys/dev/aac/aac.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/aac/aac.c
==============================================================================
--- stable/9/sys/dev/aac/aac.c Mon Nov 19 16:02:04 2012 (r243285)
+++ stable/9/sys/dev/aac/aac.c Mon Nov 19 16:16:34 2012 (r243286)
@@ -292,6 +292,15 @@ aac_attach(struct aac_softc *sc)
aac_describe_controller(sc);
/*
+ * Add sysctls.
+ */
+ SYSCTL_ADD_INT(device_get_sysctl_ctx(sc->aac_dev),
+ SYSCTL_CHILDREN(device_get_sysctl_tree(sc->aac_dev)),
+ OID_AUTO, "firmware_build", CTLFLAG_RD,
+ &sc->aac_revision.buildNumber, 0,
+ "firmware build number");
+
+ /*
* Register to probe our containers later.
*/
sc->aac_ich.ich_func = aac_startup;
More information about the svn-src-stable-9
mailing list