1# Copyright 2020 Broadcom
2# SPDX-License-Identifier: Apache-2.0
3
4config DMA_IPROC_PAX
5	bool
6	prompt "Broadcom PAX(PCIE<->AXI) DMA driver"
7	default y
8	depends on DT_HAS_BRCM_IPROC_PAX_DMA_V1_ENABLED
9	depends on PCIE_EP_IPROC
10
11config DMA_IPROC_PAX_V2
12	bool
13	prompt "Broadcom PAX(PCIE<->AXI) DMA driver version 2"
14	default y
15	depends on DT_HAS_BRCM_IPROC_PAX_DMA_V2_ENABLED
16	depends on PCIE_EP_IPROC_V2
17
18config DMA_IPROC_PAX_V2_INIT_PRIORITY
19	int "Broadcom PAX v2 initialization priority"
20	default 51
21	depends on DMA_IPROC_PAX_V2
22	help
23	  Broadcom PAX v2 initialization priority.
24
25if DMA_IPROC_PAX || DMA_IPROC_PAX_V2
26
27config DMA_IPROC_PAX_DEBUG
28	bool "PAX DMA paranoid debug checks"
29	help
30	  Add paranoid checks for buffer address/size
31	  alignments for each dma packet.
32
33choice
34	prompt "PAX DMA API modes"
35	default DMA_IPROC_PAX_IRQ_SYNC
36
37config DMA_IPROC_PAX_POLL_MODE
38	bool "PAX DMA API in polling mode"
39	help
40	  PAX DMA API polls for dma completions
41
42config DMA_IPROC_PAX_IRQ_SYNC
43	bool "PAX DMA synchronous API with interrupt support"
44	help
45	  PAX DMA API blocks until dma completion alert is
46	  signalled from ring interrupt handler.
47
48endchoice
49
50choice
51	prompt "PAX DMA Ring operation mode"
52	default DMA_IPROC_PAX_TOGGLE_MODE
53
54config DMA_IPROC_PAX_TOGGLE_MODE
55	bool "PAX DMA Ring toggle mode"
56	help
57	  PAX DMA hardware ring operation in toggle mode
58
59config DMA_IPROC_PAX_DOORBELL_MODE
60	bool "PAX DMA Ring door bell mode"
61	help
62	  PAX DMA hardware ring operation in doorbell mode
63
64endchoice
65
66endif
67