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 SYNC_NEW_CCCH_REQ 1
28 #define SYNC_NEW_CCCH_RESP 2
29 #define CCCH_INFO_IND 3
30 #define CCCH_RACH_REQ 4
31 #define DEDIC_MODE_EST_REQ 5
32 #define DEDIC_MODE_DATA_IND 6
33 #define DEDIC_MODE_DATA_REQ 7
34 #define LAYER1_RESET 8
37 * NOTE: struct size. We do add manual padding out of the believe
38 * that it will avoid some unaligned access.
42 uint32_t fn; /* FN count */
43 uint16_t t1; /* FN div (26*51) */
44 uint8_t t2; /* FN modulo 26 */
45 uint8_t t3; /* FN modulo 51 */
50 * downlink info ... down from the BTS..
55 /* the ARFCN and the band. */
61 } __attribute__((packed));
63 /* new CCCH was found. This is following the header */
64 struct l1_sync_new_ccch_resp {
67 } __attribute__((packed));
69 /* data on the CCCH was found. This is following the header */
70 struct l1_ccch_info_ind {
72 } __attribute__((packed));
81 uint8_t channel_number;
83 } __attribute__((packed));
86 * msg for SYNC_NEW_CCCH_REQ
87 * the l1_info_ul header is in front
89 struct l1_sync_new_ccch_req {
91 } __attribute__((packed));
94 /* the l1_info_ul header is in front */
98 } __attribute__((packed));
100 struct l1_dedic_mode_est_req {
101 struct l1_info_ul header;
112 uint8_t arfcn_high:2,
119 } __attribute__((packed));
121 /* it is like the ccch ind... unite it? */
123 /* the l1_info_dl header is in front */
124 struct l1_dedic_mode_data_ind {
126 } __attribute__((packed));
128 /* the l1_info_ul header is in front */
129 struct l1_dedic_mode_data_req {
131 } __attribute__((packed));