[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/14] es1370: use the DMA memory access interface
From: |
David Gibson |
Subject: |
[Qemu-devel] [PATCH 08/14] es1370: use the DMA memory access interface |
Date: |
Fri, 3 Jun 2011 01:12:36 +1000 |
This allows the device to work properly with an emulated IOMMU.
Signed-off-by: Eduard - Gabriel Munteanu <address@hidden>
---
hw/es1370.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/es1370.c b/hw/es1370.c
index 40cb48c..8880746 100644
--- a/hw/es1370.c
+++ b/hw/es1370.c
@@ -802,7 +802,7 @@ static void es1370_transfer_audio (ES1370State *s, struct
chan *d, int loop_sel,
if (!acquired)
break;
- cpu_physical_memory_write (addr, tmpbuf, acquired);
+ dma_memory_write (&s->dev.qdev, addr, tmpbuf, acquired);
temp -= acquired;
addr += acquired;
@@ -816,7 +816,7 @@ static void es1370_transfer_audio (ES1370State *s, struct
chan *d, int loop_sel,
int copied, to_copy;
to_copy = audio_MIN ((size_t) temp, sizeof (tmpbuf));
- cpu_physical_memory_read (addr, tmpbuf, to_copy);
+ dma_memory_read (&s->dev.qdev, addr, tmpbuf, to_copy);
copied = AUD_write (voice, tmpbuf, to_copy);
if (!copied)
break;
--
1.7.4.4
- [Qemu-devel] [PATCH 02/14] pci: add IOMMU support via the generic DMA layer, (continued)
[Qemu-devel] [PATCH 10/14] lsi53c895a: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 09/14] e1000: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 08/14] es1370: use the DMA memory access interface,
David Gibson <=
[Qemu-devel] [PATCH 05/14] rtl8139: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 07/14] ac97: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 03/14] AMD IOMMU emulation, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 11/14] pcnet: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 14/14] Make spapr tces use generic dma layer, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 12/14] usb-uhci: use the DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [PATCH 06/14] eepro100: use the DMA memory access interface, David Gibson, 2011/06/02