[PATCH] add ->compat_ioctl to dasd
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / parisc / kernel / ioctl32.c
blob805f31486cf9ab5096f122cb34ebf2285fc62ee3
1 /* $Id: ioctl32.c,v 1.5 2002/10/18 00:21:43 varenet Exp $
2 * ioctl32.c: Conversion between 32bit and 64bit native ioctls.
4 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
5 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
7 * These routines maintain argument size conversion between 32bit and 64bit
8 * ioctls.
9 */
11 #include <linux/syscalls.h>
13 #define INCLUDES
14 #include "compat_ioctl.c"
16 #include <asm/perf.h>
17 #include <asm/ioctls.h>
19 #define CODE
20 #include "compat_ioctl.c"
22 #define HANDLE_IOCTL(cmd, handler) { cmd, (ioctl_trans_handler_t)handler, NULL },
23 #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL(cmd, sys_ioctl)
25 #define IOCTL_TABLE_START struct ioctl_trans ioctl_start[] = {
26 #define IOCTL_TABLE_END };
28 IOCTL_TABLE_START
29 #include <linux/compat_ioctl.h>
31 #define DECLARES
32 #include "compat_ioctl.c"
34 /* And these ioctls need translation */
35 HANDLE_IOCTL(SIOCGPPPSTATS, dev_ifsioc)
36 HANDLE_IOCTL(SIOCGPPPCSTATS, dev_ifsioc)
37 HANDLE_IOCTL(SIOCGPPPVER, dev_ifsioc)
39 IOCTL_TABLE_END
41 int ioctl_table_size = ARRAY_SIZE(ioctl_start);