kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Ethernet driver - without DMA ?
@ 2016-07-29 18:47 Ran Shalit
  2016-07-29 19:03 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Ran Shalit @ 2016-07-29 18:47 UTC (permalink / raw)
  To: kernelnewbies

 Hello,

Can we write Ethernet driver without using dma ?
But still using sk_buff APIs like done in most drivers ?

Thanks,
Ran

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Ethernet driver - without DMA ?
  2016-07-29 18:47 Ethernet driver - without DMA ? Ran Shalit
@ 2016-07-29 19:03 ` Greg KH
  2016-07-29 21:40   ` Ran Shalit
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2016-07-29 19:03 UTC (permalink / raw)
  To: kernelnewbies

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?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Ethernet driver - without DMA ?
  2016-07-29 19:03 ` Greg KH
@ 2016-07-29 21:40   ` Ran Shalit
  0 siblings, 0 replies; 3+ messages in thread
From: Ran Shalit @ 2016-07-29 21:40 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Jul 29, 2016 at 10:03 PM, Greg KH <greg@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-29 21:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-29 18:47 Ethernet driver - without DMA ? Ran Shalit
2016-07-29 19:03 ` Greg KH
2016-07-29 21:40   ` Ran Shalit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).