From: bill_carson@126.com (bill) Date: Thu, 14 Jul 2011 16:56:32 +0800 (CST) Subject: Puzzled about MDIO issue Message-ID: <2ea6f8da.11472.13127dc9285.Coremail.bill_carson@126.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi, All I've been reading MDIO code, tiny though but it still puzzled me for its usage. MDIO is an hardware interface for the MAC to set/get PHY configuration/status. Linux manipulates MDIO through: struct net_device ->do_ioctl -> mdio_mii_ioctl -> mdio_read/mdio_write Question: A: Turn an NIC from cold state to running state, is this ioctl must be used to configure the PHY? If so , how? B: what's the usage of this net device ioctl? I found an user-space package mii-tool create a socket first and then use the socket handle for ioctl to query lots of PHY information. Is there any other typical usage of it? thanks bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110714/ff5143a9/attachment.html