WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
oal_netbuf_common_rom.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2020-2022. All rights reserved.
3 * Description: netbuf enum type head file.
4 */
5
6#ifndef OAL_NETBUF_COMMON_ROM_H
7#define OAL_NETBUF_COMMON_ROM_H
8
9#include "osal_types.h"
10#include "frw_msg_rom.h"
11#include "frw_hcc_common_rom.h"
12#include "oal_net_pkt_rom.h"
14#ifdef __cplusplus
15#if __cplusplus
16 extern "C" {
17#endif
18#endif
19
20/* 报文驱动私有扩展头封装格式示意:低地址|HCC头|FRW头|CB头|MAC头|Payload|高地址 */
21#define OAL_HCC_HDR_LEN hcc_get_head_len()
22#define OAL_FRW_HDR_LEN frw_get_head_len()
23#define OAL_MAX_CB_LEN 32 /* 不能超过48字节,内核的CB数组只有48字节 */
24#define OAL_MAX_MAC_HDR_LEN 36 /* 预留给MAC头的最大空间,考虑4地址场景 */
25#define OAL_HDR_TOTAL_LEN (OAL_HCC_HDR_LEN + OAL_FRW_HDR_LEN + OAL_MAX_CB_LEN + OAL_MAX_MAC_HDR_LEN)
26/* 修改OAL_HDR_TOTAL_LEN 需要同步修改 OAL_MACHDR_LEN */
27
28#define WLAN_MEM_NETBUF_ALRX 1600 /* 常发常收内存大小 */
29
30#ifdef __cplusplus
31#if __cplusplus
32 }
33#endif
34#endif
35
36#endif /* end of oal_netbuf_common.h */