toshiba: Move the Toshiba drivers
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 30 Jul 2011 07:36:02 +0000 (00:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 12 Aug 2011 07:27:04 +0000 (00:27 -0700)
Move the Toshiba ethernet drivers into drivers/net/ethernet/toshiba
and make the necessary Kconfig and Makefile changes.

CC: Geoff Levand <geoff@infradead.org>
CC: Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
CC: Ishizaki Kou <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
15 files changed:
MAINTAINERS
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/ethernet/Kconfig
drivers/net/ethernet/Makefile
drivers/net/ethernet/toshiba/Kconfig [new file with mode: 0644]
drivers/net/ethernet/toshiba/Makefile [new file with mode: 0644]
drivers/net/ethernet/toshiba/ps3_gelic_net.c [moved from drivers/net/ps3_gelic_net.c with 100% similarity]
drivers/net/ethernet/toshiba/ps3_gelic_net.h [moved from drivers/net/ps3_gelic_net.h with 100% similarity]
drivers/net/ethernet/toshiba/ps3_gelic_wireless.c [moved from drivers/net/ps3_gelic_wireless.c with 100% similarity]
drivers/net/ethernet/toshiba/ps3_gelic_wireless.h [moved from drivers/net/ps3_gelic_wireless.h with 100% similarity]
drivers/net/ethernet/toshiba/spider_net.c [moved from drivers/net/spider_net.c with 100% similarity]
drivers/net/ethernet/toshiba/spider_net.h [moved from drivers/net/spider_net.h with 100% similarity]
drivers/net/ethernet/toshiba/spider_net_ethtool.c [moved from drivers/net/spider_net_ethtool.c with 100% similarity]
drivers/net/ethernet/toshiba/tc35815.c [moved from drivers/net/tc35815.c with 100% similarity]

index 77ca430..84948bd 100644 (file)
@@ -5127,7 +5127,7 @@ M:        Geoff Levand <geoff@infradead.org>
 L:     netdev@vger.kernel.org
 L:     cbe-oss-dev@lists.ozlabs.org
 S:     Maintained
-F:     drivers/net/ps3_gelic_net.*
+F:     drivers/net/ethernet/toshiba/ps3_gelic_net.*
 
 PS3 PLATFORM SUPPORT
 M:     Geoff Levand <geoff@infradead.org>
@@ -6084,7 +6084,7 @@ M:        Jens Osterkamp <jens@de.ibm.com>
 L:     netdev@vger.kernel.org
 S:     Supported
 F:     Documentation/networking/spider_net.txt
-F:     drivers/net/spider_net*
+F:     drivers/net/ethernet/toshiba/spider_net*
 
 SPU FILE SYSTEM
 M:     Jeremy Kerr <jk@ozlabs.org>
index a6edd35..1e1df3d 100644 (file)
@@ -478,11 +478,6 @@ config FORCEDETH
          To compile this driver as a module, choose M here. The module
          will be called forcedeth.
 
-config TC35815
-       tristate "TOSHIBA TC35815 Ethernet support"
-       depends on NET_PCI && PCI && MIPS
-       select PHYLIB
-
 config FEALNX
        tristate "Myson MTD-8xx PCI Ethernet support"
        depends on NET_PCI && PCI
@@ -658,15 +653,6 @@ config SIS190
          To compile this driver as a module, choose M here: the module
          will be called sis190.  This is recommended.
 
-config SPIDER_NET
-       tristate "Spider Gigabit Ethernet driver"
-       depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB)
-       select FW_LOADER
-       select SUNGEM_PHY
-       help
-         This driver supports the Gigabit Ethernet chips present on the
-         Cell Processor-Based Blades from IBM.
-
 config TSI108_ETH
        tristate "Tundra TSI108 gigabit Ethernet support"
        depends on TSI108_BRIDGE
@@ -675,29 +661,6 @@ config TSI108_ETH
          To compile this driver as a module, choose M here: the module
          will be called tsi108_eth.
 
-config GELIC_NET
-       tristate "PS3 Gigabit Ethernet driver"
-       depends on PPC_PS3
-       select PS3_SYS_MANAGER
-       help
-         This driver supports the network device on the PS3 game
-         console.  This driver has built-in support for Ethernet.
-
-         To compile this driver as a module, choose M here: the
-         module will be called ps3_gelic.
-
-config GELIC_WIRELESS
-       bool "PS3 Wireless support"
-       depends on WLAN
-       depends on GELIC_NET
-       select WIRELESS_EXT
-       help
-         This option adds the support for the wireless feature of PS3.
-         If you have the wireless-less model of PS3 or have no plan to
-         use wireless feature, disabling this option saves memory.  As
-         the driver automatically distinguishes the models, you can
-         safely enable this option even if you have a wireless-less model.
-
 config XILINX_LL_TEMAC
        tristate "Xilinx LL TEMAC (LocalLink Tri-mode Ethernet MAC) driver"
        depends on PPC || MICROBLAZE
