Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / raid / xor.h
blob2a9fee8ddae3f961b52d26ba79c1fe6ae78fc73e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _XOR_H
3 #define _XOR_H
5 #define MAX_XOR_BLOCKS 4
7 extern void xor_blocks(unsigned int count, unsigned int bytes,
8 void *dest, void **srcs);
10 struct xor_block_template {
11 struct xor_block_template *next;
12 const char *name;
13 int speed;
14 void (*do_2)(unsigned long, unsigned long *, unsigned long *);
15 void (*do_3)(unsigned long, unsigned long *, unsigned long *,
16 unsigned long *);
17 void (*do_4)(unsigned long, unsigned long *, unsigned long *,
18 unsigned long *, unsigned long *);
19 void (*do_5)(unsigned long, unsigned long *, unsigned long *,
20 unsigned long *, unsigned long *, unsigned long *);
23 #endif