vpstate.h 481 B

123456789101112131415161718192021222324
  1. #ifndef __NVBIOS_VPSTATE_H__
  2. #define __NVBIOS_VPSTATE_H__
  3. struct nvbios_vpstate_header {
  4. u32 offset;
  5. u8 version;
  6. u8 hlen;
  7. u8 ecount;
  8. u8 elen;
  9. u8 scount;
  10. u8 slen;
  11. u8 base_id;
  12. u8 boost_id;
  13. u8 tdp_id;
  14. };
  15. struct nvbios_vpstate_entry {
  16. u8 pstate;
  17. u16 clock_mhz;
  18. };
  19. int nvbios_vpstate_parse(struct nvkm_bios *, struct nvbios_vpstate_header *);
  20. int nvbios_vpstate_entry(struct nvkm_bios *, struct nvbios_vpstate_header *,
  21. u8 idx, struct nvbios_vpstate_entry *);
  22. #endif