File Index
Files and directories
Sign in
FILE

mem_encrypt.h

File preview with syntax highlighting.

linux-6.19.14/arch/powerpc/include/asm/mem_encrypt.h C
 1/* SPDX-License-Identifier: GPL-2.0+ */
 2/*
 3 * SVM helper functions
 4 *
 5 * Copyright 2018 IBM Corporation
 6 */
 7
 8#ifndef _ASM_POWERPC_MEM_ENCRYPT_H
 9#define _ASM_POWERPC_MEM_ENCRYPT_H
10
11#include <asm/svm.h>
12#include <linux/types.h>
13
14struct device;
15
16static inline bool force_dma_unencrypted(struct device *dev)
17{
18	return is_secure_guest();
19}
20
21int set_memory_encrypted(unsigned long addr, int numpages);
22int set_memory_decrypted(unsigned long addr, int numpages);
23
24#endif /* _ASM_POWERPC_MEM_ENCRYPT_H */
~/ Read-only file preview.