comparison src/g23m-gprs/grr/grr_tcs.h @ 1:d393cd9bb723

src/g23m-*: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
0:b6a5e36de839 1:d393cd9bb723
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Modul : GRR
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for service TC.
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef GRR_TCS_H
22 #define GRR_TCS_H
23
24 /*
25 * interface for service CTRL
26 */
27 EXTERN void sig_ctrl_tc_control_block ( T_BLK_OWNER blk_owner_i,
28 void *blk_struct_i );
29 EXTERN void sig_ctrl_tc_cancel_control_block ( T_BLK_OWNER blk_owner_i );
30
31 EXTERN void sig_ctrl_tc_access_disable ( T_TC_DISABLE_CAUSE disable_cause,
32 T_TC_DISABLE_CALLBACK_FUNC callback_func );
33
34
35 EXTERN void sig_ctrl_tc_enable_grlc ( UBYTE queue_mode, UBYTE cell_update_cause );
36 EXTERN BOOL sig_ctrl_tc_disable_prim_queue ( BOOL cell_has_changed );
37 EXTERN BOOL sig_ctrl_tc_abnorm_rel_with_cr_failed
38 ( BOOL cell_has_changed );
39
40
41 EXTERN void sig_ctrl_tc_ia_received (T_RRGRR_IA_IND *rrgrr_ia_ind);
42 EXTERN void sig_ctrl_tc_pdch_assign_received (T_RRGRR_DATA_IND *rrgrr_data_ind);
43 EXTERN void sig_ctrl_tc_iaext_received (T_RRGRR_IAEXT_IND *rrgrr_iaext_ind);
44 EXTERN void sig_ctrl_tc_iarej_received(T_RRGRR_ASSIGNMENT_REJ_IND *rrgrr_assignment_rej_ind);
45 EXTERN void sig_ctrl_tc_ia_downlink_received(T_RRGRR_IA_DOWNLINK_IND *rrgrr_ia_downlink_in );
46 EXTERN void sig_ctrl_tc_stop_task_cnf_received(void);
47 EXTERN void sig_ctrl_tc_suspend_dcch_cnf(void);
48 EXTERN void sig_ctrl_tc_reconnect_dcch_cnf(void);
49 EXTERN void sig_ctrl_tc_cr_timerout_cnf(void);
50
51 EXTERN void sig_ctrl_tc_enter_pam(void);
52 EXTERN void sig_ctrl_tc_leave_to_ptm(void);
53 EXTERN void sig_ctrl_tc_leave_to_pim(void);
54
55
56
57
58
59 /*
60 * interface for service CPAP
61 */
62 typedef enum
63 {
64 IA_UL, /* */
65 IA_DL, /* */
66 PDCH_UL_ASS_CMD, /* */
67 PDCH_DL_ASS_CMD /* */
68 } T_PDCH_ASS_CAUSE;
69
70
71 EXTERN void sig_cpap_tc_channel_req( UBYTE );
72 EXTERN void sig_cpap_tc_dcch_data_req( T_RRGRR_DATA_REQ * rrgrr_data_req_i );
73 EXTERN void sig_cpap_tc_assign_tbf( T_TBF_TYPE tbf_type );
74 EXTERN void sig_cpap_tc_assign_sb(void *ptr2prim, UBYTE purpose);
75 EXTERN void sig_cpap_tc_error_pim( void );
76 EXTERN void sig_cpap_tc_tbf_created( T_TBF_TYPE tbf_type );
77 EXTERN void sig_cpap_tc_assign_pdch(T_MPHP_ASSIGNMENT_REQ *ptr2prim, T_PDCH_ASS_CAUSE cause);
78 EXTERN void sig_cpap_tc_resume_dedi_chan(void );
79 EXTERN void sig_cpap_tc_suspend_dedi_chan(void );
80 EXTERN void sig_cpap_tc_send_gprs_data_req(T_RRGRR_GPRS_DATA_REQ *rrgrr_gprs_data_req);
81 EXTERN void sig_cpap_tc_build_res_req(T_U_RESOURCE_REQ *ptr2res_req);
82 EXTERN void sig_cpap_tc_ctrl_ptm(void);
83 EXTERN void sig_cpap_tc_start_T3142(ULONG wait);
84 EXTERN void sig_cpap_tc_stop_T3142(void);
85 EXTERN void sig_cpap_tc_send_stop_task_req(UBYTE v_stop_ccch);
86
87 EXTERN void sig_meas_tc_update_ta_req(void);
88
89
90
91 /* Access Functions */
92
93 EXTERN UBYTE* tc_get_ctrl_blk(UBYTE *index, BOOL unacknowledged);
94 EXTERN BOOL tc_is_ctrl_blk_rdy(UBYTE ack_cnt_meas_rpt, UBYTE ack_cnt_other);
95 EXTERN UBYTE tc_get_num_ctrl_blck(void);
96 EXTERN UBYTE tc_cpy_ctrl_blk_to_buffer(UBYTE *buffer);
97
98 /*GFP*/
99 /*GFP*/
100 /* functional interface */
101 EXTERN void sig_gfp_tc_access_rej_ptm ( void );
102 EXTERN void sig_gfp_tc_ts_reconfig_ptm ( void );
103 EXTERN void sig_gfp_tc_ul_assign_ptm ( void );
104 EXTERN void sig_gfp_tc_dl_assign_ptm ( void );
105 EXTERN void sig_gfp_tc_pdch_release_ptm ( UBYTE timeslot_i );
106 EXTERN void sig_gfp_tc_packet_tbf_rel_ptm (ULONG fn, UBYTE rrbp, UBYTE sp );
107
108 EXTERN void sig_gfp_tc_fix_alloc_ack_ptm ( void );
109 EXTERN void sig_gfp_tc_update_ta_req_ptm ( void );
110
111
112 /* mphp interface*/
113 EXTERN void sig_gfp_tc_queuing_not ( void );
114 EXTERN void sig_gfp_tc_ul_assign ( void );
115 EXTERN void sig_gfp_tc_dl_assign ( void );
116 EXTERN void sig_gfp_tc_access_rej ( void );
117 EXTERN void sig_gfp_tc_ra_con ( T_MPHP_RA_CON * mphp_ra_con_i );
118 EXTERN void sig_gfp_tc_single_block_cnf ( T_MPHP_SINGLE_BLOCK_CON * mphp_single_block_con );
119 EXTERN void sig_gfp_tc_ra_stop_con ( T_MPHP_RA_STOP_CON * mphp_ra_stop_con_i );
120 EXTERN void sig_gfp_tc_assignment_con ( void );
121 EXTERN void sig_gfp_tc_tbf_release_con ( T_MPHP_TBF_RELEASE_CON * mphp_tbf_release_con_i );
122 EXTERN void sig_gfp_tc_stop_single_block_con ( T_MPHP_STOP_SINGLE_BLOCK_CON * mphp_stop_single_block_con_i );
123 EXTERN void sig_gfp_tc_poll_ind (ULONG fn,UBYTE rrbp,UBYTE poll_type,UBYTE pctrl_ack );
124 EXTERN void sig_ctrl_tc_delete_cs_msg ( void );
125 #endif /* !GRR_TCS_H */
126