b7d4d74e03
Based on FreeBSD's implementation made by James Harris, Intel Copyright 2012-2016. Since Zephyr does not propose any advanced interfaces as FreeBSD (bus abstractions, memory and DMA abstraction and many more), this comes with a much simplified and Zephyr-ish way to instanciate, initialize and use NVMe controller. ToDo: IO Queues cannot be more than 1. Macros will need to be improved to manage the case of 2+ IO queues. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
18 lines
499 B
CMake
18 lines
499 B
CMake
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(CONFIG_DISK_DRIVERS)
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_DISK_DRIVER_FLASH flashdisk.c)
|
|
zephyr_library_sources_ifdef(CONFIG_DISK_DRIVER_RAM ramdisk.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_SDMMC_STM32 sdmmc_stm32.c)
|
|
zephyr_library_sources_ifdef(CONFIG_SDMMC_SUBSYS sdmmc_subsys.c)
|
|
zephyr_library_sources_ifdef(CONFIG_MMC_SUBSYS mmc_subsys.c)
|
|
|
|
add_subdirectory_ifdef(CONFIG_NVME nvme)
|
|
|
|
endif()
|