]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/phy_fixed.h
1 /* SPDX-License-Identifier: GPL-2.0 */
5 struct fixed_phy_status
{
15 #if IS_ENABLED(CONFIG_FIXED_PHY)
16 extern int fixed_phy_add(unsigned int irq
, int phy_id
,
17 struct fixed_phy_status
*status
,
19 extern struct phy_device
*fixed_phy_register(unsigned int irq
,
20 struct fixed_phy_status
*status
,
22 struct device_node
*np
);
23 extern void fixed_phy_unregister(struct phy_device
*phydev
);
24 extern int fixed_phy_set_link_update(struct phy_device
*phydev
,
25 int (*link_update
)(struct net_device
*,
26 struct fixed_phy_status
*));
27 extern int fixed_phy_update_state(struct phy_device
*phydev
,
28 const struct fixed_phy_status
*status
,
29 const struct fixed_phy_status
*changed
);
31 static inline int fixed_phy_add(unsigned int irq
, int phy_id
,
32 struct fixed_phy_status
*status
,
37 static inline struct phy_device
*fixed_phy_register(unsigned int irq
,
38 struct fixed_phy_status
*status
,
40 struct device_node
*np
)
42 return ERR_PTR(-ENODEV
);
44 static inline void fixed_phy_unregister(struct phy_device
*phydev
)
47 static inline int fixed_phy_set_link_update(struct phy_device
*phydev
,
48 int (*link_update
)(struct net_device
*,
49 struct fixed_phy_status
*))
53 static inline int fixed_phy_update_state(struct phy_device
*phydev
,
54 const struct fixed_phy_status
*status
,
55 const struct fixed_phy_status
*changed
)
59 #endif /* CONFIG_FIXED_PHY */
61 #endif /* __PHY_FIXED_H */