dmacnv50.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #ifndef __NV50_DISP_DMAC_H__
  2. #define __NV50_DISP_DMAC_H__
  3. #define nv50_disp_dmac(p) container_of((p), struct nv50_disp_dmac, base)
  4. #include "channv50.h"
  5. struct nv50_disp_dmac {
  6. const struct nv50_disp_dmac_func *func;
  7. struct nv50_disp_chan base;
  8. u32 push;
  9. };
  10. struct nv50_disp_dmac_func {
  11. int (*init)(struct nv50_disp_dmac *);
  12. void (*fini)(struct nv50_disp_dmac *);
  13. int (*bind)(struct nv50_disp_dmac *, struct nvkm_object *, u32 handle);
  14. };
  15. int nv50_disp_dmac_new_(const struct nv50_disp_dmac_func *,
  16. const struct nv50_disp_chan_mthd *,
  17. struct nv50_disp_root *, int chid, int head, u64 push,
  18. const struct nvkm_oclass *, struct nvkm_object **);
  19. extern const struct nv50_disp_dmac_func nv50_disp_dmac_func;
  20. int nv50_disp_dmac_bind(struct nv50_disp_dmac *, struct nvkm_object *, u32);
  21. extern const struct nv50_disp_dmac_func nv50_disp_core_func;
  22. extern const struct nv50_disp_dmac_func gf119_disp_dmac_func;
  23. int gf119_disp_dmac_bind(struct nv50_disp_dmac *, struct nvkm_object *, u32);
  24. extern const struct nv50_disp_dmac_func gf119_disp_core_func;
  25. struct nv50_disp_dmac_oclass {
  26. int (*ctor)(const struct nv50_disp_dmac_func *,
  27. const struct nv50_disp_chan_mthd *,
  28. struct nv50_disp_root *, int chid,
  29. const struct nvkm_oclass *, void *data, u32 size,
  30. struct nvkm_object **);
  31. struct nvkm_sclass base;
  32. const struct nv50_disp_dmac_func *func;
  33. const struct nv50_disp_chan_mthd *mthd;
  34. int chid;
  35. };
  36. int nv50_disp_core_new(const struct nv50_disp_dmac_func *,
  37. const struct nv50_disp_chan_mthd *,
  38. struct nv50_disp_root *, int chid,
  39. const struct nvkm_oclass *oclass, void *data, u32 size,
  40. struct nvkm_object **);
  41. int nv50_disp_base_new(const struct nv50_disp_dmac_func *,
  42. const struct nv50_disp_chan_mthd *,
  43. struct nv50_disp_root *, int chid,
  44. const struct nvkm_oclass *oclass, void *data, u32 size,
  45. struct nvkm_object **);
  46. int nv50_disp_ovly_new(const struct nv50_disp_dmac_func *,
  47. const struct nv50_disp_chan_mthd *,
  48. struct nv50_disp_root *, int chid,
  49. const struct nvkm_oclass *oclass, void *data, u32 size,
  50. struct nvkm_object **);
  51. extern const struct nv50_disp_dmac_oclass nv50_disp_core_oclass;
  52. extern const struct nv50_disp_dmac_oclass nv50_disp_base_oclass;
  53. extern const struct nv50_disp_dmac_oclass nv50_disp_ovly_oclass;
  54. extern const struct nv50_disp_dmac_oclass g84_disp_core_oclass;
  55. extern const struct nv50_disp_dmac_oclass g84_disp_base_oclass;
  56. extern const struct nv50_disp_dmac_oclass g84_disp_ovly_oclass;
  57. extern const struct nv50_disp_dmac_oclass g94_disp_core_oclass;
  58. extern const struct nv50_disp_dmac_oclass gt200_disp_core_oclass;
  59. extern const struct nv50_disp_dmac_oclass gt200_disp_base_oclass;
  60. extern const struct nv50_disp_dmac_oclass gt200_disp_ovly_oclass;
  61. extern const struct nv50_disp_dmac_oclass gt215_disp_core_oclass;
  62. extern const struct nv50_disp_dmac_oclass gt215_disp_base_oclass;
  63. extern const struct nv50_disp_dmac_oclass gt215_disp_ovly_oclass;
  64. extern const struct nv50_disp_dmac_oclass gf119_disp_core_oclass;
  65. extern const struct nv50_disp_dmac_oclass gf119_disp_base_oclass;
  66. extern const struct nv50_disp_dmac_oclass gf119_disp_ovly_oclass;
  67. extern const struct nv50_disp_dmac_oclass gk104_disp_core_oclass;
  68. extern const struct nv50_disp_dmac_oclass gk104_disp_base_oclass;
  69. extern const struct nv50_disp_dmac_oclass gk104_disp_ovly_oclass;
  70. extern const struct nv50_disp_dmac_oclass gk110_disp_core_oclass;
  71. extern const struct nv50_disp_dmac_oclass gk110_disp_base_oclass;
  72. extern const struct nv50_disp_dmac_oclass gm107_disp_core_oclass;
  73. extern const struct nv50_disp_dmac_oclass gm204_disp_core_oclass;
  74. #endif