|
PebbleOS v4.47.0-1312-gf1984a001
|
Ethernet PHY driver operations, called with the device lock held. More...
#include <phy.h>
Data Fields | |
| int(* | init )(const struct pbl_net_phy *phy) |
| Optional. | |
| int(* | start )(const struct pbl_net_phy *phy, uint32_t adv) |
Power the PHY up, start negotiating the adv modes and watching the link. | |
| int(* | stop )(const struct pbl_net_phy *phy) |
| Stop watching the link and power the PHY down. | |
| int(* | get_link )(const struct pbl_net_phy *phy, struct pbl_net_phy_link *link) |
| Read the link state. | |
Ethernet PHY driver operations, called with the device lock held.
| int(* pbl_net_phy_ops::get_link) (const struct pbl_net_phy *phy, struct pbl_net_phy_link *link) |
Read the link state.
Returns 0 or a negative errno.
| int(* pbl_net_phy_ops::init) (const struct pbl_net_phy *phy) |
Optional.
Set the PHY up, powered as after a reset, as the MAC may need its clocks to come up. Returns 0 or a negative errno.
| int(* pbl_net_phy_ops::start) (const struct pbl_net_phy *phy, uint32_t adv) |
Power the PHY up, start negotiating the adv modes and watching the link.
Returns 0 or a negative errno.
| int(* pbl_net_phy_ops::stop) (const struct pbl_net_phy *phy) |
Stop watching the link and power the PHY down.
Returns 0 or a negative errno.