nv20.h 878 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __NV20_GR_H__
  2. #define __NV20_GR_H__
  3. #define nv20_gr(p) container_of((p), struct nv20_gr, base)
  4. #include "priv.h"
  5. struct nv20_gr {
  6. struct nvkm_gr base;
  7. struct nvkm_memory *ctxtab;
  8. };
  9. int nv20_gr_new_(const struct nvkm_gr_func *, struct nvkm_device *,
  10. int, struct nvkm_gr **);
  11. void *nv20_gr_dtor(struct nvkm_gr *);
  12. int nv20_gr_oneinit(struct nvkm_gr *);
  13. int nv20_gr_init(struct nvkm_gr *);
  14. void nv20_gr_intr(struct nvkm_gr *);
  15. void nv20_gr_tile(struct nvkm_gr *, int, struct nvkm_fb_tile *);
  16. int nv30_gr_init(struct nvkm_gr *);
  17. #define nv20_gr_chan(p) container_of((p), struct nv20_gr_chan, object)
  18. struct nv20_gr_chan {
  19. struct nvkm_object object;
  20. struct nv20_gr *gr;
  21. int chid;
  22. struct nvkm_memory *inst;
  23. };
  24. void *nv20_gr_chan_dtor(struct nvkm_object *);
  25. int nv20_gr_chan_init(struct nvkm_object *);
  26. int nv20_gr_chan_fini(struct nvkm_object *, bool);
  27. #endif