summary refs log tree commit diff stats
path: root/hw/core/qdev-clock.c
diff options
context:
space:
mode:
authorKlaus Jensen <k.jensen@samsung.com>2020-12-15 19:18:25 +0100
committerKlaus Jensen <k.jensen@samsung.com>2021-03-09 11:00:57 +0100
commit81d07f4ff51a2b5249f940975acfb9b0d787d593 (patch)
tree30a5913680da73dfbfae72b14940411ed593798d /hw/core/qdev-clock.c
parent073d12d99871d0d500f44bd49cb0c45df14cf2c3 (diff)
downloadfocaccia-qemu-81d07f4ff51a2b5249f940975acfb9b0d787d593.tar.gz
focaccia-qemu-81d07f4ff51a2b5249f940975acfb9b0d787d593.zip
hw/block/nvme: refactor nvme_dma
The nvme_dma function doesn't just do DMA (QEMUSGList-based) memory transfers;
it also handles QEMUIOVector copies.

Introduce the NvmeTxDirection enum and rename to nvme_tx. Remove mapping
of PRPs/SGLs from nvme_tx and instead assert that they have been mapped
previously. This allows more fine-grained use in subsequent patches.

Add new (better named) helpers, nvme_{c2h,h2c}, that does both PRP/SGL
mapping and transfer.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'hw/core/qdev-clock.c')
0 files changed, 0 insertions, 0 deletions