comparison gsm-fw/g23m-gsm/rr/rr.h @ 731:68693b72670b

gsm-fw/g23m-gsm/rr: initial *.h preen
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 05 Oct 2014 01:27:32 +0000
parents 2f7df7a314f8
children
comparison
equal deleted inserted replaced
730:af82698f039e 731:68693b72670b
94 INITIAL_PLMN_SEARCH_DONE 94 INITIAL_PLMN_SEARCH_DONE
95 }; 95 };
96 96
97 /* 97 /*
98 * look at explanations at rr_data->mode_after_dedi! 98 * look at explanations at rr_data->mode_after_dedi!
99 */ 99 */
100 #define ARRAY_TRACE 100 #define ARRAY_TRACE
101 101
102 #if defined(_SIMULATION_) 102 #if defined(_SIMULATION_)
103 #undef SET_STATE 103 #undef SET_STATE
104 #define SET_STATE(PROCESS,STATE)\ 104 #define SET_STATE(PROCESS,STATE)\
612 }T_SI_TYPE; 612 }T_SI_TYPE;
613 613
614 typedef enum { 614 typedef enum {
615 CR_STATUS_OFF = 0, 615 CR_STATUS_OFF = 0,
616 CR_STATUS_ON 616 CR_STATUS_ON
617 } T_CR; 617 } T_CR;
618 618
619 typedef enum { 619 typedef enum {
620 MOB_ALLOC_BEFORE = 0, 620 MOB_ALLOC_BEFORE = 0,
621 MOB_ALLOC_AFTER 621 MOB_ALLOC_AFTER
622 } T_MOB_ALLOC_TYPE; 622 } T_MOB_ALLOC_TYPE;
623 623
624 624
625 /* 625 /*
626 * Parameter of dynamic configuration commands 626 * Parameter of dynamic configuration commands
627 */ 627 */
981 T_ra_cap ra_cap; /* MS Radio Access Capability */ 981 T_ra_cap ra_cap; /* MS Radio Access Capability */
982 #endif 982 #endif
983 T_mob_ident imei; /* IMEI */ 983 T_mob_ident imei; /* IMEI */
984 UBYTE operation_mode; /* Operation Parameters from MM*/ 984 UBYTE operation_mode; /* Operation Parameters from MM*/
985 985
986 /* 986 /*
987 * The purpose of 'parallel_net_plmn_search_type?and ‘current_plmn_search_type? * is to record the request for a parallel search (i.e. to action a network 987 * The purpose of 'parallel_net_plmn_search_type' and
988 * search whilst an existing search (for a limited/plmn) is already underway) 988 * 'current_plmn_search_type' is to record the request for a parallel search
989 * 989 * (i.e. to action a network search whilst an existing search (for a
990 * The original request is stored in ‘current_plmn_search_type?and the parallel 990 * limited/plmn) is already underway)
991 * net search request is stored in ‘parallel_net_plmn_search_type? 991 *
992 * 992 * The original request is stored in 'current_plmn_search_type' and the
993 * When the NET search is completed, ‘parallel_net_plmn_search_type?is cleared 993 * parallel net search request is stored in 'parallel_net_plmn_search_type'
994 * and ‘mm_req_service?is set the stored search value in ‘current_plmn_search_type? 994 *
995 */ 995 * When the NET search is completed, 'parallel_net_plmn_search_type' is
996 * cleared and 'mm_req_service' is set the stored search value in
997 * 'current_plmn_search_type'
998 */
996 UBYTE parallel_net_plmn_search_type; 999 UBYTE parallel_net_plmn_search_type;
997 UBYTE current_plmn_search_type; 1000 UBYTE current_plmn_search_type;
998 1001
999 1002
1000 T_plmn plmn; /* requested network by MM */ 1003 T_plmn plmn; /* requested network by MM */
1267 typedef struct 1270 typedef struct
1268 { 1271 {
1269 UBYTE max_arfcn; /* number of valid channels */ 1272 UBYTE max_arfcn; /* number of valid channels */
1270 UBYTE act_index; /* actual index */ 1273 UBYTE act_index; /* actual index */
1271 BOOL check_hplmn; /* check HPLMN */ 1274 BOOL check_hplmn; /* check HPLMN */
1272 USHORT arfcn [MAX_CHANNELS]; /* channel number */ 1275 USHORT arfcn [MAX_CHANNELS]; /* channel number */
1273 UBYTE rxlev [MAX_CHANNELS]; /* fieldstrength */ 1276 UBYTE rxlev [MAX_CHANNELS]; /* fieldstrength */
1274 UBYTE attributes[MAX_CHANNELS]; /* attributes of channel */ 1277 UBYTE attributes[MAX_CHANNELS]; /* attributes of channel */
1275 /* Bit 7 Bcch Info List Flag 1278 /* Bit 7 Bcch Info List Flag
1276 0 : not member of the BCCH info List 1279 0 : not member of the BCCH info List
1277 1 : member of the BCCH info List 1280 1 : member of the BCCH info List
1278 Bit 6 Low Priority Flag 1281 Bit 6 Low Priority Flag
1279 0 : high priority flag 1282 0 : high priority flag
1302 U8 scan_mode; /* Identifies the scan mode */ 1305 U8 scan_mode; /* Identifies the scan mode */
1303 U8 initial_plmn_search; /* Identifies first FUNC_PLMN search */ 1306 U8 initial_plmn_search; /* Identifies first FUNC_PLMN search */
1304 U8 black_list_search_pending; 1307 U8 black_list_search_pending;
1305 U8 region; /* This stores the region */ 1308 U8 region; /* This stores the region */
1306 BOOL all_freq_area; /* Identifies presence of both Euro and American coverage */ 1309 BOOL all_freq_area; /* Identifies presence of both Euro and American coverage */
1307 T_plmn last_reg_plmn; /* Stores the last registered PLMN */ 1310 T_plmn last_reg_plmn; /* Stores the last registered PLMN */
1308 } T_CS_DATA; 1311 } T_CS_DATA;
1309 1312
1310 /* CSI-LLD Section 3.8 1313 /* CSI-LLD Section 3.8
1311 * Dynamic configuration commands data 1314 * Dynamic configuration commands data
1312 */ 1315 */
1564 EXTERN void att_dat_con_est (void); 1567 EXTERN void att_dat_con_est (void);
1565 EXTERN void att_for_sysinfo_type1 (USHORT arfcn, 1568 EXTERN void att_for_sysinfo_type1 (USHORT arfcn,
1566 T_D_SYS_INFO_1 *sys_info_1, 1569 T_D_SYS_INFO_1 *sys_info_1,
1567 T_LIST *cell_chan_desc); 1570 T_LIST *cell_chan_desc);
1568 1571
1569
1570
1571 EXTERN void att_for_sysinfo_type2_2bis (USHORT arfcn, 1572 EXTERN void att_for_sysinfo_type2_2bis (USHORT arfcn,
1572 T_VOID_STRUCT *sys_info_2_2bis, 1573 T_VOID_STRUCT *sys_info_2_2bis,
1573 T_LIST *new_2_2bis_list, 1574 T_LIST *new_2_2bis_list,
1574 UBYTE ncell_ext, 1575 UBYTE ncell_ext,
1575 T_SI_TYPE si_type); 1576 T_SI_TYPE si_type);
1576
1577 1577
1578 EXTERN void att_for_sysinfo_type2ter (USHORT arfcn, 1578 EXTERN void att_for_sysinfo_type2ter (USHORT arfcn,
1579 T_D_SYS_INFO_2TER *sys_info_2ter, 1579 T_D_SYS_INFO_2TER *sys_info_2ter,
1580 T_LIST *new_2ter_list); 1580 T_LIST *new_2ter_list);
1581 EXTERN void att_for_sysinfo_type3 (USHORT arfcn, 1581 EXTERN void att_for_sysinfo_type3 (USHORT arfcn,
1582 T_D_SYS_INFO_3 *sys_info_3); 1582 T_D_SYS_INFO_3 *sys_info_3);
1583 EXTERN void att_for_sysinfo_type4 (USHORT arfcn, 1583 EXTERN void att_for_sysinfo_type4 (USHORT arfcn,
1584 T_D_SYS_INFO_4 *sys_info_4); 1584 T_D_SYS_INFO_4 *sys_info_4);
1585 1585
1586
1587
1588 EXTERN void att_for_sysinfo_type5_5bis (USHORT arfcn, 1586 EXTERN void att_for_sysinfo_type5_5bis (USHORT arfcn,
1589 T_LIST *new_5_5bis_list, 1587 T_LIST *new_5_5bis_list,
1590 UBYTE old_index, 1588 UBYTE old_index,
1591 UBYTE ncell_ext, 1589 UBYTE ncell_ext,
1592 T_SI_TYPE si_type); 1590 T_SI_TYPE si_type);
1593
1594
1595 1591
1596 EXTERN void att_for_sysinfo_type5ter (USHORT arfcn, 1592 EXTERN void att_for_sysinfo_type5ter (USHORT arfcn,
1597 T_LIST *new_5ter_list); 1593 T_LIST *new_5ter_list);
1598 EXTERN void att_for_sysinfo_type6 (USHORT arfcn, 1594 EXTERN void att_for_sysinfo_type6 (USHORT arfcn,
1599 T_D_SYS_INFO_6 *sys_info_6); 1595 T_D_SYS_INFO_6 *sys_info_6);
1678 EXTERN void att_copy_sys_info_7_8_par (UBYTE index, 1674 EXTERN void att_copy_sys_info_7_8_par (UBYTE index,
1679 T_D_SYS_INFO_8 *sys_info_8); 1675 T_D_SYS_INFO_8 *sys_info_8);
1680 EXTERN void att_copy_c2_parameter_si4 (UBYTE index, 1676 EXTERN void att_copy_c2_parameter_si4 (UBYTE index,
1681 T_si4_rest_oct *rest_oct); 1677 T_si4_rest_oct *rest_oct);
1682 1678
1683
1684 EXTERN void att_handle_rr_act_req (UBYTE initial_act, 1679 EXTERN void att_handle_rr_act_req (UBYTE initial_act,
1685 T_RR_ACTIVATE_REQ *rr_activate_req); 1680 T_RR_ACTIVATE_REQ *rr_activate_req);
1686 EXTERN void att_increase_power_on_time (USHORT inc); 1681 EXTERN void att_increase_power_on_time (USHORT inc);
1687 EXTERN void att_init_cell_selection (UBYTE selection, 1682 EXTERN void att_init_cell_selection (UBYTE selection,
1688 BOOL initiator); 1683 BOOL initiator);
1715 UBYTE index); 1710 UBYTE index);
1716 EXTERN void att_start_cell_reselection (UBYTE mode); 1711 EXTERN void att_start_cell_reselection (UBYTE mode);
1717 EXTERN void att_start_cr_in_pl (UBYTE index); 1712 EXTERN void att_start_cr_in_pl (UBYTE index);
1718 EXTERN void att_start_cell_selection (BOOL originator, BOOL parallel, U8 search_mode); 1713 EXTERN void att_start_cell_selection (BOOL originator, BOOL parallel, U8 search_mode);
1719 1714
1720
1721 EXTERN void att_remove_multiple_channels(void); 1715 EXTERN void att_remove_multiple_channels(void);
1722 EXTERN void att_mph_identity_req (void); 1716 EXTERN void att_mph_identity_req (void);
1723 EXTERN void att_start_registration_timer(void); 1717 EXTERN void att_start_registration_timer(void);
1724 EXTERN void att_set_func (UBYTE func); 1718 EXTERN void att_set_func (UBYTE func);
1725 1719
1726
1727 EXTERN void att_copy_cr_data (void); 1720 EXTERN void att_copy_cr_data (void);
1728 EXTERN void att_init_cr_data (void); 1721 EXTERN void att_init_cr_data (void);
1729
1730
1731
1732 1722
1733 EXTERN void att_check_reestablishment (void); 1723 EXTERN void att_check_reestablishment (void);
1734 EXTERN UBYTE att_get_power (void); 1724 EXTERN UBYTE att_get_power (void);
1735 EXTERN void att_return_to_idle (void); 1725 EXTERN void att_return_to_idle (void);
1736 EXTERN void att_notify_stop_plmn_search (UBYTE deactivate_pl); 1726 EXTERN void att_notify_stop_plmn_search (UBYTE deactivate_pl);
1857 EXTERN void dat_code_reestablishment_fail (void); 1847 EXTERN void dat_code_reestablishment_fail (void);
1858 EXTERN void dat_code_ciphering_to_mm (UBYTE ciph_on); 1848 EXTERN void dat_code_ciphering_to_mm (UBYTE ciph_on);
1859 EXTERN void dat_code_measure_report (T_MPH_MEASUREMENT_IND *report); 1849 EXTERN void dat_code_measure_report (T_MPH_MEASUREMENT_IND *report);
1860 EXTERN void dat_code_ext_meas_report (T_MPH_EMO_MEAS_IND *mph_emo_meas_ind); 1850 EXTERN void dat_code_ext_meas_report (T_MPH_EMO_MEAS_IND *mph_emo_meas_ind);
1861 EXTERN void dat_emo_stop (BOOL send_ncell_req); 1851 EXTERN void dat_emo_stop (BOOL send_ncell_req);
1862
1863 1852
1864 EXTERN void dat_code_mph_chan_mode_req (T_D_CHAN_MOD *chan_mod); 1853 EXTERN void dat_code_mph_chan_mode_req (T_D_CHAN_MOD *chan_mod);
1865 EXTERN void dat_code_mph_ciphering_req (UBYTE ciph_on, 1854 EXTERN void dat_code_mph_ciphering_req (UBYTE ciph_on,
1866 UBYTE algo, 1855 UBYTE algo,
1867 UBYTE *kc); 1856 UBYTE *kc);
1953 #if defined (REL99) && defined (TI_PS_FF_EMR) 1942 #if defined (REL99) && defined (TI_PS_FF_EMR)
1954 EXTERN void for_update_ba_ind (UBYTE index, UBYTE ba_ind); 1943 EXTERN void for_update_ba_ind (UBYTE index, UBYTE ba_ind);
1955 EXTERN void for_check_and_configure_si2quater (UBYTE index); 1944 EXTERN void for_check_and_configure_si2quater (UBYTE index);
1956 EXTERN void for_att_update_ba2bsic_mapping (T_rr_enh_para *p_enh); 1945 EXTERN void for_att_update_ba2bsic_mapping (T_rr_enh_para *p_enh);
1957 EXTERN BOOL for_dat_process_common_emr_data (T_gprs_rep_prio *p_rep, 1946 EXTERN BOOL for_dat_process_common_emr_data (T_gprs_rep_prio *p_rep,
1958 T_gprs_bsic *p_bl, 1947 T_gprs_bsic *p_bl,
1959 UBYTE msg_index, 1948 UBYTE msg_index,
1960 BOOL ba_available); 1949 BOOL ba_available);
1961 EXTERN void for_dat_spd_unitdata_req (T_DL_SHORT_UNITDATA_REQ *p_msg); 1950 EXTERN void for_dat_spd_unitdata_req (T_DL_SHORT_UNITDATA_REQ *p_msg);
1962 #endif 1951 #endif
1963 1952
2214 */ 2203 */
2215 #define CM_AMR 0x41 2204 #define CM_AMR 0x41
2216 #define MAX_NO_ACS 0x04 2205 #define MAX_NO_ACS 0x04
2217 /*#define MAX_CODEC_MODES 0x03*/ 2206 /*#define MAX_CODEC_MODES 0x03*/
2218 2207
2219 #if !defined(_FILE10_) 2208 /* FreeCalypso change: same as in ../dl/dl.h */
2209 #if 0 && !defined(_FILE10_)
2220 #define __FILE10__ (__FILE__+sizeof(__FILE__)-11) 2210 #define __FILE10__ (__FILE__+sizeof(__FILE__)-11)
2221 #endif /* !_FILE10_ */ 2211 #endif /* !_FILE10_ */
2222 2212
2223 #if defined(SYST_TRACE) 2213 #if defined(SYST_TRACE)
2224 #undef SYST_TRACE 2214 #undef SYST_TRACE
2299 #define TRACE_EVENT_WIN_P7(s,a1,a2,a3,a4,a5,a6,a7) 2289 #define TRACE_EVENT_WIN_P7(s,a1,a2,a3,a4,a5,a6,a7)
2300 #define TRACE_EVENT_WIN_P8(s,a1,a2,a3,a4,a5,a6,a7,a8) 2290 #define TRACE_EVENT_WIN_P8(s,a1,a2,a3,a4,a5,a6,a7,a8)
2301 #define TRACE_EVENT_WIN_P9(s,a1,a2,a3,a4,a5,a6,a7,a8,a9) 2291 #define TRACE_EVENT_WIN_P9(s,a1,a2,a3,a4,a5,a6,a7,a8,a9)
2302 2292
2303 #define att_code_rr_abort_ind_trace(c) \ 2293 #define att_code_rr_abort_ind_trace(c) \
2304 { TRACE_EVENT_P4 ("att_code_rr_abort_ind(%x=%s) #%u %s", c, #c, __LINE__, __FILE10__);\ 2294 { TRACE_EVENT_P4 ("att_code_rr_abort_ind(%x=%s) #%u %s", c, #c, __LINE__, __FILE__);\
2305 att_code_rr_abort_ind_original(rr_data, c);} 2295 att_code_rr_abort_ind_original(rr_data, c);}
2306 2296
2307 2297
2308 #endif /* _SIMULATION_ */ 2298 #endif /* _SIMULATION_ */
2309 2299