« Previous | Next » 

Revision 10ca2943

ID10ca2943aab6646839769d78f80b0d5499efcbe9

Added by David Gibson almost 12 years ago

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 <>
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