PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
pbl_net_phy_ops Struct Reference

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.
 

Detailed Description

Ethernet PHY driver operations, called with the device lock held.

Field Documentation

◆ get_link

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.

◆ init

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.

◆ start

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.

◆ stop

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.


The documentation for this struct was generated from the following file: