rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #ifndef _IDC_ERRC_STR_H |
| 2 | #define _IDC_ERRC_STR_H |
| 3 | |
| 4 | #include "kal_general_types.h" |
| 5 | #include "kal_public_defs.h" |
| 6 | #include "global_type.h" |
| 7 | #include "idc_errc_enum.h" |
| 8 | |
| 9 | /*Bitmap definitions for IDC victims in el1_idc_ul_ca_assist_info_struct */ |
| 10 | #define IDC_UL_CA_VICTIM_NONE 0x00 |
| 11 | #define IDC_UL_CA_VICTIM_GPS 0x01 |
| 12 | #define IDC_UL_CA_VICTIM_GLONASS 0x02 |
| 13 | #define IDC_UL_CA_VICTIM_BDS 0x04 |
| 14 | #define IDC_UL_CA_VICTIM_GALILEO 0x08 |
| 15 | #define IDC_UL_CA_VICTIM_WLAN 0x10 |
| 16 | #define IDC_UL_CA_VICTIM_BLUETOOTH 0x20 |
| 17 | |
| 18 | typedef struct |
| 19 | { |
| 20 | auto_denial_subframe_enum sf; |
| 21 | auto_denial_validity_enum validity; |
| 22 | }idc_auto_denial_param_struct; |
| 23 | |
| 24 | typedef struct |
| 25 | { |
| 26 | LOCAL_PARA_HDR |
| 27 | |
| 28 | kal_bool idc_indication; |
| 29 | kal_bool idc_indication_ul_ca; |
| 30 | kal_bool idc_indication_hw_sharing; |
| 31 | kal_bool idc_indication_MRDC; |
| 32 | kal_bool auto_denial_param_valid; |
| 33 | kal_bool isMRDC; |
| 34 | kal_uint8 num_mrdc_freq; |
| 35 | kal_uint32 candidate_nr_serv_freq[32]; |
| 36 | idc_auto_denial_param_struct auto_denial_param; |
| 37 | }errc_idc_idc_cfg_ntf_struct; |
| 38 | |
| 39 | typedef struct |
| 40 | { |
| 41 | EARFCN earfcn; |
| 42 | kal_bool earfcn_valid; |
| 43 | kal_uint8 victims; |
| 44 | kal_uint32 nrarfcn; |
| 45 | idc_interference_direction_enum direction; |
| 46 | }idc_mrdc_affected_freq_struct; |
| 47 | |
| 48 | typedef struct |
| 49 | { |
| 50 | kal_uint32 earfcn_1; |
| 51 | kal_uint32 earfcn_2; |
| 52 | }idc_ul_ca_freq_comb_struct; |
| 53 | |
| 54 | typedef struct |
| 55 | { |
| 56 | kal_uint8 victims; |
| 57 | kal_uint8 affected_freq_comb_num; |
| 58 | idc_ul_ca_freq_comb_struct affected_freq_combinations[128]; |
| 59 | }idc_ul_ca_assist_info_struct; |
| 60 | |
| 61 | typedef struct |
| 62 | { |
| 63 | idc_sf_config_enum subframeConfig; |
| 64 | kal_uint8 fdd_sf_pattern; |
| 65 | kal_uint8 tdd_sf_pattern[9]; |
| 66 | }idc_subframe_pattern_struct; |
| 67 | |
| 68 | typedef struct |
| 69 | { |
| 70 | idc_valid_drx_cycle_enum drx_cycle; |
| 71 | kal_bool drx_offset_valid; |
| 72 | kal_uint16 drx_offset; |
| 73 | idc_active_time_enum drx_active_time; |
| 74 | }idc_drx_assist_info_struct; |
| 75 | |
| 76 | typedef struct |
| 77 | { |
| 78 | kal_uint8 num_of_pattern; |
| 79 | idc_subframe_pattern_struct subframe_pattern[8]; |
| 80 | }idc_sp_info_struct; |
| 81 | |
| 82 | typedef union |
| 83 | { |
| 84 | idc_drx_assist_info_struct drx_assist_info; |
| 85 | idc_sp_info_struct idc_sp_info; |
| 86 | }idc_tdm_assist_info_union; |
| 87 | |
| 88 | typedef struct _idc_affected_freq_struct |
| 89 | { |
| 90 | EARFCN earfcn; |
| 91 | idc_interference_direction_enum direction; |
| 92 | }idc_affected_freq_struct; |
| 93 | |
| 94 | typedef struct |
| 95 | { |
| 96 | LOCAL_PARA_HDR |
| 97 | |
| 98 | kal_bool ul_ca_assist_info_valid; |
| 99 | kal_bool hw_sharing_problem; |
| 100 | kal_bool hw_sharing_info_valid; |
| 101 | kal_uint8 num_freq; |
| 102 | kal_uint8 num_mrdc_freq; |
| 103 | idc_affected_freq_struct affected_freq[32]; |
| 104 | idc_assist_info_type_enum assist_type; |
| 105 | idc_tdm_assist_info_union idc_tdm_assist; |
| 106 | idc_ul_ca_assist_info_struct ul_ca_assist_info; |
| 107 | idc_mrdc_affected_freq_struct affected_mrdc_freq[32]; |
| 108 | }errc_idc_idc_ind_struct; |
| 109 | |
| 110 | typedef struct |
| 111 | { |
| 112 | LOCAL_PARA_HDR |
| 113 | |
| 114 | idc_protect_action_enum idc_action; |
| 115 | idc_traffic_type_enum traffic_type; |
| 116 | } errc_idc_idc_lte_protect_ntf_struct; |
| 117 | |
| 118 | #endif |