diff options
author | David S. Miller <davem@davemloft.net> | 2006-06-23 18:55:45 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-24 02:15:50 -0400 |
commit | 576c352e89e57cfa6c9f493e549d10d86f60a0cf (patch) | |
tree | 4f393f05beef86284a037b106bfb353ff0d72c8a /arch/sparc64 | |
parent | fd5314311634245172d40ccb418d89dac91d6ad6 (diff) |
[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.c | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/sbus.c b/arch/sparc64/kernel/sbus.c index a72bba398809..d3da23cdc264 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) | |||
1099 | } | 1099 | } |
1100 | 1100 | ||
1101 | /* Boot time initialization. */ | 1101 | /* Boot time initialization. */ |
1102 | void __init sbus_iommu_init(int __node, struct sbus_bus *sbus) | 1102 | static void __init sbus_iommu_init(int __node, struct sbus_bus *sbus) |
1103 | { | 1103 | { |
1104 | struct linux_prom64_registers *pr; | 1104 | struct linux_prom64_registers *pr; |
1105 | struct device_node *dp; | 1105 | struct device_node *dp; |
@@ -1247,3 +1247,32 @@ void sbus_fill_device_irq(struct sbus_dev *sdev) | |||
1247 | sdev->irqs[0] = sbus_build_irq(sdev->bus, pri); | 1247 | sdev->irqs[0] = sbus_build_irq(sdev->bus, pri); |
1248 | } | 1248 | } |
1249 | } | 1249 | } |
1250 | |||
1251 | void __init sbus_arch_bus_ranges_init(struct device_node *pn, struct sbus_bus *sbus) | ||
1252 | { | ||
1253 | } | ||
1254 | |||
1255 | void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp) | ||
1256 | { | ||
1257 | sbus_iommu_init(dp->node, sbus); | ||
1258 | } | ||
1259 | |||
1260 | void __init sbus_setup_arch_props(struct sbus_bus *sbus, struct device_node *dp) | ||
1261 | { | ||
1262 | } | ||
1263 | |||
1264 | int __init sbus_arch_preinit(void) | ||
1265 | { | ||
1266 | return 0; | ||
1267 | } | ||
1268 | |||
1269 | void __init sbus_arch_postinit(void) | ||
1270 | { | ||
1271 | extern void firetruck_init(void); | ||
1272 | extern void auxio_probe(void); | ||
1273 | extern void clock_probe(void); | ||
1274 | |||
1275 | firetruck_init(); | ||
1276 | auxio_probe(); | ||
1277 | clock_probe(); | ||
1278 | } | ||