/***************************************************************************** Function : VOS_PidsInit Description: Init PID Input : void Return : VOS_OK on success or errno on failure. Other : *****************************************************************************/ VOS_UINT32 VOS_PidsInit(VOS_VOID) { VOS_UINT32 ulStartUpFailStage = VOS_PID_INIT_ERR_BASE; VOS_UINT32 ulInitPhase; for (ulInitPhase = VOS_IP_LOAD_CONFIG; ulInitPhase <= VOS_IP_BUTT; ulInitPhase++) { g_usPidInitStep = (VOS_UINT16)ulInitPhase; if ( VOS_OK != VOS_PidsInitOnePhase( (enum VOS_INIT_PHASE_DEFINE)ulInitPhase) ) { Print1("# VOS_PidsInitOnePhase VOS_IP_LOAD_CONFIG Error. InitPhase: 0x%x\r\n",ulInitPhase); g_ulOmPidInit |= (ulInitPhase << 16); ulStartUpFailStage |= ulInitPhase; return(ulStartUpFailStage); } } return VOS_OK; }
/***************************************************************************** Function : VOS_PidsInit Description: Init PID Input : VOS_VOID Return : VOS_OK on success or errno on failure. Other : *****************************************************************************/ VOS_UINT32 VOS_PidsInit(VOS_VOID) { VOS_UINT32 ulStartUpFailStage = 0; VOS_UINT32 ulInitPhase; for (ulInitPhase = VOS_IP_LOAD_CONFIG; ulInitPhase <= VOS_IP_BUTT; ulInitPhase++) { if ( VOS_OK != VOS_PidsInitOnePhase( (enum VOS_INIT_PHASE_DEFINE)ulInitPhase) ) { Print("# VOS_PidsInitOnePhase VOS_IP_LOAD_CONFIG Error.\r\n"); ulStartUpFailStage |= ulInitPhase; return(ulStartUpFailStage); } } return VOS_OK; }