From 3ca9fab410fbef6fc3a13284f5c26faccade21d1 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Thu, 29 Jun 2006 14:35:33 -0700 Subject: [SPARC]: Add of_io{remap,unmap}(). Signed-off-by: David S. Miller --- include/asm-sparc/of_device.h | 3 +++ include/asm-sparc64/of_device.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/asm-sparc/of_device.h b/include/asm-sparc/of_device.h index 1b43ee5..b5ca314 100644 --- a/include/asm-sparc/of_device.h +++ b/include/asm-sparc/of_device.h @@ -31,6 +31,9 @@ struct of_device }; #define to_of_device(d) container_of(d, struct of_device, dev) +extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); +extern void of_iounmap(void __iomem *base, unsigned long size); + extern const struct of_device_id *of_match_device( const struct of_device_id *matches, const struct of_device *dev); diff --git a/include/asm-sparc64/of_device.h b/include/asm-sparc64/of_device.h index 27bc086..37c5856 100644 --- a/include/asm-sparc64/of_device.h +++ b/include/asm-sparc64/of_device.h @@ -32,6 +32,9 @@ struct of_device }; #define to_of_device(d) container_of(d, struct of_device, dev) +extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); +extern void of_iounmap(void __iomem *base, unsigned long size); + extern const struct of_device_id *of_match_device( const struct of_device_id *matches, const struct of_device *dev); -- cgit v1.1