FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/wap_aci.h @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-F&D (8411) | |
4 | Modul : WAP | |
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 the WAP module | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef WAP_ACI_H | |
22 #define WAP_ACI_H | |
23 | |
24 /*==== TYPES ======================================================*/ | |
25 | |
26 typedef enum | |
27 { | |
28 Wap_Not_Init = -1 , | |
29 #ifdef FF_GPF_TCPIP | |
30 TCPIP_Initialization, | |
31 TCPIP_Initialized, | |
32 TCPIP_Activation , | |
33 TCPIP_Activated , | |
34 #endif /*FF_GPF_TCPIP*/ | |
35 UDPA_Activation , | |
36 UDPA_Activated , | |
37 IPA_Activation , | |
38 IPA_Activated , | |
39 IPA_Configuration , | |
40 IPA_Configurated , | |
41 UDPA_Configuration , | |
42 UDPA_Configurated , | |
43 #ifdef FF_GPF_TCPIP | |
44 TCPIP_Configuration , | |
45 TCPIP_Configurated , | |
46 #endif /*FF_GPF_TCPIP*/ | |
47 IPA_Deconfiguration, | |
48 IPA_Deconfigurated, | |
49 UDPA_Deconfiguration, | |
50 UPDA_Deconfigurated, | |
51 #ifdef FF_GPF_TCPIP | |
52 TCPIP_Deconfiguration, | |
53 TCPIP_Deconfigurated, | |
54 TCPIP_Deactivation, | |
55 TCPIP_Deactivated, | |
56 #endif /*FF_GPF_TCPIP*/ | |
57 UDPA_Deactivation, | |
58 UDPA_Deactivated, | |
59 IPA_Deactivation, | |
60 IPA_Deactivated | |
61 } T_ACI_WAP_STATES; | |
62 | |
63 | |
64 /* | |
65 * Indicate is IP connected or disconnected | |
66 */ | |
67 | |
68 typedef enum | |
69 { | |
70 IPA_CONN, | |
71 IPA_DSC | |
72 } | |
73 T_ACI_IPA_DIRC; | |
74 | |
75 | |
76 /*==== EXPORT =====================================================*/ | |
77 | |
78 /* | |
79 * Prototypes for IP and UDP. | |
80 */ | |
81 | |
82 EXTERN void psaIPA_Config ( ULONG ip, USHORT max_trans_unit, T_ACI_IPA_DIRC dirc ); | |
83 EXTERN void psaUDPA_Config ( UBYTE dirc ); | |
84 | |
85 EXTERN T_ACI_RETURN cmhIPA_Configurated ( void ); | |
86 EXTERN T_ACI_RETURN cmhIPA_Deconfigurated ( void ); | |
87 | |
88 EXTERN T_ACI_RETURN cmhUDPA_Activate ( T_ACI_CMD_SRC srcId, SHORT cId ); | |
89 EXTERN T_ACI_RETURN cmhUDPA_Configurated ( void ); | |
90 EXTERN T_ACI_RETURN cmhUDPA_Deconfigurated ( void ); | |
91 EXTERN T_ACI_RETURN cmhUDPA_Deactivate ( UBYTE src_id ); | |
92 | |
93 EXTERN T_ACI_RETURN cmhTCPIP_Activate ( T_ACI_CMD_SRC srcId, SHORT cId ); | |
94 EXTERN T_ACI_RETURN cmhTCPIP_Configurated ( void ); | |
95 EXTERN T_ACI_RETURN cmhTCPIP_Deconfigurated ( void ); | |
96 EXTERN T_ACI_RETURN cmhTCPIP_Deactivate ( UBYTE src_id ); | |
97 | |
98 EXTERN void psaIPA_Dti_Req(ULONG dti_id, UBYTE peer_to_connect_to, UBYTE dti_conn); | |
99 EXTERN void psaUDPA_Dti_Req(ULONG dti_id, UBYTE peer_to_connect_to, UBYTE dti_conn); | |
100 EXTERN void psaWAP_Dti_Req(ULONG dti_id, UBYTE peer_to_connect_to, UBYTE dti_conn); | |
101 | |
102 | |
103 /* | |
104 * Variables for WAP, state, id and CALL | |
105 */ | |
106 | |
107 #ifdef PSA_PPPP_C | |
108 GLOBAL T_ACI_WAP_STATES wap_state = Wap_Not_Init; | |
109 GLOBAL SHORT wapId = NO_ENTRY; | |
110 GLOBAL BOOL Wap_Call = FALSE; | |
111 GLOBAL UBYTE wap_dti_id = DTI_DTI_ID_NOTPRESENT; | |
112 GLOBAL ULONG peer_link_id = DTI_LINK_ID_NOTPRESENT; | |
113 GLOBAL ULONG prot_link_id = DTI_LINK_ID_NOTPRESENT; | |
114 GLOBAL UBYTE peer_entity_id = DTI_ENTITY_MAX; | |
115 GLOBAL UBYTE prot_entity_id = DTI_ENTITY_MAX; | |
116 | |
117 #else | |
118 | |
119 EXTERN T_ACI_WAP_STATES wap_state; | |
120 EXTERN SHORT wapId; | |
121 EXTERN BOOL Wap_Call; | |
122 EXTERN UBYTE wap_dti_id; | |
123 EXTERN ULONG peer_link_id; | |
124 EXTERN ULONG prot_link_id; | |
125 EXTERN UBYTE peer_entity_id; | |
126 EXTERN UBYTE prot_entity_id; | |
127 | |
128 #endif /* of #ifdef CMH_UDPAS_C */ | |
129 | |
130 | |
131 #endif /* of #ifndef WAP_ACI_H */ |