Kconfig 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. menuconfig RT_USING_NVME
  2. bool "Using Non-Volatile Memory Express (NVME) device drivers"
  3. depends on RT_USING_DM
  4. depends on RT_USING_BLK
  5. depends on RT_USING_DMA
  6. default n
  7. help
  8. Enable the NVMe driver stack so PCIe-connected SSDs can be discovered,
  9. command queues created, and block devices exported through the block
  10. layer. Requires DMA and the driver model; disable if your platform lacks
  11. NVMe hardware.
  12. config RT_USING_NVME_IO_QUEUE
  13. int "Number of I/O Command queue"
  14. depends on RT_USING_NVME
  15. default 2 if RT_THREAD_PRIORITY_8
  16. default 4 if RT_THREAD_PRIORITY_32
  17. default 8 if RT_THREAD_PRIORITY_256
  18. help
  19. Set how many submission/completion queue pairs to create for NVMe I/O.
  20. More queues improve parallelism on multicore systems but consume more DMA
  21. memory and interrupts.
  22. config RT_NVME_PCI
  23. bool "NVME support on PCI bus"
  24. depends on RT_USING_NVME
  25. depends on RT_USING_PCI
  26. default y
  27. help
  28. Allow the driver to bind to NVMe controllers discovered via PCI/PCIe.
  29. Disable only for non-PCI environments (for example, custom interconnects).
  30. if RT_USING_NVME
  31. osource "$(SOC_DM_NVME_DIR)/Kconfig"
  32. endif