| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
/* |
| 3 |
* Copyright (C) 2024 Furong Xu <[email protected]> |
| 4 |
* stmmac FPE(802.3 Qbu) handling |
| 5 |
*/ |
| 6 |
#ifndef _STMMAC_FPE_H_ |
| 7 |
#define _STMMAC_FPE_H_ |
| 8 |
|
| 9 |
#include <linux/types.h> |
| 10 |
#include <linux/netdevice.h> |
| 11 |
|
| 12 |
struct stmmac_priv; |
| 13 |
|
| 14 |
bool stmmac_fpe_supported(struct stmmac_priv *priv); |
| 15 |
void stmmac_fpe_init(struct stmmac_priv *priv); |
| 16 |
void stmmac_fpe_irq_status(struct stmmac_priv *priv); |
| 17 |
int stmmac_fpe_get_add_frag_size(struct stmmac_priv *priv); |
| 18 |
void stmmac_fpe_set_add_frag_size(struct stmmac_priv *priv, u32 add_frag_size); |
| 19 |
|
| 20 |
int dwmac5_fpe_map_preemption_class(struct net_device *ndev, |
| 21 |
struct netlink_ext_ack *extack, u32 pclass); |
| 22 |
int dwxgmac3_fpe_map_preemption_class(struct net_device *ndev, |
| 23 |
struct netlink_ext_ack *extack, u32 pclass); |
| 24 |
|
| 25 |
extern const struct stmmac_fpe_reg dwmac5_fpe_reg; |
| 26 |
extern const struct stmmac_fpe_reg dwxgmac3_fpe_reg; |
| 27 |
|
| 28 |
#endif |