No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / arm / ep93xx / ep93xx_busdma.c
blob2d2d22584babb511476f04ec097cdab8f0d0fcf9
1 /* $NetBSD: ep93xx_busdma.c,v 1.2 2005/12/11 12:16:45 christos Exp $ */
3 /*
4 * Copyright (c) 2004 Jesse Off
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY FUJITSU COMPONENT LIMITED AND GENETEC
17 * CORPORATION ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 * DISCLAIMED. IN NO EVENT SHALL FUJITSU COMPONENT LIMITED OR GENETEC
21 * CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
24 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
27 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
32 * bus_dma tag for EP93xx CPUs
35 #include <sys/cdefs.h>
36 __KERNEL_RCSID(0, "$NetBSD: ep93xx_busdma.c,v 1.2 2005/12/11 12:16:45 christos Exp $");
38 #include <sys/param.h>
39 #include <sys/types.h>
40 #include <sys/device.h>
41 #include <sys/systm.h>
42 #include <sys/extent.h>
44 #define _ARM32_BUS_DMA_PRIVATE
45 #include <machine/bus.h>
47 #include <arm/ep93xx/ep93xxvar.h>
49 struct arm32_bus_dma_tag ep93xx_bus_dma = {
50 NULL, /* _ranges: set by platform specific routine */
51 0, /* _nranges */
53 NULL, /* _cookie */
55 _bus_dmamap_create,
56 _bus_dmamap_destroy,
57 _bus_dmamap_load,
58 _bus_dmamap_load_mbuf,
59 _bus_dmamap_load_uio,
60 _bus_dmamap_load_raw,
61 _bus_dmamap_unload,
62 _bus_dmamap_sync,
63 NULL, /* sync_post */
65 _bus_dmamem_alloc,
66 _bus_dmamem_free,
67 _bus_dmamem_map,
68 _bus_dmamem_unmap,
69 _bus_dmamem_mmap,