blob: e83a543c70832387f2a49457ef94729169faaefa [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef __D2_D2PM_STRUCT_H__
2#define __D2_D2PM_STRUCT_H__
3
4#include "kal_public_defs.h"
5#include "atcmd_enum.h"
6#include "netinfo_common_struct.h"
7#include "pdn_public_defs.h"
8#include "atp_d2at_struct.h"
9#include "d2pm_ddm_struct.h"
10#include "d2_public_defs.h"
11
12// Type definition
13typedef struct d2_d2pm_hdr d2_d2pm_hdr_t;
14typedef struct d2_d2pm_hdr* d2_d2pm_hdr_ptr_t;
15
16// Macros
17#define D2_D2PM_REQ_LOCAL_PARA_HDR \
18 LOCAL_PARA_HDR \
19 kal_uint16 src_id;
20
21#define D2_D2PM_NF_LOCAL_PARA_HDR \
22 LOCAL_PARA_HDR \
23 kal_uint16 src_id;
24
25#define D2_D2PM_IND_LOCAL_PARA_HDR \
26 LOCAL_PARA_HDR \
27 kal_uint16 src_id;
28
29#define D2_D2PM_RSP_LOCAL_PARA_HDR \
30 LOCAL_PARA_HDR \
31 kal_uint16 src_id;
32
33// Functions
34// N/A
35
36// Implementation
37struct d2_d2pm_hdr
38{
39 LOCAL_PARA_HDR
40 kal_uint16 src_id;
41};
42
43/******************************************************************************
44* D2 to D2PM REQ *
45*******************************************************************************/
46
47// MSG_ID_D2_D2PM_ACT_DATA_CALL_REQ
48typedef struct
49{
50 D2_DATA_CALL_REQ_LOCAL_PARA_HDR
51
52 /* common part */
53 kal_char apn[APN_STRING_LEN];
54 kal_uint32 apn_idx;
55 kal_uint32 apn_type;
56 kal_uint32 suff_cond;
57 d2_ipv4v6_fb_enum ipv4v6_fb_pref;
58 kal_int32 cid;
59 kal_int32 p_cid;
60 kal_int32 fb_cid;
61
62 /* custom part, only for APN index D2PM_APN_IDX_CUSTOM_UNS */
63 kal_bool has_custom;
64 pdp_addr_type_enum pdx_type;
65 kal_char usrname[USERID_STRING_LEN];
66 kal_char passwd[PASSWORD_STRING_LEN];
67 kal_int8 auth_type;
68 kal_uint32 bearer_bitmask;
69 struct
70 {
71 struct
72 {
73 pdp_addr_type_enum pdx_type;
74 }roam;
75
76 struct
77 {
78 kal_char dnn[APN_STRING_LEN];
79 pdp_addr_type_enum pdx_type;
80 atcmd_SSC_mode_enum ssc_mode;
81 at_s_nssai_struct s_nssai;
82 atcmd_Access_type_enum access_type;
83 }vg;
84
85 struct
86 {
87 pdp_addr_type_enum pdx_type;
88 }vg_roam;
89
90 /* operator part */
91 struct
92 {
93 kal_uint32 wapn;
94 kal_uint32 apncl;
95 kal_uint32 apned;
96 kal_uint32 max_conn;
97 kal_uint32 max_conn_t;
98 kal_uint32 wait_time;
99 }vzw;
100
101 struct
102 {
103 kal_uint32 inact_time;
104 }sprint;
105 }cond;
106}d2_d2pm_act_data_call_req_struct;
107
108
109// MSG_ID_D2_DEACT_DATA_CALL_REQ
110typedef struct
111{
112 D2_DATA_CALL_REQ_LOCAL_PARA_HDR
113
114 /* common part */
115 kal_int32 cid;
116 atcmd_deact_cause_enum reason;
117}d2_d2pm_deact_data_call_req_struct;
118
119
120// MSG_ID_D2_ABORT_DATA_CALL_REQ
121typedef struct
122{
123 D2_DATA_CALL_REQ_LOCAL_PARA_HDR
124
125 /* common part */
126 kal_char apn[APN_STRING_LEN];
127 kal_uint32 apn_idx;
128 kal_uint32 apn_type;
129 kal_int32 cid;
130 atcmd_deact_cause_enum reason;
131}d2_d2pm_abort_data_call_req_struct;
132
133
134/******************************************************************************
135* D2 to User CNF *
136*******************************************************************************/
137
138#if 0
139/* under construction !*/
140/* under construction !*/
141/* under construction !*/
142/* under construction !*/
143/* under construction !*/
144/* under construction !*/
145/* under construction !*/
146/* under construction !*/
147/* under construction !*/
148/* under construction !*/
149/* under construction !*/
150/* under construction !*/
151/* under construction !*/
152/* under construction !*/
153/* under construction !*/
154/* under construction !*/
155/* under construction !*/
156/* under construction !*/
157/* under construction !*/
158/* under construction !*/
159/* under construction !*/
160/* under construction !*/
161/* under construction !*/
162/* under construction !*/
163/* under construction !*/
164/* under construction !*/
165/* under construction !*/
166/* under construction !*/
167/* under construction !*/
168/* under construction !*/
169/* under construction !*/
170/* under construction !*/
171/* under construction !*/
172/* under construction !*/
173/* under construction !*/
174/* under construction !*/
175/* under construction !*/
176/* under construction !*/
177/* under construction !*/
178/* under construction !*/
179/* under construction !*/
180/* under construction !*/
181/* under construction !*/
182/* under construction !*/
183/* under construction !*/
184/* under construction !*/
185/* under construction !*/
186/* under construction !*/
187/* under construction !*/
188/* under construction !*/
189/* under construction !*/
190/* under construction !*/
191/* under construction !*/
192/* under construction !*/
193/* under construction !*/
194/* under construction !*/
195/* under construction !*/
196/* under construction !*/
197/* under construction !*/
198/* under construction !*/
199/* under construction !*/
200/* under construction !*/
201/* under construction !*/
202/* under construction !*/
203/* under construction !*/
204/* under construction !*/
205/* under construction !*/
206/* under construction !*/
207/* under construction !*/
208/* under construction !*/
209/* under construction !*/
210/* under construction !*/
211#endif
212
213
214/******************************************************************************
215* D2 to User IND *
216*******************************************************************************/
217
218#if 0
219/* under construction !*/
220/* under construction !*/
221/* under construction !*/
222/* under construction !*/
223/* under construction !*/
224/* under construction !*/
225/* under construction !*/
226/* under construction !*/
227/* under construction !*/
228/* under construction !*/
229/* under construction !*/
230/* under construction !*/
231/* under construction !*/
232/* under construction !*/
233/* under construction !*/
234/* under construction !*/
235/* under construction !*/
236/* under construction !*/
237/* under construction !*/
238/* under construction !*/
239/* under construction !*/
240/* under construction !*/
241/* under construction !*/
242/* under construction !*/
243/* under construction !*/
244/* under construction !*/
245/* under construction !*/
246/* under construction !*/
247/* under construction !*/
248/* under construction !*/
249/* under construction !*/
250/* under construction !*/
251/* under construction !*/
252/* under construction !*/
253/* under construction !*/
254/* under construction !*/
255/* under construction !*/
256/* under construction !*/
257/* under construction !*/
258/* under construction !*/
259/* under construction !*/
260/* under construction !*/
261/* under construction !*/
262/* under construction !*/
263/* under construction !*/
264/* under construction !*/
265/* under construction !*/
266/* under construction !*/
267/* under construction !*/
268/* under construction !*/
269/* under construction !*/
270/* under construction !*/
271/* under construction !*/
272/* under construction !*/
273/* under construction !*/
274/* under construction !*/
275/* under construction !*/
276/* under construction !*/
277/* under construction !*/
278/* under construction !*/
279/* under construction !*/
280/* under construction !*/
281/* under construction !*/
282/* under construction !*/
283/* under construction !*/
284/* under construction !*/
285/* under construction !*/
286/* under construction !*/
287/* under construction !*/
288/* under construction !*/
289/* under construction !*/
290/* under construction !*/
291/* under construction !*/
292/* under construction !*/
293/* under construction !*/
294/* under construction !*/
295/* under construction !*/
296/* under construction !*/
297/* under construction !*/
298/* under construction !*/
299/* under construction !*/
300/* under construction !*/
301/* under construction !*/
302/* under construction !*/
303/* under construction !*/
304/* under construction !*/
305/* under construction !*/
306/* under construction !*/
307/* under construction !*/
308#endif
309
310
311/******************************************************************************
312* User to D2 RSP *
313*******************************************************************************/
314
315#if 0
316/* under construction !*/
317/* under construction !*/
318/* under construction !*/
319/* under construction !*/
320/* under construction !*/
321/* under construction !*/
322/* under construction !*/
323/* under construction !*/
324/* under construction !*/
325/* under construction !*/
326/* under construction !*/
327/* under construction !*/
328/* under construction !*/
329/* under construction !*/
330/* under construction !*/
331/* under construction !*/
332/* under construction !*/
333/* under construction !*/
334/* under construction !*/
335/* under construction !*/
336/* under construction !*/
337/* under construction !*/
338/* under construction !*/
339/* under construction !*/
340/* under construction !*/
341/* under construction !*/
342/* under construction !*/
343/* under construction !*/
344/* under construction !*/
345/* under construction !*/
346/* under construction !*/
347/* under construction !*/
348#endif
349
350#endif