1*f3d7a033Snjoly /* $NetBSD: linux_mmap.h,v 1.7 2015/03/14 08:32:08 njoly Exp $ */ 2ad1f9288Serh 3ad1f9288Serh /*- 43ec12572Smanu * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. 5ad1f9288Serh * All rights reserved. 6ad1f9288Serh * 7ad1f9288Serh * This code is derived from software contributed to The NetBSD Foundation 83ec12572Smanu * by Eric Haszlakiewicz and Emmanuel Dreyfus. 9ad1f9288Serh * 10ad1f9288Serh * Redistribution and use in source and binary forms, with or without 11ad1f9288Serh * modification, are permitted provided that the following conditions 12ad1f9288Serh * are met: 13ad1f9288Serh * 1. Redistributions of source code must retain the above copyright 14ad1f9288Serh * notice, this list of conditions and the following disclaimer. 15ad1f9288Serh * 2. Redistributions in binary form must reproduce the above copyright 16ad1f9288Serh * notice, this list of conditions and the following disclaimer in the 17ad1f9288Serh * documentation and/or other materials provided with the distribution. 18ad1f9288Serh * 19ad1f9288Serh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20ad1f9288Serh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21ad1f9288Serh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22ad1f9288Serh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23ad1f9288Serh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24ad1f9288Serh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25ad1f9288Serh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26ad1f9288Serh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27ad1f9288Serh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28ad1f9288Serh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29ad1f9288Serh * POSSIBILITY OF SUCH DAMAGE. 30ad1f9288Serh */ 31ad1f9288Serh 323ec12572Smanu #ifndef _POWERPC_LINUX_MMAP_H 333ec12572Smanu #define _POWERPC_LINUX_MMAP_H 34ad1f9288Serh 353ec12572Smanu /* 363ec12572Smanu * LINUX_PROT_* are defined in common/linux_mmap.h 373ec12572Smanu * LINUX_MAP_SHARED/PRIVATE are defined in common/linux_mmap.h 383ec12572Smanu */ 39ad1f9288Serh 403ec12572Smanu /* 413ec12572Smanu * From Linux's include/asm-ppc/mman.h 423ec12572Smanu */ 43ad1f9288Serh #define LINUX_MAP_FIXED 0x0010 44ad1f9288Serh #define LINUX_MAP_ANON 0x0020 45*f3d7a033Snjoly #define LINUX_MAP_LOCKED 0x0080 46ad1f9288Serh 47ad1f9288Serh /* Ignored */ 48ad1f9288Serh #define LINUX_MAP_NORESERVE 0x0040 49ad1f9288Serh #define LINUX_MAP_GROWSDOWN 0x0100 50ad1f9288Serh #define LINUX_MAP_DENYWRITE 0x0800 51ad1f9288Serh #define LINUX_MAP_EXECUTABLE 0x1000 52ad1f9288Serh 533ec12572Smanu #endif /* !_POWERPC_LINUX_MMAP_H */ 54