Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is subject to the terms and conditions of the GNU General Public |
| 3 | * License. See the file "COPYING" in the main directory of this archive |
| 4 | * for more details. |
| 5 | * |
Ralf Baechle | cc906f8 | 2009-06-17 11:06:28 +0100 | [diff] [blame] | 6 | * Copyright (C) 1995, 96, 99, 2001 Ralf Baechle <ralf@linux-mips.org> |
| 7 | * Copyright (C) 2009 Wind River Systems |
| 8 | * Written by Ralf Baechle <ralf@linux-mips.org> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | */ |
Ralf Baechle | cc906f8 | 2009-06-17 11:06:28 +0100 | [diff] [blame] | 10 | #ifndef __ASM_IOCTL_H |
| 11 | #define __ASM_IOCTL_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #define _IOC_SIZEBITS 13 |
| 14 | #define _IOC_DIRBITS 3 |
| 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | * Direction bits _IOC_NONE could be 0, but OSF/1 gives it a bit. |
| 18 | * And this turns out useful to catch old ioctl numbers in header |
| 19 | * files for us. |
| 20 | */ |
| 21 | #define _IOC_NONE 1U |
| 22 | #define _IOC_READ 2U |
| 23 | #define _IOC_WRITE 4U |
| 24 | |
Ralf Baechle | cc906f8 | 2009-06-17 11:06:28 +0100 | [diff] [blame] | 25 | #include <asm-generic/ioctl.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
Ralf Baechle | cc906f8 | 2009-06-17 11:06:28 +0100 | [diff] [blame] | 27 | #endif /* __ASM_IOCTL_H */ |