sfxge(4): add new Emerald board sensors to common code

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D6292
This commit is contained in:
Andrew Rybchenko 2016-05-11 06:19:53 +00:00
parent 95812f27e1
commit f634dfda66
3 changed files with 8 additions and 2 deletions

View File

@ -566,7 +566,7 @@ efx_mon_init(
#define EFX_MON_STATS_PAGE_SIZE 0x100
#define EFX_MON_MASK_ELEMENT_SIZE 32
/* START MKCONFIG GENERATED MonitorHeaderStatsBlock c09b13f732431f23 */
/* START MKCONFIG GENERATED MonitorHeaderStatsBlock 5d4ee5185e419abe */
typedef enum efx_mon_stat_e {
EFX_MON_STAT_2_5V,
EFX_MON_STAT_VCCP1,
@ -643,6 +643,8 @@ typedef enum efx_mon_stat_e {
EFX_MON_STAT_PHY0_VCC,
EFX_MON_STAT_PHY1_VCC,
EFX_MON_STAT_CONTROLLER_TDIODE_TEMP,
EFX_MON_STAT_BOARD_FRONT_TEMP,
EFX_MON_STAT_BOARD_BACK_TEMP,
EFX_MON_NSTATS
} efx_mon_stat_t;

View File

@ -149,7 +149,7 @@ efx_mon_init(
#if EFSYS_OPT_NAMES
/* START MKCONFIG GENERATED MonitorStatNamesBlock 01ee3ea01f23a0c4 */
/* START MKCONFIG GENERATED MonitorStatNamesBlock 31f437eafb0b0437 */
static const char *__mon_stat_name[] = {
"value_2_5v",
"value_vccp1",
@ -226,6 +226,8 @@ static const char *__mon_stat_name[] = {
"phy0_vcc",
"phy1_vcc",
"controller_tdiode_temp",
"board_front_temp",
"board_back_temp",
};
/* END MKCONFIG GENERATED MonitorStatNamesBlock */

View File

@ -155,6 +155,8 @@ static const struct mcdi_sensor_map_s {
STAT(Px, PHY0_VCC), /* 0x4c PHY0_VCC */
STAT(Px, PHY1_VCC), /* 0x4d PHY1_VCC */
STAT(Px, CONTROLLER_TDIODE_TEMP), /* 0x4e CONTROLLER_TDIODE_TEMP */
STAT(Px, BOARD_FRONT_TEMP), /* 0x4f BOARD_FRONT_TEMP */
STAT(Px, BOARD_BACK_TEMP), /* 0x50 BOARD_BACK_TEMP */
};
#define MCDI_STATIC_SENSOR_ASSERT(_field) \