17e4b8a4fSGustavo Pimentel /* SPDX-License-Identifier: GPL-2.0 */ 27e4b8a4fSGustavo Pimentel /* 37e4b8a4fSGustavo Pimentel * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates. 47e4b8a4fSGustavo Pimentel * Synopsys DesignWare eDMA v0 core 57e4b8a4fSGustavo Pimentel * 67e4b8a4fSGustavo Pimentel * Author: Gustavo Pimentel <gustavo.pimentel@synopsys.com> 77e4b8a4fSGustavo Pimentel */ 87e4b8a4fSGustavo Pimentel 97e4b8a4fSGustavo Pimentel #ifndef _DW_EDMA_V0_CORE_H 107e4b8a4fSGustavo Pimentel #define _DW_EDMA_V0_CORE_H 117e4b8a4fSGustavo Pimentel 127e4b8a4fSGustavo Pimentel #include <linux/dma/edma.h> 137e4b8a4fSGustavo Pimentel 147e4b8a4fSGustavo Pimentel /* eDMA management callbacks */ 157e4b8a4fSGustavo Pimentel void dw_edma_v0_core_off(struct dw_edma *chan); 167e4b8a4fSGustavo Pimentel u16 dw_edma_v0_core_ch_count(struct dw_edma *chan, enum dw_edma_dir dir); 177e4b8a4fSGustavo Pimentel enum dma_status dw_edma_v0_core_ch_status(struct dw_edma_chan *chan); 187e4b8a4fSGustavo Pimentel void dw_edma_v0_core_clear_done_int(struct dw_edma_chan *chan); 197e4b8a4fSGustavo Pimentel void dw_edma_v0_core_clear_abort_int(struct dw_edma_chan *chan); 207e4b8a4fSGustavo Pimentel u32 dw_edma_v0_core_status_done_int(struct dw_edma *chan, enum dw_edma_dir dir); 217e4b8a4fSGustavo Pimentel u32 dw_edma_v0_core_status_abort_int(struct dw_edma *chan, enum dw_edma_dir dir); 227e4b8a4fSGustavo Pimentel void dw_edma_v0_core_start(struct dw_edma_chunk *chunk, bool first); 237e4b8a4fSGustavo Pimentel int dw_edma_v0_core_device_config(struct dw_edma_chan *chan); 247e4b8a4fSGustavo Pimentel /* eDMA debug fs callbacks */ 257e4b8a4fSGustavo Pimentel void dw_edma_v0_core_debugfs_on(struct dw_edma_chip *chip); 267e4b8a4fSGustavo Pimentel void dw_edma_v0_core_debugfs_off(void); 277e4b8a4fSGustavo Pimentel 287e4b8a4fSGustavo Pimentel #endif /* _DW_EDMA_V0_CORE_H */ 29