brintos

brintos / linux-shallow public Read only

0
0
Text · 729 B · f9ede03 Raw
34 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/* Microchip Sparx5 Switch driver VCAP implementation3 *4 * Copyright (c) 2022 Microchip Technology Inc. and its subsidiaries.5 */6 7#ifndef __SPARX5_VCAP_DEBUGFS_H__8#define __SPARX5_VCAP_DEBUGFS_H__9 10#include <linux/netdevice.h>11 12#include <vcap_api.h>13#include <vcap_api_client.h>14 15#if defined(CONFIG_DEBUG_FS)16 17/* Provide port information via a callback interface */18int sparx5_port_info(struct net_device *ndev,19		     struct vcap_admin *admin,20		     struct vcap_output_print *out);21 22#else23 24static inline int sparx5_port_info(struct net_device *ndev,25				   struct vcap_admin *admin,26				   struct vcap_output_print *out)27{28	return 0;29}30 31#endif32 33#endif /* __SPARX5_VCAP_DEBUGFS_H__ */34