aboutsummaryrefslogtreecommitdiff
path: root/shared-core/nv50_fifo.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-11-14 03:27:37 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-11-14 03:27:37 +1100
commitd0904f0f2b87c725d3e67060419c445259bd4a5e (patch)
tree0f8721dffc886a1777f0749aed1309bd6bda98fa /shared-core/nv50_fifo.c
parent793cd1dad5e248509a1b09dce7126f236efadb3e (diff)
nouveau: funcs to determine active channel on PFIFO.
Diffstat (limited to 'shared-core/nv50_fifo.c')
-rw-r--r--shared-core/nv50_fifo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shared-core/nv50_fifo.c b/shared-core/nv50_fifo.c
index f77de6e7..c5cde913 100644
--- a/shared-core/nv50_fifo.c
+++ b/shared-core/nv50_fifo.c
@@ -213,6 +213,15 @@ nv50_fifo_takedown(struct drm_device *dev)
}
int
+nv50_fifo_channel_id(struct drm_device *dev)
+{
+ struct drm_nouveau_private *dev_priv = dev->dev_private;
+
+ return (NV_READ(NV03_PFIFO_CACHE1_PUSH1) &
+ NV50_PFIFO_CACHE1_PUSH1_CHID_MASK);
+}
+
+int
nv50_fifo_create_context(struct nouveau_channel *chan)
{
struct drm_device *dev = chan->dev;