2019-06-26 23:17:18 +08:00
|
|
|
# Copyright (c) 2022 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menuconfig RTIO
|
|
|
|
bool "RTIO"
|
|
|
|
|
|
|
|
if RTIO
|
|
|
|
|
|
|
|
config RTIO_SUBMIT_SEM
|
|
|
|
bool "Use a semaphore when waiting for completions in rtio_submit"
|
2024-07-31 23:51:10 +08:00
|
|
|
default n if !MULTITHREADING
|
|
|
|
default y
|
2019-06-26 23:17:18 +08:00
|
|
|
help
|
|
|
|
When calling rtio_submit a semaphore is available to sleep the calling
|
|
|
|
thread for each completion queue event until the wait count is met. This
|
|
|
|
adds a small RAM overhead for a single semaphore. By default wait_for will
|
|
|
|
use polling on the completion queue with a k_yield() in between iterations.
|
|
|
|
|
2024-07-31 23:51:10 +08:00
|
|
|
Enabled by default unless !MULTITHREADING
|
|
|
|
|
2019-06-26 23:17:18 +08:00
|
|
|
config RTIO_CONSUME_SEM
|
|
|
|
bool "Use a semaphore when waiting for completions in rtio_cqe_consume_block"
|
2024-07-31 23:51:10 +08:00
|
|
|
default n if !MULTITHREADING
|
|
|
|
default y
|
2019-06-26 23:17:18 +08:00
|
|
|
help
|
|
|
|
When calling rtio_cqe_consume_block a semaphore is available to sleep the
|
|
|
|
calling thread for each completion queue event until the wait count is met.
|
|
|
|
This adds a small RAM overhead for a single semaphore. By default the call
|
|
|
|
will use polling on the completion queue with a k_yield() in between
|
|
|
|
iterations.
|
|
|
|
|
2024-07-31 23:51:10 +08:00
|
|
|
Enabled by default unless !MULTIHREADING
|
|
|
|
|
2023-04-07 12:49:25 +08:00
|
|
|
config RTIO_SYS_MEM_BLOCKS
|
|
|
|
bool "Include system memory blocks as an optional backing read memory pool"
|
|
|
|
select SYS_MEM_BLOCKS
|
|
|
|
help
|
|
|
|
Enable the RTIO_DEFINE_WITH_MEMPOOL macro which allows queueing reads
|
|
|
|
without a pre-allocated memory buffer. Instead the buffer will be taken
|
|
|
|
from the allocated memory pool associated with the RTIO context.
|
|
|
|
|
2024-06-20 05:22:47 +08:00
|
|
|
rsource "Kconfig.workq"
|
|
|
|
|
2019-06-26 23:17:18 +08:00
|
|
|
module = RTIO
|
|
|
|
module-str = RTIO
|
|
|
|
module-help = Sets log level for RTIO support
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
|
|
|
|
endif
|