1PHY_READ_MMD_INDIREC(9) Network device support PHY_READ_MMD_INDIREC(9)
2
3
4
6 phy_read_mmd_indirect - reads data from the MMD registers
7
9 int phy_read_mmd_indirect(struct mii_bus * bus, int prtad, int devad,
10 int addr);
11
13 bus
14 the target MII bus
15
16 prtad
17 MMD Address
18
19 devad
20 MMD DEVAD
21
22 addr
23 PHY address on the MII bus
24
26 it reads data from the MMD registers (clause 22 to access to clause 45)
27 of the specified phy address.
28
30 1) Write reg 13 // DEVAD 2) Write reg 14 // MMD Address 3) Write reg 13
31 // MMD Data Command for MMD DEVAD 3) Read reg 14 // Read MMD data
32
34Kernel Hackers Manual 3.10 June 2019 PHY_READ_MMD_INDIREC(9)