Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 #ifndef __NVKM_ICCSENSE_H__
0003 #define __NVKM_ICCSENSE_H__
0004 
0005 #include <core/subdev.h>
0006 
0007 struct nvkm_iccsense {
0008     struct nvkm_subdev subdev;
0009     bool data_valid;
0010     struct list_head sensors;
0011     struct list_head rails;
0012 
0013     u32 power_w_max;
0014     u32 power_w_crit;
0015 };
0016 
0017 int gf100_iccsense_new(struct nvkm_device *, enum nvkm_subdev_type, int, struct nvkm_iccsense **);
0018 int nvkm_iccsense_read_all(struct nvkm_iccsense *iccsense);
0019 #endif