summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h
new file mode 100644
index 000000000000..9019eea4a613
--- /dev/null
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h
@@ -0,0 +1,31 @@
+#ifndef __NV20_GR_H__
+#define __NV20_GR_H__
+
+#include <core/enum.h>
+
+#include <engine/gr.h>
+#include <engine/fifo.h>
+
+struct nv20_gr_priv {
+ struct nouveau_gr base;
+ struct nouveau_gpuobj *ctxtab;
+};
+
+struct nv20_gr_chan {
+ struct nouveau_gr_chan base;
+ int chid;
+};
+
+extern struct nouveau_oclass nv25_gr_sclass[];
+int nv20_gr_context_init(struct nouveau_object *);
+int nv20_gr_context_fini(struct nouveau_object *, bool);
+
+void nv20_gr_tile_prog(struct nouveau_engine *, int);
+void nv20_gr_intr(struct nouveau_subdev *);
+
+void nv20_gr_dtor(struct nouveau_object *);
+int nv20_gr_init(struct nouveau_object *);
+
+int nv30_gr_init(struct nouveau_object *);
+
+#endif