15cf2c75bSVladimir Oltean /* SPDX-License-Identifier: GPL-2.0-or-later */ 25cf2c75bSVladimir Oltean 35cf2c75bSVladimir Oltean #ifndef __DSA_DEVLINK_H 45cf2c75bSVladimir Oltean #define __DSA_DEVLINK_H 55cf2c75bSVladimir Oltean 65cf2c75bSVladimir Oltean struct dsa_port; 7*7aea535dSVladimir Oltean struct dsa_switch; 85cf2c75bSVladimir Oltean 95cf2c75bSVladimir Oltean int dsa_port_devlink_setup(struct dsa_port *dp); 105cf2c75bSVladimir Oltean void dsa_port_devlink_teardown(struct dsa_port *dp); 11*7aea535dSVladimir Oltean void dsa_switch_devlink_register(struct dsa_switch *ds); 12*7aea535dSVladimir Oltean void dsa_switch_devlink_unregister(struct dsa_switch *ds); 13*7aea535dSVladimir Oltean int dsa_switch_devlink_alloc(struct dsa_switch *ds); 14*7aea535dSVladimir Oltean void dsa_switch_devlink_free(struct dsa_switch *ds); 155cf2c75bSVladimir Oltean 165cf2c75bSVladimir Oltean #endif 17