[BACK]Return to pxa2x0_dma.c CVS log [TXT][DIR] Up to [local] / sys / arch / arm / xscale

Annotation of sys/arch/arm/xscale/pxa2x0_dma.c, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: pxa2x0_dma.c,v 1.3 2005/04/14 23:40:34 pascoe Exp $ */
        !             2: /*     $NetBSD: pxa2x0_dma.c,v 1.3 2003/08/07 16:58:35 bsh Exp $ */
        !             3:
        !             4: /*
        !             5:  * Copyright (c) 2002  Genetec Corporation.  All rights reserved.
        !             6:  * Written by Hiroyuki Bessho for Genetec Corporation.
        !             7:  *
        !             8:  * Redistribution and use in source and binary forms, with or without
        !             9:  * modification, are permitted provided that the following conditions
        !            10:  * are met:
        !            11:  * 1. Redistributions of source code must retain the above copyright
        !            12:  *    notice, this list of conditions and the following disclaimer.
        !            13:  * 2. Redistributions in binary form must reproduce the above copyright
        !            14:  *    notice, this list of conditions and the following disclaimer in the
        !            15:  *    documentation and/or other materials provided with the distribution.
        !            16:  * 3. All advertising materials mentioning features or use of this software
        !            17:  *    must display the following acknowledgement:
        !            18:  *     This product includes software developed for the NetBSD Project by
        !            19:  *     Genetec Corporation.
        !            20:  * 4. The name of Genetec Corporation may not be used to endorse or
        !            21:  *    promote products derived from this software without specific prior
        !            22:  *    written permission.
        !            23:  *
        !            24:  * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
        !            25:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
        !            26:  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
        !            27:  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL GENETEC CORPORATION
        !            28:  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
        !            29:  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
        !            30:  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
        !            31:  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
        !            32:  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
        !            33:  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
        !            34:  * POSSIBILITY OF SUCH DAMAGE.
        !            35:  */
        !            36:
        !            37: /*
        !            38:  * bus dma tag for PXA2[15]0 processor.
        !            39:  */
        !            40:
        !            41: #include <sys/cdefs.h>
        !            42: /*
        !            43: __KERNEL_RCSID(0, "$NetBSD: pxa2x0_dma.c,v 1.3 2003/08/07 16:58:35 bsh Exp $");
        !            44: */
        !            45:
        !            46: #include <sys/param.h>
        !            47: #include <sys/systm.h>
        !            48: #include <sys/device.h>
        !            49: #include <sys/malloc.h>
        !            50: #include <sys/mbuf.h>
        !            51:
        !            52: #include <uvm/uvm_extern.h>
        !            53:
        !            54: #define        _ARM32_BUS_DMA_PRIVATE
        !            55: #include <machine/bus.h>
        !            56:
        !            57: struct arm32_bus_dma_tag pxa2x0_bus_dma_tag = {
        !            58:        0,
        !            59:        0,
        !            60:        NULL,
        !            61:        _bus_dmamap_create,
        !            62:        _bus_dmamap_destroy,
        !            63:        _bus_dmamap_load,
        !            64:        _bus_dmamap_load_mbuf,
        !            65:        _bus_dmamap_load_uio,
        !            66:        _bus_dmamap_load_raw,
        !            67:        _bus_dmamap_unload,
        !            68:        _bus_dmamap_sync,
        !            69:        _bus_dmamem_alloc,
        !            70:        _bus_dmamem_free,
        !            71:        _bus_dmamem_map,
        !            72:        _bus_dmamem_unmap,
        !            73:        _bus_dmamem_mmap,
        !            74: };
        !            75:

CVSweb