diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-05-20 23:43:09 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-08-12 03:21:56 -0400 |
commit | f2148a472883ddf77626fff52b070655a8a0a788 (patch) | |
tree | 4224e4b1f7b7bbec8a5c5ebbd2ed1e2a69a89b9a | |
parent | 527a626601de6ff89859de90883cc546892bf3ca (diff) |
via-*: Move the VIA drivers
Move the VIA drivers into drivers/net/ethernet/via/ and make the
necessary Kconfig and Makefile changes.
CC: Roger Luethi <rl@hellgate.ch>
CC: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | MAINTAINERS | 4 | ||||
-rw-r--r-- | drivers/net/Kconfig | 36 | ||||
-rw-r--r-- | drivers/net/Makefile | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/Kconfig | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/Makefile | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/via/Kconfig | 56 | ||||
-rw-r--r-- | drivers/net/ethernet/via/Makefile | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/via/via-rhine.c (renamed from drivers/net/via-rhine.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/via/via-velocity.c (renamed from drivers/net/via-velocity.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/via/via-velocity.h (renamed from drivers/net/via-velocity.h) | 0 |
10 files changed, 66 insertions, 40 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index b9acfdee10e8..51d9281a3035 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -6988,7 +6988,7 @@ F: include/linux/vhost.h | |||
6988 | VIA RHINE NETWORK DRIVER | 6988 | VIA RHINE NETWORK DRIVER |
6989 | M: Roger Luethi <rl@hellgate.ch> | 6989 | M: Roger Luethi <rl@hellgate.ch> |
6990 | S: Maintained | 6990 | S: Maintained |
6991 | F: drivers/net/via-rhine.c | 6991 | F: drivers/net/ethernet/via/via-rhine.c |
6992 | 6992 | ||
6993 | VIAPRO SMBUS DRIVER | 6993 | VIAPRO SMBUS DRIVER |
6994 | M: Jean Delvare <khali@linux-fr.org> | 6994 | M: Jean Delvare <khali@linux-fr.org> |
@@ -7016,7 +7016,7 @@ VIA VELOCITY NETWORK DRIVER | |||
7016 | M: Francois Romieu <romieu@fr.zoreil.com> | 7016 | M: Francois Romieu <romieu@fr.zoreil.com> |
7017 | L: netdev@vger.kernel.org | 7017 | L: netdev@vger.kernel.org |
7018 | S: Maintained | 7018 | S: Maintained |
7019 | F: drivers/net/via-velocity.* | 7019 | F: drivers/net/ethernet/via/via-velocity.* |
7020 | 7020 | ||
7021 | VLAN (802.1Q) | 7021 | VLAN (802.1Q) |
7022 | M: Patrick McHardy <kaber@trash.net> | 7022 | M: Patrick McHardy <kaber@trash.net> |
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index cb6c6947b320..c1e491add8f9 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -614,30 +614,6 @@ config KS8851_MLL | |||
614 | This platform driver is for Micrel KS8851 Address/data bus | 614 | This platform driver is for Micrel KS8851 Address/data bus |
615 | multiplexed network chip. | 615 | multiplexed network chip. |
616 | 616 | ||
617 | config VIA_RHINE | ||
618 | tristate "VIA Rhine support" | ||
619 | depends on NET_PCI && PCI | ||
620 | select CRC32 | ||
621 | select MII | ||
622 | help | ||
623 | If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A), | ||
624 | Rhine-II (VT6102), or Rhine-III (VT6105)), say Y here. Rhine-type | ||
625 | Ethernet functions can also be found integrated on South Bridges | ||
626 | (e.g. VT8235). | ||
627 | |||
628 | To compile this driver as a module, choose M here. The module | ||
629 | will be called via-rhine. | ||
630 | |||
631 | config VIA_RHINE_MMIO | ||
632 | bool "Use MMIO instead of PIO" | ||
633 | depends on VIA_RHINE | ||
634 | help | ||
635 | This instructs the driver to use PCI shared memory (MMIO) instead of | ||
636 | programmed I/O ports (PIO). Enabling this gives an improvement in | ||
637 | processing time in parts of the driver. | ||
638 | |||
639 | If unsure, say Y. | ||
640 | |||
641 | config CPMAC | 617 | config CPMAC |
642 | tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)" | 618 | tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)" |
643 | depends on NET_ETHERNET && EXPERIMENTAL && AR7 | 619 | depends on NET_ETHERNET && EXPERIMENTAL && AR7 |
@@ -793,18 +769,6 @@ config SIS190 | |||
793 | To compile this driver as a module, choose M here: the module | 769 | To compile this driver as a module, choose M here: the module |
794 | will be called sis190. This is recommended. | 770 | will be called sis190. This is recommended. |
795 | 771 | ||
796 | config VIA_VELOCITY | ||
797 | tristate "VIA Velocity support" | ||
798 | depends on PCI | ||
799 | select CRC32 | ||
800 | select CRC_CCITT | ||
801 | select MII | ||
802 | help | ||
803 | If you have a VIA "Velocity" based network card say Y here. | ||
804 | |||
805 | To compile this driver as a module, choose M here. The module | ||
806 | will be called via-velocity. | ||
807 | |||
808 | config SPIDER_NET | 772 | config SPIDER_NET |
809 | tristate "Spider Gigabit Ethernet driver" | 773 | tristate "Spider Gigabit Ethernet driver" |
810 | depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB) | 774 | depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB) |
diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 69ca6a009c59..7e1128fd62bd 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile | |||
@@ -51,8 +51,6 @@ obj-$(CONFIG_KS8842) += ks8842.o | |||
51 | obj-$(CONFIG_KS8851) += ks8851.o | 51 | obj-$(CONFIG_KS8851) += ks8851.o |
52 | obj-$(CONFIG_KS8851_MLL) += ks8851_mll.o | 52 | obj-$(CONFIG_KS8851_MLL) += ks8851_mll.o |
53 | obj-$(CONFIG_KSZ884X_PCI) += ksz884x.o | 53 | obj-$(CONFIG_KSZ884X_PCI) += ksz884x.o |
54 | obj-$(CONFIG_VIA_RHINE) += via-rhine.o | ||
55 | obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o | ||
56 | obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o | 54 | obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o |
57 | obj-$(CONFIG_RIONET) += rionet.o | 55 | obj-$(CONFIG_RIONET) += rionet.o |
58 | obj-$(CONFIG_SH_ETH) += sh_eth.o | 56 | obj-$(CONFIG_SH_ETH) += sh_eth.o |
diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index 1c447d96d7e5..bdc0df873daf 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig | |||
@@ -45,5 +45,6 @@ source "drivers/net/ethernet/smsc/Kconfig" | |||
45 | source "drivers/net/ethernet/stmicro/Kconfig" | 45 | source "drivers/net/ethernet/stmicro/Kconfig" |
46 | source "drivers/net/ethernet/sun/Kconfig" | 46 | source "drivers/net/ethernet/sun/Kconfig" |
47 | source "drivers/net/ethernet/tehuti/Kconfig" | 47 | source "drivers/net/ethernet/tehuti/Kconfig" |
48 | source "drivers/net/ethernet/via/Kconfig" | ||
48 | 49 | ||
49 | endif # ETHERNET | 50 | endif # ETHERNET |
diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile index 48c8656b96c2..ac60ac9026bb 100644 --- a/drivers/net/ethernet/Makefile +++ b/drivers/net/ethernet/Makefile | |||
@@ -36,3 +36,4 @@ obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/ | |||
36 | obj-$(CONFIG_NET_VENDOR_STMICRO) += stmicro/ | 36 | obj-$(CONFIG_NET_VENDOR_STMICRO) += stmicro/ |
37 | obj-$(CONFIG_NET_VENDOR_SUN) += sun/ | 37 | obj-$(CONFIG_NET_VENDOR_SUN) += sun/ |
38 | obj-$(CONFIG_NET_VENDOR_TEHUTI) += tehuti/ | 38 | obj-$(CONFIG_NET_VENDOR_TEHUTI) += tehuti/ |
39 | obj-$(CONFIG_NET_VENDOR_VIA) += via/ | ||
diff --git a/drivers/net/ethernet/via/Kconfig b/drivers/net/ethernet/via/Kconfig new file mode 100644 index 000000000000..7199194fa898 --- /dev/null +++ b/drivers/net/ethernet/via/Kconfig | |||
@@ -0,0 +1,56 @@ | |||
1 | # | ||
2 | # VIA device configuration | ||
3 | # | ||
4 | |||
5 | config NET_VENDOR_VIA | ||
6 | bool "VIA devices" | ||
7 | depends on PCI | ||
8 | ---help--- | ||
9 | If you have a network (Ethernet) card belonging to this class, say Y | ||
10 | 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 VIA devices. If you say Y, you will be asked for | ||
16 | your specific card in the following questions. | ||
17 | |||
18 | if NET_VENDOR_VIA | ||
19 | |||
20 | config VIA_RHINE | ||
21 | tristate "VIA Rhine support" | ||
22 | depends on PCI | ||
23 | select CRC32 | ||
24 | select MII | ||
25 | ---help--- | ||
26 | If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A), | ||
27 | Rhine-II (VT6102), or Rhine-III (VT6105)), say Y here. Rhine-type | ||
28 | Ethernet functions can also be found integrated on South Bridges | ||
29 | (e.g. VT8235). | ||
30 | |||
31 | To compile this driver as a module, choose M here. The module | ||
32 | will be called via-rhine. | ||
33 | |||
34 | config VIA_RHINE_MMIO | ||
35 | bool "Use MMIO instead of PIO" | ||
36 | depends on VIA_RHINE | ||
37 | ---help--- | ||
38 | This instructs the driver to use PCI shared memory (MMIO) instead of | ||
39 | programmed I/O ports (PIO). Enabling this gives an improvement in | ||
40 | processing time in parts of the driver. | ||
41 | |||
42 | If unsure, say Y. | ||
43 | |||
44 | config VIA_VELOCITY | ||
45 | tristate "VIA Velocity support" | ||
46 | depends on PCI | ||
47 | select CRC32 | ||
48 | select CRC_CCITT | ||
49 | select MII | ||
50 | ---help--- | ||
51 | If you have a VIA "Velocity" based network card say Y here. | ||
52 | |||
53 | To compile this driver as a module, choose M here. The module | ||
54 | will be called via-velocity. | ||
55 | |||
56 | endif # NET_VENDOR_VIA | ||
diff --git a/drivers/net/ethernet/via/Makefile b/drivers/net/ethernet/via/Makefile new file mode 100644 index 000000000000..46c5d4a3d8f1 --- /dev/null +++ b/drivers/net/ethernet/via/Makefile | |||
@@ -0,0 +1,6 @@ | |||
1 | # | ||
2 | # Makefile for the VIA device drivers. | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_VIA_RHINE) += via-rhine.o | ||
6 | obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o | ||
diff --git a/drivers/net/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index 7f23ab913fd9..7f23ab913fd9 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
diff --git a/drivers/net/via-velocity.c b/drivers/net/ethernet/via/via-velocity.c index 490ec5b2775a..490ec5b2775a 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/ethernet/via/via-velocity.c | |||
diff --git a/drivers/net/via-velocity.h b/drivers/net/ethernet/via/via-velocity.h index 4cb9f13485e9..4cb9f13485e9 100644 --- a/drivers/net/via-velocity.h +++ b/drivers/net/ethernet/via/via-velocity.h | |||