This source file includes following definitions.
- dw_edma_probe
- dw_edma_remove
1
2
3
4
5
6
7
8
9 #ifndef _DW_EDMA_H
10 #define _DW_EDMA_H
11
12 #include <linux/device.h>
13 #include <linux/dmaengine.h>
14
15 struct dw_edma;
16
17
18
19
20
21
22
23
24 struct dw_edma_chip {
25 struct device *dev;
26 int id;
27 int irq;
28 struct dw_edma *dw;
29 };
30
31
32 #if IS_ENABLED(CONFIG_DW_EDMA)
33 int dw_edma_probe(struct dw_edma_chip *chip);
34 int dw_edma_remove(struct dw_edma_chip *chip);
35 #else
36 static inline int dw_edma_probe(struct dw_edma_chip *chip)
37 {
38 return -ENODEV;
39 }
40
41 static inline int dw_edma_remove(struct dw_edma_chip *chip)
42 {
43 return 0;
44 }
45 #endif
46
47 #endif