summaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2006-06-23 15:55:45 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-23 23:15:50 -0700
commit576c352e89e57cfa6c9f493e549d10d86f60a0cf (patch)
tree4f393f05beef86284a037b106bfb353ff0d72c8a /arch/sparc64
parentfd5314311634245172d40ccb418d89dac91d6ad6 (diff)
downloadop-kernel-dev-576c352e89e57cfa6c9f493e549d10d86f60a0cf.zip
op-kernel-dev-576c352e89e57cfa6c9f493e549d10d86f60a0cf.tar.gz
[SBUS]: Rewrite and plug into of_device framework.
I severely apologize, I was still learning how to program in C when I wrote this stuff 10 years ago... Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/kernel/sbus.c31
1 files changed, 30 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/sbus.c b/arch/sparc64/kernel/sbus.c
index a72bba3..d3da23c 100644
--- a/arch/sparc64/kernel/sbus.c
+++ b/arch/sparc64/kernel/sbus.c
@@ -1099,7 +1099,7 @@ static void __init sysio_register_error_handlers(struct sbus_bus *sbus)
}
/* Boot time initialization. */
-void __init sbus_iommu_init(int __node, struct sbus_bus *sbus)
+static void __init sbus_iommu_init(int __node, struct sbus_bus *sbus)
{
struct linux_prom64_registers *pr;
struct device_node *dp;
@@ -1247,3 +1247,32 @@ void sbus_fill_device_irq(struct sbus_dev *sdev)
sdev->irqs[0] = sbus_build_irq(sdev->bus, pri);
}
}
+
+void __init sbus_arch_bus_ranges_init(struct device_node *pn, struct sbus_bus *sbus)
+{
+}
+
+void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)
+{
+ sbus_iommu_init(dp->node, sbus);
+}
+
+void __init sbus_setup_arch_props(struct sbus_bus *sbus, struct device_node *dp)
+{
+}
+
+int __init sbus_arch_preinit(void)
+{
+ return 0;
+}
+
+void __init sbus_arch_postinit(void)
+{
+ extern void firetruck_init(void);
+ extern void auxio_probe(void);
+ extern void clock_probe(void);
+
+ firetruck_init();
+ auxio_probe();
+ clock_probe();
+}
OpenPOWER on IntegriCloud