53 lines · c
1/* SPDX-License-Identifier: MIT */2#ifndef __NVKM_LTC_PRIV_H__3#define __NVKM_LTC_PRIV_H__4#define nvkm_ltc(p) container_of((p), struct nvkm_ltc, subdev)5#include <subdev/ltc.h>6#include <core/enum.h>7 8int nvkm_ltc_new_(const struct nvkm_ltc_func *, struct nvkm_device *, enum nvkm_subdev_type, int,9 struct nvkm_ltc **);10 11struct nvkm_ltc_func {12 int (*oneinit)(struct nvkm_ltc *);13 void (*init)(struct nvkm_ltc *);14 void (*intr)(struct nvkm_ltc *);15 16 void (*cbc_clear)(struct nvkm_ltc *, u32 start, u32 limit);17 void (*cbc_wait)(struct nvkm_ltc *);18 19 int zbc_color;20 int zbc_depth;21 void (*zbc_clear_color)(struct nvkm_ltc *, int, const u32[4]);22 void (*zbc_clear_depth)(struct nvkm_ltc *, int, const u32);23 void (*zbc_clear_stencil)(struct nvkm_ltc *, int, const u32);24 25 void (*invalidate)(struct nvkm_ltc *);26 void (*flush)(struct nvkm_ltc *);27};28 29int gf100_ltc_oneinit(struct nvkm_ltc *);30int gf100_ltc_oneinit_tag_ram(struct nvkm_ltc *);31void gf100_ltc_intr(struct nvkm_ltc *);32void gf100_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);33void gf100_ltc_cbc_wait(struct nvkm_ltc *);34void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);35void gf100_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);36void gf100_ltc_invalidate(struct nvkm_ltc *);37void gf100_ltc_flush(struct nvkm_ltc *);38extern const struct nvkm_bitfield gf100_ltc_lts_intr_name[];39 40void gm107_ltc_intr(struct nvkm_ltc *);41void gm107_ltc_intr_lts(struct nvkm_ltc *, int ltc, int lts);42void gm107_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);43void gm107_ltc_cbc_wait(struct nvkm_ltc *);44void gm107_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);45void gm107_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);46 47int gp100_ltc_oneinit(struct nvkm_ltc *);48void gp100_ltc_init(struct nvkm_ltc *);49void gp100_ltc_intr(struct nvkm_ltc *);50 51void gp102_ltc_zbc_clear_stencil(struct nvkm_ltc *, int, const u32);52#endif53