xref: /openbmc/linux/arch/s390/include/asm/maccess.h (revision cc3519b8)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_S390_MACCESS_H
3 #define __ASM_S390_MACCESS_H
4 
5 #include <linux/types.h>
6 
7 #define MEMCPY_REAL_SIZE	PAGE_SIZE
8 #define MEMCPY_REAL_MASK	PAGE_MASK
9 
10 struct iov_iter;
11 
12 extern unsigned long __memcpy_real_area;
13 extern pte_t *memcpy_real_ptep;
14 size_t memcpy_real_iter(struct iov_iter *iter, unsigned long src, size_t count);
15 int memcpy_real(void *dest, unsigned long src, size_t count);
16 #ifdef CONFIG_CRASH_DUMP
17 int copy_oldmem_kernel(void *dst, unsigned long src, size_t count);
18 #endif
19 
20 #endif /* __ASM_S390_MACCESS_H */
21