LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration