mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.4 KiB
C
63 lines
1.4 KiB
C
3 years ago
|
/**
|
||
|
*
|
||
|
* \section COPYRIGHT
|
||
|
*
|
||
|
* Copyright 2013-2021 Software Radio Systems Limited
|
||
|
*
|
||
|
* By using this file, you agree to the terms and conditions set
|
||
|
* forth in the LICENSE file which can be found at the top level of
|
||
|
* the distribution.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef SRSRAN_SCHED_NR_WORKER_H
|
||
|
#define SRSRAN_SCHED_NR_WORKER_H
|
||
|
|
||
3 years ago
|
#include "sched_nr_bwp.h"
|
||
3 years ago
|
#include "sched_nr_cfg.h"
|
||
3 years ago
|
#include "sched_nr_grant_allocator.h"
|
||
3 years ago
|
#include "sched_nr_ue.h"
|
||
|
#include "srsran/adt/circular_array.h"
|
||
|
#include "srsran/adt/optional.h"
|
||
|
#include "srsran/adt/pool/cached_alloc.h"
|
||
|
#include "srsran/adt/span.h"
|
||
|
#include <condition_variable>
|
||
|
#include <mutex>
|
||
|
|
||
|
namespace srsenb {
|
||
3 years ago
|
|
||
|
struct mac_metrics_t;
|
||
|
|
||
3 years ago
|
namespace sched_nr_impl {
|
||
|
|
||
3 years ago
|
class cc_worker
|
||
3 years ago
|
{
|
||
|
public:
|
||
3 years ago
|
explicit cc_worker(const cell_params_t& params);
|
||
3 years ago
|
|
||
3 years ago
|
void dl_rach_info(const sched_nr_interface::rar_info_t& rar_info);
|
||
|
|
||
3 years ago
|
dl_sched_res_t* run_slot(slot_point pdcch_slot, ue_map_t& ue_db_);
|
||
|
ul_sched_t* get_ul_sched(slot_point sl);
|
||
3 years ago
|
|
||
3 years ago
|
// const params
|
||
|
const cell_params_t& cfg;
|
||
|
srslog::basic_logger& logger;
|
||
3 years ago
|
|
||
3 years ago
|
// cc-specific resources
|
||
|
srsran::bounded_vector<bwp_manager, SCHED_NR_MAX_BWP_PER_CELL> bwps;
|
||
3 years ago
|
|
||
3 years ago
|
private:
|
||
|
void alloc_dl_ues(bwp_slot_allocator& bwp_alloc);
|
||
|
void alloc_ul_ues(bwp_slot_allocator& bwp_alloc);
|
||
|
void postprocess_decisions(bwp_slot_allocator& bwp_alloc);
|
||
3 years ago
|
|
||
3 years ago
|
// {slot,cc} specific variables
|
||
|
slot_ue_map_t slot_ues;
|
||
|
};
|
||
3 years ago
|
|
||
3 years ago
|
} // namespace sched_nr_impl
|
||
|
} // namespace srsenb
|
||
|
|
||
|
#endif // SRSRAN_SCHED_NR_WORKER_H
|