00001 00045 #if !defined (TNETV107XGEM_HAL_H) 00046 #define TNETV107XGEM_HAL_H 00047 00048 00049 /* ----------------------------------- DSP/BIOS Link */ 00050 #include <dsplink.h> 00051 #include <_dsplink.h> 00052 00053 /* ----------------------------------- Trace & Debug */ 00054 #include <_trace.h> 00055 00056 /* ----------------------------------- Hardware Abstraction Layer */ 00057 #include <hal.h> 00058 00059 00060 #if defined (__cplusplus) 00061 extern "C" { 00062 #endif 00063 00064 00065 /* ============================================================================ 00066 * @macro REG 00067 * 00068 * @brief Regsiter access method. 00069 * ============================================================================ 00070 */ 00071 #define REG(x) *((volatile Uint32 *) (x)) 00072 00073 00089 typedef struct TNETV107XGEM_HalObj_tag { 00090 HAL_Interface * interface ; 00091 Uint32 intdBase ; 00092 Uint32 cfgBase ; 00093 Uint32 clkCtrlBase; 00094 } TNETV107XGEM_HalObj ; 00095 00096 00121 NORMAL_API 00122 DSP_STATUS 00123 TNETV107XGEM_halInit (IN Pvoid * halObj, 00124 IN Pvoid initParams) ; 00125 00126 00147 NORMAL_API 00148 DSP_STATUS 00149 TNETV107XGEM_halExit (IN Pvoid * halObj) ; 00150 00151 00152 #if defined (__cplusplus) 00153 } 00154 #endif 00155 00156 00157 #endif /* !defined (TNETV107XGEM_HAL_H) */