:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / include / ntos / mm.h
1 /*
2  * COPYRIGHT:    See COPYING in the top level directory
3  * PROJECT:      ReactOS kernel
4  * FILE:         include/mm.h
5  * PURPOSE:      Memory managment declarations used by all the parts of the 
6  *               system
7  * PROGRAMMER:   David Welch <welch@cwcom.net>
8  * UPDATE HISTORY: 
9  *               27/06/00: Created
10  */
11
12
13 #ifndef __INCLUDE_MM_H
14 #define __INCLUDE_MM_H
15
16 #if 0
17 #define SEC_COMMIT      (134217728)
18 #define SEC_IMAGE       (16777216)
19 #define SEC_NOCACHE     (268435456)
20 #define SEC_RESERVE     (67108864)
21 #else
22 #define SEC_BASED       (0x00200000)
23 #define SEC_NO_CHANGE   (0x00400000)
24 #define SEC_IMAGE       (0x01000000)
25 #define SEC_VLM         (0x02000000)
26 #define SEC_RESERVE     (0x04000000)
27 #define SEC_COMMIT      (0x08000000)
28 #define SEC_NOCACHE     (0x10000000)
29 #endif
30 #define PAGE_READONLY   (2)
31 #define PAGE_READWRITE  (4)
32 #define PAGE_WRITECOPY  (8)
33 #define PAGE_EXECUTE    (16)
34 #define PAGE_EXECUTE_READ       (32)
35 #define PAGE_EXECUTE_READWRITE  (64)
36 #define PAGE_EXECUTE_WRITECOPY  (128)
37 #define PAGE_GUARD      (256)
38 #define PAGE_NOACCESS   (1)
39 #define PAGE_NOCACHE    (512)
40 #define MEM_COMMIT      (4096)
41 #define MEM_FREE        (65536)
42 #define MEM_RESERVE     (8192)
43 #define MEM_IMAGE       (16777216)
44 #define MEM_MAPPED      (262144)
45 #define MEM_PRIVATE     (131072)
46 #define MEM_DECOMMIT    (16384)
47 #define MEM_RELEASE     (32768)
48 #define MEM_TOP_DOWN    (1048576)
49 #define EXCEPTION_GUARD_PAGE    (0x80000001L)
50 #define SECTION_EXTEND_SIZE     (0x10)
51 #define SECTION_MAP_EXECUTE     (0x8)
52 #define SECTION_MAP_READ        (0x4)
53 #define SECTION_MAP_WRITE       (0x2)
54 #define SECTION_QUERY           (0x1)
55 #define SECTION_ALL_ACCESS      (0xf001fL)
56
57 #define FILE_MAP_ALL_ACCESS     (0xf001fL)
58 #define FILE_MAP_READ   (4)
59 #define FILE_MAP_WRITE  (2)
60 #define FILE_MAP_COPY   (1)
61
62
63 #endif /* __INCLUDE_MM_H */