blob: 82a631a361d648705edad0197631df80ad7a3742 [file] [log] [blame]
Harald Weltef5d6fee2016-01-13 22:29:10 +01001#pragma once
2
3#include <stdint.h>
4
Harald Welte84ec50f2016-12-24 10:16:00 +01005#define UMTS(x) (0x4000 + x)
6
7enum diag_log_code_umts {
8 LOG_WCDMA_RRC_STATES_C = 0x125,
9 LOG_WCDMA_RRC_PROTOCOL_ERRORS_C = 0x126,
10 LOG_WCDMA_CELL_ID_C = 0x127,
11 LOG_WCDMA_SIGNALING_MSG_C = 0x12f,
12};
13
Harald Weltef5d6fee2016-01-13 22:29:10 +010014enum diag_umts_rrc_chtype {
15 DIAG_UMTS_RRC_CHT_UL_CCCH = 0,
16 DIAG_UMTS_RRC_CHT_DL_DCCH = 1,
17 DIAG_UMTS_RRC_CHT_DL_CCCH = 2,
18 DIAG_UMTS_RRC_CHT_DL_BCCH = 3,
19 DIAG_UMTS_RRC_CHT_DL_BCCH_BCH = 4,
20 DIAG_UMTS_RRC_CHT_DL_BCCH_FACH = 5,
21 DIAG_UMTS_RRC_CHT_DL_PCCH = 6,
22};
23
24/* LOG_WCDMA_SIGNALING_MSG_C */
25struct diag_umts_rrc_msg {
26 uint8_t chan_type;
27 uint8_t rb_id;
28 uint16_t length;
29 uint8_t msg[0];
30} __attribute__((packed));