X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_fsm.h;h=067a3cd7ac223c39be3bb96ec9ca21f4e6424f5a;hb=ab13dee0decf8731b1d95f943d13a6e7a4a2ead5;hp=43f3c950ab6b39158d6f8170f6f5f3a7b57c8559;hpb=a2484c58e5beeb1ab9e1c86104cf9d9bc56750d1;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_fsm.h b/src/5gnrmac/lwr_mac_fsm.h index 43f3c950a..067a3cd7a 100644 --- a/src/5gnrmac/lwr_mac_fsm.h +++ b/src/5gnrmac/lwr_mac_fsm.h @@ -24,31 +24,55 @@ #define FAPI_UINT_32 4 #define INVALID_VALUE -1 -#include "lwr_mac.h" +#define CORESET_TYPE0 0 +#define CORESET_TYPE1 1 +#define CORESET_TYPE2 2 +#define CORESET_TYPE3 3 -#ifdef FAPI -#include "fapi.h" +#ifdef INTEL_WLS_MEM +#define WLS_MEM_FREE_PRD 10 /* Free memory after 10 slot ind */ #endif +#define FILL_FAPI_LIST_ELEM(_currElem, _nextElem, _msgType, _numMsgInBlock, _alignOffset)\ +{\ + _currElem->msg_type = (uint8_t) _msgType;\ + _currElem->num_message_in_block = _numMsgInBlock;\ + _currElem->align_offset = (uint16_t) _alignOffset;\ + _currElem->msg_len = _numMsgInBlock * _alignOffset;\ + _currElem->p_next = _nextElem;\ + _currElem->p_tx_data_elm_list = NULL;\ + _currElem->time_stamp = 0;\ +} + typedef enum{ SI_RNTI_TYPE, RA_RNTI_TYPE, - TC_RNTI_TYPE + TC_RNTI_TYPE, + C_RNTI_TYPE, + P_RNTI_TYPE }RntiType; -S16 lwr_mac_handleInvalidEvt(void *msg); -S16 lwr_mac_handleParamReqEvt(void *msg); -S16 lwr_mac_handleParamRspEvt(void *msg); -S16 lwr_mac_handleConfigReqEvt(void *msg); -S16 lwr_mac_handleConfigRspEvt(void *msg); -S16 lwr_mac_handleStartReqEvt(void *msg); -S16 lwr_mac_handleStopReqEvt(void *msg); -void sendToLowerMac(U16, U32, void *); -uint16_t handleDlTtiReq(CmLteTimingInfo *currTimingInfo); -uint16_t handleUlTtiReq(CmLteTimingInfo *currTimingInfo); -void handlePhyMessages(uint16_t msgType, uint32_t msgSize, void *msg); - -typedef S16 (*lwrMacFsmHdlr)(void *); +#ifdef NR_TDD +typedef enum +{ + DL_SYMBOL, + UL_SYMBOL, + FLEXI_SYMBOL +}SymbolConfig; +#endif + +uint8_t lwr_mac_procInvalidEvt(void *msg); +uint8_t lwr_mac_procParamReqEvt(void *msg); +uint8_t lwr_mac_procParamRspEvt(void *msg); +uint8_t lwr_mac_procConfigReqEvt(void *msg); +uint8_t lwr_mac_procConfigRspEvt(void *msg); +uint8_t lwr_mac_procStartReqEvt(void *msg); +void sendToLowerMac(uint16_t, uint32_t, void *); +void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg); +uint16_t fillDlTtiReq(SlotTimingInfo currTimingInfo); +typedef uint8_t (*lwrMacFsmHdlr)(void *); +void lwrMacLayerInit(Region region, Pool pool); + #endif /**********************************************************************