]> www.infradead.org Git - users/dwmw2/qemu.git/commit
dma: Have dma_buf_read() / dma_buf_write() take a void pointer
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 16 Dec 2021 10:27:23 +0000 (11:27 +0100)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 30 Dec 2021 16:16:32 +0000 (17:16 +0100)
commit5e468a36dcdd8fd5eb04282842b72967a29875e4
tree0f1452fb3179f1201e0c72de764a09e7e8348bee
parentc0ee1527358474c75067993d1bb233ad3a4ee081
dma: Have dma_buf_read() / dma_buf_write() take a void pointer

DMA operations are run on any kind of buffer, not arrays of
uint8_t. Convert dma_buf_read/dma_buf_write functions to take
a void pointer argument and save us pointless casts to uint8_t *.

Remove this pointless casts in the megasas device model.

Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211223115554.3155328-9-philmd@redhat.com>
hw/scsi/megasas.c
include/sysemu/dma.h
softmmu/dma-helpers.c