blob: a7c370e5ea103207db6822ff9e189031a7c26672 [file] [log] [blame]
Pau Espin Pedrolff7c5812022-12-14 18:49:06 +01001/* alloc_algo.h
2 *
3 * Copyright (C) 2022 by sysmocom - s.m.f.c. GmbH <info@sysmocom.de>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
18#include <stdbool.h>
19#include <stdint.h>
20
21struct gprs_rlcmac_bts;
22struct gprs_rlcmac_tbf;
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28int alloc_algorithm_a(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf, bool single,
29 int8_t use_trx);
30
31int alloc_algorithm_b(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf, bool single,
32 int8_t use_trx);
33
34int alloc_algorithm_dynamic(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf, bool single,
35 int8_t use_trx);
36int gprs_alloc_max_dl_slots_per_ms(const struct gprs_rlcmac_bts *bts, uint8_t ms_class);
37
38#ifdef __cplusplus
39}
40#endif