LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-10-2012, 01:27 AM   #1
PingYao
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
how to use phy_mii_ioctl()


Hello all,

My first post. Thanks in advance.

Can someone point me to usage information for phy_mii_ioctl()? I search the web extensively but can't find much details.

I'm looking to access some special PHY registers through MDIO, and I think phy_mii_ioctl is the best function for me. For learning, I would like to write a very simple standalone app to retrieve a few basic registers (e.g. device-id, link status).

I'm planning to walk through the source codes to understand, but there must be a better way.

thank you.

Ping
 
Old 11-20-2012, 12:03 PM   #2
PingYao
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello,

Following instructions in
http://www.usenetmessages.com/view.p...0&id=20868&p=0

I was able to write a very basic application to read and write to the PHY registers with MDIO.

Ping
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration