// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2021-2022 Digiteq Automotive * author: Martin Tuma <[email protected]> * * This module handles the DMA transfers. A standard dmaengine API as provided * by the XDMA module is used. */ #include <linux/pci.h> #include <linux/dma-direction.h> #include "mgb4_core.h" #include "mgb4_dma.h" static void chan_irq(void *param) { … } int mgb4_dma_transfer(struct mgb4_dev *mgbdev, u32 channel, bool write, u64 paddr, struct sg_table *sgt) { … } int mgb4_dma_channel_init(struct mgb4_dev *mgbdev) { … } void mgb4_dma_channel_free(struct mgb4_dev *mgbdev) { … }