diff options
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/edma.h')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/edma.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/include/mach/edma.h b/arch/arm/mach-davinci/include/mach/edma.h index 24a379239d7f..ba2ebdd058a0 100644 --- a/arch/arm/mach-davinci/include/mach/edma.h +++ b/arch/arm/mach-davinci/include/mach/edma.h | |||
@@ -170,6 +170,10 @@ enum sync_dimension { | |||
170 | ABSYNC = 1 | 170 | ABSYNC = 1 |
171 | }; | 171 | }; |
172 | 172 | ||
173 | #define EDMA_CTLR_CHAN(ctlr, chan) (((ctlr) << 16) | (chan)) | ||
174 | #define EDMA_CTLR(i) ((i) >> 16) | ||
175 | #define EDMA_CHAN_SLOT(i) ((i) & 0xffff) | ||
176 | |||
173 | #define EDMA_CHANNEL_ANY -1 /* for edma_alloc_channel() */ | 177 | #define EDMA_CHANNEL_ANY -1 /* for edma_alloc_channel() */ |
174 | #define EDMA_SLOT_ANY -1 /* for edma_alloc_slot() */ | 178 | #define EDMA_SLOT_ANY -1 /* for edma_alloc_slot() */ |
175 | 179 | ||
@@ -180,7 +184,7 @@ int edma_alloc_channel(int channel, | |||
180 | void edma_free_channel(unsigned channel); | 184 | void edma_free_channel(unsigned channel); |
181 | 185 | ||
182 | /* alloc/free parameter RAM slots */ | 186 | /* alloc/free parameter RAM slots */ |
183 | int edma_alloc_slot(int slot); | 187 | int edma_alloc_slot(unsigned ctlr, int slot); |
184 | void edma_free_slot(unsigned slot); | 188 | void edma_free_slot(unsigned slot); |
185 | 189 | ||
186 | /* calls that operate on part of a parameter RAM slot */ | 190 | /* calls that operate on part of a parameter RAM slot */ |
@@ -216,9 +220,12 @@ struct edma_soc_info { | |||
216 | unsigned n_region; | 220 | unsigned n_region; |
217 | unsigned n_slot; | 221 | unsigned n_slot; |
218 | unsigned n_tc; | 222 | unsigned n_tc; |
223 | unsigned n_cc; | ||
219 | 224 | ||
220 | /* list of channels with no even trigger; terminated by "-1" */ | 225 | /* list of channels with no even trigger; terminated by "-1" */ |
221 | const s8 *noevent; | 226 | const s8 *noevent; |
227 | const s8 (*queue_tc_mapping)[2]; | ||
228 | const s8 (*queue_priority_mapping)[2]; | ||
222 | }; | 229 | }; |
223 | 230 | ||
224 | #endif | 231 | #endif |