From 6397722f1990856a9ee268cadd65d78b44b24835 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 28 Jun 2005 13:02:20 +0000 Subject: add compat code from Paul Mackerras --- linux-core/drmP.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index ff2af8cf..9c0e5b84 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -274,6 +274,9 @@ do { \ typedef int drm_ioctl_t(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); +typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd, + unsigned long arg); + typedef struct drm_ioctl_desc { drm_ioctl_t *func; int auth_needed; @@ -758,6 +761,9 @@ extern void __exit drm_exit(struct drm_driver *driver); extern void __exit drm_cleanup_pci(struct pci_dev *pdev); extern int drm_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); +extern long drm_compat_ioctl(struct file *filp, + unsigned int cmd, unsigned long arg); + extern int drm_takedown(drm_device_t * dev); /* Device support (drm_fops.h) */ -- cgit v1.2.3