Ethernet PHY driven through the IEEE 802.3 clause 22 registers alone.
More...
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.
◆ pbl_net_phy_generic
| struct pbl_net_phy_generic |
| 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. |
◆ 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; \
.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
-
| sym | Symbol of the PHY. |
| _mdio | MDIO bus. |
| _addr | Address on the bus. |