linux/drivers/net/ethernet/intel/ice/ice_hwmon.c

// SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2023, Intel Corporation. */

#include "ice.h"
#include "ice_hwmon.h"
#include "ice_adminq_cmd.h"

#include <linux/hwmon.h>

#define TEMP_FROM_REG(reg)

static const struct hwmon_channel_info *ice_hwmon_info[] =;

static int ice_hwmon_read(struct device *dev, enum hwmon_sensor_types type,
			  u32 attr, int channel, long *val)
{}

static umode_t ice_hwmon_is_visible(const void *data,
				    enum hwmon_sensor_types type, u32 attr,
				    int channel)
{}

static const struct hwmon_ops ice_hwmon_ops =;

static const struct hwmon_chip_info ice_chip_info =;

static bool ice_is_internal_reading_supported(struct ice_pf *pf)
{
	/* Only the first PF will report temperature for a chip.
	 * Note that internal temp reading is not supported
	 * for older FW (< v4.30).
	 */
	if (pf->hw.pf_id)
		return false;

	unsigned long sensors = pf->hw.dev_caps.supported_sensors;

	return test_bit(ICE_SENSOR_SUPPORT_E810_INT_TEMP_BIT, &sensors);
};

void ice_hwmon_init(struct ice_pf *pf)
{}

void ice_hwmon_exit(struct ice_pf *pf)
{}