Skip to content

Commit f2148a4

Browse files
author
Jeff Kirsher
committed
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>
1 parent 527a626 commit f2148a4

File tree

10 files changed

+66
-40
lines changed

10 files changed

+66
-40
lines changed

MAINTAINERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6988,7 +6988,7 @@ F: include/linux/vhost.h
69886988
VIA RHINE NETWORK DRIVER
69896989
M: Roger Luethi <rl@hellgate.ch>
69906990
S: Maintained
6991-
F: drivers/net/via-rhine.c
6991+
F: drivers/net/ethernet/via/via-rhine.c
69926992

69936993
VIAPRO SMBUS DRIVER
69946994
M: Jean Delvare <khali@linux-fr.org>
@@ -7016,7 +7016,7 @@ VIA VELOCITY NETWORK DRIVER
70167016
M: Francois Romieu <romieu@fr.zoreil.com>
70177017
L: netdev@vger.kernel.org
70187018
S: Maintained
7019-
F: drivers/net/via-velocity.*
7019+
F: drivers/net/ethernet/via/via-velocity.*
70207020

70217021
VLAN (802.1Q)
70227022
M: Patrick McHardy <kaber@trash.net>

drivers/net/Kconfig

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -614,30 +614,6 @@ config KS8851_MLL
614614
This platform driver is for Micrel KS8851 Address/data bus
615615
multiplexed network chip.
616616

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-
641617
config CPMAC
642618
tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)"
643619
depends on NET_ETHERNET && EXPERIMENTAL && AR7
@@ -793,18 +769,6 @@ config SIS190
793769
To compile this driver as a module, choose M here: the module
794770
will be called sis190. This is recommended.
795771

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-
808772
config SPIDER_NET
809773
tristate "Spider Gigabit Ethernet driver"
810774
depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB)

drivers/net/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ obj-$(CONFIG_KS8842) += ks8842.o
5151
obj-$(CONFIG_KS8851) += ks8851.o
5252
obj-$(CONFIG_KS8851_MLL) += ks8851_mll.o
5353
obj-$(CONFIG_KSZ884X_PCI) += ksz884x.o
54-
obj-$(CONFIG_VIA_RHINE) += via-rhine.o
55-
obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o
5654
obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o
5755
obj-$(CONFIG_RIONET) += rionet.o
5856
obj-$(CONFIG_SH_ETH) += sh_eth.o

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ source "drivers/net/ethernet/smsc/Kconfig"
4545
source "drivers/net/ethernet/stmicro/Kconfig"
4646
source "drivers/net/ethernet/sun/Kconfig"
4747
source "drivers/net/ethernet/tehuti/Kconfig"
48+
source "drivers/net/ethernet/via/Kconfig"
4849

4950
endif # ETHERNET

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ obj-$(CONFIG_NET_VENDOR_SMSC) += smsc/
3636
obj-$(CONFIG_NET_VENDOR_STMICRO) += stmicro/
3737
obj-$(CONFIG_NET_VENDOR_SUN) += sun/
3838
obj-$(CONFIG_NET_VENDOR_TEHUTI) += tehuti/
39+
obj-$(CONFIG_NET_VENDOR_VIA) += via/

drivers/net/ethernet/via/Kconfig

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

drivers/net/ethernet/via/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)