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