This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Documentation for new Ethernet driver interface?
- To: ecos-discuss at sources dot redhat dot com
- Subject: Re: [ECOS] Documentation for new Ethernet driver interface?
- From: Grant Edwards <grante at visi dot com>
- Date: Mon, 11 Dec 2000 15:25:55 -0600
- References: <20001211125100.A3361@visi.com>
> I'm trying to get my Ethernet driver that works with 1.3.1 to
> work with CVS code, but I can't seem to find any documentation
> on the new Ethernet driver interface. Can somebody lend me a
> clue?
A few specific questions (based on my perusal of the edb7xxx
driver):
1) The DSR that is called now seems to be a generic Ethernet
DSR which then arranges for a future call to the "deliver"
callback pointing to what used to be the driver DSR.
The "deliver" callback is called from a thread context
rather than a DSR context.
Right?
2) What is the "poll" callback in ETH_DRV_SC for? It seems to
do almost the exact same thing that the deliver callback
does.
3) What is done with the return value from the int_vector
callback? My driver uses three different interrupts, and
I'm not sure which one to put here. I'm guessing it's the
interrupt number for the interrupt that calls the DSR that
does mostly the same thing as the "deliver" callback?
4) The poll() and int_vector() callbacks seem not to be unused
in "net/eth_drv.c" and are used only in stand_alone/eth_drv.c.
Can I just put in stubs that do nothing for those two?
--
Grant Edwards
grante@visi.com