]> git.proxmox.com Git - mirror_qemu.git/commit - dma-helpers.c
Use dma_addr_t type for scatter/gather code
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 31 Oct 2011 06:06:46 +0000 (17:06 +1100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Nov 2011 21:52:05 +0000 (16:52 -0500)
commitd32311810fd3da5b68912e71cec6c7e59b1ee3eb
tree21ebf986964d211bad623d52af7d3762c71d8fba
parentd9d1055ef1426da47b626883fffdc934c5f5ab91
Use dma_addr_t type for scatter/gather code

This patch uses the newly created dma_addr_t type throughout the
scatter/gather handling code in dma-helpers.c whenever we need to
represent a dma bus address.  This makes a better distinction as to
what is a bus address and what is a cpu physical address.  Since we
don't support IOMMUs yet, they can't be very different for now, but
that will change in future, and this preliminary helps clarify what's
going on.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
dma-helpers.c
dma.h