xref: /openbmc/linux/arch/ia64/include/asm/xor.h (revision 23c2b932)
1 /*
2  * Optimized RAID-5 checksumming functions for IA-64.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  * You should have received a copy of the GNU General Public License
10  * (for example /usr/src/linux/COPYING); if not, write to the Free
11  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
12  */
13 
14 
15 extern void xor_ia64_2(unsigned long, unsigned long *, unsigned long *);
16 extern void xor_ia64_3(unsigned long, unsigned long *, unsigned long *,
17 		       unsigned long *);
18 extern void xor_ia64_4(unsigned long, unsigned long *, unsigned long *,
19 		       unsigned long *, unsigned long *);
20 extern void xor_ia64_5(unsigned long, unsigned long *, unsigned long *,
21 		       unsigned long *, unsigned long *, unsigned long *);
22 
23 static struct xor_block_template xor_block_ia64 = {
24 	.name =	"ia64",
25 	.do_2 =	xor_ia64_2,
26 	.do_3 =	xor_ia64_3,
27 	.do_4 =	xor_ia64_4,
28 	.do_5 =	xor_ia64_5,
29 };
30 
31 #define XOR_TRY_TEMPLATES	xor_speed(&xor_block_ia64)
32