blob: 39625764d7dc2243eb1075af939fc6f0066f2f92 [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.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21#pragma once
22
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010023#ifdef __cplusplus
24extern "C" {
25#endif
26
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020027#include <stdint.h>
28
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020029#include <osmocom/core/linuxlist.h>
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020030
Holger Hans Peter Freytherdea63b92013-10-26 18:56:43 +020031struct gprs_rlcmac_pdch;
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020032
33/*
34 * single block allocation entry
35 */
36struct gprs_rlcmac_sba {
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010037 struct gprs_rlcmac_pdch *pdch; /* PDCH where the SBA is allocated on*/
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020038 uint32_t fn;
39 uint8_t ta;
40};
41
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010042struct gprs_rlcmac_sba *sba_alloc(void *ctx, struct gprs_rlcmac_pdch *pdch, uint8_t ta);
43void sba_free(struct gprs_rlcmac_sba *sba);
44void sba_timeout(struct gprs_rlcmac_sba *sba);
Holger Hans Peter Freythercedf8902013-10-19 20:47:12 +020045
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010046#ifdef __cplusplus
47}
48#endif