mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 17:25:16 +07:00
b790b5549b
This patch corrects the SPDX License Identifier style in header files related to Distributed Switch Architecture drivers for NXP SJA1105 series Ethernet switch support. It uses an expilict block comment for the SPDX License Identifier. Changes made by using a script provided by Joe Perches here: https://lkml.org/lkml/2019/2/7/46. Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
42 lines
971 B
C
42 lines
971 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2019, Vladimir Oltean <olteanv@gmail.com>
|
|
*/
|
|
#ifndef _SJA1105_TAS_H
|
|
#define _SJA1105_TAS_H
|
|
|
|
#include <net/pkt_sched.h>
|
|
|
|
#if IS_ENABLED(CONFIG_NET_DSA_SJA1105_TAS)
|
|
|
|
struct sja1105_tas_data {
|
|
struct tc_taprio_qopt_offload *offload[SJA1105_NUM_PORTS];
|
|
};
|
|
|
|
int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
|
|
struct tc_taprio_qopt_offload *admin);
|
|
|
|
void sja1105_tas_setup(struct dsa_switch *ds);
|
|
|
|
void sja1105_tas_teardown(struct dsa_switch *ds);
|
|
|
|
#else
|
|
|
|
/* C doesn't allow empty structures, bah! */
|
|
struct sja1105_tas_data {
|
|
u8 dummy;
|
|
};
|
|
|
|
static inline int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
|
|
struct tc_taprio_qopt_offload *admin)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
|
|
static inline void sja1105_tas_setup(struct dsa_switch *ds) { }
|
|
|
|
static inline void sja1105_tas_teardown(struct dsa_switch *ds) { }
|
|
|
|
#endif /* IS_ENABLED(CONFIG_NET_DSA_SJA1105_TAS) */
|
|
|
|
#endif /* _SJA1105_TAS_H */
|