drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / arm64 / include / asm / mem_encrypt.h
blobb0c9a86b13a46e7e7b29212d5491f974a5107777
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ASM_MEM_ENCRYPT_H
3 #define __ASM_MEM_ENCRYPT_H
5 struct arm64_mem_crypt_ops {
6 int (*encrypt)(unsigned long addr, int numpages);
7 int (*decrypt)(unsigned long addr, int numpages);
8 };
10 int arm64_mem_crypt_ops_register(const struct arm64_mem_crypt_ops *ops);
12 int set_memory_encrypted(unsigned long addr, int numpages);
13 int set_memory_decrypted(unsigned long addr, int numpages);
15 #endif /* __ASM_MEM_ENCRYPT_H */