ioctl.h 781 B

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