122851890Sopenharmony_ci/*
222851890Sopenharmony_ci * This header was generated from the Linux kernel headers by update_headers.py,
322851890Sopenharmony_ci * to provide necessary information from kernel to userspace, such as constants,
422851890Sopenharmony_ci * structures, and macros, and thus, contains no copyrightable information.
522851890Sopenharmony_ci */
622851890Sopenharmony_ci#ifndef __ASM_GENERIC_MMAN_COMMON_H
722851890Sopenharmony_ci#define __ASM_GENERIC_MMAN_COMMON_H
822851890Sopenharmony_ci#define PROT_READ	0x1
922851890Sopenharmony_ci#define PROT_WRITE	0x2
1022851890Sopenharmony_ci#define PROT_EXEC	0x4
1122851890Sopenharmony_ci#define PROT_SEM	0x8
1222851890Sopenharmony_ci#define PROT_NONE	0x0
1322851890Sopenharmony_ci#define PROT_GROWSDOWN	0x01000000
1422851890Sopenharmony_ci#define PROT_GROWSUP	0x02000000
1522851890Sopenharmony_ci#define MAP_SHARED	0x01
1622851890Sopenharmony_ci#define MAP_PRIVATE	0x02
1722851890Sopenharmony_ci#define MAP_SHARED_VALIDATE 0x03
1822851890Sopenharmony_ci#define MAP_TYPE	0x0f
1922851890Sopenharmony_ci#define MAP_FIXED	0x10
2022851890Sopenharmony_ci#define MAP_ANONYMOUS	0x20
2122851890Sopenharmony_ci#ifdef CONFIG_MMAP_ALLOW_UNINITIALIZED
2222851890Sopenharmony_ci# define MAP_UNINITIALIZED 0x4000000
2322851890Sopenharmony_ci#else
2422851890Sopenharmony_ci# define MAP_UNINITIALIZED 0x0
2522851890Sopenharmony_ci#endif
2622851890Sopenharmony_ci#define MAP_FIXED_NOREPLACE	0x100000
2722851890Sopenharmony_ci#define MLOCK_ONFAULT	0x01
2822851890Sopenharmony_ci#define MS_ASYNC	1
2922851890Sopenharmony_ci#define MS_INVALIDATE	2
3022851890Sopenharmony_ci#define MS_SYNC		4
3122851890Sopenharmony_ci#define MADV_NORMAL	0
3222851890Sopenharmony_ci#define MADV_RANDOM	1
3322851890Sopenharmony_ci#define MADV_SEQUENTIAL	2
3422851890Sopenharmony_ci#define MADV_WILLNEED	3
3522851890Sopenharmony_ci#define MADV_DONTNEED	4
3622851890Sopenharmony_ci#define MADV_FREE	8
3722851890Sopenharmony_ci#define MADV_REMOVE	9
3822851890Sopenharmony_ci#define MADV_DONTFORK	10
3922851890Sopenharmony_ci#define MADV_DOFORK	11
4022851890Sopenharmony_ci#define MADV_HWPOISON	100
4122851890Sopenharmony_ci#define MADV_SOFT_OFFLINE 101
4222851890Sopenharmony_ci#define MADV_MERGEABLE   12
4322851890Sopenharmony_ci#define MADV_UNMERGEABLE 13
4422851890Sopenharmony_ci#define MADV_HUGEPAGE	14
4522851890Sopenharmony_ci#define MADV_NOHUGEPAGE	15
4622851890Sopenharmony_ci#define MADV_DONTDUMP   16
4722851890Sopenharmony_ci#define MADV_DODUMP	17
4822851890Sopenharmony_ci#define MADV_WIPEONFORK 18
4922851890Sopenharmony_ci#define MADV_KEEPONFORK 19
5022851890Sopenharmony_ci#define MAP_FILE	0
5122851890Sopenharmony_ci#define PKEY_DISABLE_ACCESS	0x1
5222851890Sopenharmony_ci#define PKEY_DISABLE_WRITE	0x2
5322851890Sopenharmony_ci#define PKEY_ACCESS_MASK	(PKEY_DISABLE_ACCESS |\
5422851890Sopenharmony_ci				 PKEY_DISABLE_WRITE)
5522851890Sopenharmony_ci#endif
56