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: How to get Ethernet link status?


you need to call _eth_phy_state(eth_phy_access_t *f)
The argument being a pointer to the structure handling the PHY read
and write of your device.

On Tue, Dec 16, 2008 at 6:53 PM, Grant Edwards <grante@visi.com> wrote:
> What is the official method used to get the link status of an
> interface (up/down, 10/100/1000, full/half duplex)?
>
> I don't see any hooks in the Ethernet driver API.  Are drivers
> supposed to export that info as global variables somehow?  Are
> they supposed to provide a global function to call?
>
> --
> Grant Edwards                   grante             Yow! My BIOLOGICAL ALARM
>                                  at               CLOCK just went off ... It
>                               visi.com            has noiseless DOZE FUNCTION
>                                                   and full kitchen!!
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>

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