Ethernet driver - without DMA ?
Ran Shalit
ranshalit at gmail.com
Fri Jul 29 17:40:12 EDT 2016
On Fri, Jul 29, 2016 at 10:03 PM, Greg KH <greg at kroah.com> wrote:
> On Fri, Jul 29, 2016 at 09:47:40PM +0300, Ran Shalit wrote:
>> Hello,
>>
>> Can we write Ethernet driver without using dma ?
>
> Sure, we have USB network drivers that don't use DMA.
>
>> But still using sk_buff APIs like done in most drivers ?
>
> Yup.
>
> What type of hardware are you wanting to write an Ethernet driver for?
OMAP4, (omap4460), which connect to mac controller implemented in FPGA.
There is no template for ethernet driver, but I see that netx-eth has
quite simple implementation, which looks as a good starting template:
https://github.com/torvalds/linux/blob/master/drivers/net/ethernet/netx-eth.c
>
> thanks,
>
> greg k-h
More information about the Kernelnewbies
mailing list