xref: /linux/arch/riscv/kernel/copy-unaligned.h (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2023 Rivos, Inc.
4  */
5 #ifndef __RISCV_KERNEL_COPY_UNALIGNED_H
6 #define __RISCV_KERNEL_COPY_UNALIGNED_H
7 
8 #include <linux/types.h>
9 
10 void __riscv_copy_words_unaligned(void *dst, const void *src, size_t size);
11 void __riscv_copy_bytes_unaligned(void *dst, const void *src, size_t size);
12 
13 #ifdef CONFIG_RISCV_PROBE_VECTOR_UNALIGNED_ACCESS
14 void __riscv_copy_vec_words_unaligned(void *dst, const void *src, size_t size);
15 void __riscv_copy_vec_bytes_unaligned(void *dst, const void *src, size_t size);
16 #endif
17 
18 #endif /* __RISCV_KERNEL_COPY_UNALIGNED_H */
19