diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/alchemy/common/dbdma.c | 9 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h | 23 |
2 files changed, 6 insertions, 26 deletions
diff --git a/arch/mips/alchemy/common/dbdma.c b/arch/mips/alchemy/common/dbdma.c index 549b18f3c18b..864b6dab6368 100644 --- a/arch/mips/alchemy/common/dbdma.c +++ b/arch/mips/alchemy/common/dbdma.c | |||
@@ -571,7 +571,7 @@ EXPORT_SYMBOL(au1xxx_dbdma_ring_alloc); | |||
571 | * This updates the source pointer and byte count. Normally used | 571 | * This updates the source pointer and byte count. Normally used |
572 | * for memory to fifo transfers. | 572 | * for memory to fifo transfers. |
573 | */ | 573 | */ |
574 | u32 _au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags) | 574 | u32 au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags) |
575 | { | 575 | { |
576 | chan_tab_t *ctp; | 576 | chan_tab_t *ctp; |
577 | au1x_ddma_desc_t *dp; | 577 | au1x_ddma_desc_t *dp; |
@@ -624,14 +624,13 @@ u32 _au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags) | |||
624 | /* Return something non-zero. */ | 624 | /* Return something non-zero. */ |
625 | return nbytes; | 625 | return nbytes; |
626 | } | 626 | } |
627 | EXPORT_SYMBOL(_au1xxx_dbdma_put_source); | 627 | EXPORT_SYMBOL(au1xxx_dbdma_put_source); |
628 | 628 | ||
629 | /* Put a destination buffer into the DMA ring. | 629 | /* Put a destination buffer into the DMA ring. |
630 | * This updates the destination pointer and byte count. Normally used | 630 | * This updates the destination pointer and byte count. Normally used |
631 | * to place an empty buffer into the ring for fifo to memory transfers. | 631 | * to place an empty buffer into the ring for fifo to memory transfers. |
632 | */ | 632 | */ |
633 | u32 | 633 | u32 au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags) |
634 | _au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags) | ||
635 | { | 634 | { |
636 | chan_tab_t *ctp; | 635 | chan_tab_t *ctp; |
637 | au1x_ddma_desc_t *dp; | 636 | au1x_ddma_desc_t *dp; |
@@ -687,7 +686,7 @@ _au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags) | |||
687 | /* Return something non-zero. */ | 686 | /* Return something non-zero. */ |
688 | return nbytes; | 687 | return nbytes; |
689 | } | 688 | } |
690 | EXPORT_SYMBOL(_au1xxx_dbdma_put_dest); | 689 | EXPORT_SYMBOL(au1xxx_dbdma_put_dest); |
691 | 690 | ||
692 | /* | 691 | /* |
693 | * Get a destination buffer into the DMA ring. | 692 | * Get a destination buffer into the DMA ring. |
diff --git a/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h b/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h index d206000fbfe2..b417c3bcdcb9 100644 --- a/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h +++ b/arch/mips/include/asm/mach-au1x00/au1xxx_dbdma.h | |||
@@ -339,8 +339,8 @@ u32 au1xxx_dbdma_set_devwidth(u32 chanid, int bits); | |||
339 | u32 au1xxx_dbdma_ring_alloc(u32 chanid, int entries); | 339 | u32 au1xxx_dbdma_ring_alloc(u32 chanid, int entries); |
340 | 340 | ||
341 | /* Put buffers on source/destination descriptors. */ | 341 | /* Put buffers on source/destination descriptors. */ |
342 | u32 _au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags); | 342 | u32 au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags); |
343 | u32 _au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags); | 343 | u32 au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags); |
344 | 344 | ||
345 | /* Get a buffer from the destination descriptor. */ | 345 | /* Get a buffer from the destination descriptor. */ |
346 | u32 au1xxx_dbdma_get_dest(u32 chanid, void **buf, int *nbytes); | 346 | u32 au1xxx_dbdma_get_dest(u32 chanid, void **buf, int *nbytes); |
@@ -363,25 +363,6 @@ void au1xxx_dbdma_suspend(void); | |||
363 | void au1xxx_dbdma_resume(void); | 363 | void au1xxx_dbdma_resume(void); |
364 | #endif | 364 | #endif |
365 | 365 | ||
366 | |||
367 | /* | ||
368 | * Some compatibilty macros -- needed to make changes to API | ||
369 | * without breaking existing drivers. | ||
370 | */ | ||
371 | #define au1xxx_dbdma_put_source(chanid, buf, nbytes) \ | ||
372 | _au1xxx_dbdma_put_source(chanid, buf, nbytes, DDMA_FLAGS_IE) | ||
373 | #define au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags) \ | ||
374 | _au1xxx_dbdma_put_source(chanid, buf, nbytes, flags) | ||
375 | #define put_source_flags(chanid, buf, nbytes, flags) \ | ||
376 | au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags) | ||
377 | |||
378 | #define au1xxx_dbdma_put_dest(chanid, buf, nbytes) \ | ||
379 | _au1xxx_dbdma_put_dest(chanid, buf, nbytes, DDMA_FLAGS_IE) | ||
380 | #define au1xxx_dbdma_put_dest_flags(chanid, buf, nbytes, flags) \ | ||
381 | _au1xxx_dbdma_put_dest(chanid, buf, nbytes, flags) | ||
382 | #define put_dest_flags(chanid, buf, nbytes, flags) \ | ||
383 | au1xxx_dbdma_put_dest_flags(chanid, buf, nbytes, flags) | ||
384 | |||
385 | /* | 366 | /* |
386 | * Flags for the put_source/put_dest functions. | 367 | * Flags for the put_source/put_dest functions. |
387 | */ | 368 | */ |