- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
117 lines
3.2 KiB
C
117 lines
3.2 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
/*!
|
|
* \brief eNB scheduler fair round robin header
|
|
*/
|
|
|
|
|
|
#ifndef __LAYER2_MAC_ENB_SCHEDULER_FAIRRR_H__
|
|
#define __LAYER2_MAC_ENB_SCHEDULER_FAIRRR_H__
|
|
|
|
/* define */
|
|
enum SCH_UE_PRIORITY {
|
|
SCH_PRIORITY_NONE,
|
|
SCH_DL_SI,
|
|
SCH_DL_PAGING,
|
|
SCH_DL_MSG2,
|
|
SCH_DL_MSG4,
|
|
SCH_UL_PRACH,
|
|
SCH_UL_MSG3,
|
|
SCH_DL_RETRANS,
|
|
SCH_UL_RETRANS,
|
|
SCH_DL_FIRST,
|
|
SCH_UL_FIRST,
|
|
SCH_UL_INACTIVE
|
|
};
|
|
|
|
typedef struct {
|
|
int UE_id;
|
|
enum SCH_UE_PRIORITY ue_priority;
|
|
rnti_t rnti;
|
|
uint16_t nb_rb;
|
|
} DLSCH_UE_INFO;
|
|
|
|
typedef struct {
|
|
uint16_t ue_num;
|
|
DLSCH_UE_INFO list[20];
|
|
} DLSCH_UE_SELECT;
|
|
|
|
typedef struct {
|
|
int UE_id;
|
|
enum SCH_UE_PRIORITY ue_priority;
|
|
uint8_t start_rb;
|
|
uint8_t nb_rb;
|
|
uint16_t ul_total_buffer;
|
|
} ULSCH_UE_INFO;
|
|
|
|
typedef struct {
|
|
uint8_t ue_num;
|
|
ULSCH_UE_INFO list[20];
|
|
} ULSCH_UE_SELECT;
|
|
|
|
/* proto */
|
|
void set_dl_ue_select_msg2(int CC_idP, uint16_t nb_rb, int UE_id, rnti_t rnti);
|
|
void set_dl_ue_select_msg4(int CC_idP, uint16_t nb_rb, int UE_id, rnti_t rnti);
|
|
|
|
void dlsch_scheduler_pre_ue_select_fairRR(
|
|
module_id_t module_idP,
|
|
frame_t frameP,
|
|
sub_frame_t subframeP,
|
|
int* mbsfn_flag,
|
|
uint16_t nb_rbs_required[MAX_NUM_CCs][MAX_MOBILES_PER_ENB],
|
|
DLSCH_UE_SELECT dlsch_ue_select[MAX_NUM_CCs]);
|
|
|
|
void dlsch_scheduler_pre_processor_allocate_fairRR(
|
|
module_id_t Mod_id,
|
|
int UE_id,
|
|
uint8_t CC_id,
|
|
int N_RBG,
|
|
uint16_t nb_rbs_required[NFAPI_CC_MAX][MAX_MOBILES_PER_ENB],
|
|
uint16_t nb_rbs_remaining[NFAPI_CC_MAX][MAX_MOBILES_PER_ENB],
|
|
uint8_t rballoc_sub[NFAPI_CC_MAX][N_RBG_MAX]);
|
|
|
|
void dlsch_scheduler_pre_processor_fairRR (module_id_t Mod_id,
|
|
frame_t frameP,
|
|
sub_frame_t subframeP,
|
|
int N_RBG[MAX_NUM_CCs],
|
|
int *mbsfn_flag);
|
|
|
|
void fill_DLSCH_dci_fairRR(
|
|
module_id_t module_idP,
|
|
frame_t frameP,
|
|
sub_frame_t subframeP,
|
|
int* mbsfn_flagP);
|
|
|
|
void schedule_ue_spec_fairRR(module_id_t module_idP,
|
|
frame_t frameP, sub_frame_t subframeP, int *mbsfn_flag);
|
|
|
|
void ulsch_scheduler_pre_ue_select_fairRR(
|
|
module_id_t module_idP,
|
|
frame_t frameP,
|
|
sub_frame_t subframeP,
|
|
sub_frame_t sched_subframeP,
|
|
ULSCH_UE_SELECT ulsch_ue_select[MAX_NUM_CCs]);
|
|
|
|
void ulsch_scheduler_pre_processor_fairRR(module_id_t module_idP,
|
|
frame_t frameP,
|
|
sub_frame_t subframeP,
|
|
sub_frame_t sched_subframeP,
|
|
ULSCH_UE_SELECT ulsch_ue_select[MAX_NUM_CCs]);
|
|
|
|
void schedule_ulsch_fairRR(module_id_t module_idP, frame_t frameP,
|
|
sub_frame_t subframeP);
|
|
|
|
void schedule_ulsch_rnti_fairRR(module_id_t module_idP,
|
|
frame_t frameP,
|
|
sub_frame_t subframeP,
|
|
unsigned char sched_subframeP,
|
|
ULSCH_UE_SELECT ulsch_ue_select[MAX_NUM_CCs]);
|
|
|
|
|
|
/* extern */
|
|
extern DLSCH_UE_SELECT dlsch_ue_select[MAX_NUM_CCs];
|
|
|
|
#endif
|