1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef __ASM_MEM_ENCRYPT_H 3 #define __ASM_MEM_ENCRYPT_H 4 5 struct arm64_mem_crypt_ops { 6 int (*encrypt)(unsigned long addr, int numpages); 7 int (*decrypt)(unsigned long addr, int numpages); 8 }; 9 10 int arm64_mem_crypt_ops_register(const struct arm64_mem_crypt_ops *ops); 11 12 int set_memory_encrypted(unsigned long addr, int numpages); 13 int set_memory_decrypted(unsigned long addr, int numpages); 14 15 #endif /* __ASM_MEM_ENCRYPT_H */ 16