This source file includes following definitions.
- hsu_dma_get_status
- hsu_dma_do_irq
- hsu_dma_probe
- hsu_dma_remove
1
2
3
4
5
6
7
8 #ifndef _DMA_HSU_H
9 #define _DMA_HSU_H
10
11 #include <linux/device.h>
12 #include <linux/interrupt.h>
13
14 #include <linux/platform_data/dma-hsu.h>
15
16 struct hsu_dma;
17
18
19
20
21
22
23
24
25
26
27
28 struct hsu_dma_chip {
29 struct device *dev;
30 int irq;
31 void __iomem *regs;
32 unsigned int length;
33 unsigned int offset;
34 struct hsu_dma *hsu;
35 };
36
37 #if IS_ENABLED(CONFIG_HSU_DMA)
38
39 int hsu_dma_get_status(struct hsu_dma_chip *chip, unsigned short nr,
40 u32 *status);
41 int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr, u32 status);
42
43
44 int hsu_dma_probe(struct hsu_dma_chip *chip);
45 int hsu_dma_remove(struct hsu_dma_chip *chip);
46 #else
47 static inline int hsu_dma_get_status(struct hsu_dma_chip *chip,
48 unsigned short nr, u32 *status)
49 {
50 return 0;
51 }
52 static inline int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr,
53 u32 status)
54 {
55 return 0;
56 }
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
60
61 #endif