00001 00043 #if !defined (DM6437_HAL_PCI_MAP_H) 00044 #define DM6437_HAL_PCI_MAP_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_halPciMapCtrl 00063 * 00064 * @brief Mapping controller. 00065 * 00066 * @param halObject. 00067 * HAL Object 00068 * @param cmd. 00069 * MAP Command. 00070 * @param dspBufAddr. 00071 * DSP address to be mapped. 00072 * @param size. 00073 * Size of area to be mapped. 00074 * @param bufVirtPtr. 00075 * virtual address of mapped area. 00076 * @param bufPhysAddr. 00077 * Physical address of mapped area in HOST address space. 00078 * @param mappedSize. 00079 * Size of memory region mapped. 00080 * 00081 * @return DSP_SOK 00082 * Operation successfully completed. 00083 * DSP_ERANGE 00084 * A parameter is specified outside its valid range. 00085 * DSP_EINVALIDARG 00086 * Unsupported interrupt control command. 00087 * 00088 * @pre None. 00089 * 00090 * @post None. 00091 * 00092 * @see None 00093 * ============================================================================ 00094 */ 00095 NORMAL_API 00096 DSP_STATUS 00097 DM6437_halPciMapCtrl (IN Pvoid halObject, 00098 IN DSP_MapCtrlCmd cmd, 00099 IN Uint32 dspBufAddr, 00100 IN Uint32 size, 00101 OUT Uint32 * bufVirtPtr, 00102 OUT Uint32 * bufPhysAddr, 00103 OUT Uint32 * mappedSize) ; 00104 00105 00106 #if defined (__cplusplus) 00107 } 00108 #endif /* if defined (__cplusplus) */ 00109 00110 #endif /* !defined (DM6437_HAL_PCI_MAP_H) */