iccsense.h 434 B

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