iccsense.h 392 B

12345678910111213141516171819202122
  1. #ifndef __NVBIOS_ICCSENSE_H__
  2. #define __NVBIOS_ICCSENSE_H__
  3. struct pwr_rail_resistor_t {
  4. u8 mohm;
  5. bool enabled;
  6. };
  7. struct pwr_rail_t {
  8. u8 mode;
  9. u8 extdev_id;
  10. u8 resistor_count;
  11. struct pwr_rail_resistor_t resistors[3];
  12. u16 config;
  13. };
  14. struct nvbios_iccsense {
  15. int nr_entry;
  16. struct pwr_rail_t *rail;
  17. };
  18. int nvbios_iccsense_parse(struct nvkm_bios *, struct nvbios_iccsense *);
  19. #endif