xref: /linux-6.15/kernel/dma/Kconfig (revision 684f7e91)
1cf65a0f6SChristoph Hellwig
2cf65a0f6SChristoph Hellwigconfig HAS_DMA
3cf65a0f6SChristoph Hellwig	bool
4cf65a0f6SChristoph Hellwig	depends on !NO_DMA
5cf65a0f6SChristoph Hellwig	default y
6cf65a0f6SChristoph Hellwig
7cf65a0f6SChristoph Hellwigconfig NEED_SG_DMA_LENGTH
8cf65a0f6SChristoph Hellwig	bool
9cf65a0f6SChristoph Hellwig
10cf65a0f6SChristoph Hellwigconfig NEED_DMA_MAP_STATE
11cf65a0f6SChristoph Hellwig	bool
12cf65a0f6SChristoph Hellwig
13cf65a0f6SChristoph Hellwigconfig ARCH_DMA_ADDR_T_64BIT
14cf65a0f6SChristoph Hellwig	def_bool 64BIT || PHYS_ADDR_T_64BIT
15cf65a0f6SChristoph Hellwig
16cf65a0f6SChristoph Hellwigconfig HAVE_GENERIC_DMA_COHERENT
17cf65a0f6SChristoph Hellwig	bool
18cf65a0f6SChristoph Hellwig
19cf65a0f6SChristoph Hellwigconfig ARCH_HAS_SYNC_DMA_FOR_DEVICE
20cf65a0f6SChristoph Hellwig	bool
21cf65a0f6SChristoph Hellwig
22cf65a0f6SChristoph Hellwigconfig ARCH_HAS_SYNC_DMA_FOR_CPU
23cf65a0f6SChristoph Hellwig	bool
24cf65a0f6SChristoph Hellwig	select NEED_DMA_MAP_STATE
25cf65a0f6SChristoph Hellwig
26*684f7e91SChristoph Hellwigconfig ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
27*684f7e91SChristoph Hellwig	bool
28*684f7e91SChristoph Hellwig
29cf65a0f6SChristoph Hellwigconfig DMA_DIRECT_OPS
30cf65a0f6SChristoph Hellwig	bool
31cf65a0f6SChristoph Hellwig	depends on HAS_DMA
32cf65a0f6SChristoph Hellwig
33cf65a0f6SChristoph Hellwigconfig DMA_NONCOHERENT_OPS
34cf65a0f6SChristoph Hellwig	bool
35cf65a0f6SChristoph Hellwig	depends on HAS_DMA
36cf65a0f6SChristoph Hellwig	select DMA_DIRECT_OPS
37cf65a0f6SChristoph Hellwig
38cf65a0f6SChristoph Hellwigconfig DMA_NONCOHERENT_MMAP
39cf65a0f6SChristoph Hellwig	bool
40cf65a0f6SChristoph Hellwig	depends on DMA_NONCOHERENT_OPS
41cf65a0f6SChristoph Hellwig
42cf65a0f6SChristoph Hellwigconfig DMA_NONCOHERENT_CACHE_SYNC
43cf65a0f6SChristoph Hellwig	bool
44cf65a0f6SChristoph Hellwig	depends on DMA_NONCOHERENT_OPS
45cf65a0f6SChristoph Hellwig
46cf65a0f6SChristoph Hellwigconfig DMA_VIRT_OPS
47cf65a0f6SChristoph Hellwig	bool
48cf65a0f6SChristoph Hellwig	depends on HAS_DMA
49cf65a0f6SChristoph Hellwig
50cf65a0f6SChristoph Hellwigconfig SWIOTLB
51cf65a0f6SChristoph Hellwig	bool
52cf65a0f6SChristoph Hellwig	select DMA_DIRECT_OPS
53cf65a0f6SChristoph Hellwig	select NEED_DMA_MAP_STATE
54