00001 00043 #if !defined (TNETV107XGEM_PHY_SHMEM_H) 00044 #define TNETV107XGEM_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 /* ============================================================================ 00060 * @const INTD_BASE/CHIP_CFG_BASE/CLK_CTRL_BASE 00061 * 00062 * @brief Base address of different Peripherals. 00063 * ============================================================================ 00064 */ 00065 #define INTD_BASE 0x08038000 00066 #define INTD_MAP_SIZE 0x1000 00067 #define CHIP_CFG_BASE 0x08087000 00068 #define CHIP_CFG_MAP_SIZE 0x1000 00069 #define CLK_CTRL_BASE 0x0808A000 00070 #define CLK_CTRL_MAP_SIZE 0x2000 00071 00072 00079 extern HAL_Interface TNETV107XGEM_shmemInterface ; 00080 00081 00082 /* ============================================================================ 00083 * @func TNETV107XGEM_phyShmemInit 00084 * 00085 * @brief Initializes Shared Driver/device. 00086 * 00087 * @param halObject. 00088 * HAL object. 00089 * 00090 * @return DSP_SOK 00091 * Operation successfully completed. 00092 * DSP_EFAIL 00093 * All other error conditions. 00094 * 00095 * @pre None. 00096 * 00097 * @post None. 00098 * 00099 * @see None 00100 * ============================================================================ 00101 */ 00102 NORMAL_API 00103 DSP_STATUS 00104 TNETV107XGEM_phyShmemInit (IN Pvoid halObj) ; 00105 00106 00107 /* ============================================================================ 00108 * @func TNETV107XGEM_phyShmemExit 00109 * 00110 * @brief Finalizes Shared Driver/device. 00111 * 00112 * @param halObject. 00113 * HAL object. 00114 * 00115 * @return DSP_SOK 00116 * Operation successfully completed. 00117 * DSP_EFAIL 00118 * All other error conditions. 00119 * 00120 * @pre None. 00121 * 00122 * @post None. 00123 * 00124 * @see None 00125 * ============================================================================ 00126 */ 00127 NORMAL_API 00128 DSP_STATUS 00129 TNETV107XGEM_phyShmemExit (IN Pvoid halObj) ; 00130 00131 00132 #if defined (__cplusplus) 00133 } 00134 #endif 00135 00136 00137 #endif /* !defined (TNETV107XGEM_PHY_SHMEM_H) */