diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2022-06-01 12:47:22 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2022-11-09 01:44:47 +0100 |
commit | 9be9c606c4be74b5e8cbebe5b1ea96821e27b04f (patch) | |
tree | 7c53b23365d6ba20a87376fe546e4d1dc4a100c4 /drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h | |
parent | drm/nouveau/fifo: pre-move some blocks of code around (diff) | |
download | linux-9be9c606c4be74b5e8cbebe5b1ea96821e27b04f.tar.xz linux-9be9c606c4be74b5e8cbebe5b1ea96821e27b04f.zip |
drm/nouveau/fifo: merge gk104_fifo_func into nvkm_host_func
This makes it easier to transition everything.
- a couple of function renames for collisions
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h index be426734da02..962187740010 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h @@ -8,6 +8,8 @@ struct nvkm_fifo_cgrp; #include <core/enum.h> #include <subdev/mmu.h> +#define gk104_fifo_func nvkm_fifo_func + struct gk104_fifo_chan; struct gk104_fifo { const struct gk104_fifo_func *func; @@ -45,41 +47,6 @@ struct gk104_fifo { } user; }; -struct gk104_fifo_func { - int (*chid_nr)(struct nvkm_fifo *); - - struct { - void (*fault)(struct nvkm_fifo *, int unit); - } intr; - - const struct gk104_fifo_pbdma_func { - int (*nr)(struct gk104_fifo *); - void (*init)(struct gk104_fifo *); - void (*init_timeout)(struct gk104_fifo *); - } *pbdma; - - struct { - const struct nvkm_enum *access; - const struct nvkm_enum *engine; - const struct nvkm_enum *reason; - const struct nvkm_enum *hubclient; - const struct nvkm_enum *gpcclient; - } fault; - - const struct gk104_fifo_runlist_func { - u8 size; - void (*cgrp)(struct nvkm_fifo_cgrp *, - struct nvkm_memory *, u32 offset); - void (*chan)(struct gk104_fifo_chan *, - struct nvkm_memory *, u32 offset); - void (*commit)(struct gk104_fifo *, int runl, - struct nvkm_memory *, int entries); - } *runlist; - - struct nvkm_fifo_func_cgrp cgrp; - struct nvkm_fifo_func_chan chan; -}; - struct gk104_fifo_engine_status { bool busy; bool faulted; @@ -135,14 +102,12 @@ void gk110_fifo_runlist_cgrp(struct nvkm_fifo_cgrp *, extern const struct gk104_fifo_pbdma_func gk208_fifo_pbdma; void gk208_fifo_pbdma_init_timeout(struct gk104_fifo *); -void gm107_fifo_intr_fault(struct nvkm_fifo *, int); extern const struct nvkm_enum gm107_fifo_fault_engine[]; extern const struct gk104_fifo_runlist_func gm107_fifo_runlist; extern const struct gk104_fifo_pbdma_func gm200_fifo_pbdma; int gm200_fifo_pbdma_nr(struct gk104_fifo *); -void gp100_fifo_intr_fault(struct nvkm_fifo *, int); extern const struct nvkm_enum gp100_fifo_fault_engine[]; extern const struct nvkm_enum gv100_fifo_fault_access[]; |