Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
45 lines
1.6 KiB
C
45 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NVKM_LTC_PRIV_H__
|
|
#define __NVKM_LTC_PRIV_H__
|
|
#define nvkm_ltc(p) container_of((p), struct nvkm_ltc, subdev)
|
|
#include <subdev/ltc.h>
|
|
#include <core/enum.h>
|
|
|
|
int nvkm_ltc_new_(const struct nvkm_ltc_func *, struct nvkm_device *,
|
|
int index, struct nvkm_ltc **);
|
|
|
|
struct nvkm_ltc_func {
|
|
int (*oneinit)(struct nvkm_ltc *);
|
|
void (*init)(struct nvkm_ltc *);
|
|
void (*intr)(struct nvkm_ltc *);
|
|
|
|
void (*cbc_clear)(struct nvkm_ltc *, u32 start, u32 limit);
|
|
void (*cbc_wait)(struct nvkm_ltc *);
|
|
|
|
int zbc;
|
|
void (*zbc_clear_color)(struct nvkm_ltc *, int, const u32[4]);
|
|
void (*zbc_clear_depth)(struct nvkm_ltc *, int, const u32);
|
|
|
|
void (*invalidate)(struct nvkm_ltc *);
|
|
void (*flush)(struct nvkm_ltc *);
|
|
};
|
|
|
|
int gf100_ltc_oneinit(struct nvkm_ltc *);
|
|
int gf100_ltc_oneinit_tag_ram(struct nvkm_ltc *);
|
|
void gf100_ltc_intr(struct nvkm_ltc *);
|
|
void gf100_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
|
|
void gf100_ltc_cbc_wait(struct nvkm_ltc *);
|
|
void gf100_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
|
|
void gf100_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
|
|
void gf100_ltc_invalidate(struct nvkm_ltc *);
|
|
void gf100_ltc_flush(struct nvkm_ltc *);
|
|
extern const struct nvkm_bitfield gf100_ltc_lts_intr_name[];
|
|
|
|
void gm107_ltc_intr(struct nvkm_ltc *);
|
|
void gm107_ltc_intr_lts(struct nvkm_ltc *, int ltc, int lts);
|
|
void gm107_ltc_cbc_clear(struct nvkm_ltc *, u32, u32);
|
|
void gm107_ltc_cbc_wait(struct nvkm_ltc *);
|
|
void gm107_ltc_zbc_clear_color(struct nvkm_ltc *, int, const u32[4]);
|
|
void gm107_ltc_zbc_clear_depth(struct nvkm_ltc *, int, const u32);
|
|
#endif
|