blob: a378d6d876363f8a22a8a239e4cae8b40e140db2 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001#ifndef __D2_STRUCT_TMP__
2#define __D2_STRUCT_TMP__
3
4#include "d2cm_struct.h"
5
6#include "d2_d2rm_struct.h"
7
8
9typedef d2cm_get_pdn_profile_req_struct d2_get_pdn_profile_req_struct;
10typedef d2cm_get_pdn_profile_ind_struct d2_get_pdn_profile_ind_struct;
11typedef d2cm_get_pdn_profile_cnf_struct d2_get_pdn_profile_cnf_struct;
12
13typedef d2cm_get_pdn_profile_req_struct d2_get_pdn_profile_req_struct;
14
15
16#define D2_REQ_LOCAL_PARA_HDR \
17 LOCAL_PARA_HDR \
18 kal_uint32 src_id; \
19 kal_uint32 cmd_mode;
20
21#define D2_CNF_LOCAL_PARA_HDR \
22 LOCAL_PARA_HDR \
23 kal_uint32 src_id; \
24 kal_bool is_success; \
25 kal_uint16 err_cause;
26
27#define D2_IND_LOCAL_PARA_HDR \
28 LOCAL_PARA_HDR \
29 kal_uint16 src_id;
30
31typedef struct {
32 D2_REQ_LOCAL_PARA_HDR
33 kal_uint32 interface_id;
34} d2_get_ip_info_req_struct;
35
36typedef struct {
37 D2_CNF_LOCAL_PARA_HDR
38 new_ip_info_struct ip_info;
39} d2_get_ip_info_cnf_struct;
40
41typedef struct {
42 D2_CNF_LOCAL_PARA_HDR
43 kal_bool is_up;
44} d2_is_interface_up_cnf_struct;
45
46typedef struct{
47 LOCAL_PARA_HDR
48 kal_uint32 src_id;
49 kal_bool status;
50}d2_set_profile_status_req_struct;
51
52// MSG_ID_D2_GET_IF_ID_REQ
53typedef struct {
54 D2_REQ_LOCAL_PARA_HDR
55
56 kal_bool apn_present;
57 kal_char apn[APN_STRING_LEN];
58} d2_get_if_id_req_struct;
59
60// MSG_ID_D2_GET_IF_ID_CNF
61typedef struct {
62 D2_CNF_LOCAL_PARA_HDR
63
64 kal_uint32 interface_id;
65} d2_get_if_id_cnf_struct;
66
67typedef struct
68{
69 LOCAL_PARA_HDR
70
71 kal_bool reset_gprs_apn;
72
73} d2at_ipca_reset_iaapn_req_struct;
74
75typedef struct
76{
77 LOCAL_PARA_HDR
78
79 kal_uint32 src_id;
80 kal_uint8 sim_id;
81 kal_uint8 apn[APN_STRING_LEN];
82 kal_uint8 iccid[24]; // it's 20, just prevent over-boundary
83 kal_int32 apn_idx; // apn index in apn setting table
84 kal_uint8 pdp_type[PDP_TYPE_STRING_LEN]; // string type
85 kal_uint8 roaming_pdp_type[PDP_TYPE_STRING_LEN]; // string type
86 atcmd_auth_prot_enum auth_prot;
87 kal_uint8 userid[USERID_STRING_LEN];
88 kal_uint8 password[PASSWORD_STRING_LEN];
89
90 kal_bool is_pco_present; /* PCO parameters */
91 kal_uint8 IE_count; /* PCO IE count */
92 egpco_ie_struct IE[MAX_IE_COUNT]; /* PCO IE */
93
94} l5updn_d2am_set_ia_apn_req_struct;
95
96typedef struct
97{
98 LOCAL_PARA_HDR
99
100 kal_uint32 src_id;
101 kal_bool is_success;
102 kal_uint16 err_cause;
103} l5updn_d2am_set_ia_apn_cnf_struct;
104
105#endif