This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ethernet PHY Device API


Hello all,

Where should I put the code initializing PHY? The optional init() function I defined along with the required stat() doesn't seem to ever get called.


Thanks, /Mikhail




----- Original Message ----- From: "Christophe Coutand" <ccoutand@stmi.com>
To: "Mikhail Matusov" <matusov@squarepeg.ca>; <ecos-discuss@ecos.sourceware.org>
Sent: Friday, June 25, 2010 6:41 PM
Subject: RE: [ECOS] Ethernet PHY Device API



In my case, Vitesse VSC8244 PHY is inferred so VSC8244.c is compiled and
it includes the line:

_eth_phy_dev("Vitesse VSC8244", 0x000FC6C2, VSC8244_stat)

In the MAC layer, I call _eth_phy_init() to probe for the PHY and I get
the PHY status by calling _eth_phy_state() which uses the stat()
function of the PHY. I use the PHY state to configure the MAC layer
according to current link speed and duplex mode reported.

Christophe




--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]