2019-06-19 20:13:43 -04:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
2016-02-18 14:10:49 +01:00
|
|
|
#ifndef __NVKM_ICCSENSE_H__
|
|
|
|
#define __NVKM_ICCSENSE_H__
|
|
|
|
|
|
|
|
#include <core/subdev.h>
|
|
|
|
|
|
|
|
struct nvkm_iccsense {
|
|
|
|
struct nvkm_subdev subdev;
|
2016-02-18 16:53:44 +01:00
|
|
|
bool data_valid;
|
2016-03-28 14:24:31 +02:00
|
|
|
struct list_head sensors;
|
2016-03-28 14:24:30 +02:00
|
|
|
struct list_head rails;
|
2017-01-23 23:10:12 +01:00
|
|
|
|
|
|
|
u32 power_w_max;
|
|
|
|
u32 power_w_crit;
|
2016-02-18 14:10:49 +01:00
|
|
|
};
|
|
|
|
|
2020-12-04 12:17:03 +10:00
|
|
|
int gf100_iccsense_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_iccsense **);
|
2016-02-18 16:53:44 +01:00
|
|
|
int nvkm_iccsense_read_all(struct nvkm_iccsense *iccsense);
|
2016-02-18 14:10:49 +01:00
|
|
|
#endif
|