1 1.6 thorpej /* $NetBSD: at91_bus_dma.c,v 1.6 2020/06/17 06:48:06 thorpej Exp $ */ 2 1.2 matt 3 1.2 matt /* 4 1.2 matt * Copyright (c) 2004 Jesse Off 5 1.2 matt * All rights reserved. 6 1.2 matt * 7 1.2 matt * Redistribution and use in source and binary forms, with or without 8 1.2 matt * modification, are permitted provided that the following conditions 9 1.2 matt * are met: 10 1.2 matt * 1. Redistributions of source code must retain the above copyright 11 1.2 matt * notice, this list of conditions and the following disclaimer. 12 1.2 matt * 2. Redistributions in binary form must reproduce the above copyright 13 1.2 matt * notice, this list of conditions and the following disclaimer in the 14 1.2 matt * documentation and/or other materials provided with the distribution. 15 1.2 matt * 16 1.2 matt * THIS SOFTWARE IS PROVIDED BY FUJITSU COMPONENT LIMITED AND GENETEC 17 1.2 matt * CORPORATION ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 18 1.2 matt * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 1.2 matt * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 1.2 matt * DISCLAIMED. IN NO EVENT SHALL FUJITSU COMPONENT LIMITED OR GENETEC 21 1.2 matt * CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 1.2 matt * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 1.2 matt * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 24 1.2 matt * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 25 1.2 matt * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 1.2 matt * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 27 1.2 matt * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 1.2 matt * SUCH DAMAGE. 29 1.2 matt */ 30 1.2 matt 31 1.2 matt /* 32 1.2 matt * bus_dma tag for EP93xx CPUs 33 1.2 matt */ 34 1.2 matt 35 1.2 matt #include <sys/cdefs.h> 36 1.6 thorpej __KERNEL_RCSID(0, "$NetBSD: at91_bus_dma.c,v 1.6 2020/06/17 06:48:06 thorpej Exp $"); 37 1.2 matt 38 1.2 matt #include <sys/param.h> 39 1.2 matt #include <sys/types.h> 40 1.2 matt #include <sys/device.h> 41 1.2 matt #include <sys/systm.h> 42 1.2 matt 43 1.2 matt #define _ARM32_BUS_DMA_PRIVATE 44 1.4 dyoung #include <sys/bus.h> 45 1.2 matt 46 1.2 matt #include <arm/at91/at91var.h> 47 1.2 matt 48 1.2 matt struct arm32_bus_dma_tag at91_bd_tag = { 49 1.5 matt _BUS_DMAMAP_FUNCS, 50 1.5 matt _BUS_DMAMEM_FUNCS, 51 1.5 matt _BUS_DMAMAP_FUNCS, 52 1.2 matt }; 53