diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2007-02-16 16:11:13 -0800 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2007-03-08 18:02:07 -0800 |
commit | 23383c2c2e1aa590f69197b1860053d5cb710cf7 (patch) | |
tree | 51f52a41d53fdc28521381708f513538e0e9f3ca /src/g80_dma.h | |
parent | dd305c3f64f9267d54324d734f1028bfc00e474f (diff) |
Initial G80 support. Bump to 1.99.1.
Diffstat (limited to 'src/g80_dma.h')
-rw-r--r-- | src/g80_dma.h | 14 |
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); |