1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Driver for the High Speed UART DMA
5 * Copyright (C) 2015 Intel Corporation
11 #include <linux/device.h>
12 #include <linux/interrupt.h>
14 #include <linux/platform_data/dma-hsu.h>
19 * struct hsu_dma_chip - representation of HSU DMA hardware
20 * @dev: struct device of the DMA controller
22 * @regs: memory mapped I/O space
23 * @length: I/O space length
24 * @offset: offset of the I/O space where registers are located
25 * @hsu: struct hsu_dma that is filed by ->probe()
26 * @pdata: platform data for the DMA controller if provided
37 #if IS_ENABLED(CONFIG_HSU_DMA)
38 /* Export to the internal users */
39 int hsu_dma_get_status(struct hsu_dma_chip *chip, unsigned short nr,
41 int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr, u32 status);
43 /* Export to the platform drivers */
44 int hsu_dma_probe(struct hsu_dma_chip *chip);
45 int hsu_dma_remove(struct hsu_dma_chip *chip);
47 static inline int hsu_dma_get_status(struct hsu_dma_chip *chip,
48 unsigned short nr, u32 *status)
52 static inline int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr,
57 static inline int hsu_dma_probe(struct hsu_dma_chip *chip) { return -ENODEV; }
58 static inline int hsu_dma_remove(struct hsu_dma_chip *chip) { return 0; }
59 #endif /* CONFIG_HSU_DMA */
61 #endif /* _DMA_HSU_H */