aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_pcie.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-14 13:44:51 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-14 13:44:51 -0700
commitf563a50d145848ed296b63c63422caff80232ddf (patch)
tree06314f86f54633a3e4f343800f43a997442e8bc5 /linux-core/xgi_pcie.c
parent7b12174aacd09a991be3e74a3db47534961a6887 (diff)
Eliminate unused / useless ioctls.
Diffstat (limited to 'linux-core/xgi_pcie.c')
-rw-r--r--linux-core/xgi_pcie.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/linux-core/xgi_pcie.c b/linux-core/xgi_pcie.c
index a0f52740..b4d204c1 100644
--- a/linux-core/xgi_pcie.c
+++ b/linux-core/xgi_pcie.c
@@ -157,35 +157,3 @@ void *xgi_find_pcie_virt(struct xgi_info * info, u32 address)
return ((u8 *) info->dev->sg->virtual) + offset;
}
-
-/*
- address -- GE hw address
-*/
-int xgi_test_rwinkernel_ioctl(struct drm_device * dev, void * data,
- struct drm_file * filp)
-{
- struct xgi_info *info = dev->dev_private;
- u32 address = *(u32 *) data;
- u32 *virtaddr = 0;
-
-
- DRM_INFO("input GE HW addr is 0x%x\n", address);
-
- if (address == 0) {
- return -EFAULT;
- }
-
- virtaddr = (u32 *)xgi_find_pcie_virt(info, address);
-
- DRM_INFO("convert to CPU virt addr 0x%p\n", virtaddr);
-
- if (virtaddr != NULL) {
- DRM_INFO("original [virtaddr] = 0x%x\n", *virtaddr);
- *virtaddr = 0x00f00fff;
- DRM_INFO("modified [virtaddr] = 0x%x\n", *virtaddr);
- } else {
- return -EFAULT;
- }
-
- return 0;
-}