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 <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
Magnus Damm 2008-07-16 19:02:54 +09:00 • committed by Paul Mundt
commit 1eca5c9272
6 changed files with 75 additions and 0 deletions

View file

@ -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);