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
5  *
6  * Author: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
7  */
8 
9 #ifndef _DW_EDMA_V0_CORE_H
10 #define _DW_EDMA_V0_CORE_H
11 
12 #include <linux/dma/edma.h>
13 
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);
27 
28 #endif /* _DW_EDMA_V0_CORE_H */
29