X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_fsm.h;h=3b137826a6b3c95e79626f616fc3c8f80e843909;hb=531da47c7bfb6ce138a454f66eb184729860beef;hp=351a7eadb526999ebdc985a49d9d6283dc3d77d6;hpb=6f769128e3fa5a83ee92e668ef9ac152c96b3200;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_fsm.h b/src/5gnrmac/lwr_mac_fsm.h index 351a7eadb..3b137826a 100644 --- a/src/5gnrmac/lwr_mac_fsm.h +++ b/src/5gnrmac/lwr_mac_fsm.h @@ -24,29 +24,46 @@ #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 *); -void handlePhyMessages(uint16_t msgType, uint32_t msgSize, void *msg); - -typedef S16 (*lwrMacFsmHdlr)(void *); +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 /**********************************************************************