|
@@ -49,13 +49,16 @@
|
|
|
|
|
|
#define mmu_inval_dma_area(p, l) /* Anton pulled it out for 2.4.0-xx */
|
|
#define mmu_inval_dma_area(p, l) /* Anton pulled it out for 2.4.0-xx */
|
|
|
|
|
|
-struct resource *_sparc_find_resource(struct resource *r, unsigned long);
|
|
|
|
|
|
+static struct resource *_sparc_find_resource(struct resource *r,
|
|
|
|
+ unsigned long);
|
|
|
|
|
|
static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz);
|
|
static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz);
|
|
static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys,
|
|
static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys,
|
|
unsigned long size, char *name);
|
|
unsigned long size, char *name);
|
|
static void _sparc_free_io(struct resource *res);
|
|
static void _sparc_free_io(struct resource *res);
|
|
|
|
|
|
|
|
+static void register_proc_sparc_ioport(void);
|
|
|
|
+
|
|
/* This points to the next to use virtual memory for DVMA mappings */
|
|
/* This points to the next to use virtual memory for DVMA mappings */
|
|
static struct resource _sparc_dvma = {
|
|
static struct resource _sparc_dvma = {
|
|
.name = "sparc_dvma", .start = DVMA_VADDR, .end = DVMA_END - 1
|
|
.name = "sparc_dvma", .start = DVMA_VADDR, .end = DVMA_END - 1
|
|
@@ -539,8 +542,6 @@ void __init sbus_setup_arch_props(struct sbus_bus *sbus, struct device_node *dp)
|
|
|
|
|
|
int __init sbus_arch_preinit(void)
|
|
int __init sbus_arch_preinit(void)
|
|
{
|
|
{
|
|
- extern void register_proc_sparc_ioport(void);
|
|
|
|
-
|
|
|
|
register_proc_sparc_ioport();
|
|
register_proc_sparc_ioport();
|
|
|
|
|
|
#ifdef CONFIG_SUN4
|
|
#ifdef CONFIG_SUN4
|
|
@@ -853,8 +854,8 @@ _sparc_io_get_info(char *buf, char **start, off_t fpos, int length, int *eof,
|
|
* XXX Too slow. Can have 8192 DVMA pages on sun4m in the worst case.
|
|
* XXX Too slow. Can have 8192 DVMA pages on sun4m in the worst case.
|
|
* This probably warrants some sort of hashing.
|
|
* This probably warrants some sort of hashing.
|
|
*/
|
|
*/
|
|
-struct resource *
|
|
|
|
-_sparc_find_resource(struct resource *root, unsigned long hit)
|
|
|
|
|
|
+static struct resource *_sparc_find_resource(struct resource *root,
|
|
|
|
+ unsigned long hit)
|
|
{
|
|
{
|
|
struct resource *tmp;
|
|
struct resource *tmp;
|
|
|
|
|
|
@@ -865,7 +866,7 @@ _sparc_find_resource(struct resource *root, unsigned long hit)
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
|
|
-void register_proc_sparc_ioport(void)
|
|
|
|
|
|
+static void register_proc_sparc_ioport(void)
|
|
{
|
|
{
|
|
#ifdef CONFIG_PROC_FS
|
|
#ifdef CONFIG_PROC_FS
|
|
create_proc_read_entry("io_map",0,NULL,_sparc_io_get_info,&sparc_iomap);
|
|
create_proc_read_entry("io_map",0,NULL,_sparc_io_get_info,&sparc_iomap);
|