From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/include/linux/raid/xor.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ANDROID_3.4.5/include/linux/raid/xor.h (limited to 'ANDROID_3.4.5/include/linux/raid/xor.h') diff --git a/ANDROID_3.4.5/include/linux/raid/xor.h b/ANDROID_3.4.5/include/linux/raid/xor.h new file mode 100644 index 00000000..5a210959 --- /dev/null +++ b/ANDROID_3.4.5/include/linux/raid/xor.h @@ -0,0 +1,22 @@ +#ifndef _XOR_H +#define _XOR_H + +#define MAX_XOR_BLOCKS 4 + +extern void xor_blocks(unsigned int count, unsigned int bytes, + void *dest, void **srcs); + +struct xor_block_template { + struct xor_block_template *next; + const char *name; + int speed; + void (*do_2)(unsigned long, unsigned long *, unsigned long *); + void (*do_3)(unsigned long, unsigned long *, unsigned long *, + unsigned long *); + void (*do_4)(unsigned long, unsigned long *, unsigned long *, + unsigned long *, unsigned long *); + void (*do_5)(unsigned long, unsigned long *, unsigned long *, + unsigned long *, unsigned long *, unsigned long *); +}; + +#endif -- cgit