1*ce099b40Smartin /* $NetBSD: linux_ioctl.h,v 1.2 2008/04/28 20:23:43 martin Exp $ */ 2fcf1fa00Smanu 3fcf1fa00Smanu /*- 4fcf1fa00Smanu * Copyright (c) 1995, 1998, 2001 The NetBSD Foundation, Inc. 5fcf1fa00Smanu * All rights reserved. 6fcf1fa00Smanu * 7fcf1fa00Smanu * This code is derived from software contributed to The NetBSD Foundation 8fcf1fa00Smanu * by Frank van der Linden, Eric Haszlakiewicz, and Emmanuel Dreyfus. 9fcf1fa00Smanu * 10fcf1fa00Smanu * Redistribution and use in source and binary forms, with or without 11fcf1fa00Smanu * modification, are permitted provided that the following conditions 12fcf1fa00Smanu * are met: 13fcf1fa00Smanu * 1. Redistributions of source code must retain the above copyright 14fcf1fa00Smanu * notice, this list of conditions and the following disclaimer. 15fcf1fa00Smanu * 2. Redistributions in binary form must reproduce the above copyright 16fcf1fa00Smanu * notice, this list of conditions and the following disclaimer in the 17fcf1fa00Smanu * documentation and/or other materials provided with the distribution. 18fcf1fa00Smanu * 19fcf1fa00Smanu * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20fcf1fa00Smanu * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21fcf1fa00Smanu * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22fcf1fa00Smanu * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23fcf1fa00Smanu * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24fcf1fa00Smanu * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25fcf1fa00Smanu * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26fcf1fa00Smanu * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27fcf1fa00Smanu * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28fcf1fa00Smanu * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29fcf1fa00Smanu * POSSIBILITY OF SUCH DAMAGE. 30fcf1fa00Smanu */ 31fcf1fa00Smanu 32fcf1fa00Smanu #ifndef _MIPS_LINUX_IOCTL_H 33fcf1fa00Smanu #define _MIPS_LINUX_IOCTL_H 34fcf1fa00Smanu 35fcf1fa00Smanu /* From Linux's include/asm-mips/ioctl.h */ 36fcf1fa00Smanu #define _LINUX_IOC_NRBITS 8 37fcf1fa00Smanu #define _LINUX_IOC_TYPEBITS 8 38fcf1fa00Smanu #define _LINUX_IOC_SIZEBITS 13 39fcf1fa00Smanu #define _LINUX_IOC_DIRBITS 3 40fcf1fa00Smanu 41fcf1fa00Smanu #define _LINUX_IOC_NRSHIFT 0 42fcf1fa00Smanu 43fcf1fa00Smanu #define _LINUX_IOC_NONE 1U 44fcf1fa00Smanu #define _LINUX_IOC_READ 2U 45fcf1fa00Smanu #define _LINUX_IOC_WRITE 4U 46fcf1fa00Smanu 47fcf1fa00Smanu #endif /* !_MIPS_LINUX_IOCTL_H */ 48