xref: /netbsd-src/sys/compat/linux/arch/m68k/linux_mmap.h (revision f3d7a033fe713d0b8732f4d8613069d5a995a5f7)
1*f3d7a033Snjoly /*	$NetBSD: linux_mmap.h,v 1.5 2015/03/14 08:32:08 njoly Exp $	*/
20176ca73Sitohy 
30176ca73Sitohy /*-
40176ca73Sitohy  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
50176ca73Sitohy  * All rights reserved.
60176ca73Sitohy  *
70176ca73Sitohy  * This code is derived from software contributed to The NetBSD Foundation
80176ca73Sitohy  * by Frank van der Linden and Eric Haszlakiewicz.
90176ca73Sitohy  *
100176ca73Sitohy  * Redistribution and use in source and binary forms, with or without
110176ca73Sitohy  * modification, are permitted provided that the following conditions
120176ca73Sitohy  * are met:
130176ca73Sitohy  * 1. Redistributions of source code must retain the above copyright
140176ca73Sitohy  *    notice, this list of conditions and the following disclaimer.
150176ca73Sitohy  * 2. Redistributions in binary form must reproduce the above copyright
160176ca73Sitohy  *    notice, this list of conditions and the following disclaimer in the
170176ca73Sitohy  *    documentation and/or other materials provided with the distribution.
180176ca73Sitohy  *
190176ca73Sitohy  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
200176ca73Sitohy  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
210176ca73Sitohy  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
220176ca73Sitohy  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
230176ca73Sitohy  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
240176ca73Sitohy  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
250176ca73Sitohy  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
260176ca73Sitohy  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
270176ca73Sitohy  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
280176ca73Sitohy  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
290176ca73Sitohy  * POSSIBILITY OF SUCH DAMAGE.
300176ca73Sitohy  */
310176ca73Sitohy 
320176ca73Sitohy #ifndef _M68K_LINUX_MMAP_H
330176ca73Sitohy #define _M68K_LINUX_MMAP_H
340176ca73Sitohy 
350176ca73Sitohy /* LINUX_PROT_* defined in common/linux_mmap.h */
360176ca73Sitohy 
370176ca73Sitohy /* LINUX_MAP_SHARED/PRIVATE defined in common/linux_mmap.h */
380176ca73Sitohy 
390176ca73Sitohy #define LINUX_MAP_FIXED		0x0010
400176ca73Sitohy #define LINUX_MAP_ANON		0x0020
41*f3d7a033Snjoly #define LINUX_MAP_LOCKED	0x2000
420176ca73Sitohy 
430176ca73Sitohy /* the following flags are silently ignored */
440176ca73Sitohy 
450176ca73Sitohy #define LINUX_MAP_GROWSDOWN	0x0100
460176ca73Sitohy #define LINUX_MAP_DENYWRITE	0x0800
470176ca73Sitohy #define LINUX_MAP_EXECUTABLE	0x1000
480176ca73Sitohy #define LINUX_MAP_NORESERVE	0x4000
490176ca73Sitohy 
500176ca73Sitohy #endif /* !_M68K_LINUX_MMAP_H */
51