X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Finclude%2Ffapi_interface.h;fp=fapi_5g%2Finclude%2Ffapi_interface.h;h=8a85ce790a09fee9fb161e9ff8dbbbd0bb762aab;hp=2a7a9d010da63e33e965df7bdfc99b4581eb1140;hb=892daba4c616407f16506415d5a69549519ef11d;hpb=76b4495d593ccf45d712db1a3ec96fa9d2d8f5f5 diff --git a/fapi_5g/include/fapi_interface.h b/fapi_5g/include/fapi_interface.h index 2a7a9d0..8a85ce7 100644 --- a/fapi_5g/include/fapi_interface.h +++ b/fapi_5g/include/fapi_interface.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. @@ -253,6 +253,7 @@ extern "C" { #define FAPI_MAX_NUM_TLVS_START 3 // Based on Timer Mode requirement. #define FAPI_MAX_NUM_TLVS_SHUTDOWN 1 // Based on Timer Mode requirement. #define FAPI_MAX_UCI_BIT_BYTE_LEN 256 +#define FAPI_RB_BITMAP_SIZE 36 // Based on 5G FAPI Table 3-38 enum ul_tti_pdu_type_e { FAPI_PRACH_PDU_TYPE = 0, @@ -270,6 +271,16 @@ extern "C" { FAPI_DL_TTI_PDU_TYPE_MAX }; + enum dl_resource_alloc_type_e { // Based on 5G FAPI Table 3-38 + FAPI_DL_RESOURCE_ALLOC_TYPE_0 = 0, + FAPI_DL_RESOURCE_ALLOC_TYPE_1 = 1 + }; + + enum ul_resource_alloc_type_e { // Based on 5G FAPI Table 3-38 + FAPI_UL_RESOURCE_ALLOC_TYPE_0 = 0, + FAPI_UL_RESOURCE_ALLOC_TYPE_1 = 1 + }; + //------------------------------------------------------------------------------------------------------------ // Updated per 5G FAPI typedef struct { @@ -724,7 +735,7 @@ extern "C" { uint16_t dmrsPorts; uint16_t rbStart; uint16_t rbSize; - uint8_t rbBitmap[36]; + uint8_t rbBitmap[FAPI_RB_BITMAP_SIZE]; uint8_t vrbToPrbMapping; uint8_t startSymbIndex; uint8_t nrOfSymbols; @@ -923,7 +934,7 @@ extern "C" { uint16_t dmrsPorts; uint16_t nTpPuschId; uint16_t tpPi2Bpsk; - uint8_t rbBitmap[36]; + uint8_t rbBitmap[FAPI_RB_BITMAP_SIZE]; uint16_t rbStart; uint16_t rbSize; uint8_t vrbToPrbMapping;