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