mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
hw/dma: Remove CONFIG_USER_ONLY check
DMA API should not be included in user-mode emulation. If so, build should fail. Remove the CONFIG_USER_ONLY check. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20220111184309.28637-6-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
1efc6b319c
commit
fd5e451edb
1 changed files with 0 additions and 3 deletions
|
@ -31,8 +31,6 @@ struct QEMUSGList {
|
||||||
AddressSpace *as;
|
AddressSpace *as;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef CONFIG_USER_ONLY
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When an IOMMU is present, bus addresses become distinct from
|
* When an IOMMU is present, bus addresses become distinct from
|
||||||
* CPU/memory physical addresses and may be a different size. Because
|
* CPU/memory physical addresses and may be a different size. Because
|
||||||
|
@ -288,7 +286,6 @@ void qemu_sglist_init(QEMUSGList *qsg, DeviceState *dev, int alloc_hint,
|
||||||
AddressSpace *as);
|
AddressSpace *as);
|
||||||
void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len);
|
void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len);
|
||||||
void qemu_sglist_destroy(QEMUSGList *qsg);
|
void qemu_sglist_destroy(QEMUSGList *qsg);
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef BlockAIOCB *DMAIOFunc(int64_t offset, QEMUIOVector *iov,
|
typedef BlockAIOCB *DMAIOFunc(int64_t offset, QEMUIOVector *iov,
|
||||||
BlockCompletionFunc *cb, void *cb_opaque,
|
BlockCompletionFunc *cb, void *cb_opaque,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue