iccsense.h 431 B

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