xref: /linux/drivers/net/dsa/microchip/lan937x.h (revision 55ab6ffaf378d6a5ed9682f24fec4b947eb29930)
1*55ab6ffaSArun Ramadoss /* SPDX-License-Identifier: GPL-2.0 */
2*55ab6ffaSArun Ramadoss /* Microchip lan937x dev ops headers
3*55ab6ffaSArun Ramadoss  * Copyright (C) 2019-2022 Microchip Technology Inc.
4*55ab6ffaSArun Ramadoss  */
5*55ab6ffaSArun Ramadoss 
6*55ab6ffaSArun Ramadoss #ifndef __LAN937X_CFG_H
7*55ab6ffaSArun Ramadoss #define __LAN937X_CFG_H
8*55ab6ffaSArun Ramadoss 
9*55ab6ffaSArun Ramadoss int lan937x_reset_switch(struct ksz_device *dev);
10*55ab6ffaSArun Ramadoss int lan937x_setup(struct dsa_switch *ds);
11*55ab6ffaSArun Ramadoss void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port);
12*55ab6ffaSArun Ramadoss void lan937x_config_cpu_port(struct dsa_switch *ds);
13*55ab6ffaSArun Ramadoss int lan937x_switch_init(struct ksz_device *dev);
14*55ab6ffaSArun Ramadoss void lan937x_switch_exit(struct ksz_device *dev);
15*55ab6ffaSArun Ramadoss #endif
16