include upstream ip1000a driver version 2.09f
[linux-2.4.git] / include / asm-s390x / ioctl32.h
1 /*
2  * include/asm-s390/ioctl32.h
3  * include/asm-s390x/ioctl32.h
4  *
5  *         Copyright (C) 2003 IBM Corporation
6  *         Author: Arnd Bergmann <arndb@de.ibm.com>
7  */
8 #ifndef ASM_IOCTL32_H
9 #define ASM_IOCTL32_H
10
11 extern int sys_ioctl(unsigned int, unsigned int, unsigned long, struct file*);
12 typedef int (*ioctl_trans_handler_t)(unsigned int, unsigned int, unsigned long, struct file *);
13
14 #ifdef CONFIG_S390_SUPPORT
15
16 extern int
17 register_ioctl32_conversion(unsigned int cmd, ioctl_trans_handler_t handler);
18
19 extern void
20 unregister_ioctl32_conversion(unsigned int cmd);
21
22 #else
23
24 static inline int
25 register_ioctl32_conversion(unsigned int cmd, ioctl_trans_handler_t handler)
26 {
27         return 0;
28 }
29
30 static inline void 
31 unregister_ioctl32_conversion(unsigned int cmd)
32 {
33 }
34
35 #endif /* CONFIG_S390_SUPPORT */
36 #endif /* ASM_IOCTL32_H */