blob: 546b1ec47b575a70416597ee242f27785d699fe9 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2014
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*******************************************************************************
37 * Filename:
38 * ---------
39 * pfm_struct.h
40 *
41 * Project:
42 * --------
43 * MOLY
44 *
45 * Description:
46 * ------------
47 * Packet Filter Manager ILM structure and interface definition.
48 *
49 * Author:
50 * -------
51 * -------
52 *
53 *==============================================================================
54 * HISTORY
55 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
56 *------------------------------------------------------------------------------
57 * removed!
58 *
59 * removed!
60 * removed!
61 * removed!
62 * removed!
63 *
64 * removed!
65 * removed!
66 * removed!
67 * removed!
68 *
69 * removed!
70 * removed!
71 * removed!
72 * removed!
73 * removed!
74 * removed!
75 * removed!
76 * removed!
77 *
78 *------------------------------------------------------------------------------
79 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
80 *==============================================================================
81 *******************************************************************************/
82#ifndef __INC_PFM_STRUCT_H
83#define __INC_PFM_STRUCT_H
84
85#include "hif_ior.h"
86
87/*
88 * Callback function to process the IP datagram filtered.
89 *
90 * @param packet [IN] Packet buffer.
91 * @param packet_len [IN] Packet len.
92 * @param pfm_filter_id [IN] PFM Filter id of matched packet.
93 * @param priv_data [IN] optional data.
94 */
95typedef void (*pfm_garbage_str_wake_type_pkt_f)(const kal_uint8 *packet,
96 kal_int32 packet_len,
97 kal_int32 pfm_filter_id,
98 void* priv_data);
99
100/*
101 * Local parameter structure for MSG_ID_PFM_REGISTER_FILTER_REQ & MSG_ID_PFM_DEREGISTER_FILTER_REQ
102 */
103typedef struct _pfm_filter_set_t {
104 LOCAL_PARA_HDR
105
106 kal_uint32 filter_set_id;
107 kal_int32 filter_cnt;
108 kal_uint32 uplink;
109} pfm_filter_set_t;
110
111#define PFM_STR_FILTER_MAX_SIZE 192
112#define PFM_STR_FILTER_MAX_NUM 16
113
114typedef struct _pfm_str_filter_t {
115 kal_int32 filter_id;
116 kal_uint32 netif_id;
117 kal_uint16 filter_len;
118 kal_uint16 mask_len;
119 kal_uint8 filter[PFM_STR_FILTER_MAX_SIZE];
120 kal_uint8 mask[PFM_STR_FILTER_MAX_SIZE];
121 kal_uint32 magic_code;
122} pfm_str_filter_t;
123
124typedef struct _pfm_pcie_state_change_ind_t {
125 LOCAL_PARA_HDR
126 kal_uint32 is_suspend;
127} pfm_pcie_state_change_ind_struct;
128
129/*------------------------------------------------------------------------------
130 * DHL logging structure
131 *----------------------------------------------------------------------------*/
132typedef pfm_filter_set_t pfm_register_filter_req_struct;
133typedef pfm_filter_set_t pfm_deregister_filter_req_struct;
134
135#endif /* __INC_PFM_STRUCT_H */