aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/lan937x.h
diff options
context:
space:
mode:
authorArun Ramadoss <arun.ramadoss@microchip.com>2022-07-01 20:40:34 +0530
committerDavid S. Miller <davem@davemloft.net>2022-07-02 16:34:05 +0100
commitc14e878d4a4f6f5e1f58e83ac25363a1b80fa374 (patch)
treeed03f9121992082316b82e6cc4fbf70c94fc5e29 /drivers/net/dsa/microchip/lan937x.h
parentnet: dsa: microchip: lan937x: add MTU and fast_age support (diff)
downloadlinux-dev-c14e878d4a4f6f5e1f58e83ac25363a1b80fa374.tar.xz
linux-dev-c14e878d4a4f6f5e1f58e83ac25363a1b80fa374.zip
net: dsa: microchip: lan937x: add phylink_get_caps support
The internal phy of the LAN937x are capable of 100Mbps Full duplex. The xMII port of switch is capable of 10Mbps Full & Half Duplex, 100Mbps Full & Half Duplex and 1000Mbps Half duplex. xMII port also supports Tx and Rx Flow control. Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip/lan937x.h')
-rw-r--r--drivers/net/dsa/microchip/lan937x.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/lan937x.h b/drivers/net/dsa/microchip/lan937x.h
index 50563874600d..d4207e97a130 100644
--- a/drivers/net/dsa/microchip/lan937x.h
+++ b/drivers/net/dsa/microchip/lan937x.h
@@ -15,4 +15,6 @@ void lan937x_switch_exit(struct ksz_device *dev);
void lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data);
void lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val);
int lan937x_change_mtu(struct ksz_device *dev, int port, int new_mtu);
+void lan937x_phylink_get_caps(struct ksz_device *dev, int port,
+ struct phylink_config *config);
#endif