00001 00043 #if !defined (DM6437_HAL_PCI_RDWR_H) 00044 #define DM6437_HAL_PCI_RDWR_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_pci.h> 00054 00055 00056 #if defined (__cplusplus) 00057 extern "C" { 00058 #endif /* if defined (__cplusplus) */ 00059 00060 00061 /* ============================================================================ 00062 * @func DM6437_halPciRead 00063 * 00064 * @brief Reads a buffer from dsp memory (for now this is done as bytes). 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 DM6437_halPciRead (IN Pvoid halObject, 00090 IN Uint32 dspAddr, 00091 IN Uint32 cBytes, 00092 OUT Char8 * readBuffer) ; 00093 00094 00095 /* ============================================================================ 00096 * @func DM6437_halPciWrite 00097 * 00098 * @brief Write a buffer to dsp memory (for now this is done as bytes). 00099 * 00100 * @param halObject. 00101 * HAL Object 00102 * @param dspAddr. 00103 * DSP Address to be used as read address. 00104 * @param cBytes. 00105 * Number of bytes to transfer. 00106 * @param writeBuffer. 00107 * Source buffer. 00108 * 00109 * @return DSP_SOK 00110 * Operation successfully completed. 00111 * DSP_EFAIL 00112 * All other error conditions. 00113 * 00114 * @pre None. 00115 * 00116 * @post None. 00117 * 00118 * @see None 00119 * ============================================================================ 00120 */ 00121 NORMAL_API 00122 DSP_STATUS 00123 DM6437_halPciWrite (IN Pvoid halObject, 00124 IN Uint32 dspAddr, 00125 IN Uint32 cBytes, 00126 IN Char8 * writeBuffer) ; 00127 00128 00129 #if defined (__cplusplus) 00130 } 00131 #endif /* if defined (__cplusplus) */ 00132 00133 #endif /* !defined (DM6437_HAL_PCI_RDWR_H) */