Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -53,12 +53,16 @@ enum dma_event_q { · 52 unmodified lines | ||
| 53 | 53 | #define EDMA_CTLR(i) ((i) >> 16) |
| 54 | 54 | #define EDMA_CHAN_SLOT(i) ((i) & 0xffff) |
| 55 | 55 | |
| 56 | +#define EDMA_FILTER_PARAM(ctlr, chan) ((int[]) { EDMA_CTLR_CHAN(ctlr, chan) }) | |
| 57 | + | |
| 56 | 58 | struct edma_rsv_info { |
| 57 | 59 | |
| 58 | 60 | const s16 (*rsv_chans)[2]; |
| 59 | 61 | const s16 (*rsv_slots)[2]; |
| 60 | 62 | }; |
| 61 | 63 | |
| 64 | +struct dma_slave_map; | |
| 65 | + | |
| 62 | 66 | /* platform_data for EDMA driver */ |
| 63 | 67 | struct edma_soc_info { |
| 64 | 68 | /* |
| @@ -76,6 +80,9 @@ struct edma_soc_info { · 11 unmodified lines | ||
| 76 | 80 | |
| 77 | 81 | s8 (*queue_priority_mapping)[2]; |
| 78 | 82 | const s16 (*xbar_chans)[2]; |
| 83 | + | |
| 84 | + const struct dma_slave_map *slave_map; | |
| 85 | + int slavecnt; | |
| 79 | 86 | }; |
| 80 | 87 | |
| 81 | 88 | #endif |