Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Microchip lan937x dev ops headers
0003  * Copyright (C) 2019-2022 Microchip Technology Inc.
0004  */
0005 
0006 #ifndef __LAN937X_CFG_H
0007 #define __LAN937X_CFG_H
0008 
0009 int lan937x_reset_switch(struct ksz_device *dev);
0010 int lan937x_setup(struct dsa_switch *ds);
0011 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port);
0012 void lan937x_config_cpu_port(struct dsa_switch *ds);
0013 int lan937x_switch_init(struct ksz_device *dev);
0014 void lan937x_switch_exit(struct ksz_device *dev);
0015 void lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data);
0016 void lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val);
0017 int lan937x_change_mtu(struct ksz_device *dev, int port, int new_mtu);
0018 void lan937x_phylink_get_caps(struct ksz_device *dev, int port,
0019                   struct phylink_config *config);
0020 void lan937x_setup_rgmii_delay(struct ksz_device *dev, int port);
0021 #endif