Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2018 11:16:27 +0000
From:      Johannes Lundberg <johalun0@gmail.com>
To:        Rajesh Kumar <rajfbsd@gmail.com>, freebsd-drivers@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: How to use the DMA Engine in FreeBSD?
Message-ID:  <90ce7684-6a8f-c398-5a46-a7f6b03015e8@gmail.com>
In-Reply-To: <CAAO%2BANOty8FeOR7VQdXmxWy5y288pm=Q4cswHJ1BbgT2h1cUWg@mail.gmail.com>
References:  <CAAO%2BANOty8FeOR7VQdXmxWy5y288pm=Q4cswHJ1BbgT2h1cUWg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 12/13/18 10:04 AM, Rajesh Kumar wrote:
> Hi,
>
> Is there any good documentation available to understand the existing
> support, API's and how-to use the DMA Engine in FreeBSD?
>
> I am trying to write a test driver which will use DMA Engine to do the data
> transfer (rather than plain memcpy which involves cpu).  Can anyone point
> to any driver implementation which has similar functions implemented?  I
> see references to SYS_RES_DRQ to allocate DMA channels and play around. But
> that seems to be specific to ISA. Can it be used for PCI drivers as well?

Hi

The book "FreeBSD Device Drivers" by Joseph Kong has an example. Not 
sure it matches exactly what you are looking for but it might help more 
than the FreeBSD source code which tends to lack documentation.

> Thanks,
> Rajesh.
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90ce7684-6a8f-c398-5a46-a7f6b03015e8>