diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-05-13 02:04:46 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-08-11 05:33:43 -0400 |
commit | e689cf4a042772f727450035b102579b0c01bdc7 (patch) | |
tree | f2b17aa21b8358a8f7589fed46fa08688b439464 | |
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>
-rw-r--r-- | MAINTAINERS | 1 | ||||
-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 |
24 files changed, 102 insertions, 76 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 19bd60deb135..1cb72da76e04 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -6272,6 +6272,7 @@ S: Maintained | |||
6272 | F: arch/m68k/kernel/*sun3* | 6272 | F: arch/m68k/kernel/*sun3* |
6273 | F: arch/m68k/sun3*/ | 6273 | F: arch/m68k/sun3*/ |
6274 | F: arch/m68k/include/asm/sun3* | 6274 | F: arch/m68k/include/asm/sun3* |
6275 | F: drivers/net/ethernet/i825xx/sun3* | ||
6275 | 6276 | ||
6276 | SUPERH | 6277 | SUPERH |
6277 | M: Paul Mundt <lethal@linux-sh.org> | 6278 | M: Paul Mundt <lethal@linux-sh.org> |
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 | |||
363 | This driver supporting CPUs are: | 363 | This driver supporting CPUs are: |
364 | - SH7710, SH7712, SH7763, SH7619, SH7724, and SH7757. | 364 | - SH7710, SH7712, SH7763, SH7619, SH7724, and SH7757. |
365 | 365 | ||
366 | config HAPPYMEAL | ||
367 | tristate "Sun Happy Meal 10/100baseT support" | ||
368 | depends on SBUS || PCI | ||
369 | select CRC32 | ||
370 | help | ||
371 | This driver supports the "hme" interface present on most Ultra | ||
372 | systems and as an option on older Sbus systems. This driver supports | ||
373 | both PCI and Sbus devices. This driver also supports the "qfe" quad | ||
374 | 100baseT device available in both PCI and Sbus configurations. | ||
375 | |||
376 | To compile this driver as a module, choose M here: the module | ||
377 | will be called sunhme. | ||
378 | |||
379 | config SUNBMAC | ||
380 | tristate "Sun BigMAC 10/100baseT support (EXPERIMENTAL)" | ||
381 | depends on SBUS && EXPERIMENTAL | ||
382 | select CRC32 | ||
383 | help | ||
384 | This driver supports the "be" interface available as an Sbus option. | ||
385 | This is Sun's older 100baseT Ethernet device. | ||
386 | |||
387 | To compile this driver as a module, choose M here: the module | ||
388 | will be called sunbmac. | ||
389 | |||
390 | config SUNQE | ||
391 | tristate "Sun QuadEthernet support" | ||
392 | depends on SBUS | ||
393 | select CRC32 | ||
394 | help | ||
395 | This driver supports the "qe" 10baseT Ethernet device, available as | ||
396 | an Sbus option. Note that this is not the same as Quad FastEthernet | ||
397 | "qfe" which is supported by the Happy Meal driver instead. | ||
398 | |||
399 | To compile this driver as a module, choose M here: the module | ||
400 | will be called sunqe. | ||
401 | |||
402 | config SUNGEM | ||
403 | tristate "Sun GEM support" | ||
404 | depends on PCI | ||
405 | select CRC32 | ||
406 | help | ||
407 | Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also | ||
408 | <http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>. | ||
409 | |||
410 | config CASSINI | ||
411 | tristate "Sun Cassini support" | ||
412 | depends on PCI | ||
413 | select CRC32 | ||
414 | help | ||
415 | Support for the Sun Cassini chip, aka Sun GigaSwift Ethernet. See also | ||
416 | <http://www.sun.com/products-n-solutions/hardware/docs/pdf/817-4341-10.pdf> | ||
417 | |||
418 | config SUNVNET | ||
419 | tristate "Sun Virtual Network support" | ||
420 | depends on SUN_LDOMS | ||
421 | help | ||
422 | Support for virtual network devices under Sun Logical Domains. | ||
423 | |||
424 | config BFIN_MAC | 366 | config BFIN_MAC |
425 | tristate "Blackfin on-chip MAC support" | 367 | tristate "Blackfin on-chip MAC support" |
426 | depends on NET_ETHERNET && (BF516 || BF518 || BF526 || BF527 || BF536 || BF537) | 368 | depends on NET_ETHERNET && (BF516 || BF518 || BF526 || BF527 || BF536 || BF537) |
@@ -1603,14 +1545,6 @@ config MYRI10GE_DCA | |||
1603 | driver. DCA is a method for warming the CPU cache before data | 1545 | driver. DCA is a method for warming the CPU cache before data |
1604 | is used, with the intent of lessening the impact of cache misses. | 1546 | is used, with the intent of lessening the impact of cache misses. |
1605 | 1547 | ||
1606 | config NIU | ||
1607 | tristate "Sun Neptune 10Gbit Ethernet support" | ||
1608 | depends on PCI | ||
1609 | select CRC32 | ||
1610 | help | ||
1611 | This enables support for cards based upon Sun's | ||
1612 | Neptune chipset. | ||
1613 | |||
1614 | config PASEMI_MAC | 1548 | config PASEMI_MAC |
1615 | tristate "PA Semi 1/10Gbit MAC" | 1549 | tristate "PA Semi 1/10Gbit MAC" |
1616 | depends on PPC_PASEMI && PCI && INET | 1550 | 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 | |||
44 | 44 | ||
45 | obj-$(CONFIG_ROADRUNNER) += rrunner.o | 45 | obj-$(CONFIG_ROADRUNNER) += rrunner.o |
46 | 46 | ||
47 | obj-$(CONFIG_HAPPYMEAL) += sunhme.o | ||
48 | obj-$(CONFIG_SUNQE) += sunqe.o | ||
49 | obj-$(CONFIG_SUNBMAC) += sunbmac.o | ||
50 | obj-$(CONFIG_SUNGEM) += sungem.o sungem_phy.o | ||
51 | obj-$(CONFIG_CASSINI) += cassini.o | ||
52 | obj-$(CONFIG_SUNVNET) += sunvnet.o | ||
53 | |||
54 | obj-$(CONFIG_MACE) += mace.o | 47 | obj-$(CONFIG_MACE) += mace.o |
55 | obj-$(CONFIG_BMAC) += bmac.o | 48 | obj-$(CONFIG_BMAC) += bmac.o |
56 | 49 | ||
@@ -64,7 +57,7 @@ obj-$(CONFIG_NATSEMI) += natsemi.o | |||
64 | obj-$(CONFIG_NS83820) += ns83820.o | 57 | obj-$(CONFIG_NS83820) += ns83820.o |
65 | obj-$(CONFIG_FEALNX) += fealnx.o | 58 | obj-$(CONFIG_FEALNX) += fealnx.o |
66 | spidernet-y += spider_net.o spider_net_ethtool.o | 59 | spidernet-y += spider_net.o spider_net_ethtool.o |
67 | obj-$(CONFIG_SPIDER_NET) += spidernet.o sungem_phy.o | 60 | obj-$(CONFIG_SPIDER_NET) += spidernet.o ethernet/sun/sungem_phy.o |
68 | obj-$(CONFIG_GELIC_NET) += ps3_gelic.o | 61 | obj-$(CONFIG_GELIC_NET) += ps3_gelic.o |
69 | gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o | 62 | gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o |
70 | ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y) | 63 | ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y) |
@@ -207,7 +200,6 @@ obj-$(CONFIG_NETCONSOLE) += netconsole.o | |||
207 | 200 | ||
208 | obj-$(CONFIG_FS_ENET) += fs_enet/ | 201 | obj-$(CONFIG_FS_ENET) += fs_enet/ |
209 | 202 | ||
210 | obj-$(CONFIG_NIU) += niu.o | ||
211 | obj-$(CONFIG_VIRTIO_NET) += virtio_net.o | 203 | obj-$(CONFIG_VIRTIO_NET) += virtio_net.o |
212 | obj-$(CONFIG_SFC) += sfc/ | 204 | obj-$(CONFIG_SFC) += sfc/ |
213 | 205 | ||
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" | |||
21 | source "drivers/net/ethernet/qlogic/Kconfig" | 21 | source "drivers/net/ethernet/qlogic/Kconfig" |
22 | source "drivers/net/ethernet/racal/Kconfig" | 22 | source "drivers/net/ethernet/racal/Kconfig" |
23 | source "drivers/net/ethernet/smsc/Kconfig" | 23 | source "drivers/net/ethernet/smsc/Kconfig" |
24 | source "drivers/net/ethernet/sun/Kconfig" | ||
24 | 25 | ||
25 | endif # ETHERNET | 26 | 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/ | |||
12 | obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/ | 12 | obj-$(CONFIG_NET_VENDOR_QLOGIC) += qlogic/ |
13 | obj-$(CONFIG_NET_VENDOR_RACAL) += racal/ | 13 | obj-$(CONFIG_NET_VENDOR_RACAL) += racal/ |
14 | obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/ | 14 | obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/ |
15 | 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 @@ | |||
1 | # | ||
2 | # Sun network device configuration | ||
3 | # | ||
4 | |||
5 | config NET_VENDOR_SUN | ||
6 | bool "Sun devices" | ||
7 | depends on SUN3 || SBUS || PCI || SUN_LDOMS | ||
8 | ---help--- | ||
9 | If you have a network (Ethernet) card belonging to this class, say | ||
10 | Y and read the Ethernet-HOWTO, available from | ||
11 | <http://www.tldp.org/docs.html#howto>. | ||
12 | |||
13 | Note that the answer to this question doesn't directly affect the | ||
14 | kernel: saying N will just cause the configurator to skip all | ||
15 | the questions about Sun network interfaces. If you say Y, you will be | ||
16 | asked for your specific card in the following questions. | ||
17 | |||
18 | if NET_VENDOR_SUN | ||
19 | |||
20 | config HAPPYMEAL | ||
21 | tristate "Sun Happy Meal 10/100baseT support" | ||
22 | depends on (SBUS || PCI) | ||
23 | select CRC32 | ||
24 | ---help--- | ||
25 | This driver supports the "hme" interface present on most Ultra | ||
26 | systems and as an option on older Sbus systems. This driver supports | ||
27 | both PCI and Sbus devices. This driver also supports the "qfe" quad | ||
28 | 100baseT device available in both PCI and Sbus configurations. | ||
29 | |||
30 | To compile this driver as a module, choose M here: the module | ||
31 | will be called sunhme. | ||
32 | |||
33 | config SUNBMAC | ||
34 | tristate "Sun BigMAC 10/100baseT support (EXPERIMENTAL)" | ||
35 | depends on SBUS && EXPERIMENTAL | ||
36 | select CRC32 | ||
37 | ---help--- | ||
38 | This driver supports the "be" interface available as an Sbus option. | ||
39 | This is Sun's older 100baseT Ethernet device. | ||
40 | |||
41 | To compile this driver as a module, choose M here: the module | ||
42 | will be called sunbmac. | ||
43 | |||
44 | config SUNQE | ||
45 | tristate "Sun QuadEthernet support" | ||
46 | depends on SBUS | ||
47 | select CRC32 | ||
48 | ---help--- | ||
49 | This driver supports the "qe" 10baseT Ethernet device, available as | ||
50 | an Sbus option. Note that this is not the same as Quad FastEthernet | ||
51 | "qfe" which is supported by the Happy Meal driver instead. | ||
52 | |||
53 | To compile this driver as a module, choose M here: the module | ||
54 | will be called sunqe. | ||
55 | |||
56 | config SUNGEM | ||
57 | tristate "Sun GEM support" | ||
58 | depends on PCI | ||
59 | select CRC32 | ||
60 | ---help--- | ||
61 | Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also | ||
62 | <http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>. | ||
63 | |||
64 | config CASSINI | ||
65 | tristate "Sun Cassini support" | ||
66 | depends on PCI | ||
67 | select CRC32 | ||
68 | ---help--- | ||
69 | Support for the Sun Cassini chip, aka Sun GigaSwift Ethernet. See also | ||
70 | <http://www.sun.com/products-n-solutions/hardware/docs/pdf/817-4341-10.pdf> | ||
71 | |||
72 | config SUNVNET | ||
73 | tristate "Sun Virtual Network support" | ||
74 | depends on SUN_LDOMS | ||
75 | ---help--- | ||
76 | Support for virtual network devices under Sun Logical Domains. | ||
77 | |||
78 | config NIU | ||
79 | tristate "Sun Neptune 10Gbit Ethernet support" | ||
80 | depends on PCI | ||
81 | select CRC32 | ||
82 | ---help--- | ||
83 | This enables support for cards based upon Sun's | ||
84 | Neptune chipset. | ||
85 | |||
86 | 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 @@ | |||
1 | # | ||
2 | # Makefile for the Sun network device drivers. | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_HAPPYMEAL) += sunhme.o | ||
6 | obj-$(CONFIG_SUNQE) += sunqe.o | ||
7 | obj-$(CONFIG_SUNBMAC) += sunbmac.o | ||
8 | obj-$(CONFIG_SUNGEM) += sungem.o sungem_phy.o | ||
9 | obj-$(CONFIG_CASSINI) += cassini.o | ||
10 | obj-$(CONFIG_SUNVNET) += sunvnet.o | ||
11 | 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 @@ | |||
27 | 27 | ||
28 | #define VERSION "2.0 B" | 28 | #define VERSION "2.0 B" |
29 | 29 | ||
30 | #include "sungem_phy.h" | 30 | #include "./ethernet/sun/sungem_phy.h" |
31 | 31 | ||
32 | extern int spider_net_stop(struct net_device *netdev); | 32 | extern int spider_net_stop(struct net_device *netdev); |
33 | extern int spider_net_open(struct net_device *netdev); | 33 | extern int spider_net_open(struct net_device *netdev); |