priv.h 994 B

1234567891011121314151617181920212223242526272829
  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. int nvkm_ltc_new_(const struct nvkm_ltc_func *, struct nvkm_device *,
  6. int index, struct nvkm_ltc **);
  7. struct nvkm_ltc_func {
  8. int (*oneinit)(struct nvkm_ltc *);
  9. void (*init)(struct nvkm_ltc *);
  10. void (*intr)(struct nvkm_ltc *);
  11. void (*cbc_clear)(struct nvkm_ltc *, u32 start, u32 limit);
  12. void (*cbc_wait)(struct nvkm_ltc *);
  13. int zbc;
  14. void (*zbc_clear_color)(struct nvkm_ltc *, int, const u32[4]);
  15. void (*zbc_clear_depth)(struct nvkm_ltc *, int, const u32);
  16. };
  17. int gf100_ltc_oneinit(struct nvkm_ltc *);
  18. int gf100_ltc_oneinit_tag_ram(struct nvkm_ltc *);
  19. void gf100_ltc_intr(struct nvkm_ltc *);
  20. void gf100_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
  21. void gf100_ltc_cbc_wait(struct nvkm_ltc *);
  22. void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
  23. void gf100_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
  24. #endif