Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / ltc.h
blob95b611554d535d3b4093ba11a30057f8c98b9e1c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __NVKM_LTC_H__
3 #define __NVKM_LTC_H__
4 #include <core/subdev.h>
5 #include <core/mm.h>
7 #define NVKM_LTC_MAX_ZBC_CNT 16
9 struct nvkm_ltc {
10 const struct nvkm_ltc_func *func;
11 struct nvkm_subdev subdev;
13 u32 ltc_nr;
14 u32 lts_nr;
16 u32 num_tags;
17 u32 tag_base;
18 struct nvkm_memory *tag_ram;
20 int zbc_min;
21 int zbc_max;
22 u32 zbc_color[NVKM_LTC_MAX_ZBC_CNT][4];
23 u32 zbc_depth[NVKM_LTC_MAX_ZBC_CNT];
26 void nvkm_ltc_tags_clear(struct nvkm_device *, u32 first, u32 count);
28 int nvkm_ltc_zbc_color_get(struct nvkm_ltc *, int index, const u32[4]);
29 int nvkm_ltc_zbc_depth_get(struct nvkm_ltc *, int index, const u32);
31 void nvkm_ltc_invalidate(struct nvkm_ltc *);
32 void nvkm_ltc_flush(struct nvkm_ltc *);
34 int gf100_ltc_new(struct nvkm_device *, int, struct nvkm_ltc **);
35 int gk104_ltc_new(struct nvkm_device *, int, struct nvkm_ltc **);
36 int gk20a_ltc_new(struct nvkm_device *, int, struct nvkm_ltc **);
37 int gm107_ltc_new(struct nvkm_device *, int, struct nvkm_ltc **);
38 int gm200_ltc_new(struct nvkm_device *, int, struct nvkm_ltc **);
39 int gp100_ltc_new(struct nvkm_device *, int, struct nvkm_ltc **);
40 #endif