X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrrlc%2Fkw_ptli.c;h=485117e98857c3960a5a26903afa72c9d4ac9132;hb=29b5f01d779caab32dbc5b3686a5d917e4c818ec;hp=5e7873d730d057ff2e40db854754ca1f69f84ef9;hpb=d10b52519198632f93deae9574adc69c7ce12efa;p=o-du%2Fl2.git diff --git a/src/5gnrrlc/kw_ptli.c b/src/5gnrrlc/kw_ptli.c index 5e7873d73..485117e98 100755 --- a/src/5gnrrlc/kw_ptli.c +++ b/src/5gnrrlc/kw_ptli.c @@ -27,27 +27,14 @@ File: kw_ptli.c *********************************************************************21*/ -static const char* RLOG_MODULE_NAME="LIM"; -static int RLOG_MODULE_ID=2048; -static int RLOG_FILE_ID=238; + /** @file kw_ptli.c @brief RLC Lower Interface */ /* header (.h) include files */ -#include "envopt.h" /* environment options */ -#include "envdep.h" /* environment dependent */ -#include "envind.h" /* environment independent */ - -#include "gen.h" /* general */ -#include "ssi.h" /* system services */ -#include "cm5.h" /* common timer defines */ -#include "cm_tkns.h" /* common tokens defines */ -#include "cm_mblk.h" /* common memory allocation library defines */ -#include "cm_llist.h" /* common link list defines */ -#include "cm_hash.h" /* common hash list defines */ -#include "cm_lte.h" /* common LTE defines */ +#include "common_def.h" #include "lkw.h" /* LKW defines */ #include "ckw.h" /* CKW defines */ #include "kwu.h" /* KWU defines */ @@ -62,16 +49,6 @@ static int RLOG_FILE_ID=238; #include "kw.h" /* RLC defines */ /* extern (.x) include files */ -#include "gen.x" /* general */ -#include "ssi.x" /* system services */ - -#include "cm5.x" /* common timer library */ -#include "cm_tkns.x" /* common tokens */ -#include "cm_mblk.x" /* common memory allocation */ -#include "cm_llist.x" /* common link list */ -#include "cm_hash.x" /* common hash list */ -#include "cm_lte.x" /* common LTE includes */ -#include "cm_lib.x" /* common memory allocation library */ #include "lkw.x" /* LKW */ #include "ckw.x" /* CKW */ #include "kwu.x" /* KWU */ @@ -85,6 +62,10 @@ static int RLOG_FILE_ID=238; #include "ss_rbuf.h" #include "ss_rbuf.x" +#ifdef EGTP_TEST +#include "mac_stub.h" +#endif /* EGTP_TEST */ + #ifndef LCKWLIRGU #define PTKWRGU #endif @@ -147,33 +128,45 @@ PUBLIC RguBndReq kwLiRguUbndReqMt[] = /* RGU Dedicated Channel Data Request primitive */ -PUBLIC RguDDatReq rlcMacSendDlDataOpts[] = +PUBLIC RlcMacDlData rlcMacSendDlDataOpts[] = { +#ifdef EGTP_TEST + macStubSendDlData, + macStubSendDlData, + macStubSendDlData, +#else /* EGTP_TEST */ #ifdef LCKWLIRGU - packSendDlData, /* 0 - loosely coupled */ + packDlData, /* 0 - loosely coupled */ #endif /* LCRGUIRGU */ #ifdef RG - RgUiRguDDatReq, /* 1 - tightly coupled, MAC */ + MacRlcProcDlData, /* 1 - tightly coupled, MAC */ #endif /* RG */ #ifdef LCKWLIRGU - packSendDlData, /* 0 - loosely coupled */ + packDlData, /* 0 - loosely coupled */ #endif /* LCRGUIRGU */ +#endif /* EGTP_TEST */ }; /* RLC logical Channel Status primitive */ -PUBLIC RguDStaRsp rlcMacSendBOStatusOpts[] = +PUBLIC RlcMacBoStatus rlcMacSendBOStatusOpts[] = { +#ifdef EGTP_TEST + macStubBOStatus, + macStubBOStatus, + macStubBOStatus, +#else /* EGTP_TEST */ #ifdef LCKWLIRGU - packSendBOStatus, /* 0 - loosely coupled */ + packBOStatus, /* 0 - loosely coupled */ #endif /* LCRGUIRGU */ #ifdef RG - RgUiRguDStaRsp, /* 1 - tightly coupled, MAC */ + MacRlcProcBOStatus, /* 1 - tightly coupled, MAC */ #endif /* RG */ #ifdef LCKWLIRGU - packSendBOStatus, /* 0 - LWLC loosely coupled */ + packBOStatus, /* 0 - LWLC loosely coupled */ #endif /* LCRGUIRGU */ +#endif /* EGTP_TEST */ }; /* kw005.201 added support for L2 Measurement */