diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dma.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_dma.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.h b/drivers/gpu/drm/nouveau/nouveau_dma.h index d578c21d3c8d..c118a331b5bc 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dma.h +++ b/drivers/gpu/drm/nouveau/nouveau_dma.h | |||
@@ -125,6 +125,12 @@ extern void | |||
125 | OUT_RINGp(struct nouveau_channel *chan, const void *data, unsigned nr_dwords); | 125 | OUT_RINGp(struct nouveau_channel *chan, const void *data, unsigned nr_dwords); |
126 | 126 | ||
127 | static inline void | 127 | static inline void |
128 | BEGIN_NVC0(struct nouveau_channel *chan, int op, int subc, int mthd, int size) | ||
129 | { | ||
130 | OUT_RING(chan, (op << 28) | (size << 16) | (subc << 13) | (mthd >> 2)); | ||
131 | } | ||
132 | |||
133 | static inline void | ||
128 | BEGIN_RING(struct nouveau_channel *chan, int subc, int mthd, int size) | 134 | BEGIN_RING(struct nouveau_channel *chan, int subc, int mthd, int size) |
129 | { | 135 | { |
130 | OUT_RING(chan, (subc << 13) | (size << 18) | mthd); | 136 | OUT_RING(chan, (subc << 13) | (size << 18) | mthd); |