From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Edwards To: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] Documentation for new Ethernet driver interface? Date: Mon, 11 Dec 2000 13:22:00 -0000 Message-id: <20001211152555.A3841@visi.com> References: <20001211125100.A3361@visi.com> X-SW-Source: 2000-12/msg00231.html > 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