# SPDX-License-Identifier: GPL-2.0-only
#
################################################################################
#
# Driver for Xilinx network controllers and boards
# Copyright 2019-2021 Xilinx Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation, incorporated herein by reference.
#
#################################################################################
#
# Xilinx device configuration
#

config NET_VENDOR_XILINX
	bool "Xilinx devices"
	default y
	select NET_DEVLINK
	help
	  If you have a network (Ethernet) card belonging to this class, say Y.
	  Note that the answer to this question does not directly affect the
	  kernel: saying N will just cause the configurator to skip all
	  the questions about Xilinx devices. If you say Y, you will be asked
	  for your specific card in the following questions.

if NET_VENDOR_XILINX

config XILINX_EFCT
	tristate "Xilinx X3 support"
	depends on PCI && (X86 || ARCH_DMA_ADDR_T_64BIT)
	default m
	select MDIO
	select CRC32
	help
	  It also supports 10/25/40/50/100-gigabit Ethernet cards based
	  on the Xilinx X3 networking IP in Xilinx FPGAs.
	  To compile this driver as a module, choose M here.  The module
	  will be called xilinx.

config XILINX_MCDI_LOGGING
	bool "Xilinx MCDI logging support"
	depends on XILINX_EFCT
	default y
	help
	  This enables support for tracing of MCDI (Management-Controller-to-
	  Driver-Interface) commands and responses, allowing debugging of
	  driver/firmware interaction.  The tracing is actually enabled by
	  a sysfs file 'mcdi_logging' under the PCI device.

endif # NET_VENDOR_XILINX
