disp.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __NVKM_DISP_H__
  2. #define __NVKM_DISP_H__
  3. #define nvkm_disp(p) container_of((p), struct nvkm_disp, engine)
  4. #include <core/engine.h>
  5. #include <core/event.h>
  6. struct nvkm_disp {
  7. const struct nvkm_disp_func *func;
  8. struct nvkm_engine engine;
  9. struct nvkm_oproxy *client;
  10. struct list_head outp;
  11. struct list_head conn;
  12. struct nvkm_event hpd;
  13. struct nvkm_event vblank;
  14. struct {
  15. int nr;
  16. } head;
  17. };
  18. int nv04_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  19. int nv50_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  20. int g84_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  21. int gt200_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  22. int g94_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  23. int gt215_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  24. int gf119_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  25. int gk104_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  26. int gk110_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  27. int gm107_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  28. int gm200_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  29. int gp100_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  30. int gp102_disp_new(struct nvkm_device *, int, struct nvkm_disp **);
  31. #endif