Displaying 1 result from an estimated 1 matches for "put_base".
Did you mean:
pt_base
2007 May 24
0
[PATCH] add comments to nv_local.h
...et)
#if defined(__i386__)
#define _NV_FENCE() outb(0x3D0, 0);
@@ -69,15 +69,21 @@
#define _NV_FENCE() mem_barrier();
#endif
+/* READ_GET returns the location in the push buffer (FIFO) the gpu is
+ * currently reading from
+ */
+#define READ_GET(pNv) (((pNv)->FIFO[0x0011] - (pNv)->fifo.put_base) >> 2)
-#define READ_GET(pNv) (((pNv)->FIFO[0x0011] - pNv->fifo.put_base) >> 2)
+/* WRITE_PUT tells the gpu that there's valid commands in the push buffer
+ * (FIFO) up until offset "data"
+ */
#if NV_DMA_DEBUG == 1
#define WRITE_PUT(pNv, data) { \
volat...