Merge branch 'drm-tda998x-devel' of git://git.armlinux.org.uk/~rmk/linux-arm into...
[sfrench/cifs-2.6.git] / drivers / gpu / drm / nouveau / nvkm / subdev / ltc / priv.h
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
7 int nvkm_ltc_new_(const struct nvkm_ltc_func *, struct nvkm_device *,
8                   int index, struct nvkm_ltc **);
9
10 struct nvkm_ltc_func {
11         int  (*oneinit)(struct nvkm_ltc *);
12         void (*init)(struct nvkm_ltc *);
13         void (*intr)(struct nvkm_ltc *);
14
15         void (*cbc_clear)(struct nvkm_ltc *, u32 start, u32 limit);
16         void (*cbc_wait)(struct nvkm_ltc *);
17
18         int zbc;
19         void (*zbc_clear_color)(struct nvkm_ltc *, int, const u32[4]);
20         void (*zbc_clear_depth)(struct nvkm_ltc *, int, const u32);
21
22         void (*invalidate)(struct nvkm_ltc *);
23         void (*flush)(struct nvkm_ltc *);
24 };
25
26 int gf100_ltc_oneinit(struct nvkm_ltc *);
27 int gf100_ltc_oneinit_tag_ram(struct nvkm_ltc *);
28 void gf100_ltc_intr(struct nvkm_ltc *);
29 void gf100_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
30 void gf100_ltc_cbc_wait(struct nvkm_ltc *);
31 void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
32 void gf100_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
33 void gf100_ltc_invalidate(struct nvkm_ltc *);
34 void gf100_ltc_flush(struct nvkm_ltc *);
35 extern const struct nvkm_bitfield gf100_ltc_lts_intr_name[];
36
37 void gm107_ltc_intr(struct nvkm_ltc *);
38 void gm107_ltc_intr_lts(struct nvkm_ltc *, int ltc, int lts);
39 void gm107_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
40 void gm107_ltc_cbc_wait(struct nvkm_ltc *);
41 void gm107_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
42 void gm107_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
43 #endif