X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=wls_lib%2Fwls_lib.h;h=254bb9a07ed8a7743fb9365914fd7615a0b360c5;hb=892daba4c616407f16506415d5a69549519ef11d;hp=e38ea43f2a45631e93477a26de1bc2705d68edef;hpb=9d66fca5c45c8b3e0d6eab6d51a90c8e9d2614dc;p=o-du%2Fphy.git diff --git a/wls_lib/wls_lib.h b/wls_lib/wls_lib.h index e38ea43..254bb9a 100644 --- a/wls_lib/wls_lib.h +++ b/wls_lib/wls_lib.h @@ -1,6 +1,6 @@ /****************************************************************************** * -* Copyright (c) 2019 Intel. +* Copyright (c) 2021 Intel. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,6 +23,8 @@ extern "C" { #endif +#include + /** WLS driver client operates as slave in terms of management of shared memory */ #define WLS_SLAVE_CLIENT 0 /** WLS driver client operates as master in terms of management of shared memory */ @@ -37,7 +39,8 @@ extern "C" { /* definitions PUT/GET Flags */ #define WLS_TF_SCATTER_GATHER (1 << 15) -#define WLS_TF_URLLC (1 << 10) +#define WLS_TF_URLLC (1 << 11) +#define WLS_TF_LTE (1 << 10) #define WLS_TF_SYN (1 << 9) #define WLS_TF_FIN (1 << 8) #define WLS_FLAGS_MASK (0xFF00) @@ -53,7 +56,9 @@ extern "C" { /** @ingroup wls_mod * * @param[in] ifacename - pointer to string with device driver name (/dev/wls) - * @param[in] modef - mode of operation (Master or Slave) + * @param[in] mode - mode of operation (Master or Slave) + * @param[in] nWlsMacMemorySize - Pointer with size of Memory blocks managed by MAC + * @param[in] nWlsPhyMemorySize - Pointer with size of Memory blocks managed by L1 (SRS Channel Estimates) * * @return pointer to WLS handle * @@ -64,8 +69,9 @@ extern "C" { * **/ //------------------------------------------------------------------------------------------- -void* WLS_Open(const char *ifacename, unsigned int mode, unsigned long long nWlsMemorySize); +void* WLS_Open(const char *ifacename, unsigned int mode, uint64_t *nWlsMacMemorySize, uint64_t *nWlsPhyMemorySize); +uint32_t WLS_SetMode(void* h, unsigned int mode); //------------------------------------------------------------------------------------------- /** @ingroup wls_mod * @@ -81,7 +87,7 @@ void* WLS_Open(const char *ifacename, unsigned int mode, unsigned long long nWls * **/ //------------------------------------------------------------------------------------------- -void* WLS_Open_Dual(const char *ifacename, unsigned int mode, unsigned long long nWlsMemorySize, void** handle1); +void* WLS_Open_Dual(const char *ifacename, unsigned int mode, uint64_t *nWlsMacMemorySize, uint64_t *nWlsPhyMemorySize, void** handle1); //------------------------------------------------------------------------------------------- /** @ingroup wls_mod @@ -155,7 +161,7 @@ int WLS_Ready1(void* h); * **/ //------------------------------------------------------------------------------------------- -void* WLS_Alloc(void* h, unsigned int size); +void* WLS_Alloc(void* h, uint64_t size); //------------------------------------------------------------------------------------------- /** @ingroup wls_mod