aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/ioport.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c
index 0e478301e8e5..d82a810564ba 100644
--- a/arch/sparc/kernel/ioport.c
+++ b/arch/sparc/kernel/ioport.c
@@ -394,33 +394,6 @@ void sbus_dma_sync_single_for_device(struct device *dev, dma_addr_t ba, size_t s
394} 394}
395 395
396/* Support code for sbus_init(). */ 396/* Support code for sbus_init(). */
397/*
398 * XXX This functions appears to be a distorted version of
399 * prom_sbus_ranges_init(), with all sun4d stuff cut away.
400 * Ask DaveM what is going on here, how is sun4d supposed to work... XXX
401 */
402/* added back sun4d patch from Thomas Bogendoerfer - should be OK (crn) */
403void __init sbus_arch_bus_ranges_init(struct device_node *pn, struct sbus_bus *sbus)
404{
405 int parent_node = pn->node;
406
407 if (sparc_cpu_model == sun4d) {
408 struct linux_prom_ranges iounit_ranges[PROMREG_MAX];
409 int num_iounit_ranges, len;
410
411 len = prom_getproperty(parent_node, "ranges",
412 (char *) iounit_ranges,
413 sizeof (iounit_ranges));
414 if (len != -1) {
415 num_iounit_ranges =
416 (len / sizeof(struct linux_prom_ranges));
417 prom_adjust_ranges(sbus->sbus_ranges,
418 sbus->num_sbus_ranges,
419 iounit_ranges, num_iounit_ranges);
420 }
421 }
422}
423
424void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp) 397void __init sbus_setup_iommu(struct sbus_bus *sbus, struct device_node *dp)
425{ 398{
426#ifndef CONFIG_SUN4 399#ifndef CONFIG_SUN4