aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_cmdlist.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-09 15:23:13 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-09 15:23:13 -0700
commit25cb876f8513d02d4d189371eaa8b7b9a88e860d (patch)
tree6de640d6a211af99fd990f6a7455bd49d0bb7659 /linux-core/xgi_cmdlist.h
parentf7ba02b7458823627097a2320bf9befa84fc9c76 (diff)
Associate master file pointer with command list buffer.
Pass the master's file pointer, as supplied to xgi_bootstrap, to xgi_cmdlist_initialize. Associate that pointer with the memory allocated for the command list buffer. By doing this the memory will be automatically cleaned up when the master closes the device. This allows the removal of some clean up code.
Diffstat (limited to 'linux-core/xgi_cmdlist.h')
-rw-r--r--linux-core/xgi_cmdlist.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/linux-core/xgi_cmdlist.h b/linux-core/xgi_cmdlist.h
index 604c9aac..07a2eb98 100644
--- a/linux-core/xgi_cmdlist.h
+++ b/linux-core/xgi_cmdlist.h
@@ -72,12 +72,6 @@ struct xgi_cmdring_info {
*/
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;
/**
@@ -88,7 +82,8 @@ struct xgi_cmdring_info {
};
struct xgi_info;
-extern int xgi_cmdlist_initialize(struct xgi_info * info, size_t size);
+extern int xgi_cmdlist_initialize(struct xgi_info * info, size_t size,
+ struct drm_file * filp);
extern int xgi_state_change(struct xgi_info * info, unsigned int to,
unsigned int from);