xref: /netbsd-src/sys/arch/hpcmips/vr/vrdmaauvar.h (revision 9f2314954ae26035149c2e442d5cea93bc860644)
1*9f231495Stakemura /*
2*9f231495Stakemura  * Copyright (c) 2001 HAMAJIMA Katsuomi. All rights reserved.
3*9f231495Stakemura  *
4*9f231495Stakemura  * Redistribution and use in source and binary forms, with or without
5*9f231495Stakemura  * modification, are permitted provided that the following conditions
6*9f231495Stakemura  * are met:
7*9f231495Stakemura  * 1. Redistributions of source code must retain the above copyright
8*9f231495Stakemura  *    notice, this list of conditions and the following disclaimer.
9*9f231495Stakemura  * 2. Redistributions in binary form must reproduce the above copyright
10*9f231495Stakemura  *    notice, this list of conditions and the following disclaimer in the
11*9f231495Stakemura  *    documentation and/or other materials provided with the distribution.
12*9f231495Stakemura  *
13*9f231495Stakemura  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14*9f231495Stakemura  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15*9f231495Stakemura  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16*9f231495Stakemura  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17*9f231495Stakemura  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18*9f231495Stakemura  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19*9f231495Stakemura  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20*9f231495Stakemura  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21*9f231495Stakemura  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22*9f231495Stakemura  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23*9f231495Stakemura  * SUCH DAMAGE.
24*9f231495Stakemura  */
25*9f231495Stakemura 
26*9f231495Stakemura #define VRDMAAU_BOUNCE_THRESHOLD	(64 * 1024 * 1024)
27*9f231495Stakemura #define VRDMAAU_ALIGNMENT		(1 << 10)
28*9f231495Stakemura 
29*9f231495Stakemura struct vrdmaau_chipset_tag;
30*9f231495Stakemura typedef struct vrdmaau_chipset_tag *vrdmaau_chipset_tag_t;
31*9f231495Stakemura struct vrdmaau_chipset_tag {
32*9f231495Stakemura 	void	*ac_sc;
33*9f231495Stakemura 	int	(*ac_set_aiuin)(vrdmaau_chipset_tag_t, void *);
34*9f231495Stakemura 	int	(*ac_set_aiuout)(vrdmaau_chipset_tag_t, void *);
35*9f231495Stakemura 	int	(*ac_set_fir)(vrdmaau_chipset_tag_t, void *);
36*9f231495Stakemura };
37