diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/memblock.h | 2 | ||||
-rw-r--r-- | include/linux/omap-dma.h | 25 |
2 files changed, 23 insertions, 4 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 1ef66360f0b0..8a20a51ed42d 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -252,6 +252,8 @@ static inline void memblock_dump_all(void) | |||
252 | void memblock_set_current_limit(phys_addr_t limit); | 252 | void memblock_set_current_limit(phys_addr_t limit); |
253 | 253 | ||
254 | 254 | ||
255 | phys_addr_t memblock_get_current_limit(void); | ||
256 | |||
255 | /* | 257 | /* |
256 | * pfn conversion functions | 258 | * pfn conversion functions |
257 | * | 259 | * |
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h index 7af25a9c9c51..41a13e70f41f 100644 --- a/include/linux/omap-dma.h +++ b/include/linux/omap-dma.h | |||
@@ -268,14 +268,27 @@ struct omap_dma_dev_attr { | |||
268 | u32 dev_caps; | 268 | u32 dev_caps; |
269 | u16 lch_count; | 269 | u16 lch_count; |
270 | u16 chan_count; | 270 | u16 chan_count; |
271 | struct omap_dma_lch *chan; | 271 | }; |
272 | |||
273 | enum { | ||
274 | OMAP_DMA_REG_NONE, | ||
275 | OMAP_DMA_REG_16BIT, | ||
276 | OMAP_DMA_REG_2X16BIT, | ||
277 | OMAP_DMA_REG_32BIT, | ||
278 | }; | ||
279 | |||
280 | struct omap_dma_reg { | ||
281 | u16 offset; | ||
282 | u8 stride; | ||
283 | u8 type; | ||
272 | }; | 284 | }; |
273 | 285 | ||
274 | /* System DMA platform data structure */ | 286 | /* System DMA platform data structure */ |
275 | struct omap_system_dma_plat_info { | 287 | struct omap_system_dma_plat_info { |
288 | const struct omap_dma_reg *reg_map; | ||
289 | unsigned channel_stride; | ||
276 | struct omap_dma_dev_attr *dma_attr; | 290 | struct omap_dma_dev_attr *dma_attr; |
277 | u32 errata; | 291 | u32 errata; |
278 | void (*disable_irq_lch)(int lch); | ||
279 | void (*show_dma_caps)(void); | 292 | void (*show_dma_caps)(void); |
280 | void (*clear_lch_regs)(int lch); | 293 | void (*clear_lch_regs)(int lch); |
281 | void (*clear_dma)(int lch); | 294 | void (*clear_dma)(int lch); |
@@ -289,8 +302,12 @@ struct omap_system_dma_plat_info { | |||
289 | #define dma_omap2plus() 0 | 302 | #define dma_omap2plus() 0 |
290 | #endif | 303 | #endif |
291 | #define dma_omap1() (!dma_omap2plus()) | 304 | #define dma_omap1() (!dma_omap2plus()) |
292 | #define dma_omap15xx() ((dma_omap1() && (d->dev_caps & ENABLE_1510_MODE))) | 305 | #define __dma_omap15xx(d) (dma_omap1() && (d)->dev_caps & ENABLE_1510_MODE) |
293 | #define dma_omap16xx() ((dma_omap1() && (d->dev_caps & ENABLE_16XX_MODE))) | 306 | #define __dma_omap16xx(d) (dma_omap1() && (d)->dev_caps & ENABLE_16XX_MODE) |
307 | #define dma_omap15xx() __dma_omap15xx(d) | ||
308 | #define dma_omap16xx() __dma_omap16xx(d) | ||
309 | |||
310 | extern struct omap_system_dma_plat_info *omap_get_plat_info(void); | ||
294 | 311 | ||
295 | extern void omap_set_dma_priority(int lch, int dst_port, int priority); | 312 | extern void omap_set_dma_priority(int lch, int dst_port, int priority); |
296 | extern int omap_request_dma(int dev_id, const char *dev_name, | 313 | extern int omap_request_dma(int dev_id, const char *dev_name, |