luckfox-pico-sdk/sysdrv/drv_ko/wifi/ssv6115/fmac/fmac_bridge.h
luckfox-eng29 8f34c2760d project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches.
project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between
the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door
for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more
usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp:
Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for
compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem.
sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device
tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately.
sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick
boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades.
sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for
fastboot.

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
2024-10-14 09:47:04 +08:00

26 lines
836 B
C

#ifndef _FMAC_BRIDGE_H_
#define _FMAC_BRIDGE_H_
#define WLAN_ETHHDR_LEN 14
#define NETDEV_HWADDR(vif) ((vif)->ndev->dev_addr) // dev_addr: Interface address info used in eth_type_trans()
#define NET_BR0_AGEING_TIME 120
void ssv_bridge_flush(struct ssv_vif *vif);
struct ssv_vif *ssv_bridge_tx_change(struct sk_buff *skb, struct net_device *dev);
int ssv_bridge_rx_change(struct ssv_vif *ssv_vif, struct sk_buff *skb);
//记录net device mac到br_mac
void br0_netdev_open(struct net_device *netdev);
//申请br0 私有成员数据
int br0_attach(struct ssv_vif *vif);
//释放br0私有数据
void br0_detach(struct ssv_vif *vif);
#define TX_STR "Tx"
#define RX_STR "Rx"
void fmac_bridge_dump_skb_info(unsigned char *tag, char *dir, struct ssv_vif *vif, struct sk_buff *skb);
#endif // _FMAC_BRIDGE_H_