1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_ICCSENSE_H__
3 #define __NVKM_ICCSENSE_H__
4
5 #include <core/subdev.h>
6
7 struct nvkm_iccsense {
8 struct nvkm_subdev subdev;
9 bool data_valid;
10 struct list_head sensors;
11 struct list_head rails;
12
13 u32 power_w_max;
14 u32 power_w_crit;
15 };
16
17 int gf100_iccsense_new(struct nvkm_device *, int index, struct nvkm_iccsense **);
18 int nvkm_iccsense_read_all(struct nvkm_iccsense *iccsense);
19 #endif