X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Fsource%2Fframework%2Fwls%2Flib%2Fnr5g_fapi_wls.h;fp=fapi_5g%2Fsource%2Fframework%2Fwls%2Flib%2Fnr5g_fapi_wls.h;h=c34052cd37bea850addc09093a2e29fc7ae92ced;hp=e98455b2a984e82f62a3430cd281d5d6e1290b42;hb=2de97529a4c5a1922214ba0e6f0fb84cacbd0bc7;hpb=81a09690b36b3a4e89b4dae34f30933de13f7f90 diff --git a/fapi_5g/source/framework/wls/lib/nr5g_fapi_wls.h b/fapi_5g/source/framework/wls/lib/nr5g_fapi_wls.h index e98455b..c34052c 100644 --- a/fapi_5g/source/framework/wls/lib/nr5g_fapi_wls.h +++ b/fapi_5g/source/framework/wls/lib/nr5g_fapi_wls.h @@ -43,8 +43,9 @@ typedef void *WLS_HANDLE; #define MIN_UL_BUF_LOCATIONS (MAX_DL_BUF_LOCATIONS) /* Used for stats collection 0-10 */ #define MAX_UL_BUF_LOCATIONS (MIN_UL_BUF_LOCATIONS + MAX_NUM_LOCATIONS) -#define TO_FREE_SIZE ( 10 ) -#define TOTAL_FREE_BLOCKS ( 50 * FAPI_MAX_PHY_INSTANCES) /* To hold both send and recv blocks on PHY side wls */ +#define TO_FREE_SIZE ( 5 ) +#define TO_FREE_SIZE_URLLC ( MAX_NUM_OF_SYMBOL_PER_SLOT * TO_FREE_SIZE ) // TR 38.912 8.1 mini-slot may be 1 symbol long +#define TOTAL_FREE_BLOCKS ( 100 * FAPI_MAX_PHY_INSTANCES) /* To hold both send and recv blocks on PHY side wls */ #define ALLOC_TRACK_SIZE ( 16384 ) #define MSG_MAXSIZE (16*16384 ) @@ -92,11 +93,11 @@ typedef struct _nr5g_fapi_wls_context { extern nr5g_fapi_wls_context_t g_wls_ctx; -p_nr5g_fapi_wls_context_t nr5g_fapi_wls_context( +inline p_nr5g_fapi_wls_context_t nr5g_fapi_wls_context( ); -uint8_t nr5g_fapi_fapi2phy_wls_ready( +inline uint8_t nr5g_fapi_fapi2phy_wls_ready( ); -uint8_t nr5g_fapi_fapi2mac_wls_ready( +inline uint8_t nr5g_fapi_fapi2mac_wls_ready( ); uint8_t nr5g_fapi_wls_init( ); @@ -127,7 +128,7 @@ uint64_t nr5g_fapi_wls_va_to_pa( void *nr5g_fapi_wls_pa_to_va( WLS_HANDLE h_wls, uint64_t ptr); -uint8_t wls_fapi_add_blocks_to_ul( +uint32_t wls_fapi_add_blocks_to_ul( void); void nr5g_fapi_wls_show_data( void *ptr,