svn commit: r293789 - stable/9/sys/dev/bxe

David C Somayajulu davidcs at FreeBSD.org
Tue Jan 12 23:26:47 UTC 2016


Author: davidcs
Date: Tue Jan 12 23:26:45 2016
New Revision: 293789
URL: https://svnweb.freebsd.org/changeset/base/293789

Log:
  MFC r289199
    Add support for reading device temperature

Modified:
  stable/9/sys/dev/bxe/bxe.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/bxe/bxe.c
==============================================================================
--- stable/9/sys/dev/bxe/bxe.c	Tue Jan 12 23:16:27 2016	(r293788)
+++ stable/9/sys/dev/bxe/bxe.c	Tue Jan 12 23:26:45 2016	(r293789)
@@ -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);


More information about the svn-src-stable-9 mailing list