s3c2xx0_busdma.c revision 1.4.12.1 1 1.4.12.1 tls /* $NetBSD: s3c2xx0_busdma.c,v 1.4.12.1 2012/11/20 03:01:07 tls Exp $ */
2 1.1 bsh
3 1.2 bsh /*
4 1.2 bsh * Copyright (c) 2002, 2003 Fujitsu Component Limited
5 1.2 bsh * Copyright (c) 2002, 2003 Genetec Corporation
6 1.2 bsh * All rights reserved.
7 1.2 bsh *
8 1.2 bsh * Redistribution and use in source and binary forms, with or without
9 1.2 bsh * modification, are permitted provided that the following conditions
10 1.2 bsh * are met:
11 1.2 bsh * 1. Redistributions of source code must retain the above copyright
12 1.2 bsh * notice, this list of conditions and the following disclaimer.
13 1.2 bsh * 2. Redistributions in binary form must reproduce the above copyright
14 1.2 bsh * notice, this list of conditions and the following disclaimer in the
15 1.2 bsh * documentation and/or other materials provided with the distribution.
16 1.2 bsh * 3. Neither the name of The Fujitsu Component Limited nor the name of
17 1.2 bsh * Genetec corporation may not be used to endorse or promote products
18 1.2 bsh * derived from this software without specific prior written permission.
19 1.2 bsh *
20 1.2 bsh * THIS SOFTWARE IS PROVIDED BY FUJITSU COMPONENT LIMITED AND GENETEC
21 1.2 bsh * CORPORATION ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
22 1.2 bsh * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23 1.2 bsh * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 1.2 bsh * DISCLAIMED. IN NO EVENT SHALL FUJITSU COMPONENT LIMITED OR GENETEC
25 1.2 bsh * CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 1.2 bsh * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 1.2 bsh * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
28 1.2 bsh * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29 1.2 bsh * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30 1.2 bsh * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31 1.2 bsh * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 1.2 bsh * SUCH DAMAGE.
33 1.2 bsh */
34 1.1 bsh
35 1.1 bsh /*
36 1.1 bsh * bus_dma tag for s3c2xx0 CPUs
37 1.1 bsh */
38 1.1 bsh
39 1.1 bsh #include <sys/cdefs.h>
40 1.4.12.1 tls __KERNEL_RCSID(0, "$NetBSD: s3c2xx0_busdma.c,v 1.4.12.1 2012/11/20 03:01:07 tls Exp $");
41 1.1 bsh
42 1.1 bsh #include <sys/param.h>
43 1.1 bsh #include <sys/types.h>
44 1.1 bsh #include <sys/device.h>
45 1.1 bsh #include <sys/systm.h>
46 1.1 bsh #include <sys/extent.h>
47 1.1 bsh
48 1.1 bsh #define _ARM32_BUS_DMA_PRIVATE
49 1.4 dyoung #include <sys/bus.h>
50 1.1 bsh
51 1.1 bsh #include <arm/s3c2xx0/s3c2xx0var.h>
52 1.1 bsh
53 1.1 bsh struct arm32_bus_dma_tag s3c2xx0_bus_dma = {
54 1.4.12.1 tls _BUS_DMAMAP_FUNCS,
55 1.4.12.1 tls _BUS_DMAMEM_FUNCS,
56 1.4.12.1 tls _BUS_DMATAG_FUNCS,
57 1.1 bsh };
58