summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2021-02-06 11:41:07 +0300
committerBen Skeggs <bskeggs@redhat.com>2021-02-11 04:49:56 +0300
commit64f7c698bea9cf84cb224fd4352964c2af7252d9 (patch)
tree43fd0a092f175c28d117ef97e44da61a794711a0 /drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h
parentab0db2bd853d4a61bf440d2846b046a1d11ce027 (diff)
downloadlinux-64f7c698bea9cf84cb224fd4352964c2af7252d9.tar.xz
drm/nouveau/fifo: add engine_id hook
Will be used by common code in subsequent commits to replace arrays indexed by subdev index. 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/channv04.h')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h
index 60ca79465aff..dbff7a44dbd8 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv04.h
@@ -9,6 +9,10 @@ struct nv04_fifo_chan {
struct nvkm_fifo_chan base;
struct nv04_fifo *fifo;
u32 ramfc;
+#define NV04_FIFO_ENGN_SW 0
+#define NV04_FIFO_ENGN_GR 1
+#define NV04_FIFO_ENGN_MPEG 2
+#define NV04_FIFO_ENGN_DMA 3
struct nvkm_gpuobj *engn[NVKM_SUBDEV_NR];
};