1 /* SPDX-License-Identifier: GPL-2.0 */
5 struct fixed_phy_status {
15 #if IS_ENABLED(CONFIG_FIXED_PHY)
16 extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier);
17 extern int fixed_phy_add(unsigned int irq, int phy_id,
18 struct fixed_phy_status *status,
20 extern struct phy_device *fixed_phy_register(unsigned int irq,
21 struct fixed_phy_status *status,
23 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(unsigned int irq, int phy_id,
30 struct fixed_phy_status *status,
35 static inline struct phy_device *fixed_phy_register(unsigned int irq,
36 struct fixed_phy_status *status,
38 struct device_node *np)
40 return ERR_PTR(-ENODEV);
42 static inline void fixed_phy_unregister(struct phy_device *phydev)
45 static inline int fixed_phy_set_link_update(struct phy_device *phydev,
46 int (*link_update)(struct net_device *,
47 struct fixed_phy_status *))
51 static inline int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier)
55 #endif /* CONFIG_FIXED_PHY */
57 #endif /* __PHY_FIXED_H */