Skip to content

Commit

Permalink
via-*: Move the VIA drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Kirsher committed Aug 12, 2011
1 parent 527a626 commit f2148a4
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 40 deletions.
4 changes: 2 additions & 2 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -6988,7 +6988,7 @@ F: include/linux/vhost.h
VIA RHINE NETWORK DRIVER
M: Roger Luethi <rl@hellgate.ch>
S: Maintained
F: drivers/net/via-rhine.c
F: drivers/net/ethernet/via/via-rhine.c

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

VLAN (802.1Q)
M: Patrick McHardy <kaber@trash.net>
Expand Down
36 changes: 0 additions & 36 deletions drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -614,30 +614,6 @@ config KS8851_MLL
This platform driver is for Micrel KS8851 Address/data bus
multiplexed network chip.

config VIA_RHINE
tristate "VIA Rhine support"
depends on NET_PCI && PCI
select CRC32
select MII
help
If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A),
Rhine-II (VT6102), or Rhine-III (VT6105)), say Y here. Rhine-type
Ethernet functions can also be found integrated on South Bridges
(e.g. VT8235).

To compile this driver as a module, choose M here. The module
will be called via-rhine.

config VIA_RHINE_MMIO
bool "Use MMIO instead of PIO"
depends on VIA_RHINE
help
This instructs the driver to use PCI shared memory (MMIO) instead of
programmed I/O ports (PIO). Enabling this gives an improvement in
processing time in parts of the driver.

If unsure, say Y.

config CPMAC
tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)"
depends on NET_ETHERNET && EXPERIMENTAL && AR7
Expand Down Expand Up @@ -793,18 +769,6 @@ config SIS190
To compile this driver as a module, choose M here: the module
will be called sis190. This is recommended.

config VIA_VELOCITY
tristate "VIA Velocity support"
depends on PCI
select CRC32
select CRC_CCITT
select MII
help
If you have a VIA "Velocity" based network card say Y here.

To compile this driver as a module, choose M here. The module
will be called via-velocity.

config SPIDER_NET
tristate "Spider Gigabit Ethernet driver"
depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB)
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ obj-$(CONFIG_KS8842) += ks8842.o
obj-$(CONFIG_KS8851) += ks8851.o
obj-$(CONFIG_KS8851_MLL) += ks8851_mll.o
obj-$(CONFIG_KSZ884X_PCI) += ksz884x.o
obj-$(CONFIG_VIA_RHINE) += via-rhine.o
obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o
obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o
obj-$(CONFIG_RIONET) += rionet.o
obj-$(CONFIG_SH_ETH) += sh_eth.o
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ 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/via/Kconfig"

endif # ETHERNET
1 change: 1 addition & 0 deletions drivers/net/ethernet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ 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_VIA) += via/
56 changes: 56 additions & 0 deletions drivers/net/ethernet/via/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#
# VIA device configuration
#

config NET_VENDOR_VIA
bool "VIA devices"
depends on PCI
---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 VIA devices. If you say Y, you will be asked for
your specific card in the following questions.

if NET_VENDOR_VIA

config VIA_RHINE
tristate "VIA Rhine support"
depends on PCI
select CRC32
select MII
---help---
If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A),
Rhine-II (VT6102), or Rhine-III (VT6105)), say Y here. Rhine-type
Ethernet functions can also be found integrated on South Bridges
(e.g. VT8235).

To compile this driver as a module, choose M here. The module
will be called via-rhine.

config VIA_RHINE_MMIO
bool "Use MMIO instead of PIO"
depends on VIA_RHINE
---help---
This instructs the driver to use PCI shared memory (MMIO) instead of
programmed I/O ports (PIO). Enabling this gives an improvement in
processing time in parts of the driver.

If unsure, say Y.

config VIA_VELOCITY
tristate "VIA Velocity support"
depends on PCI
select CRC32
select CRC_CCITT
select MII
---help---
If you have a VIA "Velocity" based network card say Y here.

To compile this driver as a module, choose M here. The module
will be called via-velocity.

endif # NET_VENDOR_VIA
6 changes: 6 additions & 0 deletions drivers/net/ethernet/via/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# Makefile for the VIA device drivers.
#

obj-$(CONFIG_VIA_RHINE) += via-rhine.o
obj-$(CONFIG_VIA_VELOCITY) += via-velocity.o
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f2148a4

Please sign in to comment.