summaryrefslogtreecommitdiff
path: root/drivers/dma/ti/k3-udma.h
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2020-12-08 12:04:40 +0300
committerVinod Koul <vkoul@kernel.org>2020-12-11 18:50:10 +0300
commit5b65781d06ea90ef2f8e51a13352c43c3daa8cdc (patch)
treecdacaaea886695971b4db7a968e893e1c7b354b7 /drivers/dma/ti/k3-udma.h
parentd2abc982333c02f9e1ff1c6b3782174f5b7662d7 (diff)
downloadlinux-5b65781d06ea90ef2f8e51a13352c43c3daa8cdc.tar.xz
dmaengine: ti: k3-udma-glue: Add support for K3 PKTDMA
This commit adds support for PKTDMA in k3-udma glue driver. Use new psil_endpoint_config struct to get static data for a given channel or a flow during setup. Make sure that the RX flows being mapped to a RX channel is within the range of flows that is been allocated to that RX channel. Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/20201208090440.31792-21-peter.ujfalusi@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/ti/k3-udma.h')
-rw-r--r--drivers/dma/ti/k3-udma.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/ti/k3-udma.h b/drivers/dma/ti/k3-udma.h
index ccb19f286daf..d349c6d482ae 100644
--- a/drivers/dma/ti/k3-udma.h
+++ b/drivers/dma/ti/k3-udma.h
@@ -157,4 +157,8 @@ void xudma_rchanrt_write(struct udma_rchan *rchan, int reg, u32 val);
bool xudma_rflow_is_gp(struct udma_dev *ud, int id);
int xudma_get_rflow_ring_offset(struct udma_dev *ud);
+int xudma_is_pktdma(struct udma_dev *ud);
+
+int xudma_pktdma_tflow_get_irq(struct udma_dev *ud, int udma_tflow_id);
+int xudma_pktdma_rflow_get_irq(struct udma_dev *ud, int udma_rflow_id);
#endif /* K3_UDMA_H_ */