1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
5 #ifndef AM65_CPSW_QOS_H_
6 #define AM65_CPSW_QOS_H_
8 #include <linux/netdevice.h>
9 #include <net/pkt_sched.h>
11 struct am65_cpsw_est {
13 /* has to be the last one */
14 struct tc_taprio_qopt_offload taprio;
17 struct am65_cpsw_qos {
18 struct am65_cpsw_est *est_admin;
19 struct am65_cpsw_est *est_oper;
20 ktime_t link_down_time;
24 int am65_cpsw_qos_ndo_setup_tc(struct net_device *ndev, enum tc_setup_type type,
26 void am65_cpsw_qos_link_up(struct net_device *ndev, int link_speed);
27 void am65_cpsw_qos_link_down(struct net_device *ndev);
29 #endif /* AM65_CPSW_QOS_H_ */