diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-05-12 23:04:46 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-08-11 02:33:43 -0700 |
commit | e689cf4a042772f727450035b102579b0c01bdc7 (patch) | |
tree | f2b17aa21b8358a8f7589fed46fa08688b439464 /drivers/net | |
parent | 8efc91254fda97ee78e2e0b8e016120e664131de (diff) |
cassini/niu/sun*: Move the Sun drivers
Moves the Sun drivers into drivers/net/ethernet/sun/ and make
the necessary Kconfig and Makefile changes.
Oliver Hartkopp <socketcan@hartkopp.net> suggested removing the
sun* prefix on the driver names. This type of change I will
leave up to the driver maintainers.
CC: Sam Creasey <sammy@sammy.net>
CC: Adrian Sun <asun@darksunrising.com>
CC: Benjamin Herrenscmidt <benh@kernel.crashing.org>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/Kconfig | 66 | ||||
-rw-r--r-- | drivers/net/Makefile | 10 | ||||
-rw-r--r-- | drivers/net/ethernet/Kconfig | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/Makefile | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/Kconfig | 86 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/Makefile | 11 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/cassini.c (renamed from drivers/net/cassini.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/cassini.h (renamed from drivers/net/cassini.h) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/niu.c (renamed from drivers/net/niu.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/niu.h (renamed from drivers/net/niu.h) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunbmac.c (renamed from drivers/net/sunbmac.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunbmac.h (renamed from drivers/net/sunbmac.h) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sungem.c (renamed from drivers/net/sungem.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sungem.h (renamed from drivers/net/sungem.h) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sungem_phy.c (renamed from drivers/net/sungem_phy.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sungem_phy.h (renamed from drivers/net/sungem_phy.h) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunhme.c (renamed from drivers/net/sunhme.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunhme.h (renamed from drivers/net/sunhme.h) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunqe.c (renamed from drivers/net/sunqe.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunqe.h (renamed from drivers/net/sunqe.h) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunvnet.c (renamed from drivers/net/sunvnet.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/sun/sunvnet.h (renamed from drivers/net/sunvnet.h) | 0 | ||||
-rw-r--r-- | drivers/net/spider_net.h | 2 |
23 files changed, 101 insertions, 76 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index b76de822b52f..7977002fc81d 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -363,64 +363,6 @@ config SH_ETH This driver supporting CPUs are: - SH7710, SH7712, SH7763, SH7619, SH7724, and SH7757. -config HAPPYMEAL - tristate "Sun Happy Meal 10/100baseT support" - depends on SBUS || PCI - select CRC32 - help - This driver supports the "hme" interface present on most Ultra - systems and as an option on older Sbus systems. This driver supports - both PCI and Sbus devices. This driver also supports the "qfe" quad - 100baseT device available in both PCI and Sbus configurations. - - To compile this driver as a module, choose M here: the module - will be called sunhme. - -config SUNBMAC - tristate "Sun BigMAC 10/100baseT support (EXPERIMENTAL)" - depends on SBUS && EXPERIMENTAL - select CRC32 - help - This driver supports the "be" interface available as an Sbus option. - This is Sun's older 100baseT Ethernet device. - - To compile this driver as a module, choose M here: the module - will be called sunbmac. - -config SUNQE - tristate "Sun QuadEthernet support" - depends on SBUS - select CRC32 - help - This driver supports the "qe" 10baseT Ethernet device, available as - an Sbus option. Note that this is not the same as Quad FastEthernet - "qfe" which is supported by the Happy Meal driver instead. - - To compile this driver as a module, choose M here: the module - will be called sunqe. - -config SUNGEM - tristate "Sun GEM support" - depends on PCI - select CRC32 - help - Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also - <http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>. - -config CASSINI - tristate "Sun Cassini support" - depends on PCI - select CRC32 - help - Support for the Sun Cassini chip, aka Sun GigaSwift Ethernet. See also - <http://www.sun.com/products-n-solutions/hardware/docs/pdf/817-4341-10.pdf> - -config SUNVNET - tristate "Sun Virtual Network support" - depends on SUN_LDOMS - help - Support for virtual network devices under Sun Logical Domains. - config BFIN_MAC tristate "Blackfin on-chip MAC support" depends on NET_ETHERNET && (BF516 || BF518 || BF526 || BF527 || BF536 || BF537) @@ -1603,14 +1545,6 @@ config MYRI10GE_DCA driver. DCA is a method for warming the CPU cache before data is used, with the intent of lessening the impact of cache misses. -config NIU - tristate "Sun Neptune 10Gbit Ethernet support" - depends on PCI - select CRC32 - help - This enables support for cards based upon Sun's - Neptune chipset. - config PASEMI_MAC tristate "PA Semi 1/10Gbit MAC" depends on PPC_PASEMI && PCI && INET diff --git a/drivers/net/Makefile b/drivers/net/Makefile index e641f703bbad..cfbb060c0c69 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -44,13 +44,6 @@ obj-$(CONFIG_PLIP) += plip.o obj-$(CONFIG_ROADRUNNER) += rrunner.o -obj-$(CONFIG_HAPPYMEAL) += sunhme.o -obj-$(CONFIG_SUNQE) += sunqe.o -obj-$(CONFIG_SUNBMAC) += sunbmac.o -obj-$(CONFIG_SUNGEM) += sungem.o sungem_phy.o -obj-$(CONFIG_CASSINI) += cassini.o -obj-$(CONFIG_SUNVNET) += sunvnet.o - obj-$(CONFIG_MACE) += mace.o obj-$(CONFIG_BMAC) += bmac.o @@ -64,7 +57,7 @@ obj-$(CONFIG_NATSEMI) += natsemi.o obj-$(CONFIG_NS83820) += ns83820.o obj-$(CONFIG_FEALNX) += fealnx.o spidernet-y += spider_net.o spider_net_ethtool.o -obj-$(CONFIG_SPIDER_NET) += spidernet.o sungem_phy.o +obj-$(CONFIG_SPIDER_NET) += spidernet.o ethernet/sun/sungem_phy.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) @@ -207,7 +200,6 @@ obj-$(CONFIG_NETCONSOLE) += netconsole.o obj-$(CONFIG_FS_ENET) += fs_enet/ -obj-$(CONFIG_NIU) += niu.o obj-$(CONFIG_VIRTIO_NET) += virtio_net.o obj-$(CONFIG_SFC) += sfc/ diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index 7efbb7cf91a9..5edd2371c53f 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig @@ -21,5 +21,6 @@ source "drivers/net/ethernet/i825xx/Kconfig" source "drivers/net/ethernet/qlogic/Kconfig" source "drivers/net/ethernet/racal/Kconfig" source "drivers/net/ethernet/smsc/Kconfig" +source "drivers/net/ethernet/sun/Kconfig" endif # ETHERNET diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile index 86da8b8339e1..18d8a893d78b 100644 --- a/drivers/net/ethernet/Makefile +++ b/drivers/net/ethernet/Makefile @@ -12,3 +12,4 @@ obj-$(CONFIG_NET_VENDOR_I825XX) += i825xx/ obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/ obj-$(CONFIG_NET_VENDOR_RACAL) += racal/ obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/ +obj-$(CONFIG_NET_VENDOR_SUN) += sun/ diff --git a/drivers/net/ethernet/sun/Kconfig b/drivers/net/ethernet/sun/Kconfig new file mode 100644 index 000000000000..87b17a7e6dfe --- /dev/null +++ b/drivers/net/ethernet/sun/Kconfig @@ -0,0 +1,86 @@ +# +# Sun network device configuration +# + +config NET_VENDOR_SUN + bool "Sun devices" + depends on SUN3 || SBUS || PCI || SUN_LDOMS + ---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 Sun network interfaces. If you say Y, you will be + asked for your specific card in the following questions. + +if NET_VENDOR_SUN + +config HAPPYMEAL + tristate "Sun Happy Meal 10/100baseT support" + depends on (SBUS || PCI) + select CRC32 + ---help--- + This driver supports the "hme" interface present on most Ultra + systems and as an option on older Sbus systems. This driver supports + both PCI and Sbus devices. This driver also supports the "qfe" quad + 100baseT device available in both PCI and Sbus configurations. + + To compile this driver as a module, choose M here: the module + will be called sunhme. + +config SUNBMAC + tristate "Sun BigMAC 10/100baseT support (EXPERIMENTAL)" + depends on SBUS && EXPERIMENTAL + select CRC32 + ---help--- + This driver supports the "be" interface available as an Sbus option. + This is Sun's older 100baseT Ethernet device. + + To compile this driver as a module, choose M here: the module + will be called sunbmac. + +config SUNQE + tristate "Sun QuadEthernet support" + depends on SBUS + select CRC32 + ---help--- + This driver supports the "qe" 10baseT Ethernet device, available as + an Sbus option. Note that this is not the same as Quad FastEthernet + "qfe" which is supported by the Happy Meal driver instead. + + To compile this driver as a module, choose M here: the module + will be called sunqe. + +config SUNGEM + tristate "Sun GEM support" + depends on PCI + select CRC32 + ---help--- + Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also + <http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>. + +config CASSINI + tristate "Sun Cassini support" + depends on PCI + select CRC32 + ---help--- + Support for the Sun Cassini chip, aka Sun GigaSwift Ethernet. See also + <http://www.sun.com/products-n-solutions/hardware/docs/pdf/817-4341-10.pdf> + +config SUNVNET + tristate "Sun Virtual Network support" + depends on SUN_LDOMS + ---help--- + Support for virtual network devices under Sun Logical Domains. + +config NIU + tristate "Sun Neptune 10Gbit Ethernet support" + depends on PCI + select CRC32 + ---help--- + This enables support for cards based upon Sun's + Neptune chipset. + +endif # NET_VENDOR_SUN diff --git a/drivers/net/ethernet/sun/Makefile b/drivers/net/ethernet/sun/Makefile new file mode 100644 index 000000000000..4f25217a75f8 --- /dev/null +++ b/drivers/net/ethernet/sun/Makefile @@ -0,0 +1,11 @@ +# +# Makefile for the Sun network device drivers. +# + +obj-$(CONFIG_HAPPYMEAL) += sunhme.o +obj-$(CONFIG_SUNQE) += sunqe.o +obj-$(CONFIG_SUNBMAC) += sunbmac.o +obj-$(CONFIG_SUNGEM) += sungem.o sungem_phy.o +obj-$(CONFIG_CASSINI) += cassini.o +obj-$(CONFIG_SUNVNET) += sunvnet.o +obj-$(CONFIG_NIU) += niu.o diff --git a/drivers/net/cassini.c b/drivers/net/ethernet/sun/cassini.c index 646c86bcc545..646c86bcc545 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/ethernet/sun/cassini.c diff --git a/drivers/net/cassini.h b/drivers/net/ethernet/sun/cassini.h index b361424d5f57..b361424d5f57 100644 --- a/drivers/net/cassini.h +++ b/drivers/net/ethernet/sun/cassini.h diff --git a/drivers/net/niu.c b/drivers/net/ethernet/sun/niu.c index ed47585a6862..ed47585a6862 100644 --- a/drivers/net/niu.c +++ b/drivers/net/ethernet/sun/niu.c diff --git a/drivers/net/niu.h b/drivers/net/ethernet/sun/niu.h index 51e177e1860d..51e177e1860d 100644 --- a/drivers/net/niu.h +++ b/drivers/net/ethernet/sun/niu.h diff --git a/drivers/net/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c index 297a4242106b..297a4242106b 100644 --- a/drivers/net/sunbmac.c +++ b/drivers/net/ethernet/sun/sunbmac.c diff --git a/drivers/net/sunbmac.h b/drivers/net/ethernet/sun/sunbmac.h index 4943e975a731..4943e975a731 100644 --- a/drivers/net/sunbmac.h +++ b/drivers/net/ethernet/sun/sunbmac.h diff --git a/drivers/net/sungem.c b/drivers/net/ethernet/sun/sungem.c index ade35dde5b51..ade35dde5b51 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/ethernet/sun/sungem.c diff --git a/drivers/net/sungem.h b/drivers/net/ethernet/sun/sungem.h index 835ce1b3cb9f..835ce1b3cb9f 100644 --- a/drivers/net/sungem.h +++ b/drivers/net/ethernet/sun/sungem.h diff --git a/drivers/net/sungem_phy.c b/drivers/net/ethernet/sun/sungem_phy.c index d16880d7099b..d16880d7099b 100644 --- a/drivers/net/sungem_phy.c +++ b/drivers/net/ethernet/sun/sungem_phy.c diff --git a/drivers/net/sungem_phy.h b/drivers/net/ethernet/sun/sungem_phy.h index af02f9479cbb..af02f9479cbb 100644 --- a/drivers/net/sungem_phy.h +++ b/drivers/net/ethernet/sun/sungem_phy.h diff --git a/drivers/net/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index 856e05b9fba3..856e05b9fba3 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/ethernet/sun/sunhme.c diff --git a/drivers/net/sunhme.h b/drivers/net/ethernet/sun/sunhme.h index 64f278360d89..64f278360d89 100644 --- a/drivers/net/sunhme.h +++ b/drivers/net/ethernet/sun/sunhme.h diff --git a/drivers/net/sunqe.c b/drivers/net/ethernet/sun/sunqe.c index 209c7f8df003..209c7f8df003 100644 --- a/drivers/net/sunqe.c +++ b/drivers/net/ethernet/sun/sunqe.c diff --git a/drivers/net/sunqe.h b/drivers/net/ethernet/sun/sunqe.h index 581781b6b2fa..581781b6b2fa 100644 --- a/drivers/net/sunqe.h +++ b/drivers/net/ethernet/sun/sunqe.h diff --git a/drivers/net/sunvnet.c b/drivers/net/ethernet/sun/sunvnet.c index bf3c762de620..bf3c762de620 100644 --- a/drivers/net/sunvnet.c +++ b/drivers/net/ethernet/sun/sunvnet.c diff --git a/drivers/net/sunvnet.h b/drivers/net/ethernet/sun/sunvnet.h index d347a5bf24b0..d347a5bf24b0 100644 --- a/drivers/net/sunvnet.h +++ b/drivers/net/ethernet/sun/sunvnet.h diff --git a/drivers/net/spider_net.h b/drivers/net/spider_net.h index 020f64a8fcf7..a891ad00054b 100644 --- a/drivers/net/spider_net.h +++ b/drivers/net/spider_net.h @@ -27,7 +27,7 @@ #define VERSION "2.0 B" -#include "sungem_phy.h" +#include "./ethernet/sun/sungem_phy.h" extern int spider_net_stop(struct net_device *netdev); extern int spider_net_open(struct net_device *netdev); |