mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
pci: Let pci_dma_rw() take MemTxAttrs argument
Let devices specify transaction attributes when calling pci_dma_rw(). Keep the default MEMTXATTRS_UNSPECIFIED in the few callers. Reviewed-by: Klaus Jensen <k.jensen@samsung.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211223115554.3155328-10-philmd@redhat.com>
This commit is contained in:
parent
5e468a36dc
commit
e2d784b67d
3 changed files with 9 additions and 6 deletions
|
@ -427,7 +427,8 @@ static bool intel_hda_xfer(HDACodecDevice *dev, uint32_t stnr, bool output,
|
|||
dprint(d, 3, "dma: entry %d, pos %d/%d, copy %d\n",
|
||||
st->be, st->bp, st->bpl[st->be].len, copy);
|
||||
|
||||
pci_dma_rw(&d->pci, st->bpl[st->be].addr + st->bp, buf, copy, !output);
|
||||
pci_dma_rw(&d->pci, st->bpl[st->be].addr + st->bp, buf, copy, !output,
|
||||
MEMTXATTRS_UNSPECIFIED);
|
||||
st->lpib += copy;
|
||||
st->bp += copy;
|
||||
buf += copy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue