Senthil K
|
MDI_FindPhy MDI utility /library not working in custom made driver
|
Senthil K
11/30/2009 4:29 AM
post42818
|
MDI_FindPhy MDI utility /library not working in custom made driver
Hi ,
While accessing MDI_FindPhy ( MDI utility ) is not working in custom made driver for tsec0 interface (phy_idx = 0).
MDI_FindPhy(mpc85xx->mdi, phy_idx);
MDI_FindPhy required 2 arguments which is mdi_t structure and phy id.
We are getting the interface pointer via “ifunit(“tsec0”)” function.
mpc85xx_dev_t is a low level structure which has stored in ifp->if_softc.
mdi_t structure is getting from the low level structure(mpc85xx_dev_t) and phyid is 0.
1) Getting mpc85xx->mdi pointer via ifunit is correct, is there any other way to get mpc85xx_dev_t structure from
custom made driver.
2) How to access MDI utilities/library (Ex: MDI_FindPhy, MDI_AutoNegotiate) for tsec0 from custom made driver.
3) is that possible to access the MDI (mpc85xx_mii_read/write) registered functions via custom made driver (other
than mpc85xx ethernet driver )?
4) How ifconfig utility access the mpc85xx_mii_read/write functions?(Because if we do "ifconfig tsec0 up" which
invokes the mpc85xx_mii_read function).
Thanks and Regards
K.Senthil
|
|
|