xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvkm/subdev/iccsense.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: iccsense.h,v 1.2 2021/12/18 23:45:33 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 #ifndef __NVKM_ICCSENSE_H__
5 #define __NVKM_ICCSENSE_H__
6 
7 #include <core/subdev.h>
8 
9 struct nvkm_iccsense {
10 	struct nvkm_subdev subdev;
11 	bool data_valid;
12 	struct list_head sensors;
13 	struct list_head rails;
14 
15 	u32 power_w_max;
16 	u32 power_w_crit;
17 };
18 
19 int gf100_iccsense_new(struct nvkm_device *, int index, struct nvkm_iccsense **);
20 int nvkm_iccsense_read_all(struct nvkm_iccsense *iccsense);
21 #endif
22