Date: Wed, 13 Jan 2016 01:09:32 +0000 (UTC) From: David C Somayajulu <davidcs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r293797 - stable/7/sys/dev/bxe Message-ID: <201601130109.u0D19Wq7041464@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: davidcs Date: Wed Jan 13 01:09:32 2016 New Revision: 293797 URL: https://svnweb.freebsd.org/changeset/base/293797 Log: MFC r289199 Add support for reading device temperature Modified: stable/7/sys/dev/bxe/bxe.c Directory Properties: stable/7/ (props changed) stable/7/sys/ (props changed) Modified: stable/7/sys/dev/bxe/bxe.c ============================================================================== --- stable/7/sys/dev/bxe/bxe.c Wed Jan 13 00:37:28 2016 (r293796) +++ stable/7/sys/dev/bxe/bxe.c Wed Jan 13 01:09:32 2016 (r293797) @@ -16165,9 +16165,12 @@ bxe_sysctl_state(SYSCTL_HANDLER_ARGS) } if (result == 1) { + uint32_t temp; sc = (struct bxe_softc *)arg1; + BLOGI(sc, "... dumping driver state ...\n"); - /* XXX */ + temp = SHMEM2_RD(sc, temperature_in_half_celsius); + BLOGI(sc, "\t Device Temperature = %d Celsius\n", (temp/2)); } return (error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601130109.u0D19Wq7041464>