OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ia64/] [mman.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _ASM_IA64_MMAN_H
2
#define _ASM_IA64_MMAN_H
3
 
4
/*
5
 * Based on <asm-i386/mman.h>.
6
 *
7
 * Modified 1998-2000
8
 *      David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
9
 */
10
 
11
#define PROT_READ       0x1             /* page can be read */
12
#define PROT_WRITE      0x2             /* page can be written */
13
#define PROT_EXEC       0x4             /* page can be executed */
14
#define PROT_NONE       0x0             /* page can not be accessed */
15
 
16
#define MAP_SHARED      0x01            /* Share changes */
17
#define MAP_PRIVATE     0x02            /* Changes are private */
18
#define MAP_TYPE        0x0f            /* Mask for type of mapping */
19
#define MAP_FIXED       0x10            /* Interpret addr exactly */
20
#define MAP_ANONYMOUS   0x20            /* don't use a file */
21
 
22
#define MAP_GROWSDOWN   0x0100          /* stack-like segment */
23
#define MAP_GROWSUP     0x0200          /* register stack-like segment */
24
#define MAP_DENYWRITE   0x0800          /* ETXTBSY */
25
#define MAP_EXECUTABLE  0x1000          /* mark it as an executable */
26
#define MAP_LOCKED      0x2000          /* pages are locked */
27
#define MAP_NORESERVE   0x4000          /* don't check for reservations */
28
#define MAP_WRITECOMBINED 0x10000       /* write-combine the area */
29
#define MAP_NONCACHED   0x20000         /* don't cache the memory */
30
 
31
#define MS_ASYNC        1               /* sync memory asynchronously */
32
#define MS_INVALIDATE   2               /* invalidate the caches */
33
#define MS_SYNC         4               /* synchronous memory sync */
34
 
35
#define MCL_CURRENT     1               /* lock all current mappings */
36
#define MCL_FUTURE      2               /* lock all future mappings */
37
 
38
#define MADV_NORMAL     0x0             /* default page-in behavior */
39
#define MADV_RANDOM     0x1             /* page-in minimum required */
40
#define MADV_SEQUENTIAL 0x2             /* read-ahead aggressively */
41
#define MADV_WILLNEED   0x3             /* pre-fault pages */
42
#define MADV_DONTNEED   0x4             /* discard these pages */
43
 
44
/* compatibility flags */
45
#define MAP_ANON        MAP_ANONYMOUS
46
#define MAP_FILE        0
47
 
48
#endif /* _ASM_IA64_MMAN_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.