add s3c2xx0_busdma.c which is used to initialize bus dma tag.
This commit is contained in:
parent
0fe8a8550f
commit
3bf70b2edf
|
@ -1,10 +1,11 @@
|
||||||
# $NetBSD: files.s3c2xx0,v 1.5 2003/08/04 12:28:50 bsh Exp $
|
# $NetBSD: files.s3c2xx0,v 1.6 2003/08/05 11:24:09 bsh Exp $
|
||||||
#
|
#
|
||||||
# Configuration info common to Samsung S3C2800/S3C24[10]0
|
# Configuration info common to Samsung S3C2800/S3C24[10]0
|
||||||
#
|
#
|
||||||
|
|
||||||
file arch/arm/arm/softintr.c # Use the generic ARM soft interrupt code.
|
file arch/arm/arm/softintr.c # Use the generic ARM soft interrupt code.
|
||||||
file arch/arm/s3c2xx0/s3c2xx0_space.c
|
file arch/arm/s3c2xx0/s3c2xx0_space.c
|
||||||
|
file arch/arm/s3c2xx0/s3c2xx0_busdma.c
|
||||||
|
|
||||||
#
|
#
|
||||||
# External Xtal clock frequency.
|
# External Xtal clock frequency.
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
/* $NetBSD: s3c2xx0_busdma.c,v 1.1 2003/08/05 11:24:08 bsh Exp $ */
|
||||||
|
|
||||||
|
/* COPYRIGHT */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* bus_dma tag for s3c2xx0 CPUs
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
__KERNEL_RCSID(0, "$NetBSD: s3c2xx0_busdma.c,v 1.1 2003/08/05 11:24:08 bsh Exp $");
|
||||||
|
|
||||||
|
#include <sys/param.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/device.h>
|
||||||
|
#include <sys/systm.h>
|
||||||
|
#include <sys/extent.h>
|
||||||
|
|
||||||
|
#define _ARM32_BUS_DMA_PRIVATE
|
||||||
|
#include <machine/bus.h>
|
||||||
|
|
||||||
|
#include <arm/s3c2xx0/s3c2xx0var.h>
|
||||||
|
|
||||||
|
struct arm32_bus_dma_tag s3c2xx0_bus_dma = {
|
||||||
|
NULL, /* _ranges: set by platform specific routine */
|
||||||
|
0, /* _nranges */
|
||||||
|
|
||||||
|
NULL, /* _cookie */
|
||||||
|
|
||||||
|
_bus_dmamap_create,
|
||||||
|
_bus_dmamap_destroy,
|
||||||
|
_bus_dmamap_load,
|
||||||
|
_bus_dmamap_load_mbuf,
|
||||||
|
_bus_dmamap_load_uio,
|
||||||
|
_bus_dmamap_load_raw,
|
||||||
|
_bus_dmamap_unload,
|
||||||
|
_bus_dmamap_sync,
|
||||||
|
NULL, /* sync_post */
|
||||||
|
|
||||||
|
_bus_dmamem_alloc,
|
||||||
|
_bus_dmamem_free,
|
||||||
|
_bus_dmamem_map,
|
||||||
|
_bus_dmamem_unmap,
|
||||||
|
_bus_dmamem_mmap,
|
||||||
|
};
|
Loading…
Reference in New Issue