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