forked from Minki/linux
0f8b6cea1f
If NO_DMA=y:
ERROR: "dma_sync_single_for_cpu" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "dma_set_mask" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "dma_mapping_error" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "dma_map_single" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "dma_alloc_coherent" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "dma_free_coherent" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "dma_unmap_single" [drivers/net/ethernet/via/via-rhine.ko] undefined!
ERROR: "dma_map_page" [drivers/net/ethernet/via/via-velocity.ko] undefined!
ERROR: "dma_sync_single_for_cpu" [drivers/net/ethernet/via/via-velocity.ko] undefined!
ERROR: "dma_free_coherent" [drivers/net/ethernet/via/via-velocity.ko] undefined!
ERROR: "dma_unmap_single" [drivers/net/ethernet/via/via-velocity.ko] undefined!
ERROR: "dma_map_single" [drivers/net/ethernet/via/via-velocity.ko] undefined!
ERROR: "dma_alloc_coherent" [drivers/net/ethernet/via/via-velocity.ko] undefined!
Before, the symbols depended implicitly on HAS_DMA through PCI or
USE_OF. Add explicit dependencies on HAS_DMA to fix this.
Fixes: b7d3282a24
("net: via/Kconfig: replace USE_OF with OF_???")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
#
|
|
# VIA device configuration
|
|
#
|
|
|
|
config NET_VENDOR_VIA
|
|
bool "VIA devices"
|
|
default y
|
|
---help---
|
|
If you have a network (Ethernet) card belonging to this class, say Y.
|
|
|
|
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 || OF_IRQ)
|
|
depends on HAS_DMA
|
|
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 || (OF_ADDRESS && OF_IRQ))
|
|
depends on HAS_DMA
|
|
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
|