From 3bf70b2edfb67584f7d9bb6c01696753412ee813 Mon Sep 17 00:00:00 2001 From: bsh Date: Tue, 5 Aug 2003 11:24:08 +0000 Subject: [PATCH] add s3c2xx0_busdma.c which is used to initialize bus dma tag. --- sys/arch/arm/s3c2xx0/files.s3c2xx0 | 3 +- sys/arch/arm/s3c2xx0/s3c2xx0_busdma.c | 44 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 sys/arch/arm/s3c2xx0/s3c2xx0_busdma.c diff --git a/sys/arch/arm/s3c2xx0/files.s3c2xx0 b/sys/arch/arm/s3c2xx0/files.s3c2xx0 index 4fd44f037f05..59878e4b4fb8 100644 --- a/sys/arch/arm/s3c2xx0/files.s3c2xx0 +++ b/sys/arch/arm/s3c2xx0/files.s3c2xx0 @@ -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 # 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_busdma.c # # External Xtal clock frequency. diff --git a/sys/arch/arm/s3c2xx0/s3c2xx0_busdma.c b/sys/arch/arm/s3c2xx0/s3c2xx0_busdma.c new file mode 100644 index 000000000000..55f50ae060a6 --- /dev/null +++ b/sys/arch/arm/s3c2xx0/s3c2xx0_busdma.c @@ -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 +__KERNEL_RCSID(0, "$NetBSD: s3c2xx0_busdma.c,v 1.1 2003/08/05 11:24:08 bsh Exp $"); + +#include +#include +#include +#include +#include + +#define _ARM32_BUS_DMA_PRIVATE +#include + +#include + +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, +};