Harald Welte | f5d6fee | 2016-01-13 22:29:10 +0100 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | |
Harald Welte | 84ec50f | 2016-12-24 10:16:00 +0100 | [diff] [blame^] | 5 | #define UMTS(x) (0x4000 + x) |
| 6 | |
| 7 | enum 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 Welte | f5d6fee | 2016-01-13 22:29:10 +0100 | [diff] [blame] | 14 | enum 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 */ |
| 25 | struct 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)); |