[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 08/13] es1370: use the DMA memory access interfa
From: |
Eduard - Gabriel Munteanu |
Subject: |
[Qemu-devel] [RFC PATCH 08/13] es1370: use the DMA memory access interface |
Date: |
Wed, 1 Jun 2011 04:38:30 +0300 |
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..1645dbd 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);
+ pci_memory_write (&s->dev, 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);
+ pci_memory_read (&s->dev, addr, tmpbuf, to_copy);
copied = AUD_write (voice, tmpbuf, to_copy);
if (!copied)
break;
--
1.7.3.4
- Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface, (continued)
- Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface, David Gibson, 2011/06/02
- Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
- Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface, Richard Henderson, 2011/06/01
- Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
- Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface, Richard Henderson, 2011/06/01
- Re: [Qemu-devel] [RFC PATCH 01/13] Generic DMA memory access interface, David Gibson, 2011/06/02
[Qemu-devel] [RFC PATCH 04/13] ide: use the DMA memory access interface for PCI IDE controllers, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 05/13] rtl8139: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 06/13] eepro100: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 07/13] ac97: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 08/13] es1370: use the DMA memory access interface,
Eduard - Gabriel Munteanu <=
[Qemu-devel] [RFC PATCH 09/13] e1000: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 10/13] lsi53c895a: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 11/13] pcnet: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 12/13] usb-uhci: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
[Qemu-devel] [RFC PATCH 13/13] usb-ohci: use the DMA memory access interface, Eduard - Gabriel Munteanu, 2011/06/01
Re: [Qemu-devel] [RFC PATCH 00/13] AMD IOMMU emulation patches, another try, Richard Henderson, 2011/06/01