xref: /netbsd/sys/arch/arm/imx/imx_dma.c (revision 71034770)
1*71034770Sskrll /*	$NetBSD: imx_dma.c,v 1.4 2022/09/27 06:36:42 skrll Exp $ */
248914f07Sbsh 
348914f07Sbsh /*
448914f07Sbsh  * Copyright (c) 2009  Genetec Corporation.  All rights reserved.
548914f07Sbsh  * Written by Hashimoto Kenichi for Genetec Corporation.
648914f07Sbsh  *
748914f07Sbsh  * Redistribution and use in source and binary forms, with or without
848914f07Sbsh  * modification, are permitted provided that the following conditions
948914f07Sbsh  * are met:
1048914f07Sbsh  * 1. Redistributions of source code must retain the above copyright
1148914f07Sbsh  *    notice, this list of conditions and the following disclaimer.
1248914f07Sbsh  * 2. Redistributions in binary form must reproduce the above copyright
1348914f07Sbsh  *    notice, this list of conditions and the following disclaimer in the
1448914f07Sbsh  *    documentation and/or other materials provided with the distribution.
1548914f07Sbsh  *
1648914f07Sbsh  * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
1748914f07Sbsh  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1848914f07Sbsh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1948914f07Sbsh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL GENETEC CORPORATION
2048914f07Sbsh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2148914f07Sbsh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2248914f07Sbsh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2348914f07Sbsh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2448914f07Sbsh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2548914f07Sbsh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2648914f07Sbsh  * POSSIBILITY OF SUCH DAMAGE.
2748914f07Sbsh  */
2848914f07Sbsh 
2948914f07Sbsh /*
3048914f07Sbsh  * bus dma tag for i.MX31 processor.
3148914f07Sbsh  * (Currently used only for LCD frame buffer)
3248914f07Sbsh  */
3348914f07Sbsh 
3448914f07Sbsh #include <sys/cdefs.h>
35*71034770Sskrll __KERNEL_RCSID(0, "$NetBSD: imx_dma.c,v 1.4 2022/09/27 06:36:42 skrll Exp $");
3648914f07Sbsh 
3748914f07Sbsh #include <sys/param.h>
3848914f07Sbsh #include <sys/systm.h>
3948914f07Sbsh #include <sys/device.h>
4048914f07Sbsh #include <sys/mbuf.h>
4148914f07Sbsh 
4248914f07Sbsh #include <uvm/uvm_extern.h>
4348914f07Sbsh 
4448914f07Sbsh #define	_ARM32_BUS_DMA_PRIVATE
45af51edd2Sdyoung #include <sys/bus.h>
4648914f07Sbsh 
4748914f07Sbsh struct arm32_bus_dma_tag imx_bus_dma_tag = {
48e26eebddSmatt 	_BUS_DMAMAP_FUNCS,
49e26eebddSmatt 	_BUS_DMAMEM_FUNCS,
50e26eebddSmatt 	_BUS_DMATAG_FUNCS,
5148914f07Sbsh };
5248914f07Sbsh 
53