diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-08-10 15:10:34 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-03 13:13:03 +1000 |
commit | 4c2d42225b5024ad88f736608f44b51f702bd4e4 (patch) | |
tree | c2b5c46623538689e636a49f8b57c37229f77c48 /drivers/gpu/drm/nouveau/core/include/engine/fifo.h | |
parent | drm/nouveau/fifo: add method to lookup fifo chid related to a given object (diff) | |
download | linux-dev-4c2d42225b5024ad88f736608f44b51f702bd4e4.tar.xz linux-dev-4c2d42225b5024ad88f736608f44b51f702bd4e4.zip |
drm/nouveau/core: have fifo store a unique context identifier at attach time
This value will match something that's easily available from the engine IRQ
handlers, and used to lookup the relevant context.
Since the changes in how this is done on each generation match when the
major PFIFO changes happened, fifo is responsible for calculating the
correct value to avoid duplicating the same code among many engine modules.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/include/engine/fifo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/engine/fifo.h b/drivers/gpu/drm/nouveau/core/include/engine/fifo.h index f2133872bd7c..d67fed1e3970 100644 --- a/drivers/gpu/drm/nouveau/core/include/engine/fifo.h +++ b/drivers/gpu/drm/nouveau/core/include/engine/fifo.h @@ -106,5 +106,6 @@ extern struct nouveau_oclass nvc0_fifo_oclass; extern struct nouveau_oclass nve0_fifo_oclass; void nv04_fifo_intr(struct nouveau_subdev *); +int nv04_fifo_context_attach(struct nouveau_object *, struct nouveau_object *); #endif |