X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_fsm.h;h=77685d867a00b4cde8169fe5b9a53fa3858fbda2;hb=def50dc175cebc67238db5f1acd5ff322a2279bd;hp=a458b81473839db3fb4780b3c4faac3260c1b12c;hpb=f15bab416a36e421d42be3d2d1a42bf4c8c8b6c2;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_fsm.h b/src/5gnrmac/lwr_mac_fsm.h index a458b8147..77685d867 100644 --- a/src/5gnrmac/lwr_mac_fsm.h +++ b/src/5gnrmac/lwr_mac_fsm.h @@ -15,27 +15,41 @@ # limitations under the License. # ################################################################################ *******************************************************************************/ + #ifndef _LWR_MAC_FSM_H_ #define _LWR_MAC_FSM_H_ + #define FAPI_UINT_8 1 #define FAPI_UINT_16 2 #define FAPI_UINT_32 4 #define INVALID_VALUE -1 -#include "lwr_mac.h" -#include "rg_cl_phy.h" -#include "fapi.h" +#define CORESET_TYPE0 0 +#define CORESET_TYPE1 1 +#define CORESET_TYPE2 2 +#define CORESET_TYPE3 3 + +typedef enum{ + SI_RNTI_TYPE, + RA_RNTI_TYPE, + TC_RNTI_TYPE, + C_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 *); +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); +uint8_t lwr_mac_procStopReqEvt(void *msg); +void sendToLowerMac(uint16_t, uint32_t, void *); +void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg); +uint16_t fillUlTtiReq(SlotIndInfo currTimingInfo); +uint16_t fillDlTtiReq(SlotIndInfo currTimingInfo); +uint16_t fillUlDciReq(SlotIndInfo currTimingInfo); -typedef S16 (*lwrMacFsmHdlr)(void *); +typedef uint8_t (*lwrMacFsmHdlr)(void *); #endif /**********************************************************************