1*f3d7a033Snjoly /* $NetBSD: linux_mmap.h,v 1.9 2015/03/14 08:32:08 njoly Exp $ */ 2ad1f9288Serh 3ad1f9288Serh /*- 4ad1f9288Serh * Copyright (c) 1998 The NetBSD Foundation, Inc. 5ad1f9288Serh * All rights reserved. 6ad1f9288Serh * 7ad1f9288Serh * This code is derived from software contributed to The NetBSD Foundation 8ad1f9288Serh * by Eric Haszlakiewicz. 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 32ad1f9288Serh #ifndef _MIPS_LINUX_MMAP_H 33ad1f9288Serh #define _MIPS_LINUX_MMAP_H 34ad1f9288Serh 356ca52a17Smanu /* 362207c506Smanu * LINUX_PROT_* defined in common/linux_mmap.h 372207c506Smanu * LINUX_MAP_SHARED/PRIVATE defined in common/linux_mmap.h 386ca52a17Smanu */ 39ad1f9288Serh 4054eff3d5Smanu /* 4154eff3d5Smanu * From Linux's include/asm-mips/mman.h 4254eff3d5Smanu */ 43ad1f9288Serh #define LINUX_MAP_FIXED 0x0010 4454eff3d5Smanu #define LINUX_MAP_ANON 0x0800 /* MAP_ANONYMOUS for Linux */ 45*f3d7a033Snjoly #define LINUX_MAP_LOCKED 0x8000 46ad1f9288Serh 47ad1f9288Serh /* Ignored */ 48ad1f9288Serh #define LINUX_MAP_RENAME 0x0020 49ad1f9288Serh #define LINUX_MAP_AUTOGROW 0x0040 50ad1f9288Serh #define LINUX_MAP_LOCAL 0x0080 51ad1f9288Serh #define LINUX_MAP_AUTORSRV 0x0100 52ad1f9288Serh #define LINUX_MAP_NORESERVE 0x0400 53ad1f9288Serh #define LINUX_MAP_GROWSDOWN 0x1000 54ad1f9288Serh #define LINUX_MAP_DENYWRITE 0x2000 55ad1f9288Serh #define LINUX_MAP_EXECUTABLE 0x4000 56ad1f9288Serh 57ad1f9288Serh #endif /* !_MIPS_LINUX_MMAP_H */ 58