| /****************************************************************************** |
| * Copyright Statement: |
| * -------------------- |
| * This software is protected by Copyright and the information contained |
| * herein is confidential. The software may not be copied and the information |
| * contained herein may not be used or disclosed except with the written |
| * permission of MediaTek Inc. (C) 2005 |
| * |
| * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| * |
| * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| * |
| * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| * |
| *****************************************************************************/ |
| |
| /******************************************************************************** |
| * Filename: |
| * --------- |
| * ipc_struct.h |
| * |
| * Project: |
| * -------- |
| * TATAKA |
| * |
| * Description: |
| * ------------ |
| * IP Core ILM structure and interface definition. |
| * |
| * Author: |
| * ------- |
| * ------- |
| * |
| *============================================================================== |
| * HISTORY |
| * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *------------------------------------------------------------------------------ |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| *------------------------------------------------------------------------------ |
| * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *============================================================================== |
| *******************************************************************************/ |
| #ifndef __INC_IPC_STRUCT_H |
| #define __INC_IPC_STRUCT_H |
| |
| #include "kal_public_api.h" |
| #include "ipcore_upcm_struct.h" |
| #include "upcm_did.h" |
| #include "ipc_defs_public.h" |
| #include "ipc_enums.h" |
| #include "qmu_bm_common.h" |
| #include "hif_lhif.h" |
| |
| typedef struct _ipc_packet_info_t { |
| kal_uint32 info_valid_fields; |
| kal_uint32 src_addr[4]; |
| kal_uint32 dst_addr[4]; |
| kal_uint16 ipv4_checksum; |
| kal_uint16 src_port; |
| kal_uint16 dst_port; |
| kal_uint16 tcp_flags; |
| kal_uint16 l4_checksum; |
| kal_uint8 reserved[2]; |
| kal_uint8 icmpv4_type; |
| kal_uint8 icmpv6_type; |
| kal_uint8 protocol; |
| /* The following are NOT included in valid_fields */ |
| kal_bool fragment; |
| kal_bool need_reassemble; |
| kal_uint32 l4_offset; |
| kal_uint32 data_offset; |
| kal_uint32 netif_id; |
| kal_uint32 out_netif_id; |
| kal_uint32 ip_id; /**< IPv4/IPv6 IP ID */ |
| kal_uint16 frag_payload_offset; /**< fragment offset */ |
| kal_uint16 frag_payload_len; /**< Payload length: IPv4 frag payload lenght = total length - IPv4 HDR length, IPv6 frag payload lenght = payload length - all ext HDR lehgth before fragment >> HDR - fragment HDR lenght */ |
| kal_uint8 frag_flag; /**< fragment flag: more fragment */ |
| kal_uint16 frag_buffer_payload_offset; /**< buffer offset which is used to inidcate the start address of fragmented payload in GPD */ |
| kal_uint32 spi; |
| } ipc_packet_info_t; |
| |
| typedef struct _ipc_io_request_t { |
| struct _ipc_io_request_t *next_request; |
| qbm_gpd* first_gpd; |
| qbm_gpd* last_gpd; |
| kal_uint8 ip_type; /**< Type of IP datagrams, see IPC_IP_TYPE_XXX defined for valid values. */ |
| kal_uint8 qos_priority; /**< Priority, valid from 0~7. */ |
| kal_uint8 data_path_type; /**< reference ipc_io_req_data_path_e */ |
| kal_uint8 reserved; |
| } ipc_io_request_t; |
| |
| typedef struct _ipc_conf_t { |
| module_type module_id; /**< The module registering with IP CORE. */ |
| kal_uint32 netif_id; /**< An index to identify instance of a specific module. For example, if module_id is MOD_ETHERCORE, netif_id is 0, it reprents for eth0. */ |
| kal_uint32 features; /**< Each bit is set to enable an optional feature, see IPC_F_XXX for details. */ |
| |
| void *ul_reload_context; /**< Context to be passed in the callback function ipc_ul_reload_callback_t. */ |
| kal_bool (*ipc_ul_reload_callback_t)(void *context); /**< Uplink reloading callback function. */ |
| |
| void *callback_context; /**< Context to be passed in the follow callback functions. */ |
| kal_bool (*ipc_dlink_callback_t)(void *context, ipc_io_request_t *ior); /** Downlink callback function. */ |
| kal_bool (*ipc_dlink_did_cb_t)(void *context, upcm_did *did); /** [Gen93] Downlink callback function. */ |
| } ipc_conf_t; |
| |
| typedef struct _ipc_frag_refilter_info_t { |
| kal_bool uplink; |
| kal_bool is_pkt_info; |
| kal_uint32 netif_id; |
| kal_uint32 pdn_id; |
| ipc_packet_info_t *packet_info; |
| kal_int32 filter_id; |
| kal_uint32 filter_magic_number; |
| } ipc_frag_refilter_info_t; |
| |
| typedef struct _ipc_filter_info_t { |
| kal_uint32 netif_id; /**< Source Network interface ID */ |
| kal_int32 ip_id; /**< ID to query corresponding NMU IP database */ |
| kal_int16 ebi; /**< EBI that the packets came from (only valid for DL) */ |
| kal_uint8 proto_idx; /**< Index for distinquish different SIM card (only valid when supporting Multiple PS feature */ |
| kal_uint8 rsvd; |
| kal_uint32 data_offset; /**< The data offset to payload. (The length of IP TCP/UDP header) Requirement from TH.Cheng LTECSR 2014/11/11 */ |
| void *src_desc_ptr; /**< Descriptor pointer */ |
| kal_uint32 src_desc_type; /**< Descriptor type (please refer to ipc_fi_desc_type_e)*/ |
| kal_uint32 src_desc_indx; /**< Descriptor internal index, for one descriptor containing more than one packets case. */ |
| } ipc_filter_info_t; |
| |
| /* |
| * Callback function to process the IP datagram filtered. |
| * |
| * @param context [IN] A context specified while registering the filter. |
| * @param filter_id [IN] Corresponding registered filter ID. |
| * @param head_gpd [IN] Pointer head of the GPD list for the IP datagram filtered. |
| * @param tail_gpd [IN] Pointer tail of the GPD list for the IP datagram filtered. |
| * @param length [IN] Bytes of buffers used in the GPD list. |
| */ |
| typedef void (*ipc_filter_callback_t)(void *context, |
| kal_int32 filter_id, |
| qbm_gpd *head_gpd, |
| qbm_gpd *tail_gpd, |
| kal_uint32 length); |
| |
| /* |
| * Callback function with packet information to process the IP datagram filtered. |
| * |
| * @param info_p [IN] Related information of filtered out GPDs. |
| * @param context [IN] A context specified while registering the filter. |
| * @param filter_id [IN] Corresponding registered filter ID. |
| * @param head_gpd [IN] Pointer head of the GPD list for the IP datagram filtered. |
| * @param tail_gpd [IN] Pointer tail of the GPD list for the IP datagram filtered. |
| * @param length [IN] Bytes of buffers used in the GPD list. |
| */ |
| typedef void (*ipc_filter_with_info_callback_t)(ipc_filter_info_t *info_p, |
| void *context, |
| kal_int32 filter_id, |
| qbm_gpd *head_gpd, |
| qbm_gpd *tail_gpd, |
| kal_uint32 length); |
| |
| /** |
| * Customized Callback function to process the IP datagram filtered. |
| * |
| * @param p_pkt matched filter packet content |
| * @param pkt_len packet length |
| * @param filter_id the filter id which was registered before |
| * @param p_args customized filter callback function arguments |
| * |
| * @return KAL_TRUE means packet was matched; otherwise KAL_FALSE |
| */ |
| |
| typedef kal_bool (*ipc_filter_cust_cbk)(const kal_uint8 *p_pkt, |
| kal_int32 pkt_len, |
| kal_int32 filter_id, |
| void *p_args); |
| |
| typedef struct _ipc_filter_rules_t { |
| kal_uint16 features; /**< Union of to indicate which type of filter it is. */ |
| kal_uint16 priority; /**< Priority will affect the order of filter rules when performing filtering. */ |
| kal_uint32 valid_fields; /**< Union of IPC_FILTER_BY_XXX to indicate which fields in this structure are valid. */ |
| kal_uint32 netif_id; /**< Network interface ID to filter. */ |
| kal_uint32 pdn_id; /**< [downlink filter ONLY] PDN ID to filter. */ |
| kal_uint32 ebi; /**< [downlink filter ONLY] EBI/NSAPI to filter. */ |
| kal_uint8 proto_idx; /**< [downlink filter ONLY] Multiple PS use only. */ |
| kal_uint8 protocol; /**< The protocol used in the data portion of the IP datagram to filter. */ |
| |
| kal_uint16 src_port; /**< Source port number to filter. */ |
| kal_uint16 dst_port; /**< Destination port number to filter. */ |
| kal_uint16 tcp_flags; /**< TCP flags of TCP to filter. */ |
| kal_uint32 spi; /**< Security Parameter Index. */ |
| |
| union { |
| kal_uint8 addr8[4]; |
| kal_uint32 addr32; |
| } src_ipv4; /**< Source IPv4 address to filter. */ |
| union { |
| kal_uint8 addr8[4]; |
| kal_uint32 addr32; |
| } dst_ipv4; /**< Destination IPv4 address to filter. */ |
| |
| union { |
| kal_uint8 addr8[16]; |
| kal_uint32 addr32[4]; |
| } src_ipv6; /**< Source IPv6 address to filter. */ |
| union { |
| kal_uint8 addr8[16]; |
| kal_uint32 addr32[4]; |
| } dst_ipv6; /**< Destination IPv6 address to filter. */ |
| |
| kal_uint8 ip_type; /**< Type of IP traffic the filter to apply, see IPC_IP_TYPE_XXX defined for valid values. */ |
| kal_uint8 icmpv4_type; /**< Type field of ICMPv4 header to filter. */ |
| kal_uint8 icmpv6_type; /**< Type field of ICMPv6 header to filter. */ |
| kal_uint8 reserved; |
| ipc_filter_cust_cbk cust_cbk_func; |
| void *p_cust_cbk_args; |
| } ipc_filter_rules_t; |
| |
| #define IPC_NEXT_FILTER_MAP_SIZE 2 |
| typedef struct _ipc_filter_t ipc_filter_t; |
| typedef struct _ipc_filter_t { |
| kal_int32 filter_id; |
| ipc_filter_rules_t rules; |
| kal_bool callback_with_info; |
| void *callback_func; |
| void *callback_context; |
| module_type module_id; |
| kal_uint8 is_updated_to_list; |
| kal_uint8 rsvd[1]; |
| void *module_context; |
| ipc_filter_t *next_filter_map[IPC_NEXT_FILTER_MAP_SIZE]; |
| ipc_filter_cust_cbk cust_cbk_func; |
| void *p_cust_cbk_args; |
| kal_bool is_bypass_sync_hw; |
| } ipc_filter_t; |
| |
| typedef struct _ipc_hdr_t { |
| kal_uint8 ip_type; /**< Type of IP datagrams, see IPC_IP_TYPE_XXX defined for valid values. Note that only one of IPv4/IPv6 can be selected and MIX type is NOT allowed */ |
| kal_uint8 *src_addr; /**< Source IP Address, length of this pointer is decided by ip_type field */ |
| kal_uint8 *dst_addr; /**< Destination IP Address, length of this pointer is decided by ip_type field */ |
| kal_uint16 src_port; /**< Source Port Number */ |
| kal_uint16 dst_port; /**< Destination Port Number */ |
| kal_uint8 dscp_tc; /**< DSCP & ECN(IPv4) or Traffic Class(IPv6) field */ |
| } ipc_hdr_t; |
| |
| typedef void * ipc_handle_t; |
| |
| /** |
| * UPCM will fill DL info only on head GPD's SW control Info. |
| * user use QBM_DES_GET_SW_CTRL_FIELD(_p) to get this structure |
| */ |
| typedef struct |
| { |
| kal_uint8 ebi; |
| kal_uint8 flow:4; |
| kal_uint8 reserved:4; |
| kal_uint16 psn; |
| }ipc_gpd_extra_info_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_LINK_UP_IND / MSG_ID_IPCORE_IP_UP_IND / MSG_ID_IPCORE_LINK_UP_RSP / MSG_ID_IPCORE_IP_UP_RSP. */ |
| typedef struct _ipc_link_handshake_msg_t { |
| LOCAL_PARA_HDR |
| kal_uint32 netif_id; /**< Unique ID to identified corresponding host network interface */ |
| kal_int32 ip_id; /**< ID to query corresponding NMU IP database */ |
| kal_uint8 ip_type; /**< Type of IP datagrams, see IPC_IP_TYPE_XXX defined for valid values. */ |
| kal_uint8 rsvd[3]; |
| } ipc_link_handshake_msg_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_LINK_UP_REQ / MSG_ID_IPCORE_LINK_DOWN_REQ / MSG_ID_IPCORE_IP_UP_REQ / MSG_ID_IPCORE_IP_DOWN_REQ. */ |
| typedef struct _ipc_link_req_t { |
| LOCAL_PARA_HDR |
| void *callback_context; /**< Context registered in to ipc_attach(). */ |
| kal_uint8 ip_type; /**< Type of IP datagrams, see IPC_IP_TYPE_XXX defined for valid values. */ |
| kal_uint8 rsvd[3]; |
| ipc_link_req_type_e req_type; |
| } ipc_link_req_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_LHIFCORE_QUEUE_MAPPING_REQ/RSP. */ |
| typedef struct _ipc_lhifcore_q_mapping_msg_t { |
| LOCAL_PARA_HDR |
| ipcore_upcm_pdn_bind_ind_struct bind_ind; /**< PDN binding information */ |
| module_type bind_src_mod_id; /**< PDN binding ILM src module ID */ |
| kal_uint32 netif_features; /**< Binding netif features */ |
| void *callback_context; /**< Context registered in to ipc_attach(). */ |
| ipc_netif_type_e netif_type; /**< Type of netif for ccmni queue mapping, see ipc_netif_type_e defined for valid values */ |
| kal_bool result; /**< The result of dynamic queue mapping */ |
| } ipc_lhifcore_q_mapping_msg_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_DL_PACKET_FILTERED_REQ and MSG_ID_IPCORE_UL_PACKET_FILTERED_REQ. */ |
| typedef struct _ipc_packet_filtered_req_t |
| { |
| LOCAL_PARA_HDR |
| void *context; |
| kal_int32 filter_id; |
| void *head_gpd; |
| void *tail_gpd; |
| kal_uint32 length; |
| } ipc_packet_filtered_req_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_DL_PACKET_FILTERED_WITH_INFO_REQ and MSG_ID_IPCORE_UL_PACKET_FILTERED_WITH_INFO_REQ. */ |
| typedef struct _ipc_packet_filtered_with_info_req_t |
| { |
| LOCAL_PARA_HDR |
| ipc_filter_info_t info; |
| void *context; |
| kal_int32 filter_id; |
| void *head_gpd; |
| void *tail_gpd; |
| kal_uint32 length; |
| } ipc_packet_filtered_with_info_req_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_QUERY_INFO_CNF. */ |
| typedef struct _ipc_netif_info_t |
| { |
| kal_uint32 netif_id; /** Unique ID for corresponding host network interface */ |
| } ipc_netif_info_t; |
| |
| typedef struct _ipc_netif_list_t |
| { |
| kal_uint32 netif_cnt; /**< Attached netif count */ |
| ipc_netif_info_t list[IPC_MAX_NETIF_CNT]; /**< Information of each attached netif */ |
| } ipc_netif_list_t; |
| |
| typedef struct _ipc_query_info_t |
| { |
| LOCAL_PARA_HDR |
| ipc_netif_list_t netif; /** Network interface information */ |
| } ipc_query_info_t; |
| |
| /** Parameter for IP CORE status change notifications */ |
| typedef struct _ipc_ntfy_param_t |
| { |
| ipc_ntfy_type_e ntfy_type; /**< Notify type to indicate */ |
| kal_int32 ntfy_id; /**< Notify ID allocated in ipc_register_ntfy(). */ |
| void *context; /**< Context registered in ipc_register_ntfy(). */ |
| kal_uint32 netif_id; /**< Unique ID to identified corresponding host network interface */ |
| kal_int32 ip_id; /**< ID to query corresponding NMU IP database */ |
| } ipc_ntfy_param_t; |
| |
| /** Local parameter structure for MSG_ID_LMS_NETIF_ATTACH */ |
| typedef struct _lms_ipc_ntfy_t { |
| LOCAL_PARA_HDR |
| ipc_ntfy_param_t ipc_ntfy_para; |
| } lms_ipc_ntfy_t; |
| |
| /* |
| * Callback function to notify IPCore notification. |
| * |
| * @param param [IN] Parameter to notify registered module. |
| */ |
| typedef void (*ipc_ntfy_callback_t)(ipc_ntfy_param_t *param); |
| |
| /** Parameter for IPCore UL throttle configuration */ |
| typedef struct _ipc_ul_throttle_conf_t |
| { |
| kal_uint8 enabled; /**< 0 to disable IPCORE UL throttle mechanism; otherwise, others to enable. */ |
| kal_uint8 active_period_100ms; /**< active period of UL throttle, minimum unit: 100ms.*/ |
| kal_uint8 suspend_period_100ms; /**< suspend period of UL throttle, minimum unit: 100ms.*/ |
| kal_uint8 features; /**< feature option of UL throttle, please refer IPC_THROTTLE_FEATURE_XX */ |
| } ipc_ul_throttle_conf_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_SET_UL_THROTTLE */ |
| typedef struct _ipc_set_ul_throttle_param_t { |
| LOCAL_PARA_HDR |
| ipc_ul_throttle_conf_t conf; |
| } ipc_set_ul_throttle_param_t; |
| |
| /** Local EM structure for MSG_ID_EM_IPC_UL_THROTTLE_STATUS_IND */ |
| typedef struct _em_ipc_ul_throttle_status_ind_struct_t |
| { |
| LOCAL_PARA_HDR |
| ipc_ul_throttle_state_e throttle_state; |
| ipc_ul_throttle_conf_t throttle_conf; |
| } em_ipc_ul_throttle_status_ind_struct_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_VDM_IMS_EMERGENCY_CALL_IND */ |
| typedef struct _ipc_vdm_ims_emergency_call_ind_struct_t |
| { |
| LOCAL_PARA_HDR |
| kal_bool is_calling; |
| } ipc_vdm_ims_emergency_call_ind_struct_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_REGISTER_FILTER_REQ */ |
| typedef struct _ipc_register_filter_req_struct_t |
| { |
| LOCAL_PARA_HDR |
| kal_int32 filter_id; |
| kal_bool data_path_direct; |
| kal_bool callback_with_info; |
| ipc_filter_rules_t rules; |
| void *callback_func; |
| void *callback_context; |
| module_type module_id; |
| } ipc_register_filter_req_struct_t; |
| |
| /** Local parameter structure for MSG_ID_IPCORE_DEREGISTER_FILTER_REQ */ |
| typedef struct _ipc_deregister_filter_req_struct_t |
| { |
| LOCAL_PARA_HDR |
| kal_int32 filter_id; |
| } ipc_deregister_filter_req_struct_t; |
| |
| /** RQ rules structure */ |
| typedef struct _ipc_rq_info_t { |
| kal_bool is_ipv4; |
| kal_uint16 src_port; |
| kal_uint16 dst_port; |
| kal_uint32 spi; |
| |
| #define IPC_RQ_INFO_3_TUPLE (0x1 << 0) |
| #define IPC_RQ_INFO_5_TUPLE (0x1 << 1) |
| #define IPC_RQ_INFO_SPI (0x1 << 2) |
| kal_uint8 valid_field; |
| kal_uint8 qfi; |
| kal_uint8 protocol; |
| kal_uint8 psi; |
| |
| union { |
| kal_uint8 addr8[4]; |
| kal_uint32 addr32; |
| } src_ipv4; |
| union { |
| kal_uint8 addr8[4]; |
| kal_uint32 addr32; |
| } dst_ipv4; |
| |
| union { |
| kal_uint8 addr8[16]; |
| kal_uint32 addr32[4]; |
| } src_ipv6; |
| union { |
| kal_uint8 addr8[16]; |
| kal_uint32 addr32[4]; |
| } dst_ipv6; |
| } ipc_rq_info_t; |
| |
| typedef struct _ipc_rq_info_ind_t { |
| PEER_BUFF_HDR |
| void *p_rq_info; |
| } ipc_rq_info_ind_t; |
| |
| /* IPCore filter notification context */ |
| typedef struct _ipc_filter_ntfy_mode_t { |
| module_type cbk_mod; |
| ipc_filter_callback_t cbk_func; |
| ipc_filter_with_info_callback_t with_info_cbk_func; |
| } ipc_filter_ntfy_mode_t; |
| |
| /* IPCore filter notification context */ |
| typedef struct _ipc_filter_ntfy_ctxt_t { |
| ipc_filter_ntfy_type_e ntfy_type; |
| ipc_filter_ntfy_mode_t ntfy_mod; |
| void *p_ntfy_args; |
| } ipc_filter_ntfy_ctxt_t; |
| |
| typedef struct _ipc_restore_netif_struct_t { |
| LOCAL_PARA_HDR |
| |
| kal_uint32 netif_id; |
| kal_uint8 ip_type; |
| kal_bool is_link_update; |
| kal_bool is_up; |
| } ipc_restore_netif_struct_t; |
| |
| typedef struct _d2cm_ipcore_info_ind_struct |
| { |
| LOCAL_PARA_HDR |
| kal_int32 netif_id; |
| kal_bool keep_ra; |
| } d2cm_ipcore_info_ind_struct; |
| |
| typedef struct _ipc_data_usage_info_t { |
| kal_uint32 uplink_bytes; |
| kal_uint32 downlink_bytes; |
| kal_uint32 uplink_packets; |
| kal_uint32 downlink_packets; |
| } ipc_data_usage_info_t; |
| |
| /**------------------------------------------------------------------------------ |
| * DHL logging structure |
| *----------------------------------------------------------------------------*/ |
| /** typedef void ipcore_code_begin_struct; */ |
| typedef ipc_link_req_t ipcore_link_up_req_struct; |
| typedef ipc_link_req_t ipcore_link_down_req_struct; |
| typedef ipc_lhifcore_q_mapping_msg_t ipcore_lhifcore_queue_mapping_req_struct; |
| typedef ipc_lhifcore_q_mapping_msg_t ipcore_lhifcore_queue_mapping_rsp_struct; |
| /** typedef void lms_dl_sdu_struct; */ |
| typedef lms_ipc_ntfy_t lms_netif_attach_struct; |
| /** typedef void ipcore_process_ul_queue_req_struct; */ |
| /** typedef void ipcore_retry_ul_reload_req_struct; */ |
| typedef ipc_packet_filtered_req_t ipcore_dl_packet_filtered_req_struct; |
| typedef ipc_packet_filtered_req_t ipcore_ul_packet_filtered_req_struct; |
| typedef ipc_link_req_t ipcore_ip_up_req_struct; |
| typedef ipc_link_req_t ipcore_ip_down_req_struct; |
| typedef ipc_link_handshake_msg_t ipcore_link_up_ind_struct; |
| typedef ipc_link_handshake_msg_t ipcore_ip_up_ind_struct; |
| typedef ipc_link_handshake_msg_t ipcore_link_up_rsp_struct; |
| typedef ipc_link_handshake_msg_t ipcore_ip_up_rsp_struct; |
| /** typedef void ipcore_query_info_req_struct; */ |
| typedef ipc_query_info_t ipcore_query_info_cnf_struct; |
| typedef ipc_packet_filtered_with_info_req_t ipcore_dl_packet_filtered_with_info_req_struct; |
| typedef ipc_packet_filtered_with_info_req_t ipcore_ul_packet_filtered_with_info_req_struct; |
| typedef ipc_set_ul_throttle_param_t ipcore_set_ul_throttle_struct; |
| typedef em_ipc_ul_throttle_status_ind_struct_t em_ipc_ul_throttle_status_ind_struct; |
| typedef ipc_vdm_ims_emergency_call_ind_struct_t ipcore_vdm_ims_emergency_call_ind_struct; |
| typedef ipc_register_filter_req_struct_t ipcore_register_filter_req_struct; |
| typedef ipc_deregister_filter_req_struct_t ipcore_deregister_filter_req_struct; |
| |
| #endif /* __INC_IPC_STRUCT_H */ |