X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac.h;h=b8cc0afa6da0279220452ff09bc6b8872d191b6b;hb=50aa3f9538e700074800c809f226760079e68d4a;hp=ea9cd95f562ef6013ca43007a1c8dc95d6fda997;hpb=d1ead035ab3b543810f1838b2519904bf84477ec;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac.h b/src/5gnrmac/lwr_mac.h index ea9cd95f5..b8cc0afa6 100644 --- a/src/5gnrmac/lwr_mac.h +++ b/src/5gnrmac/lwr_mac.h @@ -26,12 +26,20 @@ #include "gen.h" #include "ssi.h" #include "cm_hash.h" +#include "cm_lte.h" #include "gen.x" #include "ssi.x" #include "cm_hash.x" +#include "cm_lte.x" #include "cm_lib.x" -#include "mac_interface.h" +#include "du_app_mac_inf.h" + +#ifdef INTEL_WLS +#define LWR_MAC_ALLOC(_datPtr, _size) WLS_MEM_ALLOC(_datPtr, _size); +#else +#define LWR_MAC_ALLOC(_datPtr, _size) MAC_ALLOC(_datPtr, _size); +#endif typedef enum { @@ -43,10 +51,12 @@ typedef enum /* Events in Lower Mac */ typedef enum{ - PARAM_REQ, - CONFIG_REQ = 2, - START_REQ = 4, - STOP_REQ, + PARAM_REQUEST, + PARAM_RESPONSE, + CONFIG_REQUEST, + CONFIG_RESPONSE, + START_REQUEST, + STOP_REQUEST, MAX_EVENT }EventState; @@ -70,7 +80,7 @@ typedef struct cellCb typedef enum { - RELEASE_15 + FAPI_RELEASE_15 }ReleaseCapab; typedef enum @@ -264,9 +274,12 @@ typedef struct clCellParam RssiMeasurement rssiMeasurementSupport; }ClCellParam; - EXTERN ClCb clGlobalCp; EXTERN ClCellCb * rgClUtlGetCellCb ARGS((U16 cellId)); +EXTERN uint32_t reverseBits(uint32_t num, uint8_t numBits); +EXTERN void fillDlDciPayload(uint8_t *buf, uint8_t *bytePos, uint8_t *bitPos,\ + uint32_t val, uint8_t valSize); +EXTERN void lwrMacInit(); #endif