1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2a8fe65b8SJeff Kirsher#
3a8fe65b8SJeff Kirsher# Realtek device configuration
4a8fe65b8SJeff Kirsher#
5a8fe65b8SJeff Kirsher
6a8fe65b8SJeff Kirsherconfig NET_VENDOR_REALTEK
7a8fe65b8SJeff Kirsher	bool "Realtek devices"
888f07484SJeff Kirsher	default y
9a8fe65b8SJeff Kirsher	depends on PCI || (PARPORT && X86)
10a7f7f624SMasahiro Yamada	help
11138b15edSPaul Gortmaker	  If you have a network (Ethernet) card belonging to this class, say Y.
12a8fe65b8SJeff Kirsher
13a8fe65b8SJeff Kirsher	  Note that the answer to this question doesn't directly affect the
14a8fe65b8SJeff Kirsher	  kernel: saying N will just cause the configurator to skip all
15a8fe65b8SJeff Kirsher	  the questions about Realtek devices. If you say Y, you will be asked for
16a8fe65b8SJeff Kirsher	  your specific card in the following questions.
17a8fe65b8SJeff Kirsher
18a8fe65b8SJeff Kirsherif NET_VENDOR_REALTEK
19a8fe65b8SJeff Kirsher
20a8fe65b8SJeff Kirsherconfig ATP
21a8fe65b8SJeff Kirsher	tristate "AT-LAN-TEC/RealTek pocket adapter support"
22a8fe65b8SJeff Kirsher	depends on PARPORT && X86
23a8fe65b8SJeff Kirsher	select CRC32
24a7f7f624SMasahiro Yamada	help
25a8fe65b8SJeff Kirsher	  This is a network (Ethernet) device which attaches to your parallel
26138b15edSPaul Gortmaker	  port. Read the file <file:drivers/net/ethernet/realtek/atp.c>
273396c782SPaul Gortmaker	  if you want to use this.  If you intend to use this driver, you
283396c782SPaul Gortmaker	  should have said N to the "Parallel printer support", because the two
293396c782SPaul Gortmaker	  drivers don't like each other.
30a8fe65b8SJeff Kirsher
31a8fe65b8SJeff Kirsher	  To compile this driver as a module, choose M here: the module
32a8fe65b8SJeff Kirsher	  will be called atp.
33a8fe65b8SJeff Kirsher
34a8fe65b8SJeff Kirsherconfig 8139CP
355af9857dSKees Cook	tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support"
365af9857dSKees Cook	depends on PCI
37a8fe65b8SJeff Kirsher	select CRC32
38a8fe65b8SJeff Kirsher	select MII
39a7f7f624SMasahiro Yamada	help
40a8fe65b8SJeff Kirsher	  This is a driver for the Fast Ethernet PCI network cards based on
41138b15edSPaul Gortmaker	  the RTL8139C+ chips. If you have one of those, say Y here.
42a8fe65b8SJeff Kirsher
43a8fe65b8SJeff Kirsher	  To compile this driver as a module, choose M here: the module
44a8fe65b8SJeff Kirsher	  will be called 8139cp.  This is recommended.
45a8fe65b8SJeff Kirsher
46a8fe65b8SJeff Kirsherconfig 8139TOO
47a8fe65b8SJeff Kirsher	tristate "RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support"
48a8fe65b8SJeff Kirsher	depends on PCI
49a8fe65b8SJeff Kirsher	select CRC32
50a8fe65b8SJeff Kirsher	select MII
51a7f7f624SMasahiro Yamada	help
52a8fe65b8SJeff Kirsher	  This is a driver for the Fast Ethernet PCI network cards based on
53138b15edSPaul Gortmaker	  the RTL 8129/8130/8139 chips. If you have one of those, say Y here.
54a8fe65b8SJeff Kirsher
55a8fe65b8SJeff Kirsher	  To compile this driver as a module, choose M here: the module
56a8fe65b8SJeff Kirsher	  will be called 8139too.  This is recommended.
57a8fe65b8SJeff Kirsher
58a8fe65b8SJeff Kirsherconfig 8139TOO_PIO
59a8fe65b8SJeff Kirsher	bool "Use PIO instead of MMIO"
60a8fe65b8SJeff Kirsher	default y
61a8fe65b8SJeff Kirsher	depends on 8139TOO
62a7f7f624SMasahiro Yamada	help
63a8fe65b8SJeff Kirsher	  This instructs the driver to use programmed I/O ports (PIO) instead
64a8fe65b8SJeff Kirsher	  of PCI shared memory (MMIO).  This can possibly solve some problems
65a8fe65b8SJeff Kirsher	  in case your mainboard has memory consistency issues.  If unsure,
66a8fe65b8SJeff Kirsher	  say N.
67a8fe65b8SJeff Kirsher
68a8fe65b8SJeff Kirsherconfig 8139TOO_TUNE_TWISTER
69a8fe65b8SJeff Kirsher	bool "Support for uncommon RTL-8139 rev. K (automatic channel equalization)"
70a8fe65b8SJeff Kirsher	depends on 8139TOO
71a7f7f624SMasahiro Yamada	help
72a8fe65b8SJeff Kirsher	  This implements a function which might come in handy in case you
73a8fe65b8SJeff Kirsher	  are using low quality on long cabling. It is required for RealTek
74a8fe65b8SJeff Kirsher	  RTL-8139 revision K boards, and totally unused otherwise.  It tries
75a8fe65b8SJeff Kirsher	  to match the transceiver to the cable characteristics. This is
76a8fe65b8SJeff Kirsher	  experimental since hardly documented by the manufacturer.
77a8fe65b8SJeff Kirsher	  If unsure, say Y.
78a8fe65b8SJeff Kirsher
79a8fe65b8SJeff Kirsherconfig 8139TOO_8129
80a8fe65b8SJeff Kirsher	bool "Support for older RTL-8129/8130 boards"
81a8fe65b8SJeff Kirsher	depends on 8139TOO
82a7f7f624SMasahiro Yamada	help
83a8fe65b8SJeff Kirsher	  This enables support for the older and uncommon RTL-8129 and
84a8fe65b8SJeff Kirsher	  RTL-8130 chips, which support MII via an external transceiver,
85a8fe65b8SJeff Kirsher	  instead of an internal one.  Disabling this option will save some
86a8fe65b8SJeff Kirsher	  memory by making the code size smaller.  If unsure, say Y.
87a8fe65b8SJeff Kirsher
88a8fe65b8SJeff Kirsherconfig 8139_OLD_RX_RESET
89a8fe65b8SJeff Kirsher	bool "Use older RX-reset method"
90a8fe65b8SJeff Kirsher	depends on 8139TOO
91a7f7f624SMasahiro Yamada	help
92a8fe65b8SJeff Kirsher	  The 8139too driver was recently updated to contain a more rapid
93a8fe65b8SJeff Kirsher	  reset sequence, in the face of severe receive errors.  This "new"
94a8fe65b8SJeff Kirsher	  RX-reset method should be adequate for all boards.  But if you
95a8fe65b8SJeff Kirsher	  experience problems, you can enable this option to restore the
96a8fe65b8SJeff Kirsher	  old RX-reset behavior.  If unsure, say N.
97a8fe65b8SJeff Kirsher
98a8fe65b8SJeff Kirsherconfig R8169
99f1bce4adSHeiner Kallweit	tristate "Realtek 8169/8168/8101/8125 ethernet support"
100a8fe65b8SJeff Kirsher	depends on PCI
101a8fe65b8SJeff Kirsher	select FW_LOADER
102a8fe65b8SJeff Kirsher	select CRC32
103f1e911d5SHeiner Kallweit	select PHYLIB
104bfdd19adSHeiner Kallweit	select REALTEK_PHY
105a7f7f624SMasahiro Yamada	help
106f1bce4adSHeiner Kallweit	  Say Y here if you have a Realtek Ethernet adapter belonging to
107f1bce4adSHeiner Kallweit	  the following families:
108f1bce4adSHeiner Kallweit	  RTL8169 Gigabit Ethernet
109f1bce4adSHeiner Kallweit	  RTL8168 Gigabit Ethernet
110f1bce4adSHeiner Kallweit	  RTL8101 Fast Ethernet
111f1bce4adSHeiner Kallweit	  RTL8125 2.5GBit Ethernet
112a8fe65b8SJeff Kirsher
113a8fe65b8SJeff Kirsher	  To compile this driver as a module, choose M here: the module
114a8fe65b8SJeff Kirsher	  will be called r8169.  This is recommended.
115a8fe65b8SJeff Kirsher
116a8fe65b8SJeff Kirsherendif # NET_VENDOR_REALTEK
117