162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Realtek device configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig NET_VENDOR_REALTEK
762306a36Sopenharmony_ci	bool "Realtek devices"
862306a36Sopenharmony_ci	default y
962306a36Sopenharmony_ci	depends on PCI || (PARPORT && X86)
1062306a36Sopenharmony_ci	help
1162306a36Sopenharmony_ci	  If you have a network (Ethernet) card belonging to this class, say Y.
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	  Note that the answer to this question doesn't directly affect the
1462306a36Sopenharmony_ci	  kernel: saying N will just cause the configurator to skip all
1562306a36Sopenharmony_ci	  the questions about Realtek devices. If you say Y, you will be asked for
1662306a36Sopenharmony_ci	  your specific card in the following questions.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciif NET_VENDOR_REALTEK
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciconfig ATP
2162306a36Sopenharmony_ci	tristate "AT-LAN-TEC/RealTek pocket adapter support"
2262306a36Sopenharmony_ci	depends on PARPORT && X86
2362306a36Sopenharmony_ci	select CRC32
2462306a36Sopenharmony_ci	help
2562306a36Sopenharmony_ci	  This is a network (Ethernet) device which attaches to your parallel
2662306a36Sopenharmony_ci	  port. Read the file <file:drivers/net/ethernet/realtek/atp.c>
2762306a36Sopenharmony_ci	  if you want to use this.  If you intend to use this driver, you
2862306a36Sopenharmony_ci	  should have said N to the "Parallel printer support", because the two
2962306a36Sopenharmony_ci	  drivers don't like each other.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
3262306a36Sopenharmony_ci	  will be called atp.
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciconfig 8139CP
3562306a36Sopenharmony_ci	tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support"
3662306a36Sopenharmony_ci	depends on PCI
3762306a36Sopenharmony_ci	select CRC32
3862306a36Sopenharmony_ci	select MII
3962306a36Sopenharmony_ci	help
4062306a36Sopenharmony_ci	  This is a driver for the Fast Ethernet PCI network cards based on
4162306a36Sopenharmony_ci	  the RTL8139C+ chips. If you have one of those, say Y here.
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
4462306a36Sopenharmony_ci	  will be called 8139cp.  This is recommended.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciconfig 8139TOO
4762306a36Sopenharmony_ci	tristate "RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support"
4862306a36Sopenharmony_ci	depends on PCI
4962306a36Sopenharmony_ci	select CRC32
5062306a36Sopenharmony_ci	select MII
5162306a36Sopenharmony_ci	help
5262306a36Sopenharmony_ci	  This is a driver for the Fast Ethernet PCI network cards based on
5362306a36Sopenharmony_ci	  the RTL 8129/8130/8139 chips. If you have one of those, say Y here.
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
5662306a36Sopenharmony_ci	  will be called 8139too.  This is recommended.
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ciconfig 8139TOO_PIO
5962306a36Sopenharmony_ci	bool "Use PIO instead of MMIO"
6062306a36Sopenharmony_ci	default y
6162306a36Sopenharmony_ci	depends on 8139TOO
6262306a36Sopenharmony_ci	help
6362306a36Sopenharmony_ci	  This instructs the driver to use programmed I/O ports (PIO) instead
6462306a36Sopenharmony_ci	  of PCI shared memory (MMIO).  This can possibly solve some problems
6562306a36Sopenharmony_ci	  in case your mainboard has memory consistency issues.  If unsure,
6662306a36Sopenharmony_ci	  say N.
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ciconfig 8139TOO_TUNE_TWISTER
6962306a36Sopenharmony_ci	bool "Support for uncommon RTL-8139 rev. K (automatic channel equalization)"
7062306a36Sopenharmony_ci	depends on 8139TOO
7162306a36Sopenharmony_ci	help
7262306a36Sopenharmony_ci	  This implements a function which might come in handy in case you
7362306a36Sopenharmony_ci	  are using low quality on long cabling. It is required for RealTek
7462306a36Sopenharmony_ci	  RTL-8139 revision K boards, and totally unused otherwise.  It tries
7562306a36Sopenharmony_ci	  to match the transceiver to the cable characteristics. This is
7662306a36Sopenharmony_ci	  experimental since hardly documented by the manufacturer.
7762306a36Sopenharmony_ci	  If unsure, say Y.
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ciconfig 8139TOO_8129
8062306a36Sopenharmony_ci	bool "Support for older RTL-8129/8130 boards"
8162306a36Sopenharmony_ci	depends on 8139TOO
8262306a36Sopenharmony_ci	help
8362306a36Sopenharmony_ci	  This enables support for the older and uncommon RTL-8129 and
8462306a36Sopenharmony_ci	  RTL-8130 chips, which support MII via an external transceiver,
8562306a36Sopenharmony_ci	  instead of an internal one.  Disabling this option will save some
8662306a36Sopenharmony_ci	  memory by making the code size smaller.  If unsure, say Y.
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ciconfig 8139_OLD_RX_RESET
8962306a36Sopenharmony_ci	bool "Use older RX-reset method"
9062306a36Sopenharmony_ci	depends on 8139TOO
9162306a36Sopenharmony_ci	help
9262306a36Sopenharmony_ci	  The 8139too driver was recently updated to contain a more rapid
9362306a36Sopenharmony_ci	  reset sequence, in the face of severe receive errors.  This "new"
9462306a36Sopenharmony_ci	  RX-reset method should be adequate for all boards.  But if you
9562306a36Sopenharmony_ci	  experience problems, you can enable this option to restore the
9662306a36Sopenharmony_ci	  old RX-reset behavior.  If unsure, say N.
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ciconfig R8169
9962306a36Sopenharmony_ci	tristate "Realtek 8169/8168/8101/8125 ethernet support"
10062306a36Sopenharmony_ci	depends on PCI
10162306a36Sopenharmony_ci	select FW_LOADER
10262306a36Sopenharmony_ci	select CRC32
10362306a36Sopenharmony_ci	select PHYLIB
10462306a36Sopenharmony_ci	select REALTEK_PHY
10562306a36Sopenharmony_ci	help
10662306a36Sopenharmony_ci	  Say Y here if you have a Realtek Ethernet adapter belonging to
10762306a36Sopenharmony_ci	  the following families:
10862306a36Sopenharmony_ci	  RTL8169 Gigabit Ethernet
10962306a36Sopenharmony_ci	  RTL8168 Gigabit Ethernet
11062306a36Sopenharmony_ci	  RTL8101 Fast Ethernet
11162306a36Sopenharmony_ci	  RTL8125 2.5GBit Ethernet
11262306a36Sopenharmony_ci
11362306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
11462306a36Sopenharmony_ci	  will be called r8169.  This is recommended.
11562306a36Sopenharmony_ci
11662306a36Sopenharmony_ciendif # NET_VENDOR_REALTEK
117