#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/hwmon.h>
#include "nfpcore/nfp_cpp.h"
#include "nfpcore/nfp_nsp.h"
#include "nfp_main.h"
#define NFP_TEMP_MAX …
#define NFP_TEMP_CRIT …
#define NFP_POWER_MAX …
static int nfp_hwmon_sensor_id(enum hwmon_sensor_types type, int channel)
{ … }
static int
nfp_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr,
int channel, long *val)
{ … }
static umode_t
nfp_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr,
int channel)
{ … }
static u32 nfp_chip_config[] = …;
static const struct hwmon_channel_info nfp_chip = …;
static u32 nfp_temp_config[] = …;
static const struct hwmon_channel_info nfp_temp = …;
static u32 nfp_power_config[] = …;
static const struct hwmon_channel_info nfp_power = …;
static const struct hwmon_channel_info * const nfp_hwmon_info[] = …;
static const struct hwmon_ops nfp_hwmon_ops = …;
static const struct hwmon_chip_info nfp_chip_info = …;
int nfp_hwmon_register(struct nfp_pf *pf)
{ … }
void nfp_hwmon_unregister(struct nfp_pf *pf)
{ … }