| /***************************************************************************** |
| * |
| * Copyright (c) 2019, MediaTek Inc. All rights reserved. |
| * This software/firmware and related documentation ("MediaTek Software") are |
| * protected under relevant copyright laws. The information contained herein is |
| * confidential and proprietary to MediaTek Inc. and/or its licensors. Except as |
| * otherwise provided in the applicable licensing terms with MediaTek Inc. |
| * and/or its licensors, any reproduction, modification, use or disclosure of |
| * MediaTek Software, and information contained herein, in whole or in part, |
| * shall be strictly prohibited. |
| * |
| *****************************************************************************/ |
| |
| #ifndef __D2_PUBLIC_DEFS_H__ |
| #define __D2_PUBLIC_DEFS_H__ |
| |
| // Type denifitions |
| typedef enum |
| { |
| D2_RES_FAIL = -1, |
| D2_RES_NONE, |
| D2_RES_SUCC, |
| D2_RES_RETRY, |
| // => DATA CALL |
| D2_RES_FAIL_CONT, |
| D2_RES_FAIL_ABORT, |
| D2_RES_SUCC_ABORT, |
| D2_RES_SUCC_CONT, |
| D2_RES_MAX = 0x7FFFFFFF |
| }d2_res_enum; |
| |
| typedef enum |
| { |
| D2_EVENT_NONE = 0x00000000, |
| D2_EVENT_PDX_PROFILE_CHG = 0x00000001, |
| // => DATA CALL |
| D2_EVENT_PRE_ACT_DATA_CALL = 0x00000100, |
| D2_EVENT_POST_ACT_DATA_CALL = 0x00000200, |
| D2_EVENT_PRE_DEACT_DATA_CALL = 0x00000400, |
| D2_EVENT_POST_DEACT_DATA_CALL = 0x00000800, |
| D2_EVENT_ON_MOD_DATA_CALL = 0x00001000, |
| // => NetIF |
| D2_EVENT_IPV6_RA_INIT_FAIL = 0x00010000, |
| D2_EVENT_IPV6_RA_REFRESH_FAIL = 0x00020000, |
| D2_EVENT_MAX = 0x7FFFFFFF |
| }d2_event_enum; |
| |
| typedef enum |
| { |
| D2_PARAM_PERM_IGNORE = 0, // D2 should ignore the corresponding paramameters |
| D2_PARAM_PERM_READ_ONLY, // D2 should not modify the corresponding paramameters |
| D2_PARAM_PERM_MERGEABLE, // D2 may fill in values for some absent paramameters |
| D2_PARAM_PERM_OVERWRITABLE, // D2 may overwrite some given paramameters |
| D2_PARAM_PERM_MAX = 0x7FFFFFFF |
| }d2_param_perm_enum; |
| |
| #ifdef __L1_STANDALONE__ |
| #ifndef _MCD_L3_INC_STRUCT_H |
| typedef struct |
| { |
| kal_uint8 mcc1; |
| kal_uint8 mcc2; |
| kal_uint8 mcc3; |
| kal_uint8 mnc1; |
| kal_uint8 mnc2; |
| kal_uint8 mnc3; |
| }plmn_id_struct; |
| #endif |
| #else |
| #include "mcd_l3_inc_struct.h" |
| #endif |
| |
| // Macros |
| // N/A |
| |
| #endif |