comparison src/aci2/aci/psa_gppp.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul :
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 protocol stack adapter
18 | Point-to-Point Protocol ( PPP ).
19 +-----------------------------------------------------------------------------
20 */
21
22 #if defined (GPRS) AND defined (DTI)
23
24 #ifndef PSA_GPPP_H
25 #define PSA_GPPP_H
26
27
28
29 /*==== CONSTANTS ==================================================*/
30 /* length is out of the SAP from PPP */
31 #define CHANNEL_NAME_LENGTH 6
32
33
34 /*==== TYPES ======================================================*/
35 typedef struct pppSetParm
36 {
37 T_PPP_PDP_ACTIVATE_RES *pdp_res; /* parameter for PDP context activation */
38 T_PPP_PDP_ACTIVATE_REJ *pdp_rej; /* parameter for PDP context activation failed */
39 UBYTE ppp_hc; /* 0, 1: header compression of PPP connection */
40 UBYTE msid; /* ... : max slot identifier */
41
42 } T_PPP_SET_PRM;
43
44 typedef struct pppShrdParm
45 {
46 /* set parameter */
47 UBYTE owner; /* identifies the used set */
48 T_PPP_SET_PRM setPrm[OWN_MAX]; /* possible sets */
49
50 /* global set parameter */
51 UBYTE ppp_authentication_protocol; /* PPP authentication protocol */
52 UBYTE accm; /* default: 0 */
53 UBYTE restart_timer; /* default: 3 */
54 UBYTE max_configure; /* default: 10 */
55 UBYTE max_terminate; /* default: 2 */
56 UBYTE max_failure; /* default: 5 */
57
58 /* answer parameter */
59 T_PPP_ESTABLISH_CNF est; /* parameter from establishment */
60 T_PPP_PDP_ACTIVATE_IND *pdp; /* parameter from PDP context */
61 U16 ppp_cause; /* 1 ... 111 cause of PPP termination */
62 UBYTE instance; /* future parameter for the PPP instance */
63 UBYTE tui;
64 UBYTE ppp_hc; /* 0, 1: header compression of PPP connection */
65 UBYTE msid; /* ... : max slot identifier */
66
67 } T_GPPP_SHRD_PRM;
68
69 /*==== PROTOTYPES =================================================*/
70
71 EXTERN void psaGPPP_Establish ( T_PPP_ESTABLISH_REQ *est_req );
72 EXTERN void psaGPPP_PDP_Activate ( UBYTE ppp_hc, UBYTE msid, UBYTE ip[4], UBYTE *pco_buf, UBYTE pco_length );
73
74 EXTERN SHORT psaGPPP_PDP_Reject ( void );
75 //needed ?? EXTERN SHORT psaGPPP_Modification ( void );
76
77 EXTERN void psaGPPP_Init ( UBYTE accm, UBYTE restart_timer,
78 UBYTE max_configure, UBYTE max_terminate, UBYTE max_failure );
79
80
81 EXTERN void psaGPPP_Terminate ( UBYTE lower_layer );
82
83 EXTERN void psaGPPPS_Dti_Req ( T_DTI_CONN_LINK_ID link_id, UBYTE peer );
84
85 EXTERN BOOL PPP_UART_connect_dti_cb ( UBYTE dti_id, T_DTI_CONN_STATE result_type);
86 EXTERN BOOL PPP_SNDCP_connect_dti_cb ( UBYTE dti_id, T_DTI_CONN_STATE result_type);
87
88 /*==== EXPORT =====================================================*/
89
90 #ifdef PSA_GPPPF_C
91
92 GLOBAL T_GPPP_SHRD_PRM gpppShrdPrm;
93
94 #else
95
96 EXTERN T_GPPP_SHRD_PRM gpppShrdPrm;
97
98 #endif /* PSA_GPPPF_C */
99
100 #endif /* PSA_PPP_H */
101
102 #endif /* GPRS */
103 /*==== EOF =======================================================*/