Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2015 20:21:17 +0000 (UTC)
From:      David C Somayajulu <davidcs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289199 - head/sys/dev/bxe
Message-ID:  <201510122021.t9CKLHwi026520@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: davidcs
Date: Mon Oct 12 20:21:17 2015
New Revision: 289199
URL: https://svnweb.freebsd.org/changeset/base/289199

Log:
  Add support for reading device temperature
  
  MFC after:5 days

Modified:
  head/sys/dev/bxe/bxe.c

Modified: head/sys/dev/bxe/bxe.c
==============================================================================
--- head/sys/dev/bxe/bxe.c	Mon Oct 12 18:53:37 2015	(r289198)
+++ head/sys/dev/bxe/bxe.c	Mon Oct 12 20:21:17 2015	(r289199)
@@ -16122,9 +16122,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?201510122021.t9CKLHwi026520>