1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2 3#ifndef __DSA_DEVLINK_H 4#define __DSA_DEVLINK_H 5 6struct dsa_port; 7struct dsa_switch; 8 9int dsa_port_devlink_setup(struct dsa_port *dp); 10void dsa_port_devlink_teardown(struct dsa_port *dp); 11void dsa_switch_devlink_register(struct dsa_switch *ds); 12void dsa_switch_devlink_unregister(struct dsa_switch *ds); 13int dsa_switch_devlink_alloc(struct dsa_switch *ds); 14void dsa_switch_devlink_free(struct dsa_switch *ds); 15 16#endif 17