Skip to contentSkip to conversation

: sparc: Kill EBUS driver layer.

PATCH New David Miller 1 participant 1 message Aug 30, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 5/6 : sparc: Kill EBUS driver layer.

sparc: Kill EBUS driver layer.

All that remains is the EBUS DMA programming library for sparc64.

---
 arch/sparc/include/asm/ebus.h       |    8 -
 arch/sparc/include/asm/ebus_32.h    |   99 ---------
 arch/sparc/include/asm/ebus_64.h    |   64 ------
 arch/sparc/kernel/Makefile          |    1 -
 arch/sparc/kernel/ebus.c            |  392 -----------------------------------
 arch/sparc/kernel/pcic.c            |    8 +-
 arch/sparc/kernel/sparc_ksyms.c     |    4 -
 arch/sparc64/kernel/Makefile        |    4 +-
 arch/sparc64/kernel/ebus.c          |  295 +--------------------------
 arch/sparc64/kernel/pci.c           |    4 +-
 arch/sparc64/kernel/sparc64_ksyms.c |    4 -
 11 files changed, 6 insertions(+), 877 deletions(-)
 delete mode 100644 arch/sparc/include/asm/ebus.h
 delete mode 100644 arch/sparc/include/asm/ebus_32.h
 delete mode 100644 arch/sparc/include/asm/ebus_64.h
 delete mode 100644 arch/sparc/kernel/ebus.c
arch/sparc/include/asm/ebus.h deleted +0 -8
deleted file mode 100644
index 83a6d16..0000000
@@ -1,8 +0,0 @@
-#ifndef ___ASM_SPARC_EBUS_H
-#define ___ASM_SPARC_EBUS_H
-#if defined(__sparc__) && defined(__arch64__)
-#include <asm/ebus_64.h>
-#else
-#include <asm/ebus_32.h>
-#endif
-#endif
arch/sparc/include/asm/ebus_32.h deleted +0 -99

99 lines not on this page · raw message

arch/sparc/include/asm/ebus_64.h deleted +0 -64

64 lines not on this page · raw message

arch/sparc/kernel/Makefile +0 -1
index eaf7cf4..a430231 100644
@@ -21,7 +21,6 @@ obj-$(CONFIG_PCI) += pcic.o
 obj-$(CONFIG_SUN4) += sun4setup.o
 obj-$(CONFIG_SMP) += trampoline.o smp.o sun4m_smp.o sun4d_smp.o
 obj-$(CONFIG_SUN_AUXIO) += auxio.o
-obj-$(CONFIG_PCI) += ebus.o
 obj-$(CONFIG_SUN_PM) += apc.o pmc.o
 obj-$(CONFIG_MODULES) += module.o sparc_ksyms.o
 obj-$(CONFIG_SPARC_LED) += led.o
arch/sparc/kernel/ebus.c deleted +0 -389

389 lines not on this page · raw message

arch/sparc/kernel/pcic.c +1 -7
index 9a0aa4e..e5950b0 100644
@@ -17,7 +17,6 @@
 #include <linux/slab.h>
 #include <linux/jiffies.h>
 
-#include <asm/ebus.h>
 #include <asm/swift.h> /* for cache flushing. */
 #include <asm/io.h>
 
@@ -429,7 +428,6 @@ static int __init pcic_init(void)
 
 	pcic_pbm_scan_bus(pcic);
 
-	ebus_init();
 	return 0;
 }
 
@@ -492,10 +490,6 @@ static void pcic_map_pci_device(struct linux_pcic *pcic,
 				 * do ioremap() before accessing PC-style I/O,
 				 * we supply virtual, ready to access address.
 				 *
-				 * Ebus devices do not come here even if
-				 * CheerIO makes a similar conversion.
-				 * See ebus.c for details.
-				 *
 				 * Note that request_region()
 				 * works for these devices.
 				 *
@@ -676,7 +670,7 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
 }
 
 /*
- * pcic_pin_to_irq() is exported to ebus.c.
+ * pcic_pin_to_irq() is exported to bus probing code
  */
 unsigned int
 pcic_pin_to_irq(unsigned int pin, const char *name)
arch/sparc/kernel/sparc_ksyms.c +0 -4
index 50ec48d..6007ac5 100644
@@ -45,9 +45,6 @@
 #ifdef CONFIG_SBUS
 #include <asm/dma.h>
 #endif
-#ifdef CONFIG_PCI
-#include <asm/ebus.h>
-#endif
 #include <asm/io-unit.h>
 #include <asm/bug.h>
 
@@ -152,7 +149,6 @@ EXPORT_SYMBOL(BTFIXUP_CALL(pgprot_noncached));
 EXPORT_SYMBOL(sbus_set_sbus64);
 #endif
 #ifdef CONFIG_PCI
-EXPORT_SYMBOL(ebus_chain);
 EXPORT_SYMBOL(insb);
 EXPORT_SYMBOL(outsb);
 EXPORT_SYMBOL(insw);
arch/sparc64/kernel/Makefile +2 -2
index 360a348..928aa7c 100644
@@ -11,12 +11,12 @@ obj-y		:= process.o setup.o cpu.o idprom.o \
 		   traps.o auxio.o una_asm.o sysfs.o iommu.o \
 		   irq.o ptrace.o time.o sys_sparc.o signal.o \
 		   unaligned.o central.o starfire.o \
-		   power.o sbus.o sparc64_ksyms.o \
+		   power.o sbus.o sparc64_ksyms.o ebus.o \
 		   visemul.o prom.o of_device.o hvapi.o sstate.o mdesc.o
 
 obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
 obj-$(CONFIG_STACKTRACE) += stacktrace.o
-obj-$(CONFIG_PCI)	 += ebus.o pci.o pci_common.o \
+obj-$(CONFIG_PCI)	 += pci.o pci_common.o \
 			    pci_psycho.o pci_sabre.o pci_schizo.o \
 			    pci_sun4v.o pci_sun4v_asm.o pci_fire.o
 obj-$(CONFIG_PCI_MSI)	+= pci_msi.o
arch/sparc64/kernel/ebus.c +1 -294

313 lines not on this page · raw message

arch/sparc64/kernel/pci.c +2 -2
index 71d423a..2187786 100644
@@ -18,11 +18,12 @@
 #include <linux/msi.h>
 #include <linux/irq.h>
 #include <linux/init.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
 
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/irq.h>
-#include <asm/ebus.h>
 #include <asm/prom.h>
 #include <asm/apb.h>
 
@@ -808,7 +809,6 @@ static int __init pcibios_init(void)
 
 	pci_scan_each_controller_bus();
 
-	ebus_init();
 	power_init();
 
 	return 0;
arch/sparc64/kernel/sparc64_ksyms.c +0 -4
index 4c3a6a8..30bba8b 100644
@@ -45,9 +45,6 @@
 #ifdef CONFIG_SBUS
 #include <asm/dma.h>
 #endif
-#ifdef CONFIG_PCI
-#include <asm/ebus.h>
-#endif
 #include <asm/ns87303.h>
 #include <asm/timer.h>
 #include <asm/cpudata.h>
@@ -165,7 +162,6 @@ EXPORT_SYMBOL(insb);
 EXPORT_SYMBOL(insw);
 EXPORT_SYMBOL(insl);
 #ifdef CONFIG_PCI
-EXPORT_SYMBOL(ebus_chain);
 EXPORT_SYMBOL(pci_alloc_consistent);
 EXPORT_SYMBOL(pci_free_consistent);
 EXPORT_SYMBOL(pci_map_single);
Signature · 1 line
1.5.6.5.GIT