aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_cmdlist.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-07-21 21:35:06 -0700
committerIan Romanick <idr@us.ibm.com>2007-07-21 21:35:06 -0700
commit1a0775760c0eecbb238f0e928b185c267c1c3783 (patch)
treef7cb54bc41e6d755edf8b88e463ba1d4ba7bc021 /linux-core/xgi_cmdlist.h
parent3265a61f895a1d35072984e9cdc71aad898647fa (diff)
Rename and document fields of xgi_cmdring_info.
Diffstat (limited to 'linux-core/xgi_cmdlist.h')
-rw-r--r--linux-core/xgi_cmdlist.h33
1 files changed, 28 insertions, 5 deletions
diff --git a/linux-core/xgi_cmdlist.h b/linux-core/xgi_cmdlist.h
index 7f2c54ac..5b444cf3 100644
--- a/linux-core/xgi_cmdlist.h
+++ b/linux-core/xgi_cmdlist.h
@@ -59,11 +59,34 @@ typedef enum {
} CMD_SIZE;
struct xgi_cmdring_info {
- unsigned int _cmdRingSize;
- u32 _cmdRingBuffer;
- unsigned long _cmdRingAllocOffset;
- u32 _lastBatchStartAddr;
- u32 _cmdRingOffset;
+ /**
+ * Kernel space pointer to the base of the command ring.
+ */
+ u32 * ptr;
+
+ /**
+ * Size, in bytes, of the command ring.
+ */
+ unsigned int size;
+
+ /**
+ * Base address of the command ring from the hardware's PoV.
+ */
+ unsigned int ring_hw_base;
+
+ /**
+ * Offset, in bytes, from the base of PCI-e GART space to the start
+ * of the ring.
+ */
+ unsigned long ring_gart_base;
+
+ u32 * last_ptr;
+
+ /**
+ * Offset, in bytes, from the start of the ring to the next available
+ * location to store a command.
+ */
+ unsigned int ring_offset;
};
struct xgi_info;