#include <linux/kernel.h>
#include <linux/debugfs.h>
#include "mtk_eth_soc.h"
struct mtk_flow_addr_info
{ … };
static const char *mtk_foe_entry_state_str(int state)
{ … }
static const char *mtk_foe_pkt_type_str(int type)
{ … }
static void
mtk_print_addr(struct seq_file *m, u32 *addr, bool ipv6)
{ … }
static void
mtk_print_addr_info(struct seq_file *m, struct mtk_flow_addr_info *ai)
{ … }
static int
mtk_ppe_debugfs_foe_show(struct seq_file *m, void *private, bool bind)
{ … }
static int
mtk_ppe_debugfs_foe_all_show(struct seq_file *m, void *private)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
static int
mtk_ppe_debugfs_foe_bind_show(struct seq_file *m, void *private)
{ … }
DEFINE_SHOW_ATTRIBUTE(…);
int mtk_ppe_debugfs_init(struct mtk_ppe *ppe, int index)
{ … }