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