This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to get Ethernet link status?
- From: "damien millescamps" <damien dot millescamps at gmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 16 Dec 2008 19:14:02 +0100
- Subject: Re: [ECOS] How to get Ethernet link status?
- References: <gi8pv9$udq$1@ger.gmane.org>
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