X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_utils.h;h=16166d09419521d2a47f82bf0a56b96353ebc169;hb=41eaaec52d3fe0d5c003e6c0676e9a18fc8ba37a;hp=447774e131a1b6d4b6800588997a9109d218a7d3;hpb=1d6200fae3b85714f8d9ddec062a01c8b9faca23;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_utils.h b/src/5gnrmac/mac_utils.h index 447774e13..16166d094 100644 --- a/src/5gnrmac/mac_utils.h +++ b/src/5gnrmac/mac_utils.h @@ -19,17 +19,19 @@ /* Contains common utility definitions to be used at MAC */ #define MAX_SHORT_BSR_TABLE_ENTRIES 32 +#define MAX_LONG_BSR_TABLE_ENTRIES 256 #define MAC_MEM_REGION 4 #define MAC_POOL 1 #ifdef ODU_MEMORY_DEBUG_LOG #define MAC_MEM_LOG(_macro, _file, _line, _func, _size, _datPtr)\ {\ - printf("\n%s=== %s +%d, %s, %d, %p\n", \ - _macro, _file, _line, _func, _size, _datPtr); \ + printf("\n%s=== %s +%d, %s, %lu, %p", \ + _macro, _file, _line, _func, (uint64_t)_size, _datPtr); \ } #else -#define MAC_MEM_LOG(_macro, _file, _line, _func, _size, _dataPtr) {} +#define MAC_MEM_LOG(_macro, _file, _line, _func, _size, _dataPtr){\ +} #endif /* allocate and zero out a MAC static buffer */ @@ -144,8 +146,9 @@ } /* Function declaration */ -uint16_t getNewCrnti(uint8_t *crntiMap); uint32_t shortBsrBytesTable[MAX_SHORT_BSR_TABLE_ENTRIES]; +uint32_t longBsrBytesTable[MAX_LONG_BSR_TABLE_ENTRIES]; + /********************************************************************** End of file **********************************************************************/