Author: davidcs
Date: Wed Jan 13 00:26:45 2016
New Revision: 293793
URL: https://svnweb.freebsd.org/changeset/base/293793
Log:
MFC r289199
Add support for reading device temperature
Modified:
stable/8/sys/dev/bxe/bxe.c
Directory Properties:
stable/8/ (props changed)
stable/8/sys/ (props changed)
stable/8/sys/dev/ (props changed)
Modified: stable/8/sys/dev/bxe/bxe.c
==============================================================================
--- stable/8/sys/dev/bxe/bxe.c Wed Jan 13 00:22:12 2016 (r293792)
+++ stable/8/sys/dev/bxe/bxe.c Wed Jan 13 00:26:45 2016 (r293793)
@@ -16163,9 +16163,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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"