1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
7 struct fixed_phy_status {
18 #if IS_ENABLED(CONFIG_FIXED_PHY)
19 extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier);
20 int fixed_phy_add(int phy_id, const struct fixed_phy_status *status);
21 struct phy_device *fixed_phy_register(const struct fixed_phy_status *status,
22 struct device_node *np);
24 extern void fixed_phy_unregister(struct phy_device *phydev);
25 extern int fixed_phy_set_link_update(struct phy_device *phydev,
26 int (*link_update)(struct net_device *,
27 struct fixed_phy_status *));
29 static inline int fixed_phy_add(int phy_id,
30 const struct fixed_phy_status *status)
34 static inline struct phy_device *
35 fixed_phy_register(const struct fixed_phy_status *status,
36 struct device_node *np)
38 return ERR_PTR(-ENODEV);
41 static inline void fixed_phy_unregister(struct phy_device *phydev)
44 static inline int fixed_phy_set_link_update(struct phy_device *phydev,
45 int (*link_update)(struct net_device *,
46 struct fixed_phy_status *))
50 static inline int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier)
54 #endif /* CONFIG_FIXED_PHY */
56 #endif /* __PHY_FIXED_H */