diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2021-02-06 11:41:07 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2021-02-11 04:49:56 +0300 |
commit | 64f7c698bea9cf84cb224fd4352964c2af7252d9 (patch) | |
tree | 43fd0a092f175c28d117ef97e44da61a794711a0 /drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h | |
parent | ab0db2bd853d4a61bf440d2846b046a1d11ce027 (diff) | |
download | linux-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/changk104.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h index 22698661aa85..56e56db93a55 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h +++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h @@ -16,7 +16,8 @@ struct gk104_fifo_chan { struct nvkm_memory *mthd; - struct { +#define GK104_FIFO_ENGN_SW 15 + struct gk104_fifo_engn { struct nvkm_gpuobj *inst; struct nvkm_vma *vma; } engn[NVKM_SUBDEV_NR]; |