Files
openairinterface5g/openair2/LAYER2/RLC/UM/rlc_um_structs.h
T
ghaddab c23783c702 License corrected
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5714 818b1a75-f10b-46b9-bf7c-635c3b92a50f
2014-08-14 07:26:42 +00:00

99 lines
3.4 KiB
C
Executable File

/*******************************************************************************
OpenAirInterface
Copyright(c) 1999 - 2014 Eurecom
OpenAirInterface is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenAirInterface is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenAirInterface.The full GNU General Public License is
included in this distribution in the file called "COPYING". If not,
see <http://www.gnu.org/licenses/>.
Contact Information
OpenAirInterface Admin: openair_admin@eurecom.fr
OpenAirInterface Tech : openair_tech@eurecom.fr
OpenAirInterface Dev : openair4g-devel@eurecom.fr
Address : Eurecom, Campus SophiaTech, 450 Route des Chappes, CS 50193 - 06904 Biot Sophia Antipolis cedex, FRANCE
*******************************************************************************/
/******************************************************************************
AUTHOR : Lionel GAUTHIER
COMPANY : EURECOM
EMAIL : Lionel.Gauthier@eurecom.fr
*******************************************************************************/
# ifndef __RLC_UM_STRUCTS_H__
# define __RLC_UM_STRUCTS_H__
# include "platform.h"
# include "L1H_structs.h"
# include "lists_structs.h"
# include "rlc_am_constants.h"
# include "mac_primitives.h"
# include "rlc_primitives.h"
//-----------------------
struct rlc_um_tx_sdu_management {
uint8_t *first_byte;
int32_t sdu_creation_time;
uint16_t sdu_remaining_size;
uint16_t sdu_segmented_size;
uint16_t sdu_size;
uint8_t use_special_li;
};
//-----------------------
struct rlc_um_tx_pdu_management {
uint8_t *first_byte;
uint8_t *payload;
uint16_t data_size; // size of payload (not included byte1, LIs, and padding)
uint8_t dummy[MAC_HEADER_MAX_SIZE];
};
//-----------------------
struct rlc_um_rx_pdu_management {
uint8_t *first_byte;
uint8_t sn;
};
//-----------------------
struct rlc_um_tx_data_pdu_management {
union {
struct rlc_um_tx_pdu_management tx_pdu_mngmnt;
struct mac_tb_req tb_req;
struct mac_tx_tb_management tb_mngt;
L1H_TrChBlkData_MAC_Interface l1h_TrChBlkData_MAC_Interface;
# ifdef BYPASS_L1
struct rlc_um_rx_pdu_management dummy1;
struct mac_tb_ind dummy2;
struct mac_rx_tb_management dummy3;
struct rlc_output_primitive dummy4;
# endif
} dummy;
};
//-----------------------
struct rlc_um_rx_data_pdu_struct {
uint8_t byte1;
uint8_t li_data_7[1];
};
//-----------------------
struct rlc_um_tx_data_pdu_struct {
uint8_t byte1;
uint8_t li_data_7[1];
};
//-----------------------
struct rlc_um_data_req_alloc { // alloc enought bytes for sdu mngt also
union {
struct rlc_um_data_req dummy1;
struct rlc_um_tx_sdu_management dummy2;
} dummy;
};
# endif