Revision df32fd1c hw/usb/hcd-ehci-pci.c

b/hw/usb/hcd-ehci-pci.c
63 63
    s->caps[0x09] = 0x68;        /* EECP */
64 64

  
65 65
    s->irq = dev->irq[3];
66
    s->dma = pci_dma_context(dev);
66
    s->as = pci_get_address_space(dev);
67 67

  
68 68
    s->capsbase = 0x00;
69 69
    s->opregbase = 0x20;
......
86 86
        return;
87 87
    }
88 88
    busmaster = pci_get_word(dev->config + PCI_COMMAND) & PCI_COMMAND_MASTER;
89
    i->ehci.dma = busmaster ? pci_dma_context(dev) : NULL;
89
    i->ehci.as = busmaster ? pci_get_address_space(dev) : &address_space_memory;
90 90
}
91 91

  
92 92
static Property ehci_pci_properties[] = {

Also available in: Unified diff