diff options
author | David Gibson | 2012-06-27 06:50:41 +0200 |
---|---|---|
committer | Anthony Liguori | 2012-06-27 23:33:25 +0200 |
commit | 10ca2943aab6646839769d78f80b0d5499efcbe9 (patch) | |
tree | a5b6dccc0b5aafb5d3d9ddef3532f8ca53c2bc5b /hw/usb/hcd-ehci.c | |
parent | iommu: Make sglists and dma_bdrv helpers use new universal DMA helpers (diff) | |
download | qemu-10ca2943aab6646839769d78f80b0d5499efcbe9.tar.gz qemu-10ca2943aab6646839769d78f80b0d5499efcbe9.tar.xz qemu-10ca2943aab6646839769d78f80b0d5499efcbe9.zip |
ide/ahci: Use universal DMA helper functions
The AHCI device can provide both PCI and SysBus AHCI device
emulations. For this reason, it wasn't previously converted to use
the pci_dma_*() helper functions. Now that we have universal DMA
helper functions, this converts AHCI to use them.
The DMAContext is obtained from pci_dma_context() in the PCI case and
set to NULL in the SysBus case (i.e. we assume for now that a SysBus
AHCI has no IOMMU translation).
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb/hcd-ehci.c')
0 files changed, 0 insertions, 0 deletions