make usb miniports not to use old header
[reactos.git] / reactos / 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 #ifndef __USE_W32API
17
18 #define SEC_BASED (0x00200000)
19 #define SEC_NO_CHANGE (0x00400000)
20 #define SEC_FILE (0x00800000)
21 #define SEC_IMAGE (0x01000000)
22 #define SEC_VLM (0x02000000)
23 #define SEC_RESERVE (0x04000000)
24 #define SEC_COMMIT (0x08000000)
25 #define SEC_NOCACHE (0x10000000)
26 #define PAGE_NOACCESS (1)
27 #define PAGE_READONLY (2)
28 #define PAGE_READWRITE (4)
29 #define PAGE_WRITECOPY (8)
30 #define PAGE_EXECUTE (16)
31 #define PAGE_EXECUTE_READ (32)
32 #define PAGE_EXECUTE_READWRITE (64)
33 #define PAGE_EXECUTE_WRITECOPY (128)
34 #define PAGE_GUARD (256)
35 #define PAGE_NOCACHE (512)
36 #define PAGE_WRITECOMBINE (1024)
37 #define MEM_COMMIT (4096)
38 #define MEM_FREE (65536)
39 #define MEM_RESERVE (8192)
40 #define MEM_IMAGE (16777216)
41 #define MEM_MAPPED (262144)
42 #define MEM_PRIVATE (131072)
43 #define MEM_DECOMMIT (16384)
44 #define MEM_RELEASE (32768)
45 #define MEM_TOP_DOWN (1048576)
46 #define EXCEPTION_GUARD_PAGE (0x80000001L)
47 #define SECTION_EXTEND_SIZE (0x10)
48 #define SECTION_MAP_EXECUTE (0x8)
49 #define SECTION_MAP_READ (0x4)
50 #define SECTION_MAP_WRITE (0x2)
51 #define SECTION_QUERY (0x1)
52 #define SECTION_ALL_ACCESS (0xf001fL)
53
54 #define FILE_MAP_ALL_ACCESS (0xf001fL)
55 #define FILE_MAP_READ (4)
56 #define FILE_MAP_WRITE (2)
57 #define FILE_MAP_COPY (1)
58
59 #else /* __USE_W32API */
60
61 #include <ddk/ntifs.h>
62
63 #endif /* __USE_W32API */
64
65 #define PAGE_ROUND_UP(x) ( (((ULONG_PTR)x)%PAGE_SIZE) ? ((((ULONG_PTR)x)&(~(PAGE_SIZE-1)))+PAGE_SIZE) : ((ULONG_PTR)x) )
66 #define PAGE_ROUND_DOWN(x) (((ULONG_PTR)x)&(~(PAGE_SIZE-1)))
67
68 #endif /* __INCLUDE_MM_H */