2022-11-23 12:45:05 +01:00
|
|
|
#
|
|
|
|
# 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"
|
2023-03-22 04:49:43 +01:00
|
|
|
depends on OPENAMP
|
2022-11-23 12:45:05 +01:00
|
|
|
default n
|
|
|
|
|
|
|
|
if DRIVERS_VIRTIO
|
2023-03-22 04:49:43 +01:00
|
|
|
config DRIVERS_VIRTIO_MMIO
|
|
|
|
bool "Virtio MMIO Device Support"
|
|
|
|
default n
|
2022-11-23 12:45:05 +01:00
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
config DRIVERS_VIRTIO_MMIO_QUEUE_LEN
|
|
|
|
int "Virtio MMIO Virtio Queue Length"
|
2022-11-23 12:45:05 +01:00
|
|
|
default 0
|
2023-03-22 04:49:43 +01:00
|
|
|
range 0 1024
|
|
|
|
depends on DRIVERS_VIRTIO_MMIO
|
|
|
|
---help---
|
|
|
|
If this value equals to 0, use the max queue length get from
|
|
|
|
mmio register.
|
2022-11-23 12:45:05 +01:00
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
config DRIVERS_VIRTIO_BLK
|
|
|
|
bool "Virtio block support"
|
|
|
|
depends on !DISABLE_MOUNTPOINT
|
|
|
|
default n
|
2022-11-23 12:45:05 +01:00
|
|
|
|
2023-05-29 09:02:12 +02:00
|
|
|
config DRIVERS_VIRTIO_GPU
|
|
|
|
bool "Virtio gpu support"
|
|
|
|
default n
|
|
|
|
depends on VIDEO_FB
|
|
|
|
select FB_UPDATE
|
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
config DRIVERS_VIRTIO_NET
|
2022-11-23 12:45:05 +01:00
|
|
|
bool "Virtio network support"
|
2023-03-22 04:49:43 +01:00
|
|
|
depends on NETDEVICES
|
2022-11-23 12:45:05 +01:00
|
|
|
default n
|
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
2023-03-22 04:49:43 +01:00
|
|
|
select NETDEV_LATEINIT
|
2022-11-23 12:45:05 +01:00
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
config DRIVERS_VIRTIO_NET_BUFNUM
|
|
|
|
int "Virtio network driver buffer number"
|
|
|
|
default 0
|
|
|
|
depends on DRIVERS_VIRTIO_NET
|
|
|
|
---help---
|
|
|
|
The buffer number in each virtqueue. (We have 2 virtqueues.)
|
|
|
|
If this value equals to 0, use CONFIG_IOB_NBUFFERS / 4 for each.
|
|
|
|
Normally we get just a little improvement for >8 buffers, and very little for >32.
|
|
|
|
|
|
|
|
config DRIVERS_VIRTIO_RNG
|
|
|
|
bool "Virtio rng support"
|
2023-05-12 04:21:24 +02:00
|
|
|
default n
|
2023-03-22 04:49:43 +01:00
|
|
|
select ARCH_HAVE_RNG
|
2023-05-12 04:21:24 +02:00
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
config DRIVERS_VIRTIO_SERIAL
|
|
|
|
bool "Virtio serial support"
|
|
|
|
depends on SERIAL
|
|
|
|
default n
|
|
|
|
select SERIAL_RXDMA
|
|
|
|
select SERIAL_TXDMA
|
2023-05-12 04:21:24 +02:00
|
|
|
|
2023-03-22 04:49:43 +01:00
|
|
|
if DRIVERS_VIRTIO_SERIAL
|
|
|
|
config DRIVERS_VIRTIO_SERIAL_BUFSIZE
|
|
|
|
int "Virtio serial driver buffer size"
|
|
|
|
default 256
|
2023-05-12 04:21:24 +02:00
|
|
|
endif
|
2023-03-22 04:49:43 +01:00
|
|
|
endif # DRIVERS_VIRTIO
|