00001 00043 #if !defined (DM6437_HAL_VLYNQ_DMA_H) 00044 #define DM6437_HAL_VLYNQ_DMA_H 00045 00046 00047 /* ----------------------------------- DSP/BIOS Link */ 00048 #include <dsplink.h> 00049 #include <_dsplink.h> 00050 00051 /* ----------------------------------- OSAL Headers */ 00052 #include <dm6437_hal.h> 00053 #include <dm6437_hal_vlynq.h> 00054 00055 00056 #if defined (__cplusplus) 00057 extern "C" { 00058 #endif /* if defined (__cplusplus) */ 00059 00060 00061 /* ============================================================================ 00062 * @func DM6437_halVlynqReadDMA 00063 * 00064 * @brief DMAs contents from DSP memory to GPP Memory. Here read means DSP 00065 * write. 00066 * 00067 * @param halObject. 00068 * HAL Object 00069 * @param srcAddr. 00070 * Source Address. 00071 * @param dstAddr. 00072 * Destination Address. 00073 * @param size. 00074 * Number of bytes to transfer. 00075 * 00076 * @return DSP_SOK 00077 * Operation successfully completed. 00078 * DSP_EFAIL 00079 * All other error conditions. 00080 * 00081 * @pre None. 00082 * 00083 * @post None. 00084 * 00085 * @see None 00086 * ============================================================================ 00087 */ 00088 NORMAL_API 00089 DSP_STATUS 00090 DM6437_halVlynqReadDMA (IN Pvoid halObject, 00091 IN Uint32 srcAddr, 00092 IN Uint32 dstAddr, 00093 IN Uint32 size) ; 00094 00095 00096 /* ============================================================================ 00097 * @func DM6437_halVlynqWriteDMA 00098 * 00099 * @brief DMAs contents from GPP memory to DSP Memory. Here write means DSP 00100 * read. 00101 * 00102 * @param halObject. 00103 * HAL Object 00104 * @param srcAddr. 00105 * Source Address. 00106 * @param dstAddr. 00107 * Destination Address. 00108 * @param size. 00109 * Number of bytes to transfer. 00110 * 00111 * @return DSP_SOK 00112 * Operation successfully completed. 00113 * DSP_EFAIL 00114 * All other error conditions. 00115 * 00116 * @pre None. 00117 * 00118 * @post None. 00119 * 00120 * @see None 00121 * ============================================================================ 00122 */ 00123 NORMAL_API 00124 DSP_STATUS 00125 DM6437_halVlynqWriteDMA (IN Pvoid halObject, 00126 IN Uint32 srcAddr, 00127 IN Uint32 dstAddr, 00128 IN Uint32 size) ; 00129 00130 00131 #if defined (__cplusplus) 00132 } 00133 #endif /* if defined (__cplusplus) */ 00134 00135 #endif /* !defined (DM6437_HAL_VLYNQ_DMA_H) */