# SPDX-License-Identifier: GPL-2.0
#
# Nebula-Matrix network device configuration
#

config NET_VENDOR_NEBULA_MATRIX
	bool "Nebula-Matrix devices"
	default y
	help
	  If you have a network (Ethernet) card belonging to this class, say Y.
	  Note that the answer to this question doesn't directly affect the
	  kernel: saying N will just cause the configurator to skip all
	  the questions about Nebula-Matrix cards. If you say Y, you will be asked
	  for your specific card in the following questions.

if NET_VENDOR_NEBULA_MATRIX

config NBL_CORE
	tristate "Nebula-Matrix Ethernet Controller M18110/M18000/M18305 support"
	depends on PCI
	# NBL_CORE must not be built into vmlinux while VFIO is a loadable
	# module: nbl_dev_user.c calls vfio_pin_pages() and friends, whose
	# symbols are only exported by the VFIO module.  With VFIO=m this
	# expression evaluates to 'm' and caps NBL_CORE at 'm' as well.
	depends on VFIO || !VFIO
	depends on 64BIT || COMPILE_TEST
	depends on !CPU_BIG_ENDIAN
	default m
	select AUXILIARY_BUS
	select PLDMFW
	select NET_DEVLINK
	help
	  This driver supports Nebula-Matrix Ethernet Controller M18110,
	  M18000 and M18305 family of devices.

	  More specific information on configuring the driver is in
	  <file:Documentation/networking/device_drivers/ethernet/nebula-matrix/nbl_core.rst>.

	  To compile this driver as a module, choose M here. The module
	  will be called nbl_core.

endif # NET_VENDOR_NEBULA_MATRIX