index e448e6e..275ed4a 100644 (file)
@@ -29,12 +29,6 @@ obj-$(CONFIG_SIS900) += sis900.o
 obj-$(CONFIG_R6040) += r6040.o
 obj-$(CONFIG_YELLOWFIN) += yellowfin.o
 obj-$(CONFIG_FEALNX) += fealnx.o
-spidernet-y += spider_net.o spider_net_ethtool.o
-obj-$(CONFIG_SPIDER_NET) += spidernet.o
-obj-$(CONFIG_GELIC_NET) += ps3_gelic.o
-gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
-ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
-obj-$(CONFIG_TC35815) += tc35815.o
 obj-$(CONFIG_SKFP) += skfp/
 obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o
 obj-$(CONFIG_RIONET) += rionet.o
index d90f47f..9754247 100644 (file)
@@ -48,6 +48,7 @@ source "drivers/net/ethernet/smsc/Kconfig"
 source "drivers/net/ethernet/stmicro/Kconfig"
 source "drivers/net/ethernet/sun/Kconfig"
 source "drivers/net/ethernet/tehuti/Kconfig"
+source "drivers/net/ethernet/toshiba/Kconfig"
 source "drivers/net/ethernet/via/Kconfig"
 
 endif # ETHERNET
index cf27ae0..7e7a319 100644 (file)
@@ -39,4 +39,5 @@ obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/
 obj-$(CONFIG_NET_VENDOR_STMICRO) += stmicro/
 obj-$(CONFIG_NET_VENDOR_SUN) += sun/
 obj-$(CONFIG_NET_VENDOR_TEHUTI) += tehuti/
+obj-$(CONFIG_NET_VENDOR_TOSHIBA) += toshiba/
 obj-$(CONFIG_NET_VENDOR_VIA) += via/
diff --git a/drivers/net/ethernet/toshiba/Kconfig b/drivers/net/ethernet/toshiba/Kconfig
new file mode 100644 (file)
index 0000000..6ef2ce2
--- /dev/null
@@ -0,0 +1,56 @@
+#
+# Toshiba network device configuration
+#
+
+config NET_VENDOR_TOSHIBA
+       bool "Toshiba devices"
+       depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB) || PPC_PS3
+       ---help---
+         If you have a network (Ethernet) card belonging to this class, say Y
+         and read the Ethernet-HOWTO, available from
+         <http://www.tldp.org/docs.html#howto>.
+
+         Note that the answer to this question doesn't directly affect the
+         kernel: saying N will just cause the configurator to skip all
+         the questions about Toshiba cards. If you say Y, you will be asked
+         for your specific card in the following questions.
+
+if NET_VENDOR_TOSHIBA
+
+config GELIC_NET
+       tristate "PS3 Gigabit Ethernet driver"
+       depends on PPC_PS3
+       select PS3_SYS_MANAGER
+       ---help---
+         This driver supports the network device on the PS3 game
+         console.  This driver has built-in support for Ethernet.
+
+         To compile this driver as a module, choose M here: the
+         module will be called ps3_gelic.
+
+config GELIC_WIRELESS
+       bool "PS3 Wireless support"
+       depends on GELIC_NET && WLAN
+       select WIRELESS_EXT
+       ---help---
+         This option adds the support for the wireless feature of PS3.
+         If you have the wireless-less model of PS3 or have no plan to
+         use wireless feature, disabling this option saves memory.  As
+         the driver automatically distinguishes the models, you can
+         safely enable this option even if you have a wireless-less model.
+
+config SPIDER_NET
+       tristate "Spider Gigabit Ethernet driver"
+       depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB)
+       select FW_LOADER
+       select SUNGEM_PHY
+       ---help---
+         This driver supports the Gigabit Ethernet chips present on the
+         Cell Processor-Based Blades from IBM.
+
+config TC35815
+       tristate "TOSHIBA TC35815 Ethernet support"
+       depends on PCI && MIPS
+       select PHYLIB
+
+endif # NET_VENDOR_TOSHIBA
diff --git a/drivers/net/ethernet/toshiba/Makefile b/drivers/net/ethernet/toshiba/Makefile
new file mode 100644 (file)
index 0000000..71d861f
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Makefile for the Toshiba network device drivers.
+#
+
+obj-$(CONFIG_GELIC_NET) += ps3_gelic.o
+gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
+ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
+spidernet-y += spider_net.o spider_net_ethtool.o
+obj-$(CONFIG_SPIDER_NET) += spidernet.o ethernet/sun/sungem_phy.o
+obj-$(CONFIG_TC35815) += tc35815.o