: sparc: Remove SBUS layer resource and irq handling.
David Miller
maintainerPATCH 35/49 : sparc: Remove SBUS layer resource and irq handling.
sparc: Remove SBUS layer resource and irq handling.
All the drivers use OF device objects now for this information.
Signed-off-by David S. Miller <[email protected]>
--- arch/sparc/include/asm/sbus_32.h | 15 ----- arch/sparc/include/asm/sbus_64.h | 16 ----- arch/sparc/kernel/ioport.c | 27 -------- arch/sparc64/kernel/sbus.c | 4 - drivers/sbus/sbus.c | 124 +------------------------------------- 5 files changed, 1 insertions(+), 185 deletions(-)
arch/sparc/include/asm/sbus_32.h +0 -15
@@ -51,17 +51,6 @@ struct sbus_dev {int prom_node;char prom_name[64 ];int slot; - -struct resource resource[PROMREG_MAX ]; - -struct linux_prom_registers reg_addrs[PROMREG_MAX ]; -int num_registers; - -struct linux_prom_ranges device_ranges[PROMREG_MAX ]; -int num_device_ranges; - -unsigned int irqs[4 ]; -int num_irqs; };#define to_sbus_device (d) container_of(d, struct sbus_dev, ofdev.dev)
@@ -73,9 +62,6 @@ struct sbus_bus {int prom_node;/* PROM device tree node for this SBus */ char prom_name[64 ];/* Usually "sbus" or "sbi" */ int clock_freq; - -struct linux_prom_ranges sbus_ranges[PROMREG_MAX ]; -int num_sbus_ranges; };#define to_sbus (d) container_of(d, struct sbus_bus, ofdev.dev)
@@ -103,7 +89,6 @@ sbus_is_slave(struct sbus_dev *dev)void prom_adjust_ranges (struct linux_prom_ranges *,int ,struct linux_prom_ranges *,int ); -extern void sbus_arch_bus_ranges_init (struct device_node *,struct sbus_bus *);extern void sbus_setup_iommu (struct sbus_bus *,struct device_node *);extern int sbus_arch_preinit (void );extern void sbus_arch_postinit (void );
arch/sparc/include/asm/sbus_64.h +0 -16
@@ -51,17 +51,6 @@ struct sbus_dev {int prom_node;char prom_name[64 ];int slot; - -struct resource resource[PROMREG_MAX ]; - -struct linux_prom_registers reg_addrs[PROMREG_MAX ]; -int num_registers; - -struct linux_prom_ranges device_ranges[PROMREG_MAX ]; -int num_device_ranges; - -unsigned int irqs[4 ]; -int num_irqs; };#define to_sbus_device (d) container_of(d, struct sbus_dev, ofdev.dev)
@@ -73,10 +62,6 @@ struct sbus_bus {int prom_node;/* OBP node of SBUS */ char prom_name[64 ];/* Usually "sbus" or "sbi" */ int clock_freq; - -struct linux_prom_ranges sbus_ranges[PROMREG_MAX ]; -int num_sbus_ranges; -int portid; };#define to_sbus (d) container_of(d, struct sbus_bus, ofdev.dev)
@@ -94,7 +79,6 @@ extern struct sbus_bus *sbus_root;for ((bus) = sbus_root; (bus); (bus) = (bus)->next) \for ((device) = (bus)->devices; (device); (device) = (device)->next) -extern void sbus_arch_bus_ranges_init(struct device_node *, struct sbus_bus *); extern void sbus_setup_iommu(struct sbus_bus *, struct device_node *);extern int sbus_arch_preinit (void );extern void sbus_arch_postinit (void );
arch/sparc/kernel/ioport.c +0 -26
@@ -394,33 +394,6 @@ void sbus_dma_sync_single_for_device(struct device *dev, dma_addr_t ba, size_t s }/* Support code for sbus_init(). */ -/* -* XXX This functions appears to be a distorted version of -* prom_sbus_ranges_init(), with all sun4d stuff cut away. -* Ask DaveM what is going on here, how is sun4d supposed to work... XXX -*/ -/* added back sun4d patch from Thomas Bogendoerfer - should be OK (crn) */ -void __init sbus_arch_bus_ranges_init (struct device_node *pn,struct sbus_bus *sbus) -{ -int parent_node = pn->node; - -if (sparc_cpu_model = sun4d) { -struct linux_prom_ranges iounit_ranges[PROMREG_MAX ]; -int num_iounit_ranges, len; - - len =prom_getproperty (parent_node,"ranges" , - (char *) iounit_ranges, -sizeof (iounit_ranges)); -if (len !=-1 ) { - num_iounit_ranges - (len /sizeof (struct linux_prom_ranges )); -prom_adjust_ranges (sbus->sbus_ranges, - sbus->num_sbus_ranges, - iounit_ranges, num_iounit_ranges); - } - } -} -void __init sbus_setup_iommu (struct sbus_bus *sbus,struct device_node *dp) {#ifndef CONFIG_SUN4
arch/sparc64/kernel/sbus.c +0 -4
@@ -650,10 +650,6 @@ fatal_memory_error:prom_printf ("sbus_iommu_init: Fatal memory allocation error.\n" ); } -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);
drivers/sbus/sbus.c +1 -120
149 lines not on this page · raw message
Signature · 1 line
1.5.6.5.GIT