]> Git Repo - J-linux.git/blob - arch/arm64/include/asm/mem_encrypt.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / arch / arm64 / include / asm / mem_encrypt.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ASM_MEM_ENCRYPT_H
3 #define __ASM_MEM_ENCRYPT_H
4
5 #include <asm/rsi.h>
6
7 struct arm64_mem_crypt_ops {
8         int (*encrypt)(unsigned long addr, int numpages);
9         int (*decrypt)(unsigned long addr, int numpages);
10 };
11
12 int arm64_mem_crypt_ops_register(const struct arm64_mem_crypt_ops *ops);
13
14 int set_memory_encrypted(unsigned long addr, int numpages);
15 int set_memory_decrypted(unsigned long addr, int numpages);
16
17 int realm_register_memory_enc_ops(void);
18
19 static inline bool force_dma_unencrypted(struct device *dev)
20 {
21         return is_realm_world();
22 }
23
24 #endif  /* __ASM_MEM_ENCRYPT_H */
This page took 0.027331 seconds and 4 git commands to generate.