00001 00043 #if !defined (OMAP3530_PHY_SHMEM_H) 00044 #define OMAP3530_PHY_SHMEM_H 00045 00046 00047 /* ----------------------------------- DSP/BIOS Link */ 00048 #include <dsplink.h> 00049 00050 /* ----------------------------------- Hardware Abstraction Layer */ 00051 #include <hal.h> 00052 00053 00054 #if defined (__cplusplus) 00055 extern "C" { 00056 #endif 00057 00058 /* ============================================================================ 00059 * @const GENERAL_CONTROL_BASE/IVA2_CM_BASE/CORE_CM_BASE/PER_CM_BASE 00060 * MAILBOX_BASE/MMU_BASE 00061 * 00062 * @brief Base address of different Peripherals. 00063 * ============================================================================ 00064 */ 00065 #define GENERAL_CONTROL_BASE 0x48002270 00066 #define IVA2_CM_BASE 0x48004000 00067 #define CORE_CM_BASE 0x48004A00 00068 #define PER_CM_BASE 0x48005000 00069 #define IVA2_PRM_BASE 0x48306000 00070 #define MAILBOX_BASE 0x48094000 00071 #define MMU_BASE 0x5D000000 00072 #define MMU_SIZE 0x1000 00073 00074 00081 extern HAL_Interface OMAP3530_shmemInterface ; 00082 00083 00084 /* ============================================================================ 00085 * @func OMAP3530_phyShmemInit 00086 * 00087 * @brief Initializes Shared Driver/device. 00088 * 00089 * @param halObject. 00090 * HAL object. 00091 * 00092 * @return DSP_SOK 00093 * Operation successfully completed. 00094 * DSP_EFAIL 00095 * All other error conditions. 00096 * 00097 * @pre None. 00098 * 00099 * @post None. 00100 * 00101 * @see None 00102 * ============================================================================ 00103 */ 00104 NORMAL_API 00105 DSP_STATUS 00106 OMAP3530_phyShmemInit (IN Pvoid halObj) ; 00107 00108 00109 /* ============================================================================ 00110 * @func OMAP3530_phyShmemExit 00111 * 00112 * @brief Finalizes Shared Driver/device. 00113 * 00114 * @param halObject. 00115 * HAL object. 00116 * 00117 * @return DSP_SOK 00118 * Operation successfully completed. 00119 * DSP_EFAIL 00120 * All other error conditions. 00121 * 00122 * @pre None. 00123 * 00124 * @post None. 00125 * 00126 * @see None 00127 * ============================================================================ 00128 */ 00129 NORMAL_API 00130 DSP_STATUS 00131 OMAP3530_phyShmemExit (IN Pvoid halObj) ; 00132 00133 00134 #if defined (__cplusplus) 00135 } 00136 #endif 00137 00138 00139 #endif /* !defined (OMAP3530_PHY_SHMEM_H) */