rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | #ifndef __D2_STRUCT_TMP__ |
| 2 | #define __D2_STRUCT_TMP__ |
| 3 | |
| 4 | #include "d2cm_struct.h" |
| 5 | |
| 6 | #include "d2_d2rm_struct.h" |
yu.dong | e372c32 | 2023-08-30 20:25:04 -0700 | [diff] [blame] | 7 | #include "d2_netif_struct.h" |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 8 | |
| 9 | |
| 10 | typedef d2cm_get_pdn_profile_req_struct d2_get_pdn_profile_req_struct; |
| 11 | typedef d2cm_get_pdn_profile_ind_struct d2_get_pdn_profile_ind_struct; |
| 12 | typedef d2cm_get_pdn_profile_cnf_struct d2_get_pdn_profile_cnf_struct; |
| 13 | |
| 14 | typedef d2cm_get_pdn_profile_req_struct d2_get_pdn_profile_req_struct; |
| 15 | |
| 16 | |
| 17 | #define D2_REQ_LOCAL_PARA_HDR \ |
| 18 | LOCAL_PARA_HDR \ |
| 19 | kal_uint32 src_id; \ |
| 20 | kal_uint32 cmd_mode; |
| 21 | |
| 22 | #define D2_CNF_LOCAL_PARA_HDR \ |
| 23 | LOCAL_PARA_HDR \ |
| 24 | kal_uint32 src_id; \ |
| 25 | kal_bool is_success; \ |
| 26 | kal_uint16 err_cause; |
| 27 | |
| 28 | #define D2_IND_LOCAL_PARA_HDR \ |
| 29 | LOCAL_PARA_HDR \ |
| 30 | kal_uint16 src_id; |
| 31 | |
| 32 | typedef struct { |
| 33 | D2_REQ_LOCAL_PARA_HDR |
| 34 | kal_uint32 interface_id; |
| 35 | } d2_get_ip_info_req_struct; |
| 36 | |
| 37 | typedef struct { |
| 38 | D2_CNF_LOCAL_PARA_HDR |
| 39 | new_ip_info_struct ip_info; |
| 40 | } d2_get_ip_info_cnf_struct; |
| 41 | |
| 42 | typedef struct { |
| 43 | D2_CNF_LOCAL_PARA_HDR |
| 44 | kal_bool is_up; |
| 45 | } d2_is_interface_up_cnf_struct; |
| 46 | |
| 47 | typedef struct{ |
| 48 | LOCAL_PARA_HDR |
| 49 | kal_uint32 src_id; |
| 50 | kal_bool status; |
| 51 | }d2_set_profile_status_req_struct; |
| 52 | |
| 53 | // MSG_ID_D2_GET_IF_ID_REQ |
| 54 | typedef struct { |
| 55 | D2_REQ_LOCAL_PARA_HDR |
| 56 | |
| 57 | kal_bool apn_present; |
| 58 | kal_char apn[APN_STRING_LEN]; |
| 59 | } d2_get_if_id_req_struct; |
| 60 | |
| 61 | // MSG_ID_D2_GET_IF_ID_CNF |
| 62 | typedef struct { |
| 63 | D2_CNF_LOCAL_PARA_HDR |
| 64 | |
| 65 | kal_uint32 interface_id; |
| 66 | } d2_get_if_id_cnf_struct; |
| 67 | |
yu.dong | e372c32 | 2023-08-30 20:25:04 -0700 | [diff] [blame] | 68 | // MSG_ID_D2_GET_RESERVED_IF_ID_LIST_REQ |
| 69 | typedef struct { |
| 70 | D2_REQ_LOCAL_PARA_HDR |
| 71 | |
| 72 | } d2_get_reserved_if_id_list_req_struct; |
| 73 | |
| 74 | // MSG_ID_D2_GET_RESERVED_IF_ID_LIST_CNF |
| 75 | typedef struct { |
| 76 | D2_CNF_LOCAL_PARA_HDR |
| 77 | |
| 78 | kal_uint8 length; |
| 79 | kal_bool interface_status[D2_NETIF_MAX_INTERFACE_ID]; |
| 80 | } d2_get_reserved_if_id_list_cnf_struct; |
| 81 | |
| 82 | typedef struct { |
| 83 | D2_REQ_LOCAL_PARA_HDR |
| 84 | |
| 85 | kal_bool if_state[D2_NETIF_MAX_INTERFACE_ID]; |
| 86 | } d2_set_reserved_if_id_req_struct; |
| 87 | |
| 88 | typedef struct { |
| 89 | D2_CNF_LOCAL_PARA_HDR |
| 90 | |
| 91 | kal_bool if_state[D2_NETIF_MAX_INTERFACE_ID]; |
| 92 | } d2_set_reserved_if_id_cnf_struct; |
| 93 | |
| 94 | // MSG_ID_D2_GET_PS_ID_REQ |
| 95 | typedef struct { |
| 96 | D2_REQ_LOCAL_PARA_HDR |
| 97 | |
| 98 | kal_int32 interface_id; |
| 99 | } d2_get_ps_id_req_struct; |
| 100 | |
| 101 | // MSG_ID_D2_GET_PS_ID_CNF |
| 102 | typedef struct { |
| 103 | D2_CNF_LOCAL_PARA_HDR |
| 104 | |
| 105 | kal_uint8 ps_id; |
| 106 | kal_bool result; |
| 107 | kal_uint16 transaction_id; |
| 108 | } d2_get_ps_id_cnf_struct; |
| 109 | |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 110 | typedef struct |
| 111 | { |
| 112 | LOCAL_PARA_HDR |
| 113 | |
| 114 | kal_bool reset_gprs_apn; |
| 115 | |
| 116 | } d2at_ipca_reset_iaapn_req_struct; |
| 117 | |
| 118 | typedef struct |
| 119 | { |
| 120 | LOCAL_PARA_HDR |
| 121 | |
| 122 | kal_uint32 src_id; |
| 123 | kal_uint8 sim_id; |
| 124 | kal_uint8 apn[APN_STRING_LEN]; |
| 125 | kal_uint8 iccid[24]; // it's 20, just prevent over-boundary |
| 126 | kal_int32 apn_idx; // apn index in apn setting table |
| 127 | kal_uint8 pdp_type[PDP_TYPE_STRING_LEN]; // string type |
| 128 | kal_uint8 roaming_pdp_type[PDP_TYPE_STRING_LEN]; // string type |
| 129 | atcmd_auth_prot_enum auth_prot; |
| 130 | kal_uint8 userid[USERID_STRING_LEN]; |
| 131 | kal_uint8 password[PASSWORD_STRING_LEN]; |
| 132 | |
| 133 | kal_bool is_pco_present; /* PCO parameters */ |
| 134 | kal_uint8 IE_count; /* PCO IE count */ |
| 135 | egpco_ie_struct IE[MAX_IE_COUNT]; /* PCO IE */ |
| 136 | |
| 137 | } l5updn_d2am_set_ia_apn_req_struct; |
| 138 | |
| 139 | typedef struct |
| 140 | { |
| 141 | LOCAL_PARA_HDR |
| 142 | |
| 143 | kal_uint32 src_id; |
| 144 | kal_bool is_success; |
| 145 | kal_uint16 err_cause; |
| 146 | } l5updn_d2am_set_ia_apn_cnf_struct; |
| 147 | |
| 148 | #endif |