blob: 749b14579df6b22e073efc1bd849dd76d81ace65 [file] [log] [blame]
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +02001/*
2 *
3 * Copyright (C) 2012 Ivan Klyuchnikov
4 * Copyright (C) 2012 Andreas Eversberg <jolly@eversberg.eu>
5 * Copyright (C) 2013 by Holger Hans Peter Freyther
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020016 */
17#pragma once
18
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010019#ifdef __cplusplus
20extern "C" {
21#endif
22
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020023#include <stdint.h>
24
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020025#include <osmocom/core/linuxlist.h>
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020026
Holger Hans Peter Freytherdea63b92013-10-26 18:56:43 +020027struct gprs_rlcmac_pdch;
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020028
29/*
30 * single block allocation entry
31 */
32struct gprs_rlcmac_sba {
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010033 struct gprs_rlcmac_pdch *pdch; /* PDCH where the SBA is allocated on*/
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020034 uint32_t fn;
35 uint8_t ta;
36};
37
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010038struct gprs_rlcmac_sba *sba_alloc(void *ctx, struct gprs_rlcmac_pdch *pdch, uint8_t ta);
39void sba_free(struct gprs_rlcmac_sba *sba);
40void sba_timeout(struct gprs_rlcmac_sba *sba);
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020041
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010042#ifdef __cplusplus
43}
44#endif