18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciconfig IBM_EMAC
38c2ecf20Sopenharmony_ci	tristate "IBM EMAC Ethernet support"
48c2ecf20Sopenharmony_ci	depends on PPC_DCR
58c2ecf20Sopenharmony_ci	select CRC32
68c2ecf20Sopenharmony_ci	select PHYLIB
78c2ecf20Sopenharmony_ci	help
88c2ecf20Sopenharmony_ci	  This driver supports the IBM EMAC family of Ethernet controllers
98c2ecf20Sopenharmony_ci	  typically found on 4xx embedded PowerPC chips, but also on the
108c2ecf20Sopenharmony_ci	  Axon southbridge for Cell.
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciconfig IBM_EMAC_RXB
138c2ecf20Sopenharmony_ci	int "Number of receive buffers"
148c2ecf20Sopenharmony_ci	depends on IBM_EMAC
158c2ecf20Sopenharmony_ci	default "128"
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciconfig IBM_EMAC_TXB
188c2ecf20Sopenharmony_ci	int "Number of transmit buffers"
198c2ecf20Sopenharmony_ci	depends on IBM_EMAC
208c2ecf20Sopenharmony_ci	default "64"
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciconfig IBM_EMAC_POLL_WEIGHT
238c2ecf20Sopenharmony_ci	int "MAL NAPI polling weight"
248c2ecf20Sopenharmony_ci	depends on IBM_EMAC
258c2ecf20Sopenharmony_ci	default "32"
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciconfig IBM_EMAC_RX_COPY_THRESHOLD
288c2ecf20Sopenharmony_ci	int "RX skb copy threshold (bytes)"
298c2ecf20Sopenharmony_ci	depends on IBM_EMAC
308c2ecf20Sopenharmony_ci	default "256"
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciconfig IBM_EMAC_DEBUG
338c2ecf20Sopenharmony_ci	bool "Debugging"
348c2ecf20Sopenharmony_ci	depends on IBM_EMAC
358c2ecf20Sopenharmony_ci	default n
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci# The options below has to be select'ed by the respective
388c2ecf20Sopenharmony_ci# processor types or platforms
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ciconfig IBM_EMAC_ZMII
418c2ecf20Sopenharmony_ci	bool
428c2ecf20Sopenharmony_ci	default n
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciconfig IBM_EMAC_RGMII
458c2ecf20Sopenharmony_ci	bool
468c2ecf20Sopenharmony_ci	default n
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ciconfig IBM_EMAC_TAH
498c2ecf20Sopenharmony_ci	bool
508c2ecf20Sopenharmony_ci	default n
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciconfig IBM_EMAC_EMAC4
538c2ecf20Sopenharmony_ci	bool
548c2ecf20Sopenharmony_ci	default n
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciconfig IBM_EMAC_NO_FLOW_CTRL
578c2ecf20Sopenharmony_ci	bool
588c2ecf20Sopenharmony_ci	default n
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciconfig IBM_EMAC_MAL_CLR_ICINTSTAT
618c2ecf20Sopenharmony_ci	bool
628c2ecf20Sopenharmony_ci	default n
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciconfig IBM_EMAC_MAL_COMMON_ERR
658c2ecf20Sopenharmony_ci	bool
668c2ecf20Sopenharmony_ci	default n
67