qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v1 4/8] usb/ehci: Add usb-ehci-sysbus


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v1 4/8] usb/ehci: Add usb-ehci-sysbus
Date: Thu, 25 Oct 2012 10:55:47 +0100

On 25 October 2012 10:47, Peter Crosthwaite
<address@hidden> wrote:
> +static int usb_ehci_sysbus_initfn(SysBusDevice *dev)
> +{
> +    EHCIItfState *i = FROM_SYSBUS(EHCIItfState, dev);
> +    EHCIState *s = &i->ehci;
> +
> +    s->dma = g_new(DMAContext, 1);
> +    dma_context_init(s->dma, &address_space_memory, NULL, NULL, NULL);

Assuming Avi doesn't reject it, better to use the dma_context_memory
I introduced in this patch (not yet applied to master):
  http://patchwork.ozlabs.org/patch/193550/

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]