]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/gpu/drm/nouveau/nvkm/subdev/ltc/priv.h
drm/nouveau/ltc/gp100: initial support
[mirror_ubuntu-bionic-kernel.git] / drivers / gpu / drm / nouveau / nvkm / subdev / ltc / priv.h
CommitLineData
95484b57
BS
1#ifndef __NVKM_LTC_PRIV_H__
2#define __NVKM_LTC_PRIV_H__
70bc7182 3#define nvkm_ltc(p) container_of((p), struct nvkm_ltc, subdev)
95484b57 4#include <subdev/ltc.h>
86b40432 5#include <core/enum.h>
95484b57 6
70bc7182
BS
7int nvkm_ltc_new_(const struct nvkm_ltc_func *, struct nvkm_device *,
8 int index, struct nvkm_ltc **);
a1fc50b4 9
70bc7182
BS
10struct nvkm_ltc_func {
11 int (*oneinit)(struct nvkm_ltc *);
12 void (*init)(struct nvkm_ltc *);
13 void (*intr)(struct nvkm_ltc *);
f38fdb6a 14
70bc7182
BS
15 void (*cbc_clear)(struct nvkm_ltc *, u32 start, u32 limit);
16 void (*cbc_wait)(struct nvkm_ltc *);
f38fdb6a
BS
17
18 int zbc;
70bc7182
BS
19 void (*zbc_clear_color)(struct nvkm_ltc *, int, const u32[4]);
20 void (*zbc_clear_depth)(struct nvkm_ltc *, int, const u32);
38a8fc78
AC
21
22 void (*invalidate)(struct nvkm_ltc *);
23 void (*flush)(struct nvkm_ltc *);
95484b57
BS
24};
25
70bc7182
BS
26int gf100_ltc_oneinit(struct nvkm_ltc *);
27int gf100_ltc_oneinit_tag_ram(struct nvkm_ltc *);
28void gf100_ltc_intr(struct nvkm_ltc *);
29void gf100_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
30void gf100_ltc_cbc_wait(struct nvkm_ltc *);
31void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
32void gf100_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
a0a49bac
AC
33void gf100_ltc_invalidate(struct nvkm_ltc *);
34void gf100_ltc_flush(struct nvkm_ltc *);
86b40432 35extern const struct nvkm_bitfield gf100_ltc_lts_intr_name[];
7d2813c4
BS
36
37void gm107_ltc_intr(struct nvkm_ltc *);
a96def39 38void gm107_ltc_intr_lts(struct nvkm_ltc *, int ltc, int lts);
7d2813c4
BS
39void gm107_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
40void gm107_ltc_cbc_wait(struct nvkm_ltc *);
41void gm107_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
42void gm107_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
95484b57 43#endif