Home | History | Annotate | Line # | Download | only in subdev
      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