mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
pci: Let ld*_pci_dma() take MemTxAttrs argument
Let devices specify transaction attributes when calling ld*_pci_dma(). Keep the default MEMTXATTRS_UNSPECIFIED in the few callers. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211223115554.3155328-22-philmd@redhat.com>
This commit is contained in:
parent
a423a1b523
commit
398f9a84ac
8 changed files with 46 additions and 29 deletions
|
@ -52,7 +52,8 @@
|
|||
|
||||
#define RS_GET_FIELD(m, field) \
|
||||
(ldl_le_pci_dma(&container_of(m, PVSCSIState, rings)->parent_obj, \
|
||||
(m)->rs_pa + offsetof(struct PVSCSIRingsState, field)))
|
||||
(m)->rs_pa + offsetof(struct PVSCSIRingsState, field), \
|
||||
MEMTXATTRS_UNSPECIFIED))
|
||||
#define RS_SET_FIELD(m, field, val) \
|
||||
(stl_le_pci_dma(&container_of(m, PVSCSIState, rings)->parent_obj, \
|
||||
(m)->rs_pa + offsetof(struct PVSCSIRingsState, field), val, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue