aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_drv.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-09-18 11:03:49 -0700
committerIan Romanick <idr@us.ibm.com>2007-09-18 11:03:49 -0700
commita3881ad2fef99aaf0a863609a847020ea822798c (patch)
treeacc621d0101b97fec63ad601a8da8db88a883cf6 /linux-core/xgi_drv.c
parente7d4a26913ba3a4949ac36280925062948ee21ce (diff)
Add ioc32 compat layer for XGI DRM.
Diffstat (limited to 'linux-core/xgi_drv.c')
-rw-r--r--linux-core/xgi_drv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c
index 84547f62..bc6873a9 100644
--- a/linux-core/xgi_drv.c
+++ b/linux-core/xgi_drv.c
@@ -48,7 +48,7 @@ static struct drm_fence_driver xgi_fence_driver = {
.has_irq = xgi_fence_has_irq
};
-static int xgi_bootstrap(struct drm_device *, void *, struct drm_file *);
+int xgi_bootstrap(struct drm_device *, void *, struct drm_file *);
static struct drm_ioctl_desc xgi_ioctls[] = {
DRM_IOCTL_DEF(DRM_XGI_BOOTSTRAP, xgi_bootstrap, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
@@ -97,6 +97,9 @@ static struct drm_driver driver = {
.mmap = drm_mmap,
.poll = drm_poll,
.fasync = drm_fasync,
+#if defined(CONFIG_COMPAT) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9)
+ .compat_ioctl = xgi_compat_ioctl,
+#endif
},
.pci_driver = {