MFC r289199

Add support for reading device temperature
This commit is contained in:
davidcs 2016-01-12 22:52:45 +00:00
parent 8391ee29eb
commit 3d8a7aed82

View File

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