yu.dong | c592bc7 | 2024-04-24 22:45:13 -0700 | [diff] [blame^] | 1 | /***************************************************************************** |
| 2 | * |
| 3 | * Copyright (c) 2019, MediaTek Inc. All rights reserved. |
| 4 | * This software/firmware and related documentation ("MediaTek Software") are |
| 5 | * protected under relevant copyright laws. The information contained herein is |
| 6 | * confidential and proprietary to MediaTek Inc. and/or its licensors. Except as |
| 7 | * otherwise provided in the applicable licensing terms with MediaTek Inc. |
| 8 | * and/or its licensors, any reproduction, modification, use or disclosure of |
| 9 | * MediaTek Software, and information contained herein, in whole or in part, |
| 10 | * shall be strictly prohibited. |
| 11 | * |
| 12 | *****************************************************************************/ |
| 13 | |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 14 | #ifndef __D2_PUBLIC_DEFS_H__ |
| 15 | #define __D2_PUBLIC_DEFS_H__ |
| 16 | |
| 17 | // Type denifitions |
| 18 | typedef enum |
| 19 | { |
| 20 | D2_RES_FAIL = -1, |
| 21 | D2_RES_NONE, |
| 22 | D2_RES_SUCC, |
| 23 | D2_RES_RETRY, |
| 24 | // => DATA CALL |
| 25 | D2_RES_FAIL_CONT, |
| 26 | D2_RES_FAIL_ABORT, |
| 27 | D2_RES_SUCC_ABORT, |
| 28 | D2_RES_SUCC_CONT, |
| 29 | D2_RES_MAX = 0x7FFFFFFF |
| 30 | }d2_res_enum; |
| 31 | |
| 32 | typedef enum |
| 33 | { |
| 34 | D2_EVENT_NONE = 0x00000000, |
| 35 | D2_EVENT_PDX_PROFILE_CHG = 0x00000001, |
| 36 | // => DATA CALL |
| 37 | D2_EVENT_PRE_ACT_DATA_CALL = 0x00000100, |
| 38 | D2_EVENT_POST_ACT_DATA_CALL = 0x00000200, |
| 39 | D2_EVENT_PRE_DEACT_DATA_CALL = 0x00000400, |
| 40 | D2_EVENT_POST_DEACT_DATA_CALL = 0x00000800, |
| 41 | D2_EVENT_ON_MOD_DATA_CALL = 0x00001000, |
| 42 | // => NetIF |
| 43 | D2_EVENT_IPV6_RA_INIT_FAIL = 0x00010000, |
| 44 | D2_EVENT_IPV6_RA_REFRESH_FAIL = 0x00020000, |
| 45 | D2_EVENT_MAX = 0x7FFFFFFF |
| 46 | }d2_event_enum; |
| 47 | |
yu.dong | c592bc7 | 2024-04-24 22:45:13 -0700 | [diff] [blame^] | 48 | typedef enum |
| 49 | { |
| 50 | D2_PARAM_PERM_IGNORE = 0, // D2 should ignore the corresponding paramameters |
| 51 | D2_PARAM_PERM_READ_ONLY, // D2 should not modify the corresponding paramameters |
| 52 | D2_PARAM_PERM_MERGEABLE, // D2 may fill in values for some absent paramameters |
| 53 | D2_PARAM_PERM_OVERWRITABLE, // D2 may overwrite some given paramameters |
| 54 | D2_PARAM_PERM_MAX = 0x7FFFFFFF |
| 55 | }d2_param_perm_enum; |
| 56 | |
| 57 | #ifdef __L1_STANDALONE__ |
| 58 | #ifndef _MCD_L3_INC_STRUCT_H |
| 59 | typedef struct |
| 60 | { |
| 61 | kal_uint8 mcc1; |
| 62 | kal_uint8 mcc2; |
| 63 | kal_uint8 mcc3; |
| 64 | kal_uint8 mnc1; |
| 65 | kal_uint8 mnc2; |
| 66 | kal_uint8 mnc3; |
| 67 | }plmn_id_struct; |
| 68 | #endif |
| 69 | #else |
| 70 | #include "mcd_l3_inc_struct.h" |
| 71 | #endif |
| 72 | |
rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 73 | // Macros |
| 74 | // N/A |
| 75 | |
| 76 | #endif |