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 board specific configuration


Hello Christophe,


On 03/01/11 11:36, Christophe Coutand wrote:
My experience is that the PHY API of eCos only let you retrieve the PHY
state (Link Mode) using _eth_phy_state() which you can further use for
setting your MAC layer. If you should handle any specific link
configuration or act on link mode change (from interrupt), you must
write you own configuration function. _eth_phy_cfg seems to be a generic
function which should be propagated to _eth_phy_dev_entry to have more
flexibility.

Thank you for this information. I already thought I have to change the _eth_phy_dev entry. However it will be somewhat tricky to implement a real callback to the board specific code.


Thank you,
 Martin L.



Christophe


-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Martin
Laabs
Sent: 28. februar 2011 12:37
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Ethernet PHY board specific configuration

Hello,

my eCos port to the AT91SAM9 family is mostly done. Now I want to
configure
the ethernet phy after it is recognized by ecos and before the MAC
begins
transmitting data. The cause is to configure the auto-negotiation mode
and
LED settings.
As far as I know there is no such macro or callback defined yet. Is this

correct and where should I add such a macro?

Thank you,
   Martin Laabs




--
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]