summaryrefslogtreecommitdiffstats
path: root/sys/dev/bxe/bxe.c
diff options
context:
space:
mode:
authordavidcs <davidcs@FreeBSD.org>2016-01-12 22:52:45 +0000
committerdavidcs <davidcs@FreeBSD.org>2016-01-12 22:52:45 +0000
commit3d8a7aed82f02bac280d58e1ff72961af515693c (patch)
tree8fc1fa88b0dba49e2398252617c6eb5530b9a488 /sys/dev/bxe/bxe.c
parent8391ee29eb83e99fa1a8863bb47078102b8bc142 (diff)
downloadFreeBSD-src-3d8a7aed82f02bac280d58e1ff72961af515693c.zip
FreeBSD-src-3d8a7aed82f02bac280d58e1ff72961af515693c.tar.gz
MFC r289199
Add support for reading device temperature
Diffstat (limited to 'sys/dev/bxe/bxe.c')
-rw-r--r--sys/dev/bxe/bxe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c
index c984add..f67952d 100644
--- a/sys/dev/bxe/bxe.c
+++ b/sys/dev/bxe/bxe.c
@@ -16154,9 +16154,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);
OpenPOWER on IntegriCloud