Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * This file is subject to the terms and conditions of the GNU General Public
0004  * License.  See the file "COPYING" in the main directory of this archive
0005  * for more details.
0006  *
0007  * Copyright (C) 1995, 96, 99, 2001 Ralf Baechle <ralf@linux-mips.org>
0008  * Copyright (C) 2009 Wind River Systems
0009  * Written by Ralf Baechle <ralf@linux-mips.org>
0010  */
0011 #ifndef __ASM_IOCTL_H
0012 #define __ASM_IOCTL_H
0013 
0014 #define _IOC_SIZEBITS   13
0015 #define _IOC_DIRBITS    3
0016 
0017 /*
0018  * Direction bits _IOC_NONE could be 0, but OSF/1 gives it a bit.
0019  * And this turns out useful to catch old ioctl numbers in header
0020  * files for us.
0021  */
0022 #define _IOC_NONE   1U
0023 #define _IOC_READ   2U
0024 #define _IOC_WRITE  4U
0025 
0026 #include <asm-generic/ioctl.h>
0027 
0028 #endif /* __ASM_IOCTL_H */