xref: /OK3568_Linux_fs/kernel/arch/mips/include/uapi/asm/ioctl.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General Public
4*4882a593Smuzhiyun  * License.  See the file "COPYING" in the main directory of this archive
5*4882a593Smuzhiyun  * for more details.
6*4882a593Smuzhiyun  *
7*4882a593Smuzhiyun  * Copyright (C) 1995, 96, 99, 2001 Ralf Baechle <ralf@linux-mips.org>
8*4882a593Smuzhiyun  * Copyright (C) 2009 Wind River Systems
9*4882a593Smuzhiyun  * Written by Ralf Baechle <ralf@linux-mips.org>
10*4882a593Smuzhiyun  */
11*4882a593Smuzhiyun #ifndef __ASM_IOCTL_H
12*4882a593Smuzhiyun #define __ASM_IOCTL_H
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun #define _IOC_SIZEBITS	13
15*4882a593Smuzhiyun #define _IOC_DIRBITS	3
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun /*
18*4882a593Smuzhiyun  * Direction bits _IOC_NONE could be 0, but OSF/1 gives it a bit.
19*4882a593Smuzhiyun  * And this turns out useful to catch old ioctl numbers in header
20*4882a593Smuzhiyun  * files for us.
21*4882a593Smuzhiyun  */
22*4882a593Smuzhiyun #define _IOC_NONE	1U
23*4882a593Smuzhiyun #define _IOC_READ	2U
24*4882a593Smuzhiyun #define _IOC_WRITE	4U
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #include <asm-generic/ioctl.h>
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif /* __ASM_IOCTL_H */
29