Skip to content

Commit c055261

Browse files
authored
[DM/FEATURE] Support DMA management (#9682)
1. DMA pool management for platform. 2. DMA engine driver API. Signed-off-by: GuEe-GUI <[email protected]>
1 parent dd709c1 commit c055261

File tree

7 files changed

+1546
-0
lines changed

7 files changed

+1546
-0
lines changed

components/drivers/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ rsource "hwcrypto/Kconfig"
2323
rsource "wlan/Kconfig"
2424
rsource "block/Kconfig"
2525
rsource "virtio/Kconfig"
26+
rsource "dma/Kconfig"
2627
rsource "mfd/Kconfig"
2728
rsource "ofw/Kconfig"
2829
rsource "pci/Kconfig"

components/drivers/dma/Kconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
menuconfig RT_USING_DMA
2+
bool "Using Direct Memory Access (DMA)"
3+
depends on RT_USING_DM
4+
select RT_USING_ADT
5+
select RT_USING_ADT_BITMAP
6+
default n
7+
8+
if RT_USING_DMA
9+
osource "$(SOC_DM_DMA_DIR)/Kconfig"
10+
endif

components/drivers/dma/SConscript

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from building import *
2+
3+
group = []
4+
5+
if not GetDepend(['RT_USING_DMA']):
6+
Return('group')
7+
8+
cwd = GetCurrentDir()
9+
CPPPATH = [cwd + '/../include']
10+
11+
src = ['dma.c', 'dma_pool.c']
12+
13+
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
14+
15+
Return('group')

0 commit comments

Comments
 (0)