comparison src/g23m-aci/aci/psa_ppp_w.h @ 162:53929b40109c

src/g23m-aci: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Oct 2016 02:02:43 +0000
parents
children
comparison
equal deleted inserted replaced
161:4557e2a9c18e 162:53929b40109c
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : WAP
4 | Modul : PSA_PPP
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 PPP
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef PSA_PPP_H
22 #define PSA_PPP_H
23
24 /*==== CONSTANTS ==================================================*/
25
26 /*
27 * 25 is the maximal size a login
28 * and a password should have
29 */
30
31 /* Value of MAX_PPP_LOGIN_LEN is changed from 25 to 33
32 * Issue: OMAPS00067767
33 */
34
35 #define MAX_PPP_LOGIN_LEN (33)
36 #define MAX_PPP_PASSW_LEN (25)
37
38 /*
39 * States for PPP
40 */
41
42 typedef enum
43 {
44 PPP_UNDEFINED = -1,
45 PPP_ESTABLISH = 0, /* PPP is in establish state to server */
46 PPP_ESTABLISHED, /* PPP client is established with server */
47 PPP_TERMINATE, /* PPP start termination */
48 PPP_TERMINATED /* PPP is terminated */
49 } T_PPP_STATE;
50
51 /*
52 * Indicate is lower layer activ
53 */
54
55 typedef enum
56 {
57 UNDEFINED = -1, /* Not definied */
58 UP, /* Lower layer, is activ. (Example: L2R, RLP, CC).*/
59 DWN /* Loer layer is down, (Example: CC has disconnected */
60 }
61 T_ACI_PPP_LOWER_LAYER;
62
63
64 /*==== TYPES ======================================================*/
65
66 typedef struct PPPShrdParm
67 {
68 UBYTE owner; /* owner */
69 SHORT cId; /* related call id */
70 T_PPP_STATE state; /* state */
71 CHAR ppp_login[MAX_PPP_LOGIN_LEN]; /* login */
72 CHAR ppp_password[MAX_PPP_PASSW_LEN];/* password */
73 BOOL is_PPP_CALL; /* should "ATD" connect AAA-PPP-L2R */
74 T_ACI_PPP_PROT auth_prot;
75 #if defined(FF_PPP) || defined(FF_WAP) || defined(FF_GPF_TCPIP) || defined (FF_SAT_E)
76 /* PPP connection parameters supplied by the network. */
77 ULONG ipaddr ; /* Our own IP address. */
78 ULONG dns1 ; /* First DNS server address. */
79 ULONG dns2 ; /* Second DNS server address. */
80 #endif /* FF_PPP || FF_WAP || FF_GPF_TCPIP || FF_SAT_E*/
81 } T_PPP_SHRD_PRM;
82
83 /*==== PROTOTYPES =================================================*/
84
85 void psaPPP_Init(); /* Initsialisation of PPP psa variables */
86
87 #ifdef DTI
88 void psaPPP_Establish ( T_DTI_CONN_LINK_ID link_id, UBYTE peer ); /* Handle the establishment from ACI-PPP */
89 #endif /* DTI */
90 void psaPPP_Terminate ( T_ACI_PPP_LOWER_LAYER ppp_lower_layer); /* Handle the hang up */
91
92
93 /*==== EXPORT =====================================================*/
94
95 #ifdef PSA_PPPF_C
96
97 GLOBAL T_PPP_SHRD_PRM pppShrdPrm;
98
99 #else
100
101 EXTERN T_PPP_SHRD_PRM pppShrdPrm;
102
103 #endif /* PSA_PPPF_C */
104
105 #endif /* PSA_PPP_H */
106
107 /*==== EOF =======================================================*/