From 9fd9e74b779079429d17af6b6e770d46a4581f5c Mon Sep 17 00:00:00 2001 From: Shirait Date: Tue, 5 Jun 2007 12:01:00 +0000 Subject: [PATCH] git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/twl_wrapsdk/trunk@106 4ee2a332-4b2b-5046-8439-1ba90f034370 --- include/twl/mi/dma_patch.h | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 include/twl/mi/dma_patch.h diff --git a/include/twl/mi/dma_patch.h b/include/twl/mi/dma_patch.h new file mode 100644 index 0000000..3d2b521 --- /dev/null +++ b/include/twl/mi/dma_patch.h @@ -0,0 +1,70 @@ + + +/*---------------------------------------------------------------------------* + Name: MI_DmaRecv32 + + Description: send u32 data to fixed address + sync 32bit version + + Arguments: dmaNo : DMA channel No. + src : data stream to send + dest : destination address. not incremented + size : size (byte) + + Returns: None + *---------------------------------------------------------------------------*/ +void MI_DmaRecv32(u32 dmaNo, const void *src, volatile void *dest, u32 size); + +/*---------------------------------------------------------------------------* + Name: MI_DmaRecv16 + + Description: send u16 data to fixed address + sync 16bit version + + Arguments: dmaNo : DMA channel No. + src : data stream to send + dest : destination address. not incremented + size : size (byte) + + Returns: None + *---------------------------------------------------------------------------*/ +void MI_DmaRecv16(u32 dmaNo, const void *src, volatile void *dest, u32 size); + +/*---------------------------------------------------------------------------* + Name: MI_DmaRecv32Async + + Description: send u32 data to fixed address + async 32bit version + + Arguments: dmaNo : DMA channel No. + src : data stream to send + dest : destination address. not incremented + size : size (byte) + callback : callback function called finish DMA + arg : callback argument + + Returns: None + *---------------------------------------------------------------------------*/ +void MI_DmaRecv32Async(u32 dmaNo, const void *src, volatile void *dest, u32 size, + MIDmaCallback callback, void *arg); + + +/*---------------------------------------------------------------------------* + Name: MI_DmaRecv16Async + + Description: send u16 data to fixed address + async 16bit version + + Arguments: dmaNo : DMA channel No. + src : data stream to send + dest : destination address. not incremented + size : size (byte) + callback : callback function called finish DMA + arg : callback argument + + Returns: None + *---------------------------------------------------------------------------*/ +void MI_DmaRecv16Async(u32 dmaNo, const void *src, volatile void *dest, u32 size, + MIDmaCallback callback, void *arg); + +