Index: compat/linux/linux_ioctl.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_ioctl.c,v retrieving revision 1.55.2.10 diff -u -r1.55.2.10 linux_ioctl.c --- compat/linux/linux_ioctl.c 11 Feb 2002 04:48:51 -0000 1.55.2.10 +++ compat/linux/linux_ioctl.c 25 Apr 2003 04:03:20 -0000 @@ -66,6 +66,7 @@ static linux_ioctl_function_t linux_ioctl_sound; static linux_ioctl_function_t linux_ioctl_termio; static linux_ioctl_function_t linux_ioctl_private; +static linux_ioctl_function_t linux_ioctl_drm; static linux_ioctl_function_t linux_ioctl_special; static struct linux_ioctl_handler cdrom_handler = @@ -82,6 +83,8 @@ { linux_ioctl_termio, LINUX_IOCTL_TERMIO_MIN, LINUX_IOCTL_TERMIO_MAX }; static struct linux_ioctl_handler private_handler = { linux_ioctl_private, LINUX_IOCTL_PRIVATE_MIN, LINUX_IOCTL_PRIVATE_MAX }; +static struct linux_ioctl_handler drm_handler = +{ linux_ioctl_drm, LINUX_IOCTL_DRM_MIN, LINUX_IOCTL_DRM_MAX }; DATA_SET(linux_ioctl_handler_set, cdrom_handler); DATA_SET(linux_ioctl_handler_set, console_handler); @@ -90,6 +93,7 @@ DATA_SET(linux_ioctl_handler_set, sound_handler); DATA_SET(linux_ioctl_handler_set, termio_handler); DATA_SET(linux_ioctl_handler_set, private_handler); +DATA_SET(linux_ioctl_handler_set, drm_handler); struct handler_element { @@ -1787,6 +1791,16 @@ if (type == DTYPE_SOCKET) return (linux_ioctl_socket(p, args)); return (ENOIOCTL); +} + +/* + * DRM ioctl handler (sys/dev/drm) + */ +static int +linux_ioctl_drm(struct proc *p, struct linux_ioctl_args *args) +{ + args->cmd = SETDIR(args->cmd); + return ioctl(p, (struct ioctl_args *)args); } /* Index: compat/linux/linux_ioctl.h =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_ioctl.h,v retrieving revision 1.4.2.3 diff -u -r1.4.2.3 linux_ioctl.h --- compat/linux/linux_ioctl.h 22 Nov 2001 12:36:33 -0000 1.4.2.3 +++ compat/linux/linux_ioctl.h 25 Apr 2003 03:33:15 -0000 @@ -624,6 +624,9 @@ #define LINUX_ASYNC_CALLOUT_NOHUP 0x0400 #define LINUX_ASYNC_FLAGS 0x0FFF +#define LINUX_IOCTL_DRM_MIN 0x6400 +#define LINUX_IOCTL_DRM_MAX 0x64ff + /* * This doesn't really belong here, but I can't think of a better * place to put it.