/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */1/*2* Linux/PA-RISC Project (http://www.parisc-linux.org/)3* Copyright (C) 1999,2003 Matthew Wilcox < willy at debian . org >4* portions from "linux/ioctl.h for Linux" by H.H. Bergman.5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/202122#ifndef _ASM_PARISC_IOCTL_H23#define _ASM_PARISC_IOCTL_H2425/* ioctl command encoding: 32 bits total, command in lower 16 bits,26* size of the parameter structure in the lower 14 bits of the27* upper 16 bits.28* Encoding the size of the parameter structure in the ioctl request29* is useful for catching programs compiled with old versions30* and to avoid overwriting user space outside the user buffer area.31* The highest 2 bits are reserved for indicating the ``access mode''.32* NOTE: This limits the max parameter size to 16kB -1 !33*/3435/*36* Direction bits.37*/38#define _IOC_NONE 0U39#define _IOC_WRITE 2U40#define _IOC_READ 1U4142#include <asm-generic/ioctl.h>4344#endif /* _ASM_PARISC_IOCTL_H */454647