This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
API to configure Ethernet PHY
- From: coutand christophe <ccoutand at hotmail dot com>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 10 Nov 2009 08:53:18 +0100
- Subject: [ECOS] API to configure Ethernet PHY
Hi,
I made an eCos driver for my Ethernet PHY but I can’t figure
out what is the eCos way of configuring the PHY (i.e. setting auto
versus fix 100/10Mb-Full/Half duplex mode) The eCos API for PHY only
has a call to a stat() function:
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
struct
_eth_phy_dev_entry {
???
char????????? *name;
???
unsigned long? id;
???
bool???????? (*stat)(eth_phy_access_t
*f, int *stat);
};
Has anybody faced that issue?
Thanks,
Christophe
_________________________________________________________________
Messenger débarque dans Hotmail ! Essayez-le !
http://www.windowslive.fr/hotmail/web-messenger/
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss