vpstate.h 520 B

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