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)
33 lines
886 B
C
33 lines
886 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __GK104_FIFO_CHAN_H__
|
|
#define __GK104_FIFO_CHAN_H__
|
|
#define gk104_fifo_chan(p) container_of((p), struct gk104_fifo_chan, base)
|
|
#include "chan.h"
|
|
#include "gk104.h"
|
|
|
|
struct gk104_fifo_chan {
|
|
struct nvkm_fifo_chan base;
|
|
struct gk104_fifo *fifo;
|
|
int runl;
|
|
|
|
struct list_head head;
|
|
bool killed;
|
|
|
|
struct nvkm_gpuobj *pgd;
|
|
struct nvkm_vm *vm;
|
|
|
|
struct {
|
|
struct nvkm_gpuobj *inst;
|
|
struct nvkm_vma vma;
|
|
} engn[NVKM_SUBDEV_NR];
|
|
};
|
|
|
|
int gk104_fifo_gpfifo_new(struct nvkm_fifo *, const struct nvkm_oclass *,
|
|
void *data, u32 size, struct nvkm_object **);
|
|
|
|
extern const struct nvkm_fifo_chan_oclass gk104_fifo_gpfifo_oclass;
|
|
extern const struct nvkm_fifo_chan_oclass gk110_fifo_gpfifo_oclass;
|
|
extern const struct nvkm_fifo_chan_oclass gm200_fifo_gpfifo_oclass;
|
|
extern const struct nvkm_fifo_chan_oclass gp100_fifo_gpfifo_oclass;
|
|
#endif
|