Writing a module that uses MII/MDIO interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all, i'm trying to start to write a LKM that should use MII/MDIO linux interface. A brief description:

kernel version: 2.6.34

i'va a board with a MPC8306 processor and a switch Marvell 88E6097 connected by MII/MDIO...i should write switch's registers but i have no idea about which data structures i have to use...i found mii_if_info but i don't know how define the functions mdio_read and mdio_write...i found also the structure mdio_if_info but again i don't understand how to use it. I think only sources are not enough to completely understand how linux manages mdio busses, how performs device discovery, probing etc...do you know about any document? Browsing online and kernel tree docs i only found the file phy.txt in Documentation/networking...:(

any advice or little example would be appreciated!

Thank you all!

Mirko
 
- --
Mirko Banchi

e-mail:    mk.banchi@xxxxxxxxx
id-jabber: mk.banchi@xxxxxxxxxx

PGP key fingerprint:

308F BFB1 4E67 2522 C88E 
DC69 7631 52ED 32A5 6456



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAk3T2nIACgkQdjFS7TKlZFYmlQCfexeD9aJQvWoCzNJ/sgTRjwlN
5tkAnRE6Jp8/rehGiMEUvLkVmORTTZdF
=zH7I
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux