Hi all, i'm starting to write a kernel module to control a Marvel 88E6097 switch connected to a MPC8306 processor through MDIO. Unfortunately i can't find online documentation about MII/MDIO kernel interface...could someone address me in any direction? Would be nice to understand at least which structures i have to use...i saw there are, for example, the structure mii_if_info but i don't know how to define the functions mdio_read and mdio_write pointed by mdio_read and mdio_write homonymous pointers in the mii_if_info structure.

Thank you all for help!