priv.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __NVKM_LTC_PRIV_H__
  2. #define __NVKM_LTC_PRIV_H__
  3. #define nvkm_ltc(p) container_of((p), struct nvkm_ltc, subdev)
  4. #include <subdev/ltc.h>
  5. #include <core/enum.h>
  6. int nvkm_ltc_new_(const struct nvkm_ltc_func *, struct nvkm_device *,
  7. int index, struct nvkm_ltc **);
  8. struct nvkm_ltc_func {
  9. int (*oneinit)(struct nvkm_ltc *);
  10. void (*init)(struct nvkm_ltc *);
  11. void (*intr)(struct nvkm_ltc *);
  12. void (*cbc_clear)(struct nvkm_ltc *, u32 start, u32 limit);
  13. void (*cbc_wait)(struct nvkm_ltc *);
  14. int zbc;
  15. void (*zbc_clear_color)(struct nvkm_ltc *, int, const u32[4]);
  16. void (*zbc_clear_depth)(struct nvkm_ltc *, int, const u32);
  17. void (*invalidate)(struct nvkm_ltc *);
  18. void (*flush)(struct nvkm_ltc *);
  19. };
  20. int gf100_ltc_oneinit(struct nvkm_ltc *);
  21. int gf100_ltc_oneinit_tag_ram(struct nvkm_ltc *);
  22. void gf100_ltc_intr(struct nvkm_ltc *);
  23. void gf100_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
  24. void gf100_ltc_cbc_wait(struct nvkm_ltc *);
  25. void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
  26. void gf100_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
  27. void gf100_ltc_invalidate(struct nvkm_ltc *);
  28. void gf100_ltc_flush(struct nvkm_ltc *);
  29. extern const struct nvkm_bitfield gf100_ltc_lts_intr_name[];
  30. void gm107_ltc_intr(struct nvkm_ltc *);
  31. void gm107_ltc_intr_lts(struct nvkm_ltc *, int ltc, int lts);
  32. void gm107_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
  33. void gm107_ltc_cbc_wait(struct nvkm_ltc *);
  34. void gm107_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
  35. void gm107_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
  36. #endif