lan937x.h 1013 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Microchip lan937x dev ops headers
  3. * Copyright (C) 2019-2022 Microchip Technology Inc.
  4. */
  5. #ifndef __LAN937X_CFG_H
  6. #define __LAN937X_CFG_H
  7. int lan937x_reset_switch(struct ksz_device *dev);
  8. int lan937x_setup(struct dsa_switch *ds);
  9. void lan937x_teardown(struct dsa_switch *ds);
  10. void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port);
  11. void lan937x_config_cpu_port(struct dsa_switch *ds);
  12. int lan937x_switch_init(struct ksz_device *dev);
  13. void lan937x_switch_exit(struct ksz_device *dev);
  14. int lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data);
  15. int lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val);
  16. int lan937x_change_mtu(struct ksz_device *dev, int port, int new_mtu);
  17. void lan937x_phylink_get_caps(struct ksz_device *dev, int port,
  18. struct phylink_config *config);
  19. void lan937x_setup_rgmii_delay(struct ksz_device *dev, int port);
  20. int lan937x_set_ageing_time(struct ksz_device *dev, unsigned int msecs);
  21. #endif