2 * Driver for the High Speed UART DMA
4 * Copyright (C) 2015 Intel Corporation
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
14 #include <linux/device.h>
15 #include <linux/interrupt.h>
17 #include <linux/platform_data/dma-hsu.h>
22 * struct hsu_dma_chip - representation of HSU DMA hardware
23 * @dev: struct device of the DMA controller
25 * @regs: memory mapped I/O space
26 * @length: I/O space length
27 * @offset: offset of the I/O space where registers are located
28 * @hsu: struct hsu_dma that is filed by ->probe()
29 * @pdata: platform data for the DMA controller if provided
40 #if IS_ENABLED(CONFIG_HSU_DMA)
41 /* Export to the internal users */
42 irqreturn_t
hsu_dma_irq(struct hsu_dma_chip
*chip
, unsigned short nr
);
44 /* Export to the platform drivers */
45 int hsu_dma_probe(struct hsu_dma_chip
*chip
);
46 int hsu_dma_remove(struct hsu_dma_chip
*chip
);
48 static inline irqreturn_t
hsu_dma_irq(struct hsu_dma_chip
*chip
,
53 static inline int hsu_dma_probe(struct hsu_dma_chip
*chip
) { return -ENODEV
; }
54 static inline int hsu_dma_remove(struct hsu_dma_chip
*chip
) { return 0; }
55 #endif /* CONFIG_HSU_DMA */
57 #endif /* _DMA_HSU_H */
This page took 0.043679 seconds and 5 git commands to generate.