blob: 438caaefc79050fab459088987d8278e59f7da52 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001#ifndef _DDM_ENUM_H
2#define _DDM_ENUM_H
3#include "../l4misc/l4c_common_enum.h"
4#include "sim_ps_enum.h"
5#include "module_id_range.h"
6
7#ifdef __CMUX_SUPPORT__
8#include "cmux_vp_num.h"
9#define CMUX_CHANNELS_NUM ((CMUX_VP_NUM_FOR_SINGLE_SIM * MAX_SIM_NUM) + CMUX_VPEX_TOTAL_NUM)
10#else
11#define CMUX_CHANNELS_NUM (1)
12#endif
13
14#define DDM_MAX_NUM_OF_APN (16)
15#define APN_TYPE_STRING_LEN (32)
16#define APN_TYPE_LIST_STRING_LEN (256)
17
18#define DDM_SRC_ID_ALL L4B_MAX_CHANNEL_NUMBER // L4B_MAX_CHANNEL_NUMBER is at least larger than 29
19#define DDM_RESERVE_SRC_NUM (30)
20#define DDM_SRC_ID_NUM (DDM_SRC_ID_ALL - DDM_RESERVE_SRC_NUM)
21
22#define D2_CHANNELS_NUM (8)
23#define DDM_CHANNELS_NUM (4)
24
25#define D2_ICCID_STR_LEN 21
26#define D2_IMSI_STR_LEN 16
27#define D2_GID1_LEN NUM_GID1
28#define D2_GID2_LEN NUM_GID2
29#define D2_FULL_PNN_LEN 50
30#define D2_GSM_SPN_LEN LEN_OF_SPN
31#define D2_C2K_SPN_LEN 35
32#define D2_MCF_MTU_CFG_ENTRY_NUM 10
33
34#if 0
35/* under construction !*/
36/* under construction !*/
37/* under construction !*/
38/* under construction !*/
39/* under construction !*/
40/* under construction !*/
41/* under construction !*/
42/* under construction !*/
43/* under construction !*/
44#endif
45
46typedef enum
47{
48 DDM_SRC_CMUX_START = 0,
49 DDM_SRC_CMUX_END = DDM_SRC_CMUX_START + (CMUX_CHANNELS_NUM - 1),
50 DDM_SRC_D2_START,
51 DDM_SRC_D2AM_IA_REUSE = DDM_SRC_D2_START,
52 DDM_SRC_D2_IMSM,
53 DDM_SRC_D2_END = DDM_SRC_D2_START + (D2_CHANNELS_NUM - 1),
54 DDM_SRC_START,
55 DDM_SRC_FB_IPv4,
56 DDM_SRC_FB_IPv6,
57 DDM_SRC_END = DDM_SRC_START + (DDM_CHANNELS_NUM - 1),
58 DDM_ALL_NUM,
59} ddm_source_id_enum;
60
61typedef enum
62{
63 DDM_SRC_DDM_START = 0,
64 DDM_SRC_DDM_END = DDM_SRC_DDM_START + (DDM_SRC_ID_NUM - 1),
65 DDM_SRC_RESERVE_START,
66 DDM_SRC_IA_DEFINE = DDM_SRC_RESERVE_START,
67 DDM_SRC_IA_GET_NET_INFO,
68 DDM_SRC_CGEV_QUERY,
69 DDM_SRC_REDEACT_PDN,
70 DDM_SRC_DEACT_ONE_PDN,
71 DDM_SRC_PCO_UPDATE,
72 DDM_SRC_PCO_UPDATE_NW_MODIFY,
73 DDM_SRC_DEACT_AND_ACT_PDN,
74 DDM_SRC_IA_FALLBACK,
75 DDM_SRC_GRT_REQ,
76 DDM_SRC_QUERY_PS_DATA_OFF,
77 DDM_SRC_SET_CGCMOD,
78 DDM_SRC_FALLBACK_IPv4,
79 DDM_SRC_FALLBACK_IPv6,
80 DDM_SRC_FALLBACK_DEACT_PDN,
81 DDM_SRC_QOS_CHECK,
82 DDM_SRC_QOS_RELIABILITY,
83 DDM_SRC_QOS_CHECK_GET_APN,
84 DDM_SRC_ACT_AND_DEACT_PDN,
85 DDM_SRC_DEACT_INTERNET_AND_ACT_PDN,
86 DDM_SRC_EMM_DEACT_FOR_GARBAGE_PAGING,
87 DDM_SRC_VGMM_DEACT_FOR_GARBAGE_PAGING,
88 DDM_SRC_DEACT_DEFAULT_PDN,
89 DDM_SRC_ACTIVATE_DEFAULT_PDN,
90 DDM_SRC_DEACT_NO_IP_PDN,
91 DDM_SRC_VZWAPN_CMD,
92 DDM_SRC_RESERVE_END = DDM_SRC_RESERVE_START + (DDM_RESERVE_SRC_NUM - 1),
93 DDM_ALL = DDM_SRC_RESERVE_END,
94} ddm_src_id_enum;
95
96typedef enum {
97 D2AM_NW_NO_ACTION = 0,
98 D2AM_NW_EDALLOW_SET_0,
99 D2AM_NW_EDALLOW_SET_1,
100 D2AM_NW_ACTION_MAX = 0xFF,
101} d2am_nw_action_enum;
102
103#define DDM_SRC_ID_TOTAL_NUM DDM_ALL
104#define DDM_UNSOLICITED DDM_ALL
105// flag
106#define DDM_IS_STANDARD (0x00000001)
107#define DDM_IS_ACTTEST (0x00000010)
108
109#define EIF_SUPPORT_HO (1 << 0)
110#define EIF_SUPPORT_IPCHG (1 << 1)
111
112#define IGNORE_SRC_ID (0x7788)
113
114#endif