svn commit: r294547 - head/sys/boot/kshim

Conrad Meyer cem at FreeBSD.org
Fri Jan 22 15:25:21 UTC 2016


Is this incomplete?

On Thu, Jan 21, 2016 at 10:26 PM, Wojciech Macek <wma at freebsd.org> wrote:
> Author: wma
> Date: Fri Jan 22 06:26:11 2016
> New Revision: 294547
> URL: https://svnweb.freebsd.org/changeset/base/294547
>
> Log:
>   Provide busdma stubs for loader/kshim
>
>       Simple bus space stubs require the VA-PA mapping
>       to be identical.
>
>   Approved by:           hselasky, cognet (mentor)
>   Differential revision: https://reviews.freebsd.org/D4314
>
> ...
>
> +       ret = malloc(sizeof(struct bus_dma_tag), XXX, XXX);
> ...
> +int
> +bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
> +    bus_dmamap_t *mapp)
> +{
> +       void *addr;
> +
> +       addr = malloc(dmat->maxsize + dmat->alignment, XXX, XXX);

etc.

Best,
Conrad


More information about the svn-src-head mailing list