Senthil K
08/06/2009 11:41 AM
post35398
|
Hi ,
I refered the same file (miivar.h)
The below function from gentbi.c file.
They invoking mii_readreg function.But they are not registering any read/write functions.
can you please tell me which read (*mii->mii_readreg)(parent, ma->mii_phyno, MII_BMSR); will invoke ?
gentbimatch(struct device *parent, struct cfdata *match, void *aux)
{
struct mii_attach_args *ma = aux;
struct mii_data *mii = ma->mii_data;
int bmsr, extsr;
/*
* We match as a generic TBI if:
*
* - There is no media in the BMSR.
* - EXTSR has only 1000X.
*/
bmsr = (*mii->mii_readreg)(parent, ma->mii_phyno, MII_BMSR);
if ((bmsr & BMSR_EXTSTAT) == 0 || (bmsr & BMSR_MEDIAMASK) != 0)
return (0);
}
return (0);
}
Thanks and Regards
K.Senthil
|
|
|