// SPDX-License-Identifier: GPL-2.0+ /* * Infrastructure to handle all PHY devices connected to a given netdev, * either directly or indirectly attached. * * Copyright (c) 2023 Maxime Chevallier<[email protected]> */ #include <linux/phy_link_topology.h> #include <linux/phy.h> #include <linux/rtnetlink.h> #include <linux/xarray.h> static int netdev_alloc_phy_link_topology(struct net_device *dev) { … } int phy_link_topo_add_phy(struct net_device *dev, struct phy_device *phy, enum phy_upstream upt, void *upstream) { … } EXPORT_SYMBOL_GPL(…); void phy_link_topo_del_phy(struct net_device *dev, struct phy_device *phy) { … } EXPORT_SYMBOL_GPL(…);