X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Include%2FupcCommon.h;fp=Include%2FupcCommon.h;h=3937ec8fe52a50c498cd24b642f88f0e0623c75f;hb=1f71b9a76eacf92b39c1ce6f782f8404a34f60a9;hp=0000000000000000000000000000000000000000;hpb=254694245736881ecfff4eb0d1503bf3f49a21be;p=scp%2Focu%2F5gnr.git diff --git a/Include/upcCommon.h b/Include/upcCommon.h new file mode 100644 index 0000000..3937ec8 --- /dev/null +++ b/Include/upcCommon.h @@ -0,0 +1,58 @@ +/****************************************************************************** +############################################################################### +# Copyright (c) [2017-2020] [ICT/CAS] # +# Licensed under the ORAN Software License v1.0 (License) # +############################################################################### +******************************************************************************/ + + +#ifndef __UPCCOMMON_H__ +#define __UPCCOMMON_H__ + +#include "plat_syslog.h" +#include "cuCommon.h" +#include "upcContext.h" + +#define CONCEPT(x) 1 + +extern UpInstance_t s_UpcGlobalData; + +#define UPC_MODULE_ID s_UpcGlobalData.moduleId + +#define upclog(level, content, arg...) VOS_SysLog(UPC_MODULE_ID, level, __FILE__, __LINE__, "", content, ##arg); + +#define UPC_MIN(x, y) ((x) <= (y)? (x) : (y)) + +#define UPC_PRESENCE(bitmask,bit) ((bit) == ((bit) & (bitmask))) + +#define UPC_CHECK_NULL(prama) \ +{\ + if (NULL == prama)\ + {\ + upclog(LOG_ERR, "UPC NULL pointer\n");\ + VOS_ASSERT(0); \ + return VOS_ERROR;\ + }\ +} + +INT32 upcSendE1apMsg(void *pMsg, UINT64 msgLen); + +extern INT32 vosAdpSendAsynMsg2ModuleEx( CHAR src_moduleName[MODULE_NAME_LEN], + CHAR dst_moduleName[MODULE_NAME_LEN], + VOID *msgData, + LONG msgDataLen); +INT32 upcConstructAndSendOamUpActRsp(int actNum, int failNum, CellIdList_t failCellList); +void upcResortDrbId(UpSessCb_t *pSessCb, UINT8 drbId); +INT32 upcCheckSessId(UpUeCb_t *pUeCb, UINT8 sessId); +UINT32 upcCheckDrbId(UpUeCb_t *pUeCb, UINT8 drbId); +void upcFreeTempInfo(upcTempInfo_t *pTempInfo); +void upcCauseConvertToInterfaceType(E1apCause_e srcCause, E1apCause_t *dstCause); +extern UINT32 cuAppGetCucommonParaNum(); +INT32 upcSendUpOamMsg(void *pMsg, UINT64 msgLen); +INT32 upcGetBearerModFailureFlag(UINT16 bitMask, UINT8 setupFailFlag, UINT8 ModFailFlag); + +#ifdef NR_CUUP +INT32 upcNotifyOmaUpConnectState(INT32 state); +#endif + +#endif