David Gibson 10ca2943aa 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>
2012-06-27 16:33:25 -05:00
..
2012-06-21 16:06:11 +00:00
2012-06-24 01:04:47 +02:00
2012-06-21 16:06:11 +00:00
2012-06-21 16:06:11 +00:00
2012-06-19 13:24:44 +00:00
2012-06-22 10:46:12 +02:00
2012-04-25 10:53:47 +03:00
2012-05-24 02:03:30 +04:00
2012-06-21 18:45:24 +00:00
2012-06-15 14:03:42 +02:00
2012-04-26 12:54:17 +04:00
2012-06-18 15:14:38 +02:00
2012-06-04 23:00:45 +02:00
2012-06-24 01:04:51 +02:00
2012-06-18 15:14:38 +02:00
2012-06-04 23:00:41 +02:00
2012-05-16 18:04:44 -03:00
2012-05-21 19:22:50 +03:00
2012-06-22 10:49:55 +02:00
2012-06-15 14:03:42 +02:00
2012-06-21 16:06:10 +00:00
2012-06-11 00:23:04 +02:00
2012-06-22 10:49:55 +02:00
2012-06-22 10:49:45 +02:00
2012-06-04 23:00:43 +02:00
2012-05-07 08:44:21 +02:00
2012-06-07 17:18:58 +03:00
2012-06-24 01:04:45 +02:00
2012-06-18 15:14:38 +02:00
2012-06-18 15:14:38 +02:00
2012-06-18 15:14:38 +02:00
2012-06-24 01:04:45 +02:00
2012-06-24 01:04:45 +02:00
2012-06-18 15:14:38 +02:00
2012-06-04 23:00:45 +02:00
2012-06-22 10:46:12 +02:00
2012-06-22 10:46:12 +02:00
2012-06-22 10:46:12 +02:00
2012-06-22 10:49:55 +02:00
2012-06-22 10:46:12 +02:00
2012-06-18 15:14:38 +02:00
2012-04-25 10:53:47 +03:00
2012-05-21 15:40:50 -05:00
2012-06-22 10:49:55 +02:00
2012-06-21 16:06:11 +00:00
2012-06-21 16:06:11 +00:00
2012-05-16 18:04:44 -03:00
2012-06-15 13:08:13 +02:00
2012-06-15 13:08:13 +02:00