18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
48c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
58c2ecf20Sopenharmony_ci * for more details.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (C) 1995, 96, 99, 2001 Ralf Baechle <ralf@linux-mips.org>
88c2ecf20Sopenharmony_ci * Copyright (C) 2009 Wind River Systems
98c2ecf20Sopenharmony_ci * Written by Ralf Baechle <ralf@linux-mips.org>
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci#ifndef __ASM_IOCTL_H
128c2ecf20Sopenharmony_ci#define __ASM_IOCTL_H
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define _IOC_SIZEBITS	13
158c2ecf20Sopenharmony_ci#define _IOC_DIRBITS	3
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci/*
188c2ecf20Sopenharmony_ci * Direction bits _IOC_NONE could be 0, but OSF/1 gives it a bit.
198c2ecf20Sopenharmony_ci * And this turns out useful to catch old ioctl numbers in header
208c2ecf20Sopenharmony_ci * files for us.
218c2ecf20Sopenharmony_ci */
228c2ecf20Sopenharmony_ci#define _IOC_NONE	1U
238c2ecf20Sopenharmony_ci#define _IOC_READ	2U
248c2ecf20Sopenharmony_ci#define _IOC_WRITE	4U
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#include <asm-generic/ioctl.h>
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#endif /* __ASM_IOCTL_H */
29