Add support for reading device temperature

MFC after:5 days
This commit is contained in:
David C Somayajulu 2015-10-12 20:21:17 +00:00
parent 59e2ff550c
commit 56c55e6513

View File

@ -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);