xref: /netbsd-src/sys/arch/arm/arm/arm_generic_dma.c (revision eabbe28c9b25eca9a4e928f314f37184319026e2)
1*eabbe28cSryo /* $NetBSD: arm_generic_dma.c,v 1.1 2018/03/17 18:34:09 ryo Exp $ */
2*eabbe28cSryo 
3*eabbe28cSryo /*-
4*eabbe28cSryo  * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
5*eabbe28cSryo  * All rights reserved.
6*eabbe28cSryo  *
7*eabbe28cSryo  * Redistribution and use in source and binary forms, with or without
8*eabbe28cSryo  * modification, are permitted provided that the following conditions
9*eabbe28cSryo  * are met:
10*eabbe28cSryo  * 1. Redistributions of source code must retain the above copyright
11*eabbe28cSryo  *    notice, this list of conditions and the following disclaimer.
12*eabbe28cSryo  * 2. Redistributions in binary form must reproduce the above copyright
13*eabbe28cSryo  *    notice, this list of conditions and the following disclaimer in the
14*eabbe28cSryo  *    documentation and/or other materials provided with the distribution.
15*eabbe28cSryo  *
16*eabbe28cSryo  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17*eabbe28cSryo  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18*eabbe28cSryo  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19*eabbe28cSryo  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20*eabbe28cSryo  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21*eabbe28cSryo  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22*eabbe28cSryo  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23*eabbe28cSryo  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24*eabbe28cSryo  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*eabbe28cSryo  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*eabbe28cSryo  * SUCH DAMAGE.
27*eabbe28cSryo  */
28*eabbe28cSryo 
29*eabbe28cSryo #include <sys/cdefs.h>
30*eabbe28cSryo __KERNEL_RCSID(0, "$NetBSD: arm_generic_dma.c,v 1.1 2018/03/17 18:34:09 ryo Exp $");
31*eabbe28cSryo 
32*eabbe28cSryo #define	_ARM32_BUS_DMA_PRIVATE
33*eabbe28cSryo 
34*eabbe28cSryo #include <sys/param.h>
35*eabbe28cSryo #include <sys/bus.h>
36*eabbe28cSryo 
37*eabbe28cSryo struct arm32_bus_dma_tag arm_generic_dma_tag = {
38*eabbe28cSryo 	_BUS_DMAMAP_FUNCS,
39*eabbe28cSryo 	_BUS_DMAMEM_FUNCS,
40*eabbe28cSryo 	_BUS_DMATAG_FUNCS,
41*eabbe28cSryo };
42