aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_pcie.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-09 15:30:36 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-09 15:30:36 -0700
commitaea6b4dea9708f66f5fc2068fe84407682570aca (patch)
treed2a4e20c903edc89ddb8e49847be309f6451a224 /linux-core/xgi_pcie.c
parent25cb876f8513d02d4d189371eaa8b7b9a88e860d (diff)
Unify alloc and free ioctls.
The DRM_XGI_PCIE_ALLOC and DRM_XGI_FB_ALLOC ioctls (and the matching free ioctls) are unified to DRM_XGI_ALLOC. The desired memory region is selected by xgi_mem_alloc::location. The region is magically encoded in xgi_mem_alloc::index, which is used to release the memory. Bump to version 0.11.0. This update requires a new DDX.
Diffstat (limited to 'linux-core/xgi_pcie.c')
-rw-r--r--linux-core/xgi_pcie.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index 281223b3..4ec9b6ff 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -140,27 +140,6 @@ int xgi_pcie_heap_init(struct xgi_info * info)
}
-int xgi_pcie_alloc_ioctl(struct drm_device * dev, void * data,
- struct drm_file * filp)
-{
- struct xgi_mem_alloc *const alloc =
- (struct xgi_mem_alloc *) data;
- struct xgi_info *info = dev->dev_private;
-
- alloc->location = XGI_MEMLOC_NON_LOCAL;
- return xgi_alloc(info, alloc, filp);
-}
-
-
-int xgi_pcie_free_ioctl(struct drm_device * dev, void * data,
- struct drm_file * filp)
-{
- struct xgi_info *info = dev->dev_private;
-
- return xgi_free(info, XGI_MEMLOC_NON_LOCAL | *(u32 *) data, filp);
-}
-
-
/**
* xgi_find_pcie_virt
* @address: GE HW address