xref: /openbmc/linux/tools/arch/alpha/include/uapi/asm/mman.h (revision 597473720f4dc69749542bfcfed4a927a43d935e)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2f3539c12SWang Nan #ifndef TOOLS_ARCH_ALPHA_UAPI_ASM_MMAN_FIX_H
3f3539c12SWang Nan #define TOOLS_ARCH_ALPHA_UAPI_ASM_MMAN_FIX_H
4f3539c12SWang Nan #define MADV_DODUMP	17
5f3539c12SWang Nan #define MADV_DOFORK	11
6f3539c12SWang Nan #define MADV_DONTDUMP   16
7f3539c12SWang Nan #define MADV_DONTFORK	10
8f3539c12SWang Nan #define MADV_DONTNEED	6
9f82b7746SWang Nan #define MADV_FREE	8
10f3539c12SWang Nan #define MADV_HUGEPAGE	14
11f3539c12SWang Nan #define MADV_MERGEABLE   12
12f3539c12SWang Nan #define MADV_NOHUGEPAGE	15
13f3539c12SWang Nan #define MADV_NORMAL	0
14f3539c12SWang Nan #define MADV_RANDOM	1
15f3539c12SWang Nan #define MADV_REMOVE	9
16f3539c12SWang Nan #define MADV_SEQUENTIAL	2
17f3539c12SWang Nan #define MADV_UNMERGEABLE 13
18f3539c12SWang Nan #define MADV_WILLNEED	3
19f3539c12SWang Nan #define MAP_ANONYMOUS	0x10
20f3539c12SWang Nan #define MAP_DENYWRITE	0x02000
21f3539c12SWang Nan #define MAP_EXECUTABLE	0x04000
22f3539c12SWang Nan #define MAP_FILE	0
23f3539c12SWang Nan #define MAP_FIXED	0x100
24f3539c12SWang Nan #define MAP_GROWSDOWN	0x01000
25f3539c12SWang Nan #define MAP_HUGETLB	0x100000
26f3539c12SWang Nan #define MAP_LOCKED	0x08000
27f3539c12SWang Nan #define MAP_NONBLOCK	0x40000
28f3539c12SWang Nan #define MAP_NORESERVE	0x10000
29f3539c12SWang Nan #define MAP_POPULATE	0x20000
30f3539c12SWang Nan #define MAP_STACK	0x80000
31f3539c12SWang Nan #define PROT_EXEC	0x4
32f3539c12SWang Nan #define PROT_GROWSDOWN	0x01000000
33f3539c12SWang Nan #define PROT_GROWSUP	0x02000000
34f3539c12SWang Nan #define PROT_NONE	0x0
35f3539c12SWang Nan #define PROT_READ	0x1
36f3539c12SWang Nan #define PROT_SEM	0x8
37f3539c12SWang Nan #define PROT_WRITE	0x2
38f82b7746SWang Nan /* MADV_HWPOISON is undefined on alpha, fix it for perf */
39f82b7746SWang Nan #define MADV_HWPOISON	100
40f82b7746SWang Nan /* MADV_SOFT_OFFLINE is undefined on alpha, fix it for perf */
41f82b7746SWang Nan #define MADV_SOFT_OFFLINE 101
42f82b7746SWang Nan /* MAP_32BIT is undefined on alpha, fix it for perf */
43f82b7746SWang Nan #define MAP_32BIT	0
44f82b7746SWang Nan /* MAP_UNINITIALIZED is undefined on alpha, fix it for perf */
45f82b7746SWang Nan #define MAP_UNINITIALIZED	0
46f3539c12SWang Nan #endif
47