comparison g23m/condat/ms/src/aci/psa_sm.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
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 | GPRS session management ( SM ).
19 +-----------------------------------------------------------------------------
20 */
21
22 #ifdef GPRS
23
24 #ifndef PSA_SM_H
25 #define PSA_SM_H
26
27
28
29 /*==== CONSTANTS ==================================================*/
30
31 /*==== TYPES ======================================================*/
32 typedef struct SMSetParm
33 {
34 T_SMREG_PDP_ACTIVATE_REQ *pact; /* primitive parameter */
35 T_SMREG_PDP_ACTIVATE_REQ act; /* primitive parameter */
36 } T_SM_SET_PRM;
37
38 typedef struct SMShrdParm
39 {
40 /* state parameter */
41 UBYTE direc; /* parameter for primitive SMREG_PDP_ACTIVATE_REQ */
42
43 /* set parameter */
44 UBYTE owner; /* identifies the used set */
45 T_SM_SET_PRM setPrm[OWN_MAX]; /* possible sets */
46
47 /* answer parameter */
48 T_SMREG_PDP_ACTIVATE_REJ *pdp_rej;/* primitive parameter */
49 T_SMREG_PDP_ACTIVATE_IND act_ind;/* primitive parameter */
50 USHORT nsapi_set; /* 1 - 15 N-SAPI - ...*/
51 T_QOS mod_qos; /* QOS - modify indication */
52
53 } T_SM_SHRD_PRM;
54
55 /*==== PROTOTYPES =================================================*/
56
57 void psaSM_Init ( void );
58 /*SHORT psaSM_PDP_Activate_IP ( SHORT cid );*/
59
60 #ifdef DTI
61 EXTERN void psaSNDCP_Dti_Req( T_DTI_CONN_LINK_ID link_id, UBYTE peer );
62 EXTERN void psaSM_PDP_Deactivate ( USHORT nsapi_set, UBYTE smreg_local );
63 EXTERN void psaSM_PDP_No_activate ( UBYTE smreg_ti, USHORT smreg_cause );
64 #endif /*DTI*/
65 EXTERN void psaSM_ActivateReq ( SHORT cid,
66 UBYTE ppp_hc,
67 UBYTE msid,
68 UBYTE hcomp,
69 ULONG dti_linkid,
70 ULONG dti_neighbor,
71 UBYTE dti_direction );
72
73 /*==== EXPORT =====================================================*/
74
75 #ifdef PSA_SMF_C
76
77 GLOBAL T_SM_SHRD_PRM smShrdPrm;
78
79 #else
80
81 EXTERN T_SM_SHRD_PRM smShrdPrm;
82
83 #endif /* PSA_SMF_C */
84
85 #endif /* PSA_SM_H */
86
87 #endif /* GPRS */
88 /*==== EOF =======================================================*/