diff options
author | Magnus Damm <damm@igel.co.jp> | 2008-07-16 12:02:54 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 11:10:35 +0200 |
commit | 1eca5c92729a83f64826d15a9ecb1652dda54bcb (patch) | |
tree | 95753726159c945deccef68d4b54de9f4d5ec756 /include/asm-sh | |
parent | sh: Export sh7366 VPU, VEU(1), VEU(2) using uio_pdrv_genirq (diff) | |
download | linux-1eca5c92729a83f64826d15a9ecb1652dda54bcb.tar.xz linux-1eca5c92729a83f64826d15a9ecb1652dda54bcb.zip |
sh: Add memory chunks to SH-Mobile UIO devices
This patch adds physically contiguous memory chunks to the UIO devices.
The same strategy can be used in the future for the CEU as well.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh')
-rw-r--r-- | include/asm-sh/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-sh/device.h b/include/asm-sh/device.h index d8f9872b0e2d..efd511d0803a 100644 --- a/include/asm-sh/device.h +++ b/include/asm-sh/device.h @@ -5,3 +5,8 @@ */ #include <asm-generic/device.h> +struct platform_device; +/* allocate contiguous memory chunk and fill in struct resource */ +int platform_resource_setup_memory(struct platform_device *pdev, + char *name, unsigned long memsize); + |