Deleted Added
full compact
raid5n.h (149871) raid5n.h (190809)
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/hptmv/raid5n.h 149871 2005-09-07 23:33:26Z scottl $
26 * $FreeBSD: head/sys/dev/hptmv/raid5n.h 190809 2009-04-07 16:38:25Z delphij $
27 */
28#ifdef _RAID5N_
29
30/* OS provided function, call only at initialization time */
31extern void * HPTLIBAPI os_alloc_page(_VBUS_ARG0); /* may be cached memory */
32extern void * HPTLIBAPI os_alloc_dma_page(_VBUS_ARG0); /* must be non-cached memory */
33/* implement if the driver can be unloaded */
34void HPTLIBAPI os_free_page(_VBUS_ARG void *p);

--- 21 unchanged lines hidden (view full) ---

56
57/* DoXor1, DoXor2 provided by platform dependent code */
58void HPTLIBAPI DoXor1(ULONG *p0, ULONG *p1, ULONG *p2, UINT nBytes);
59void HPTLIBAPI DoXor2(ULONG *p0, ULONG *p2, UINT nBytes);
60#define max_xor_way 2
61#define xor_init(arg) 0
62#define xor_add_item(handle, dest, src, nsrc, bytes) \
63 do {\
27 */
28#ifdef _RAID5N_
29
30/* OS provided function, call only at initialization time */
31extern void * HPTLIBAPI os_alloc_page(_VBUS_ARG0); /* may be cached memory */
32extern void * HPTLIBAPI os_alloc_dma_page(_VBUS_ARG0); /* must be non-cached memory */
33/* implement if the driver can be unloaded */
34void HPTLIBAPI os_free_page(_VBUS_ARG void *p);

--- 21 unchanged lines hidden (view full) ---

56
57/* DoXor1, DoXor2 provided by platform dependent code */
58void HPTLIBAPI DoXor1(ULONG *p0, ULONG *p1, ULONG *p2, UINT nBytes);
59void HPTLIBAPI DoXor2(ULONG *p0, ULONG *p2, UINT nBytes);
60#define max_xor_way 2
61#define xor_init(arg) 0
62#define xor_add_item(handle, dest, src, nsrc, bytes) \
63 do {\
64 if (((void**)src)[0]==dest)\
65 DoXor2((PULONG)(dest), ((PULONG *)src)[1], bytes);\
64 if (((void**)(src))[0]==dest)\
65 DoXor2((PULONG)(dest), ((PULONG *)(src))[1], bytes);\
66 else\
66 else\
67 DoXor1((PULONG)(dest), ((PULONG *)src)[0], ((PULONG *)src)[1], bytes);\
67 DoXor1((PULONG)(dest), ((PULONG *)(src))[0], ((PULONG *)(src))[1], bytes);\
68 } while(0)
69#define xor_exec(handle, done, tag) done(_VBUS_P tag, 0)
70#define xor_poll()
71
72
73/* set before calling init_raid5_memory */
74extern UINT num_raid5_pages;
75

--- 50 unchanged lines hidden ---
68 } while(0)
69#define xor_exec(handle, done, tag) done(_VBUS_P tag, 0)
70#define xor_poll()
71
72
73/* set before calling init_raid5_memory */
74extern UINT num_raid5_pages;
75

--- 50 unchanged lines hidden ---