History

dmaengine: edma: Add support for DMA filter mapping to slave devices

Add support for providing device to filter_fn mapping so client drivers can switch to use the dma_request_chan() API.

Peter Ujfalusi committed 10 years ago

Commit 23e67231 parent a8135d02 files · +11 −0Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/edma.h+7−0
@@ -53,12 +53,16 @@ enum dma_event_q { · 52 unmodified lines
53#define EDMA_CTLR(i) ((i) >> 16)53#define EDMA_CTLR(i) ((i) >> 16)
54#define EDMA_CHAN_SLOT(i) ((i) & 0xffff)54#define EDMA_CHAN_SLOT(i) ((i) & 0xffff)
55 55
56#define EDMA_FILTER_PARAM(ctlr, chan) ((int[]) { EDMA_CTLR_CHAN(ctlr, chan) })
57
56struct edma_rsv_info {58struct edma_rsv_info {
57 59
58 const s16 (*rsv_chans)[2];60 const s16 (*rsv_chans)[2];
59 const s16 (*rsv_slots)[2];61 const s16 (*rsv_slots)[2];
60};62};
61 63
64struct dma_slave_map;
65
62/* platform_data for EDMA driver */66/* platform_data for EDMA driver */
63struct edma_soc_info {67struct edma_soc_info {
64 /*68 /*
@@ -76,6 +80,9 @@ struct edma_soc_info { · 11 unmodified lines
76 80
77 s8 (*queue_priority_mapping)[2];81 s8 (*queue_priority_mapping)[2];
78 const s16 (*xbar_chans)[2];82 const s16 (*xbar_chans)[2];
83
84 const struct dma_slave_map *slave_map;
85 int slavecnt;
79};86};
80 87
81#endif88#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t