xref: /linux/arch/arm64/include/asm/set_memory.h (revision 9208c05f9fdfd927ea160b97dfef3c379049fff2)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _ASM_ARM64_SET_MEMORY_H
4 #define _ASM_ARM64_SET_MEMORY_H
5 
6 #include <asm/mem_encrypt.h>
7 #include <asm-generic/set_memory.h>
8 
9 bool can_set_direct_map(void);
10 #define can_set_direct_map can_set_direct_map
11 
12 int set_memory_valid(unsigned long addr, int numpages, int enable);
13 
14 int set_direct_map_invalid_noflush(struct page *page);
15 int set_direct_map_default_noflush(struct page *page);
16 int set_direct_map_valid_noflush(struct page *page, unsigned nr, bool valid);
17 bool kernel_page_present(struct page *page);
18 
19 int set_memory_encrypted(unsigned long addr, int numpages);
20 int set_memory_decrypted(unsigned long addr, int numpages);
21 
22 #endif /* _ASM_ARM64_SET_MEMORY_H */
23