• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef __HMAC_FRAG_H__
17 #define __HMAC_FRAG_H__
18 
19 /*****************************************************************************
20   1 其他头文件包含
21 *****************************************************************************/
22 #include "hmac_main.h"
23 #include "hmac_tx_data.h"
24 
25 #ifdef __cplusplus
26 #if __cplusplus
27 extern "C" {
28 #endif
29 #endif
30 
31 #undef  THIS_FILE_ID
32 #define THIS_FILE_ID OAM_FILE_ID_HMAC_FRAG_H
33 /*****************************************************************************
34   2 宏定义
35 *****************************************************************************/
36 #define HMAC_FRAG_TIMEOUT   2000
37 #define HMAC_MAX_FRAG_SIZE  2500
38 
39 /*****************************************************************************
40   3 枚举定义
41 *****************************************************************************/
42 
43 
44 /*****************************************************************************
45   4 全局变量声明
46 *****************************************************************************/
47 
48 
49 /*****************************************************************************
50   5 消息头定义
51 *****************************************************************************/
52 
53 
54 /*****************************************************************************
55   6 消息定义
56 *****************************************************************************/
57 
58 
59 /*****************************************************************************
60   7 STRUCT定义
61 *****************************************************************************/
62 
63 
64 /*****************************************************************************
65   8 UNION定义
66 *****************************************************************************/
67 
68 
69 /*****************************************************************************
70   9 OTHERS定义
71 *****************************************************************************/
72 typedef oal_netbuf_stru* (*hmac_defrag_start_cb)(hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf, osal_u32 hrdsize);
73 typedef osal_u32 (*hmac_frag_start_cb)(hmac_vap_stru *hmac_vap, hmac_user_stru *hmac_user, oal_netbuf_stru *netbuf,
74     mac_tx_ctl_stru *tx_ctl);
75 typedef osal_void (*hmac_user_clear_defrag_res_cb)(hmac_user_stru *hmac_user);
76 /*****************************************************************************
77   10 函数声明
78 *****************************************************************************/
79 static osal_u32 hmac_frag_init_weakref(osal_void) __attribute__ ((weakref("hmac_frag_init"), used));
80 static osal_void hmac_frag_deinit_weakref(osal_void) __attribute__ ((weakref("hmac_frag_deinit"), used));
81 #ifdef __cplusplus
82 #if __cplusplus
83 }
84 #endif
85 #endif
86 
87 #endif /* end of hmac_frag.h */
88