FreeCalypso > hg > fc-tourmaline
comparison src/g23m-gprs/upm/upm_debug.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 | Project : 3G PS | |
3 | Module : SM | |
4 +----------------------------------------------------------------------------- | |
5 | Copyright 2003 Texas Instruments. | |
6 | All rights reserved. | |
7 | | |
8 | This file is confidential and a trade secret of Texas | |
9 | Instruments . | |
10 | The receipt of or possession of this file does not convey | |
11 | any rights to reproduce or disclose its contents or to | |
12 | manufacture, use, or sell anything it may describe, in | |
13 | whole, or in part, without the specific written consent of | |
14 | Texas Instruments. | |
15 +----------------------------------------------------------------------------- | |
16 | Purpose: Debug definitions for the User Plane Management (UPM) Entity. | |
17 | For design details, see: | |
18 | 8010.939 UPM Detailed Specification | |
19 +---------------------------------------------------------------------------*/ | |
20 | |
21 /*==== DECLARATION CONTROL =================================================*/ | |
22 | |
23 #ifndef UPM_DEBUG_H | |
24 #define UPM_DEBUG_H | |
25 | |
26 /*==== INCLUDES =============================================================*/ | |
27 | |
28 /*==== CONSTS ===============================================================*/ | |
29 | |
30 /*==== TYPES ================================================================*/ | |
31 | |
32 #ifdef S_SPLINT_S /* LINT code checker defines */ | |
33 #undef TRUE | |
34 #undef FALSE | |
35 typedef /*@only@*/ T_VOID_STRUCT *T_VOID_STRUCT_ONLY; | |
36 #ifdef TI_UMTS | |
37 typedef /*@null@*/ /*@only@*/ | |
38 T_MEM_uplink_buffer_users_info *lint_mem_user_info; | |
39 #endif /* TI_UMTS */ | |
40 #ifndef UPM_WITHOUT_USER_PLANE | |
41 typedef /*@null@*/ /*@only@*/ T_desc2 *lint_desc_ptr; | |
42 /*@-redef@*/ /*@-matchfields@*/ | |
43 typedef struct | |
44 { | |
45 /*@null@*/ U32 /*@alt lint_desc_ptr@*/ next; | |
46 U16 offset; | |
47 U16 len; | |
48 U16 size; | |
49 /*@reldef@*/ U8 buffer[1]; | |
50 /*@reldef@*//*@unused@*/ U8 zzz_align0; | |
51 } T_desc2; | |
52 typedef struct | |
53 { | |
54 U16 list_len; | |
55 /*@reldef@*//*@unused@*/ U8 zzz_align0; | |
56 /*@reldef@*//*@unused@*/ U8 zzz_align1; | |
57 U32 /*@alt lint_desc_ptr@*/ first; | |
58 } T_desc_list2; | |
59 /*@=redef@*/ /*@=matchfields@*/ | |
60 #endif /* UPM_WITHOUT_USER_PLANE */ | |
61 #endif /* S_SPLINT_S */ | |
62 | |
63 /*==== EXPORTS ==============================================================*/ | |
64 | |
65 #ifdef S_SPLINT_S /* LINT code checker defines */ | |
66 /*@-incondefs@*/ /*@-redecl@*/ | |
67 T_HANDLE vsi_c_open (T_HANDLE Caller, /*@observer@*/ char *Name) | |
68 /*@globals internalState@*/ /*@modifies internalState@*/; | |
69 int /*@alt void@*/ vsi_c_close (T_HANDLE Caller, T_HANDLE ComHandle); | |
70 | |
71 int /*@alt void@*/ vsi_c_psend (T_HANDLE ComHandle, | |
72 /*@only@*/ /*@out@*/T_VOID_STRUCT *ptr FILE_LINE_TYPE); | |
73 | |
74 /*@null@*/ /*@only@*/ /*@out@*/ T_VOID_STRUCT * | |
75 vsi_c_pnew (U32 /*@alt int@*/ Size, | |
76 U32 /*@alt int@*/ opc FILE_LINE_TYPE); | |
77 /*@null@*/ /*@only@*/ /*@out@*/ T_VOID_STRUCT * | |
78 vsi_c_new_sdu(U32 /*@alt int@*/ Size, | |
79 U32 /*@alt int@*/ opc, | |
80 U16 /*@alt int,size_t@*/ sdu_len, | |
81 U16 /*@alt int,size_t@*/ sdu_offset, | |
82 U16 /*@alt int@*/ encode_offset | |
83 FILE_LINE_TYPE); | |
84 int /*@alt void@*/ vsi_c_pfree (/*@out@*/ /*@null@*/ | |
85 T_VOID_STRUCT_ONLY *Msg FILE_LINE_TYPE); | |
86 /*@null@*/ /*@only@*/ /*@out@*/ T_VOID_STRUCT * | |
87 vsi_m_cnew (U32 /*@alt int@*/ size, | |
88 U32 /*@alt int@*/ type FILE_LINE_TYPE) | |
89 /*@globals internalState@*/ /*@modifies internalState@*/; | |
90 int /*@alt void@*/ vsi_m_cfree (/*@out@*/ /*@null@*/ | |
91 T_VOID_STRUCT_ONLY *ptr FILE_LINE_TYPE) | |
92 /*@globals internalState@*/ /*@modifies internalState@*/; | |
93 | |
94 #ifdef TI_UMTS | |
95 void mem_adjust_uplink_users_flow_control(/*@in@*/ lint_mem_user_info users_info[MEM_MAX_RAB_ID]); | |
96 | |
97 /*@owned@*/U8 * mem_alloc (U8 user_handle, U16 length, | |
98 /*@out@*/ U32 *ptr_handle); | |
99 /*@owned@*/U8 * mem_get_user_data(T_MEM_HANDLE memory_handle, | |
100 /*@out@*/ U16 *ptr_length); | |
101 #endif /* TI_UMTS */ | |
102 | |
103 #ifndef UPM_WITHOUT_USER_PLANE | |
104 DTI_HANDLE dti_init (U8 maximum_links, T_HANDLE handle, | |
105 U32 entity_options, | |
106 /*@-type@*/ void (*sig_callback) | |
107 /*@=type@*/ (U8 instance, U8 interfac, U8 channel, U8 reason, | |
108 /*@only@*/ /*@null@*/ | |
109 T_DTI2_DATA_IND *dti_data_ind)) | |
110 /*@globals internalState@*/ /*@modifies internalState@*/; | |
111 | |
112 BOOL dti_resolve_link_id(/*@observer@*/DTI_HANDLE hDTI, | |
113 U8 instance, U8 interfac, U8 channel, | |
114 /*@out@*/ U32 *link_id); | |
115 | |
116 void mfree_desc (DTI_HANDLE hDTI, | |
117 /*@null@*/ /*@out@*/ | |
118 T_desc_list2 * desc_list2) | |
119 /*@ensures isnull desc_list2->first@*/ | |
120 /*@globals internalState@*/ /*@modifies internalState@*/; | |
121 | |
122 void dti_send_data(/*@observer@*/DTI_HANDLE hDTI, | |
123 U8 instance, U8 interfac, U8 channel, | |
124 /*@only@*/ /*@null@*/ /*@out@*/ | |
125 T_DTI2_DATA_IND *dti_data_ind); | |
126 #endif /* UPM_WITHOUT_USER_PLANE */ | |
127 | |
128 T_CL_result /*@alt void@*/ | |
129 cl_qos_convert_r97_to_r99(/*@partial@*//*@in@*/T_PS_qos_r97 *src_qos_r97, | |
130 /*@out@*/ T_PS_qos_r99 *dst_qos_r99); | |
131 T_CL_result /*@alt void@*/ | |
132 cl_qos_convert_r99_to_r97(/*@partial@*//*@in@*/T_PS_qos_r99 *src_qos_r99, | |
133 /*@out@*/ T_PS_qos_r97 *dst_qos_r97); | |
134 /*@=incondefs@*/ /*@=redecl@*/ | |
135 #endif /* S_SPLINT_S */ | |
136 | |
137 #endif /* UPM_DEBUG_H */ | |
138 /*==== END OF FILE ==========================================================*/ |