summaryrefslogtreecommitdiff
path: root/src/g80_dma.h
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-02-16 16:11:13 -0800
committerAaron Plattner <aplattner@nvidia.com>2007-03-08 18:02:07 -0800
commit23383c2c2e1aa590f69197b1860053d5cb710cf7 (patch)
tree51f52a41d53fdc28521381708f513538e0e9f3ca /src/g80_dma.h
parentdd305c3f64f9267d54324d734f1028bfc00e474f (diff)
Initial G80 support. Bump to 1.99.1.
Diffstat (limited to 'src/g80_dma.h')
-rw-r--r--src/g80_dma.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/g80_dma.h b/src/g80_dma.h
new file mode 100644
index 0000000..52031da
--- /dev/null
+++ b/src/g80_dma.h
@@ -0,0 +1,14 @@
+#define SKIPS 8
+
+#define G80DmaNext(pNv, data) \
+ (pNv)->dmaBase[(pNv)->dmaCurrent++] = (data)
+
+#define G80DmaStart(pNv, tag, size) { \
+ if((pNv)->dmaFree <= (size)) \
+ G80DmaWait(pNv, size); \
+ G80DmaNext(pNv, ((size) << 18) | (tag)); \
+ (pNv)->dmaFree -= ((size) + 1); \
+}
+
+void G80DmaKickoff(G80Ptr pNv);
+void G80DmaWait(G80Ptr pNv, int size);