blob: 01edc34f3d64488c4cdfa569c04cdb7da930a338 [file] [log] [blame]
rjw7ee7bb42023-01-18 11:34:28 +08001#ifndef LYNQ_DATA_URC_H
2#define LYNQ_DATA_URC_H
3
4using ::android::Parcel;
5
6#define LYNQ_URC_SERVICE_PORT 8086
lh2974e4a2024-02-21 00:14:24 -08007#ifdef GSW_RIL_CFG
8#define LYNQ_RIL_FWK_BROADCAST_IP "127.255.255.255" /*hong.liu change broadcast addr on 2024.2.18*/
9#else
10#define LYNQ_RIL_FWK_BROADCAST_IP "0.0.0.0"
11#endif
rjw7ee7bb42023-01-18 11:34:28 +080012
13/*the same with lynq_interface.h begin*/
14#define LYNQ_REQUEST_VENDOR_BASE 8000
15#define LYNQ_URC_VENDOR_BASE 9000
16#define LYNQ_AT_SNED (LYNQ_REQUEST_VENDOR_BASE +1)
17#define LYNQ_URC_CALL_STATUS_IND (LYNQ_URC_VENDOR_BASE+1)
18#define LYNQ_URC_DATA_STATUS_IND (LYNQ_URC_VENDOR_BASE+2)
19#define LYNQ_URC_DATA_CALL_STATUS_IND (LYNQ_URC_VENDOR_BASE+3)
20#define LYNQ_AUTO_ANSWER_CALL (LYNQ_REQUEST_VENDOR_BASE +2)
21#define LYNQ_REQUEST_SET_DTMF_VOLUME (LYNQ_REQUEST_VENDOR_BASE +3)
22#define LYNQ_URC_MODIFY_APNDB (LYNQ_URC_VENDOR_BASE+4)
23#define LYNQ_URC_RESET_APNDB (LYNQ_URC_VENDOR_BASE+5)
xy.hef5d74f12023-10-23 06:48:52 -070024#define LYNQ_TELEPHONY_RESTART 3113
xy.heb23b0532024-07-16 14:10:05 +080025#define LYNQ_SET_IP_TUPLE_FILTER 2195
26#define LYNQ_SET_IP_TUPLE_FILTER_MODE 2196
27#define LYNQ_GET_IP_TUPLE_FILTER 2197
28#define LYNQ_DEL_IP_TUPLE_FILTER 2198
rjw7ee7bb42023-01-18 11:34:28 +080029
30typedef struct{
31 int resp_type;
32 int urcid;
33}lynq_head_t;
34
35int lynq_init_data_urc_thread();
36int lynq_deinit_data_urc_thread();
37bool is_support_urc(int urc_id);
38void urc_msg_process(Parcel *p);
39
lh0e551da2023-03-28 09:50:20 +080040#endif