1 /* Messages to be sent between the different layers */
3 /* (C) 2010 by Harald Welte <laforge@gnumonks.org>
4 * (C) 2010 by Holger Hans Peter Freyther
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef l1a_l23_interface_h
25 #define l1a_l23_interface_h
27 #define L1CTL_NEW_CCCH_REQ 1
28 #define L1CTL_NEW_CCCH_RESP 2
29 #define L1CTL_DATA_IND 3
30 #define L1CTL_RACH_REQ 4
31 #define L1CTL_DM_EST_REQ 5
32 #define L1CTL_DATA_REQ 7
36 * NOTE: struct size. We do add manual padding out of the believe
37 * that it will avoid some unaligned access.
41 uint32_t fn; /* FN count */
42 uint16_t t1; /* FN div (26*51) */
43 uint8_t t2; /* FN modulo 26 */
44 uint8_t t3; /* FN modulo 51 */
49 * downlink info ... down from the BTS..
51 struct l1ctl_info_dl {
52 /* common header, should be its own struct */
56 /* GSM 08.58 channel number (9.3.1) */
58 /* GSM 08.58 link identifier (9.3.2) */
61 /* the ARFCN and the band. FIXME: what about MAIO? */
67 } __attribute__((packed));
69 /* new CCCH was found. This is following the header */
70 struct l1ctl_sync_new_ccch_resp {
73 } __attribute__((packed));
75 /* data on the CCCH was found. This is following the header */
76 struct l1ctl_data_ind {
78 } __attribute__((packed));
83 struct l1ctl_info_ul {
84 /* common header, should be its own struct */
88 /* GSM 08.58 channel number (9.3.1) */
90 /* GSM 08.58 link identifier (9.3.2) */
97 } __attribute__((packed));
100 * msg for SYNC_NEW_CCCH_REQ
101 * the l1_info_ul header is in front
103 struct l1ctl_sync_new_ccch_req {
105 } __attribute__((packed));
108 /* the l1_info_ul header is in front */
109 struct l1ctl_rach_req {
112 } __attribute__((packed));
114 struct l1ctl_dm_est_req {
125 uint8_t arfcn_high:2,
132 } __attribute__((packed));