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 */
15void dw_edma_v0_core_off(struct dw_edma *chan);
16u16 dw_edma_v0_core_ch_count(struct dw_edma *chan, enum dw_edma_dir dir);
17enum dma_status dw_edma_v0_core_ch_status(struct dw_edma_chan *chan);
18void dw_edma_v0_core_clear_done_int(struct dw_edma_chan *chan);
19void dw_edma_v0_core_clear_abort_int(struct dw_edma_chan *chan);
20u32 dw_edma_v0_core_status_done_int(struct dw_edma *chan, enum dw_edma_dir dir);
21u32 dw_edma_v0_core_status_abort_int(struct dw_edma *chan, enum dw_edma_dir dir);
22void dw_edma_v0_core_start(struct dw_edma_chunk *chunk, bool first);
23int dw_edma_v0_core_device_config(struct dw_edma_chan *chan);
24/* eDMA debug fs callbacks */
25void dw_edma_v0_core_debugfs_on(struct dw_edma_chip *chip);
26void dw_edma_v0_core_debugfs_off(void);
27
28#endif /* _DW_EDMA_V0_CORE_H */
29