#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

menuconfig DRIVERS_VIRTIO
	bool "Virtio Device Support"
	depends on !OPENAMP
	default n

if DRIVERS_VIRTIO
menuconfig DRIVERS_VIRTIO_MMIO_NUM
	int "The number of virtio mmio devices"
	default 1

if DRIVERS_VIRTIO_MMIO_NUM != 0
menuconfig DRIVERS_VIRTIO_MMIO_BASE
	hex "Virtio-mmio base address"

menuconfig DRIVERS_VIRTIO_MMIO_REGSIZE
	hex "Virtio-mmio register size"
	default 0

menuconfig DRIVERS_VIRTIO_MMIO_IRQ
	int "Virtio-mmio irq number"

endif

menuconfig DRIVERS_VIRTIO_NET
	bool "Virtio network support"
	default n
	depends on DRIVERS_VIRTIO_MMIO_NUM > 0
	select ARCH_HAVE_NETDEV_STATISTICS

if DRIVERS_VIRTIO_NET
config DRIVERS_VIRTIO_NET_QUEUE_LEN
	int "Queue length"
	default 16

endif

menuconfig DRIVERS_VIRTIO_BLK
	bool "Virtio block support"
	default n
	depends on DRIVERS_VIRTIO_MMIO_NUM > 0

endif

if DRIVERS_VIRTIO_BLK
config DRIVERS_VIRTIO_BLK_QUEUE_LEN
	int "Queue length"
	default 16

endif