1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2f3539c12SWang Nan #ifndef TOOLS_ARCH_MIPS_UAPI_ASM_MMAN_FIX_H 3f3539c12SWang Nan #define TOOLS_ARCH_MIPS_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 4 9f82b7746SWang Nan #define MADV_FREE 8 10f3539c12SWang Nan #define MADV_HUGEPAGE 14 11f3539c12SWang Nan #define MADV_HWPOISON 100 12f3539c12SWang Nan #define MADV_MERGEABLE 12 13f3539c12SWang Nan #define MADV_NOHUGEPAGE 15 14f3539c12SWang Nan #define MADV_NORMAL 0 15f3539c12SWang Nan #define MADV_RANDOM 1 16f3539c12SWang Nan #define MADV_REMOVE 9 17f3539c12SWang Nan #define MADV_SEQUENTIAL 2 18f3539c12SWang Nan #define MADV_UNMERGEABLE 13 19f3539c12SWang Nan #define MADV_WILLNEED 3 20f3539c12SWang Nan #define MAP_ANONYMOUS 0x0800 21f3539c12SWang Nan #define MAP_DENYWRITE 0x2000 22f3539c12SWang Nan #define MAP_EXECUTABLE 0x4000 23f3539c12SWang Nan #define MAP_FILE 0 24f3539c12SWang Nan #define MAP_FIXED 0x010 25f3539c12SWang Nan #define MAP_GROWSDOWN 0x1000 26f3539c12SWang Nan #define MAP_HUGETLB 0x80000 27f3539c12SWang Nan #define MAP_LOCKED 0x8000 28f3539c12SWang Nan #define MAP_NONBLOCK 0x20000 29f3539c12SWang Nan #define MAP_NORESERVE 0x0400 30f3539c12SWang Nan #define MAP_POPULATE 0x10000 31f3539c12SWang Nan #define MAP_STACK 0x40000 32f3539c12SWang Nan #define PROT_EXEC 0x04 33f3539c12SWang Nan #define PROT_GROWSDOWN 0x01000000 34f3539c12SWang Nan #define PROT_GROWSUP 0x02000000 35f3539c12SWang Nan #define PROT_NONE 0x00 36f3539c12SWang Nan #define PROT_READ 0x01 37f3539c12SWang Nan #define PROT_SEM 0x10 38f3539c12SWang Nan #define PROT_WRITE 0x02 39f82b7746SWang Nan /* MADV_SOFT_OFFLINE is undefined on mips, fix it for perf */ 40f82b7746SWang Nan #define MADV_SOFT_OFFLINE 101 41f82b7746SWang Nan /* MAP_32BIT is undefined on mips, fix it for perf */ 42f82b7746SWang Nan #define MAP_32BIT 0 43f82b7746SWang Nan /* MAP_UNINITIALIZED is undefined on mips, fix it for perf */ 44f82b7746SWang Nan #define MAP_UNINITIALIZED 0 45f3539c12SWang Nan #endif 46