wkz / phytool

Linux MDIO register access
GNU General Public License v2.0
151 stars 75 forks source link

C45 register access is unclear in the docs #9

Closed sarenameas closed 3 years ago

sarenameas commented 3 years ago

The README.md in this repo and the help menu for the tool show C45 ADDR in the command as

C45  := <0-0x1f>:<0-0x1f>

I see this example

phytool read  eth0/0:3/1

But I am still confused on what is on the left side of the colon and what is on the right side. Is the left side the Port Address (PRTAD) and the right side the Device Address (DEVAD)?

phytool print eth5/<PRTAD>:<DEVAD>/2

Or is it vise-versa?

phytool print eth5/<DEVAD>:<PRTAD>/2

Please and thank you!