devlink.h 467 B

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