summaryrefslogtreecommitdiff
path: root/include/asm-s390x/ioctl32.h
blob: 55f4d3ec19b09cb3f7f01f2167be9b7929f36484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * include/asm-s390/ioctl32.h
 * include/asm-s390x/ioctl32.h
 *
 *         Copyright (C) 2003 IBM Corporation
 *         Author: Arnd Bergmann <arndb@de.ibm.com>
 */
#ifndef ASM_IOCTL32_H
#define ASM_IOCTL32_H

extern int sys_ioctl(unsigned int, unsigned int, unsigned long, struct file*);
typedef int (*ioctl_trans_handler_t)(unsigned int, unsigned int, unsigned long, struct file *);

#ifdef CONFIG_S390_SUPPORT

extern int
register_ioctl32_conversion(unsigned int cmd, ioctl_trans_handler_t handler);

extern void
unregister_ioctl32_conversion(unsigned int cmd);

#else

static inline int
register_ioctl32_conversion(unsigned int cmd, ioctl_trans_handler_t handler)
{
	return 0;
}

static inline void 
unregister_ioctl32_conversion(unsigned int cmd)
{
}

#endif /* CONFIG_S390_SUPPORT */
#endif /* ASM_IOCTL32_H */