xref: /linux/lib/raid/xor/arm/xor_arch.h (revision 440d6635b20037bc9ad46b20817d7b61cef0fc1b)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *  Copyright (C) 2001 Russell King
4  */
5 #include <asm/neon.h>
6 
7 extern struct xor_block_template xor_block_arm4regs;
8 extern struct xor_block_template xor_block_neon;
9 
10 void xor_gen_neon_inner(void *dest, void **srcs, unsigned int src_cnt,
11 		unsigned int bytes);
12 
13 static __always_inline void __init arch_xor_init(void)
14 {
15 	xor_register(&xor_block_arm4regs);
16 	xor_register(&xor_block_8regs);
17 	xor_register(&xor_block_32regs);
18 #ifdef CONFIG_KERNEL_MODE_NEON
19 	if (cpu_has_neon())
20 		xor_register(&xor_block_neon);
21 #endif
22 }
23