/*1* Linux/PA-RISC Project (http://www.parisc-linux.org/)2* Copyright (C) 1999,2003 Matthew Wilcox < willy at debian . org >3* portions from "linux/ioctl.h for Linux" by H.H. Bergman.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/192021#ifndef _ASM_PARISC_IOCTL_H22#define _ASM_PARISC_IOCTL_H2324/* ioctl command encoding: 32 bits total, command in lower 16 bits,25* size of the parameter structure in the lower 14 bits of the26* upper 16 bits.27* Encoding the size of the parameter structure in the ioctl request28* is useful for catching programs compiled with old versions29* and to avoid overwriting user space outside the user buffer area.30* The highest 2 bits are reserved for indicating the ``access mode''.31* NOTE: This limits the max parameter size to 16kB -1 !32*/3334/*35* Direction bits.36*/37#define _IOC_NONE 0U38#define _IOC_WRITE 2U39#define _IOC_READ 1U4041#include <asm-generic/ioctl.h>4243#endif /* _ASM_PARISC_IOCTL_H */444546