18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Realtek device configuration
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciconfig NET_VENDOR_REALTEK
78c2ecf20Sopenharmony_ci	bool "Realtek devices"
88c2ecf20Sopenharmony_ci	default y
98c2ecf20Sopenharmony_ci	depends on PCI || (PARPORT && X86)
108c2ecf20Sopenharmony_ci	help
118c2ecf20Sopenharmony_ci	  If you have a network (Ethernet) card belonging to this class, say Y.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci	  Note that the answer to this question doesn't directly affect the
148c2ecf20Sopenharmony_ci	  kernel: saying N will just cause the configurator to skip all
158c2ecf20Sopenharmony_ci	  the questions about Realtek devices. If you say Y, you will be asked for
168c2ecf20Sopenharmony_ci	  your specific card in the following questions.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciif NET_VENDOR_REALTEK
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciconfig ATP
218c2ecf20Sopenharmony_ci	tristate "AT-LAN-TEC/RealTek pocket adapter support"
228c2ecf20Sopenharmony_ci	depends on PARPORT && X86
238c2ecf20Sopenharmony_ci	select CRC32
248c2ecf20Sopenharmony_ci	help
258c2ecf20Sopenharmony_ci	  This is a network (Ethernet) device which attaches to your parallel
268c2ecf20Sopenharmony_ci	  port. Read the file <file:drivers/net/ethernet/realtek/atp.c>
278c2ecf20Sopenharmony_ci	  if you want to use this.  If you intend to use this driver, you
288c2ecf20Sopenharmony_ci	  should have said N to the "Parallel printer support", because the two
298c2ecf20Sopenharmony_ci	  drivers don't like each other.
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
328c2ecf20Sopenharmony_ci	  will be called atp.
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ciconfig 8139CP
358c2ecf20Sopenharmony_ci	tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support"
368c2ecf20Sopenharmony_ci	depends on PCI
378c2ecf20Sopenharmony_ci	select CRC32
388c2ecf20Sopenharmony_ci	select MII
398c2ecf20Sopenharmony_ci	help
408c2ecf20Sopenharmony_ci	  This is a driver for the Fast Ethernet PCI network cards based on
418c2ecf20Sopenharmony_ci	  the RTL8139C+ chips. If you have one of those, say Y here.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
448c2ecf20Sopenharmony_ci	  will be called 8139cp.  This is recommended.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ciconfig 8139TOO
478c2ecf20Sopenharmony_ci	tristate "RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support"
488c2ecf20Sopenharmony_ci	depends on PCI
498c2ecf20Sopenharmony_ci	select CRC32
508c2ecf20Sopenharmony_ci	select MII
518c2ecf20Sopenharmony_ci	help
528c2ecf20Sopenharmony_ci	  This is a driver for the Fast Ethernet PCI network cards based on
538c2ecf20Sopenharmony_ci	  the RTL 8129/8130/8139 chips. If you have one of those, say Y here.
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
568c2ecf20Sopenharmony_ci	  will be called 8139too.  This is recommended.
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ciconfig 8139TOO_PIO
598c2ecf20Sopenharmony_ci	bool "Use PIO instead of MMIO"
608c2ecf20Sopenharmony_ci	default y
618c2ecf20Sopenharmony_ci	depends on 8139TOO
628c2ecf20Sopenharmony_ci	help
638c2ecf20Sopenharmony_ci	  This instructs the driver to use programmed I/O ports (PIO) instead
648c2ecf20Sopenharmony_ci	  of PCI shared memory (MMIO).  This can possibly solve some problems
658c2ecf20Sopenharmony_ci	  in case your mainboard has memory consistency issues.  If unsure,
668c2ecf20Sopenharmony_ci	  say N.
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ciconfig 8139TOO_TUNE_TWISTER
698c2ecf20Sopenharmony_ci	bool "Support for uncommon RTL-8139 rev. K (automatic channel equalization)"
708c2ecf20Sopenharmony_ci	depends on 8139TOO
718c2ecf20Sopenharmony_ci	help
728c2ecf20Sopenharmony_ci	  This implements a function which might come in handy in case you
738c2ecf20Sopenharmony_ci	  are using low quality on long cabling. It is required for RealTek
748c2ecf20Sopenharmony_ci	  RTL-8139 revision K boards, and totally unused otherwise.  It tries
758c2ecf20Sopenharmony_ci	  to match the transceiver to the cable characteristics. This is
768c2ecf20Sopenharmony_ci	  experimental since hardly documented by the manufacturer.
778c2ecf20Sopenharmony_ci	  If unsure, say Y.
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ciconfig 8139TOO_8129
808c2ecf20Sopenharmony_ci	bool "Support for older RTL-8129/8130 boards"
818c2ecf20Sopenharmony_ci	depends on 8139TOO
828c2ecf20Sopenharmony_ci	help
838c2ecf20Sopenharmony_ci	  This enables support for the older and uncommon RTL-8129 and
848c2ecf20Sopenharmony_ci	  RTL-8130 chips, which support MII via an external transceiver,
858c2ecf20Sopenharmony_ci	  instead of an internal one.  Disabling this option will save some
868c2ecf20Sopenharmony_ci	  memory by making the code size smaller.  If unsure, say Y.
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ciconfig 8139_OLD_RX_RESET
898c2ecf20Sopenharmony_ci	bool "Use older RX-reset method"
908c2ecf20Sopenharmony_ci	depends on 8139TOO
918c2ecf20Sopenharmony_ci	help
928c2ecf20Sopenharmony_ci	  The 8139too driver was recently updated to contain a more rapid
938c2ecf20Sopenharmony_ci	  reset sequence, in the face of severe receive errors.  This "new"
948c2ecf20Sopenharmony_ci	  RX-reset method should be adequate for all boards.  But if you
958c2ecf20Sopenharmony_ci	  experience problems, you can enable this option to restore the
968c2ecf20Sopenharmony_ci	  old RX-reset behavior.  If unsure, say N.
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ciconfig R8169
998c2ecf20Sopenharmony_ci	tristate "Realtek 8169/8168/8101/8125 ethernet support"
1008c2ecf20Sopenharmony_ci	depends on PCI
1018c2ecf20Sopenharmony_ci	select FW_LOADER
1028c2ecf20Sopenharmony_ci	select CRC32
1038c2ecf20Sopenharmony_ci	select PHYLIB
1048c2ecf20Sopenharmony_ci	select REALTEK_PHY
1058c2ecf20Sopenharmony_ci	help
1068c2ecf20Sopenharmony_ci	  Say Y here if you have a Realtek Ethernet adapter belonging to
1078c2ecf20Sopenharmony_ci	  the following families:
1088c2ecf20Sopenharmony_ci	  RTL8169 Gigabit Ethernet
1098c2ecf20Sopenharmony_ci	  RTL8168 Gigabit Ethernet
1108c2ecf20Sopenharmony_ci	  RTL8101 Fast Ethernet
1118c2ecf20Sopenharmony_ci	  RTL8125 2.5GBit Ethernet
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
1148c2ecf20Sopenharmony_ci	  will be called r8169.  This is recommended.
1158c2ecf20Sopenharmony_ci
1168c2ecf20Sopenharmony_ciendif # NET_VENDOR_REALTEK
117