RPC_Result_t RPC_IPC_EndPointInit(RpcProcessorType_t rpcProcType) { memset(ipcInfoList, 0, sizeof(ipcInfoList)); gRpcProcType = rpcProcType; if (rpcProcType == RPC_COMMS) { IPC_EndpointRegister(IPC_EP_Capi2Cp, RPC_FlowCntrl, RPC_BufferDelivery,4); IPC_EndpointRegister(IPC_EP_PsCpData, RPC_FlowCntrl, RPC_BufferDelivery,4 + PDCP_MAX_HEADER_SIZE); IPC_EndpointRegister(IPC_EP_CsdCpCSDData, RPC_FlowCntrl, RPC_BufferDelivery,4); #ifdef IPC_EP_EemAP IPC_EndpointRegister(IPC_EP_EemCP, RPC_FlowCntrl, RPC_BufferDelivery,4); #endif } else { IPC_EndpointRegister(IPC_EP_Capi2App, RPC_FlowCntrl, RPC_BufferDelivery, 4); IPC_EndpointRegister(IPC_EP_PsAppData, RPC_FlowCntrl, RPC_BufferDelivery,4 + PDCP_MAX_HEADER_SIZE); //Owen VT test //#ifndef UNDER_LINUX IPC_EndpointRegister(IPC_EP_CsdAppCSDData, RPC_FlowCntrl, RPC_BufferDelivery,4); #ifndef UNDER_LINUX #ifndef UNDER_CE //modify for WinMo UDP log IPC_EndpointRegister(IPC_EP_LogApps, RPC_FlowCntrl, RPC_BufferDelivery,4); #endif #ifdef IPC_EP_EemAP IPC_EndpointRegister(IPC_EP_EemAP, RPC_FlowCntrl, RPC_BufferDelivery,4); #endif #endif } return RPC_RESULT_OK; }
RPC_Result_t RPC_IPC_EndPointInit(RpcProcessorType_t rpcProcType) { memset(ipcInfoList, 0, sizeof(ipcInfoList)); gRpcProcType = rpcProcType; if (rpcProcType == RPC_COMMS) { IPC_EndpointRegister(IPC_EP_Capi2Cp, RPC_FlowCntrl, RPC_BufferDelivery, 4); IPC_EndpointRegister(IPC_EP_DrxCP, RPC_FlowCntrl, RPC_BufferDelivery, 4); IPC_EndpointRegister(IPC_EP_PsCpData, RPC_FlowCntrl, RPC_BufferDelivery, 4 + PDCP_MAX_HEADER_SIZE); IPC_EndpointRegister(IPC_EP_CsdCpCSDData, RPC_FlowCntrl, RPC_BufferDelivery, 4); IPC_EndpointRegister(IPC_EP_SerialCP, RPC_FlowCntrl, RPC_BufferDelivery, 4); #ifdef IPC_EP_EemAP IPC_EndpointRegister(IPC_EP_EemCP, RPC_FlowCntrl, RPC_BufferDelivery, 4); #endif } else { RPC_IPC_APEndPointInit(); } return RPC_RESULT_OK; }
/** @fn int ipcs_ccb_init(void) */ int ipcs_ccb_init(void) { int i; for (i = 0; i < MAX_AP_ENDPOINTS; i++) { IPC_EndpointRegister(g_clnt_info_tbl[i].end_point, g_clnt_info_tbl[i].flow_ctrl_cb, g_clnt_info_tbl[i].buffer_delivery_cb, g_clnt_info_tbl[i].header_sz); } spin_lock_init(&g_tbl_lock); return(0); }
//**************************************** int Audio_Apps_EP_Register (void) { volatile UInt32 Endp=0; Log_DebugPrintf(LOGID_AUDIO, "\nRegistering Endpoint =%d", IPC_EP_AudioControl_AP); IPC_EndpointRegister( IPC_EP_AudioControl_AP, 0, AudioControlAp_DeliveryFunction, 0 ); return 0; }
void brcm_ipc_aud_control_register(void) { IPC_EndpointRegister( IPC_EP_AudioControl_AP, NULL, //AudioControlAp_FlowControlFunction, AudioControlAp_DeliveryFunction, 0 ); while (0 == IPC_SmIsEndpointRegistered(IPC_EP_AudioControl_AP)) { msleep(15); } brcm_ApAudioPool = IPC_CreateBufferPool( IPC_EP_AudioControl_AP, IPC_EP_AudioControl_CP, 256, 64, 1, 0 ); }
void RPC_IPC_APEndPointInit(void) { IPC_EndpointRegister(IPC_EP_Capi2App, RPC_FlowCntrl, RPC_BufferDelivery, 4); IPC_EndpointRegister(IPC_EP_DrxAP, RPC_FlowCntrl, RPC_BufferDelivery, 4); IPC_EndpointRegister(IPC_EP_PsAppData, RPC_FlowCntrl, RPC_BufferDelivery, 4 + PDCP_MAX_HEADER_SIZE); IPC_EndpointRegister(IPC_EP_CsdAppCSDData, RPC_FlowCntrl, RPC_BufferDelivery, 4); IPC_EndpointRegister(IPC_EP_SerialAP, RPC_FlowCntrl, RPC_BufferDelivery, 4); #ifndef UNDER_LINUX #ifndef UNDER_CE /*modify for WinMo UDP log */ IPC_EndpointRegister(IPC_EP_LogApps, RPC_FlowCntrl, RPC_BufferDelivery, 4); #endif #ifdef IPC_EP_EemAP IPC_EndpointRegister(IPC_EP_EemAP, RPC_FlowCntrl, RPC_BufferDelivery, 4); #endif #endif }