Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / dma / dw-edma / dw-edma-v0-core.h
blobabae1527f1f9b41cde74afb0246ea2bead843cdd
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates.
4 * Synopsys DesignWare eDMA v0 core
6 * Author: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
7 */
9 #ifndef _DW_EDMA_V0_CORE_H
10 #define _DW_EDMA_V0_CORE_H
12 #include <linux/dma/edma.h>
14 /* eDMA management callbacks */
15 void dw_edma_v0_core_off(struct dw_edma *chan);
16 u16 dw_edma_v0_core_ch_count(struct dw_edma *chan, enum dw_edma_dir dir);
17 enum dma_status dw_edma_v0_core_ch_status(struct dw_edma_chan *chan);
18 void dw_edma_v0_core_clear_done_int(struct dw_edma_chan *chan);
19 void dw_edma_v0_core_clear_abort_int(struct dw_edma_chan *chan);
20 u32 dw_edma_v0_core_status_done_int(struct dw_edma *chan, enum dw_edma_dir dir);
21 u32 dw_edma_v0_core_status_abort_int(struct dw_edma *chan, enum dw_edma_dir dir);
22 void dw_edma_v0_core_start(struct dw_edma_chunk *chunk, bool first);
23 int dw_edma_v0_core_device_config(struct dw_edma_chan *chan);
24 /* eDMA debug fs callbacks */
25 void dw_edma_v0_core_debugfs_on(struct dw_edma_chip *chip);
26 void dw_edma_v0_core_debugfs_off(void);
28 #endif /* _DW_EDMA_V0_CORE_H */