X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fssi.h;h=3379caeab6f324e8f9abf9f222356a02a1a59482;hb=112672aee2b176d420e1474b13a5655c3d1e92b4;hp=eb463feb30b327a68891121506907254e855255f;hpb=aee73991f728cc127d1ed76d5a52571d916235a4;p=o-du%2Fl2.git diff --git a/src/cm/ssi.h b/src/cm/ssi.h index eb463feb3..3379caeab 100755 --- a/src/cm/ssi.h +++ b/src/cm/ssi.h @@ -127,7 +127,7 @@ #ifdef MSVER2 /* mos version 2 */ #define MINBUFSIZE (PTRALIGN(sizeof(SBuf))) #define SBUFSIZE(size) (size < (Size) MINBUFSIZE ? (Size) MINBUFSIZE : (Size)PTRALIGN(size)) -#define SLockId U8 /* lock type */ +#define SLockId uint8_t /* lock type */ #define SInitLock(l, t) ((*l) = ROK) #define SLock(l) ((*l) = ROK) #define SUnlock(l) ((*l) = ROK) @@ -1338,11 +1338,15 @@ #define ENTUZ 0xd2 /* S1AP User */ /* ssi_h_001.main_134 : Adtion for eGTP protocol */ #define ENTEG 0xd3 /* EGTP Layer */ +#ifndef INTEL_WLS_MEM +#define ENTPHYSTUB 0xd4 +#else #define ENTEU 0xd4 /* EGTP USER */ +#endif /* ssi_h_001.main_135 : addition of LTE related entities */ -#define ENTTF 0xd5 /* LTE-PHY */ -#define ENTRG 0xd6 /* LTE-MAC */ -#define ENTKW 0xd7 /* LTE-RLC */ +#define ENTLWRMAC 0xd5 /* LTE-PHY */ +#define ENTMAC 0xd6 /* LTE-MAC */ +#define ENTRLC 0xd7 /* LTE-RLC */ #define ENTPJ 0xd8 /* LTE-PDCP */ #define ENTNH 0xd9 /* LTE-RRC */ @@ -1933,10 +1937,10 @@ #define OWNREGION DFLT_REGION /* own region */ /* lock data types */ -#define SsSemaId U8 -#define SLockId U8 +#define SsSemaId uint8_t +#define SLockId uint8_t /* ssi_h_001.main_143: Additions */ -#define SLockInfo U8 +#define SLockInfo uint8_t /* basic lock types */ #define SS_LOCK_MUTEX 1 @@ -2144,17 +2148,17 @@ * allocation/de-allocation from static memory pool */ #ifdef SS_HISTOGRAM_SUPPORT -#define SGetSBuf(region, pool, bufPtr, size) SGetSBufNew(region,pool,bufPtr,size, __LINE__, (U8*)__FILE__) -#define SPutSBuf(region, pool, buf, size) SPutSBufNew(region, pool, buf, size, __LINE__, (U8*)__FILE__) -#define SGetMsg(region, pool, mBufPtr) SGetMsgNew(region, pool, mBufPtr, __LINE__, (U8*)__FILE__) -#define SPutMsg(mBuf) SPutMsgNew(mBuf, __LINE__, (U8*)__FILE__) +#define SGetSBuf(region, pool, bufPtr, size) SGetSBufNew(region,pool,bufPtr,size, __LINE__, (uint8_t*)__FILE__) +#define SPutSBuf(region, pool, buf, size) SPutSBufNew(region, pool, buf, size, __LINE__, (uint8_t*)__FILE__) +#define SGetMsg(region, pool, mBufPtr) SGetMsgNew(region, pool, mBufPtr, __LINE__, (uint8_t*)__FILE__) +#define SPutMsg(mBuf) SPutMsgNew(mBuf, __LINE__, (uint8_t*)__FILE__) #elif defined(SS_LIGHT_MEM_LEAK_STS) -#define SGetSBuf(region, pool, bufPtr, size) SGetSBufNew(region,pool,bufPtr,size, __LINE__, (U8*)__func__) -#define SGetMsg(region, pool, mBufPtr) SGetMsgNew(region, pool, mBufPtr, __LINE__, (U8*)__func__) -#define SGetDBuf(region, pool, bufPtr) SGetDBufNew(region,pool,bufPtr, __LINE__, (U8*)__func__) -#define SPutSBuf(region, pool, buf, size) SPutSBufNew(region, pool, buf, size, __LINE__, (U8 *)__func__) -#define SPutMsg(mBuf) SPutMsgNew(mBuf, __LINE__, (U8*)__func__) -#define SPutDBuf(region, pool, buf) SPutDBufNew(region, pool, buf, __LINE__, (U8*)__func__) +#define SGetSBuf(region, pool, bufPtr, size) SGetSBufNew(region,pool,bufPtr,size, __LINE__, (uint8_t*)__func__) +#define SGetMsg(region, pool, mBufPtr) SGetMsgNew(region, pool, mBufPtr, __LINE__, (uint8_t*)__func__) +#define SGetDBuf(region, pool, bufPtr) SGetDBufNew(region,pool,bufPtr, __LINE__, (uint8_t*)__func__) +#define SPutSBuf(region, pool, buf, size) SPutSBufNew(region, pool, buf, size, __LINE__, (uint8_t *)__func__) +#define SPutMsg(mBuf) SPutMsgNew(mBuf, __LINE__, (uint8_t*)__func__) +#define SPutDBuf(region, pool, buf) SPutDBufNew(region, pool, buf, __LINE__, (uint8_t*)__func__) #endif /* SS_HISTOGRAM_SUPPORT */ /* ssi_h_001.main_142 Readwrite additions */ /* ssi_h_001.main_144 Readwrite locks Guarded */ @@ -2365,7 +2369,7 @@ #define GetTIMETICK() 0 #endif #ifdef PHY_SHUTDOWN_ENABLE -#define stop_printf(...) do {EXTERN U8 sndPhyShutDwn;printf(__VA_ARGS__); mtStopHndlr(); sndPhyShutDwn = 1;} while (0) +#define stop_printf(...) do {uint8_t sndPhyShutDwn;printf(__VA_ARGS__); mtStopHndlr(); sndPhyShutDwn = 1;} while (0) #else #define stop_printf(...) do {printf(__VA_ARGS__); mtStopHndlr(); exit(-1);} while (0) #endif @@ -2389,7 +2393,7 @@ #ifdef MS_MUBUF_CORRUPTION /* Should be enabled when debugging mbuf corruption */ #define MS_BUF_ADD_CALLER()\ {\ - extern U32 cmFreeCaller[4];\ + uint32_t cmFreeCaller[4];\ if(cmFreeCaller[MxGetCpuID()] == NULLP)\ cmFreeCaller[MxGetCpuID()] = __return_address()-4;\ } @@ -2398,8 +2402,8 @@ #endif/* MSPD */ #ifdef BRDCM -extern char logBuf[100]; -extern int glbTime; +char logBuf[100]; +int glbTime; #define BRDCM_PROF(s) do {\ } while(0)