4 struct fixed_phy_status
{
14 #if IS_ENABLED(CONFIG_FIXED_PHY)
15 extern int fixed_phy_add(unsigned int irq
, int phy_id
,
16 struct fixed_phy_status
*status
,
18 extern struct phy_device
*fixed_phy_register(unsigned int irq
,
19 struct fixed_phy_status
*status
,
21 struct device_node
*np
);
22 extern void fixed_phy_unregister(struct phy_device
*phydev
);
23 extern int fixed_phy_set_link_update(struct phy_device
*phydev
,
24 int (*link_update
)(struct net_device
*,
25 struct fixed_phy_status
*));
26 extern int fixed_phy_update_state(struct phy_device
*phydev
,
27 const struct fixed_phy_status
*status
,
28 const struct fixed_phy_status
*changed
);
30 static inline int fixed_phy_add(unsigned int irq
, int phy_id
,
31 struct fixed_phy_status
*status
,
36 static inline struct phy_device
*fixed_phy_register(unsigned int irq
,
37 struct fixed_phy_status
*status
,
39 struct device_node
*np
)
41 return ERR_PTR(-ENODEV
);
43 static inline void fixed_phy_unregister(struct phy_device
*phydev
)
46 static inline int fixed_phy_set_link_update(struct phy_device
*phydev
,
47 int (*link_update
)(struct net_device
*,
48 struct fixed_phy_status
*))
52 static inline int fixed_phy_update_state(struct phy_device
*phydev
,
53 const struct fixed_phy_status
*status
,
54 const struct fixed_phy_status
*changed
)
58 #endif /* CONFIG_FIXED_PHY */
60 #endif /* __PHY_FIXED_H */