matiamic commented on code in PR #16911: URL: https://github.com/apache/nuttx/pull/16911#discussion_r2301523756
########## include/net/if.h: ########## @@ -172,6 +172,18 @@ struct mii_ioctl_data_s uint16_t val_out; /* PHY output data */ }; +/* Structure passed to read from or write to the MMD + * registers via the SIOCxMMDREG ioctl commands. + */ + +struct mmd_ioctl_data_s +{ + uint8_t phy_id; /* PHY device address */ + uint8_t mmd; /* MMD number */ + uint16_t addr; /* Address in the selected MMD */ + uint16_t data; /* Input / Output data */ +}; Review Comment: I think Linux uses `SIOCETHTOOL` exclusively to access MMD registers. The SIOCxMMDREG op is not present in Linux. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org