FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/dti/dti_int_prot.h @ 775:eedbf248bac0
gsm-fw/g23m-aci subtree: initial import from LoCosto source
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 12 Oct 2014 01:45:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
774:40a721fd9854 | 775:eedbf248bac0 |
---|---|
1 /* | |
2 +-------------------------------------------------------------------+ | |
3 | PROJECT: DTILIB $Workfile:: dti.h $| | |
4 | $Author:: xof $$Revision:: $| | |
5 | CREATED: 15-Feb-2001 $Modtime:: $| | |
6 +-------------------------------------------------------------------+ | |
7 | |
8 MODULE : DTI | |
9 | |
10 PURPOSE : Definitions for the internal Data Transmission Interface | |
11 Library, DTI. | |
12 | |
13 $Log:: /GSM/Condat/MS/SRC/dti/dti.h $ | |
14 */ | |
15 /* | |
16 * Version 1.6 | |
17 */ | |
18 | |
19 #ifndef DTI_INT_PROT_H | |
20 #define DTI_INT_PROT_H | |
21 | |
22 | |
23 /*==== Prototypes ==================================================*/ | |
24 | |
25 EXTERN void set_default_para_data_base(DTI_HANDLE hDTI); | |
26 | |
27 EXTERN void set_default_para_link_table( | |
28 DTI_HANDLE hDTI, | |
29 DTI_LINK *link, | |
30 U32 link_id, | |
31 U8 direction | |
32 ); | |
33 | |
34 EXTERN void init_link_table(DTI_LINK *link); | |
35 | |
36 EXTERN void set_reset_req_para_link_table ( DTI_HANDLE hDTI, DTI_LINK *link); | |
37 | |
38 EXTERN void set_open_para_link_table | |
39 ( | |
40 DTI_HANDLE hDTI, | |
41 DTI_LINK *link, | |
42 U32 version, | |
43 U32 link_options, | |
44 U8 instance, | |
45 U8 interfac, | |
46 U8 channel, | |
47 U8 queue_size, | |
48 U8 connect_state | |
49 ); | |
50 | |
51 EXTERN void free_dti_link_structure(DTI_HANDLE hDTI); | |
52 | |
53 EXTERN void trace_message( T_HANDLE handle, char *str, U32 entity_options); | |
54 | |
55 EXTERN void trace_message_link_id (T_HANDLE handle, char *str, U32 link_id, U32 entity_options); | |
56 | |
57 EXTERN void trace_message_l_dl (T_HANDLE handle, | |
58 char *str, | |
59 U32 link_id, | |
60 U16 length, | |
61 U32 entity_options); | |
62 | |
63 EXTERN void trace_message_l_e (T_HANDLE handle, char *str, U32 link_id, char* entity, U32 entity_options); | |
64 | |
65 EXTERN void trace_message_iic (T_HANDLE handle, char *str, U8 instance, U8 | |
66 interfac, U8 channel, U32 | |
67 entity_options); | |
68 | |
69 EXTERN void trace_function( T_HANDLE handle, char *str, U32 entity_options); | |
70 | |
71 EXTERN DTI_LINK * get_pointer_link_table | |
72 ( | |
73 DTI_HANDLE hDTI, | |
74 U32 select_link_id, | |
75 U8 select_direction | |
76 ); | |
77 | |
78 EXTERN DTI_LINK * get_pointer_link_table_channel | |
79 ( | |
80 DTI_HANDLE hDTI, | |
81 U8 instance, | |
82 U8 interfac, | |
83 U8 channel | |
84 ); | |
85 | |
86 EXTERN DTI_LINK * get_pointer_free_link(DTI_HANDLE hDTI); | |
87 | |
88 EXTERN DTI_RESULT validate_open_parameters | |
89 ( | |
90 DTI_HANDLE hDTI, | |
91 U32 link_id, | |
92 U8 *queue_size, | |
93 U8 *direction, | |
94 U32 *link_options, | |
95 U32 version, | |
96 U8 *neighbor_entity | |
97 ); | |
98 | |
99 EXTERN void open_comm_channel(T_HANDLE entity_handle, T_HANDLE *com_handle, | |
100 char *name, U32 entity_options); | |
101 | |
102 EXTERN BOOL check_dti_version (DTI_HANDLE hDTI, U32 request_version); | |
103 | |
104 EXTERN void close_link_with_signal(DTI_HANDLE hDTI, DTI_LINK *link); | |
105 | |
106 EXTERN void flow_control_prim_received | |
107 ( | |
108 DTI_HANDLE hDTI, | |
109 U32 link_id, | |
110 U8 direction | |
111 ); | |
112 EXTERN void connect_init_prim_received | |
113 ( | |
114 DTI_HANDLE hDTI, | |
115 U32 link_id, | |
116 U32 version, | |
117 U8 direction | |
118 ); | |
119 EXTERN void connect_confirm_prim_received | |
120 ( | |
121 DTI_HANDLE hDTI, | |
122 U32 link_id, | |
123 U32 version, | |
124 U8 direction | |
125 ); | |
126 EXTERN void disconnect_prim_received | |
127 ( | |
128 DTI_HANDLE hDTI, | |
129 U32 link_id, | |
130 U8 direction | |
131 ); | |
132 EXTERN void data_prim_received | |
133 ( | |
134 DTI_HANDLE hDTI, | |
135 T_DTI2_DATA_IND *dti_data_ind, | |
136 U8 direction | |
137 ); | |
138 EXTERN void data_test_prim_received | |
139 ( | |
140 DTI_HANDLE hDTI, | |
141 T_DTI2_DATA_TEST_IND *dti_data_test_ind, | |
142 U8 direction | |
143 ); | |
144 | |
145 EXTERN void put_dti_data_ind_in_queue | |
146 ( | |
147 DTI_HANDLE hDTI, | |
148 DTI_LINK *link, | |
149 T_DTI2_DATA_IND *dti_data_ind | |
150 ); | |
151 | |
152 EXTERN void put_dti_data_ind_in_queue_managed | |
153 ( | |
154 DTI_HANDLE hDTI, | |
155 DTI_LINK *link, | |
156 T_DTI2_DATA_IND *dti_data_ind | |
157 ); | |
158 | |
159 EXTERN T_DTI2_DATA_IND * get_dti_data_ind_from_queue( DTI_HANDLE hDTI, DTI_LINK * link); | |
160 | |
161 #ifdef MEMORY_SUPERVISION | |
162 EXTERN SHORT vsi_c_psend_ntrace ( T_HANDLE Caller, T_HANDLE ComHandle, | |
163 T_VOID_STRUCT *ptr, ULONG MsgLen, const char *file, int line ); | |
164 #else /* MEMORY_SUPERVISION */ | |
165 EXTERN SHORT vsi_c_psend_ntrace ( T_HANDLE Caller, T_HANDLE ComHandle, | |
166 T_VOID_STRUCT *ptr, ULONG MsgLen ); | |
167 #endif /* MEMORY_SUPERVISION */ | |
168 | |
169 #endif /* DTI_INT_PROT_H */ |