« Previous | Next » 

Revision 9ac6a217

ID9ac6a217f26d2044929ac4261826d24cc8c3dda5

Added by David Gibson almost 12 years ago

usb-ohci: Use universal DMA helper functions

The OHCI device emulation can provide both PCI and SysBus OHCI
implementations. Because of this, it was not previously converted to
use the PCI DMA helper functions.

This patch converts it to use the new universal DMA helper functions.
In the PCI case, it obtains its DMAContext from pci_dma_context(), in
the SysBus case, it uses NULL - i.e. assumes for now that there will
be no IOMMU translation for a SysBus OHCI.

Cc: Gerd Hoffmann <>
Cc: Michael S. Tsirkin <>

Signed-off-by: David Gibson <>
Signed-off-by: Benjamin Herrenschmidt <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences