1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Copyright 2018 IBM Corporation
8 #ifndef _ASM_POWERPC_MEM_ENCRYPT_H
9 #define _ASM_POWERPC_MEM_ENCRYPT_H
13 static inline bool force_dma_unencrypted(struct device *dev)
15 return is_secure_guest();
18 int set_memory_encrypted(unsigned long addr, int numpages);
19 int set_memory_decrypted(unsigned long addr, int numpages);
21 #endif /* _ASM_POWERPC_MEM_ENCRYPT_H */