dp.h 780 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NVBIOS_DP_H__
  3. #define __NVBIOS_DP_H__
  4. struct nvbios_dpout {
  5. u16 type;
  6. u16 mask;
  7. u8 flags;
  8. u32 script[5];
  9. u32 lnkcmp;
  10. };
  11. u16 nvbios_dpout_parse(struct nvkm_bios *, u8 idx,
  12. u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
  13. struct nvbios_dpout *);
  14. u16 nvbios_dpout_match(struct nvkm_bios *, u16 type, u16 mask,
  15. u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
  16. struct nvbios_dpout *);
  17. struct nvbios_dpcfg {
  18. u8 pc;
  19. u8 dc;
  20. u8 pe;
  21. u8 tx_pu;
  22. };
  23. u16
  24. nvbios_dpcfg_parse(struct nvkm_bios *, u16 outp, u8 idx,
  25. u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *);
  26. u16
  27. nvbios_dpcfg_match(struct nvkm_bios *, u16 outp, u8 pc, u8 vs, u8 pe,
  28. u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *);
  29. #endif