MERGE-master-patchset-edits
[linux-2.6/openmoko-kernel.git] / arch / arm / plat-s3c64xx / dma-fake.c
blob4ec8b4f369c382b67e8ceac5d1ae92e0f47cc602
1 /* linux/arch/arm/plat-s3c64xx/dma.c
3 * Copyright 2009 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * S3C64XX DMA core - fake
8 * http://armlinux.simtec.co.uk/
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #include <linux/module.h>
16 #include <linux/init.h>
17 #include <linux/sched.h>
18 #include <linux/spinlock.h>
19 #include <linux/interrupt.h>
20 #include <linux/sysdev.h>
21 #include <linux/slab.h>
22 #include <linux/errno.h>
23 #include <linux/io.h>
25 #include <asm/system.h>
26 #include <asm/irq.h>
27 #include <mach/hardware.h>
28 #include <mach/dma.h>
31 int s3c2410_dma_ctrl(unsigned int channel, enum s3c2410_chan_op op)
33 return 0;
36 EXPORT_SYMBOL(s3c2410_dma_ctrl);
38 int s3c2410_dma_enqueue(unsigned int channel, void *id,
39 dma_addr_t data, int size)
41 return 0;
44 EXPORT_SYMBOL(s3c2410_dma_enqueue);
46 int s3c2410_dma_devconfig(int channel,
47 enum s3c2410_dmasrc source,
48 unsigned long devaddr)
50 return 0;
53 EXPORT_SYMBOL(s3c2410_dma_devconfig);
56 int s3c2410_dma_getposition(unsigned int channel, dma_addr_t *src, dma_addr_t *dst)
58 if (src != NULL)
59 *src = 0;
61 if (dst != NULL)
62 *dst = 0;
64 return 0;
67 EXPORT_SYMBOL(s3c2410_dma_getposition);
69 int s3c2410_dma_config(unsigned int channel, int xferunit)
71 return 0;
74 EXPORT_SYMBOL(s3c2410_dma_config);
76 int s3c2410_dma_free(unsigned int channel, struct s3c2410_dma_client *client)
78 return 0;
81 EXPORT_SYMBOL(s3c2410_dma_free);
83 int s3c2410_dma_request(unsigned int channel,
84 struct s3c2410_dma_client *client,
85 void *dev)
87 return 0;
90 EXPORT_SYMBOL(s3c2410_dma_request);
92 int s3c2410_dma_set_buffdone_fn(unsigned int channel, s3c2410_dma_cbfn_t rtn)
94 return 0;
97 EXPORT_SYMBOL(s3c2410_dma_set_buffdone_fn);