4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
26 enum telephony_ps_pdp_err {
27 PDP_FAILURE_CAUSE_NORMAL,
28 PDP_FAILURE_CAUSE_REL_BY_USER,
29 PDP_FAILURE_CAUSE_REGULAR_DEACTIVATION,
30 PDP_FAILURE_CAUSE_LLC_SNDCP,
31 PDP_FAILURE_CAUSE_INSUFFICIENT_RESOURCE,
32 PDP_FAILURE_CAUSE_UNKNOWN_APN,
33 PDP_FAILURE_CAUSE_UNKNOWN_PDP_ADDRESS,
34 PDP_FAILURE_CAUSE_USER_AUTH_FAILED,
35 PDP_FAILURE_CAUSE_ACT_REJ_GGSN,
36 PDP_FAILURE_CAUSE_ACT_REJ_UNSPECIFIED,
37 PDP_FAILURE_CAUSE_SVC_OPTION_NOT_SUPPORTED,
38 PDP_FAILURE_CAUSE_SVC_NOT_SUBSCRIBED,
39 PDP_FAILURE_CAUSE_SVC_OPT_OUT_ORDER,
40 PDP_FAILURE_CAUSE_NSAPI_USED,
41 PDP_FAILURE_CAUSE_QOS_NOT_ACCEPTED,
42 PDP_FAILURE_CAUSE_NETWORK_FAILURE,
43 PDP_FAILURE_CAUSE_REACT_REQUIRED,
44 PDP_FAILURE_CAUSE_FEATURE_NOT_SUPPORTED,
45 PDP_FAILURE_CAUSE_TFT_FILTER_ERROR,
46 PDP_FAILURE_CAUSE_UNKOWN_PDP_CONTEXT,
47 PDP_FAILURE_CAUSE_INVALID_MSG,
48 PDP_FAILURE_CAUSE_PROTOCOL_ERROR,
49 PDP_FAILURE_CAUSE_MOBILE_FAILURE_ERROR,
50 PDP_FAILURE_CAUSE_TIMEOUT_ERROR,
51 PDP_FAILURE_CAUSE_UNKNOWN_ERROR,
55 enum telephony_ps_protocol_status {
62 enum telephony_ps_state {
65 TELEPHONY_PS_ROAMING_OFF,
66 TELEPHONY_PS_FLIGHT_MODE,
67 TELEPHONY_PS_NO_SERVICE,
70 enum ps_data_call_status {
71 PS_DATA_CALL_NOT_CONNECTED,
72 PS_DATA_CALL_CONNECTED
75 struct treq_ps_pdp_activate {
77 int secondary_context_id;
89 struct tresp_ps_set_pdp_activate {
91 int secondary_context_id;
95 struct treq_ps_pdp_deactivate {
97 int secondary_context_id;
106 struct tresp_ps_set_pdp_deactivate {
108 int secondary_context_id;
112 struct tnoti_ps_call_status {
113 unsigned int context_id;
114 enum ps_data_call_status state;
117 struct tnoti_ps_pdp_ipconfiguration {
119 int secondary_context_id;
121 enum telephony_ps_pdp_err err;
122 unsigned short field_flag;
123 unsigned char ip_address[4];
124 unsigned char primary_dns[4];
125 unsigned char secondary_dns[4];
126 unsigned char gateway[4];
127 unsigned char subnet_mask[4];
131 struct tnoti_ps_external_call {
134 struct tnoti_ps_protocol_status {
135 enum telephony_ps_protocol_status status;