PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
Generic Ethernet PHY

Ethernet PHY driven through the IEEE 802.3 clause 22 registers alone. More...

Data Structures

struct  pbl_net_phy_generic
 Generic Ethernet PHY. More...
 

Macros

#define PBL_NET_PHY_GENERIC_DEFINE(sym, _mdio, _addr)
 Define a generic Ethernet PHY.
 

Detailed Description

Ethernet PHY driven through the IEEE 802.3 clause 22 registers alone.

Takes 10BASE-T and 100BASE-TX links negotiated by auto-negotiation; a link partner with auto-negotiation off is seen as no link.


Data Structure Documentation

◆ pbl_net_phy_generic

struct pbl_net_phy_generic

Generic Ethernet PHY.

Data Fields
uint8_t addr Address on the bus.
const struct pbl_mdio * mdio MDIO bus.
struct pbl_net_phy phy Ethernet PHY, child of the MDIO bus.
struct pbl_net_phy_generic_state * state Driver state.

Macro Definition Documentation

◆ PBL_NET_PHY_GENERIC_DEFINE

#define PBL_NET_PHY_GENERIC_DEFINE (   sym,
  _mdio,
  _addr 
)
Value:
static struct pbl_net_phy_generic_state sym##_generic_state; \
PBL_DEVICE_INSTANCE(sym, struct pbl_net_phy_generic, struct pbl_net_phy, phy) { \
.phy = PBL_NET_PHY_INIT(sym, "net_phy", &(_mdio)->dev, &pbl_net_phy_generic_ops), \
.state = &sym##_generic_state, .mdio = (_mdio), .addr = (_addr), \
}
Generic Ethernet PHY.
Definition generic.h:28
Ethernet PHY.
Definition phy.h:110
#define PBL_NET_PHY_STATE_DEFINE(sym)
Define the runtime state of an Ethernet PHY.
Definition phy.h:130
#define PBL_NET_PHY_INIT(sym, _name, _parent, _ops)
Initialize a struct pbl_net_phy.
Definition phy.h:142

Define a generic Ethernet PHY.

Parameters
symSymbol of the PHY.
_mdioMDIO bus.
_addrAddress on the bus.