]> git.proxmox.com Git - qemu.git/commit - hw/ide/core.c
Use DMADirection type for dma_bdrv_io
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 27 Mar 2012 02:42:23 +0000 (13:42 +1100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:40 +0000 (14:54 +0200)
commit43cf8ae69ba8510e45d7bd42dd67bc8ae13c48ec
tree0fc8d3f2f4b0f75034c8b00d42897d2ea14e88a0
parenteb9566d13e30dd7e20d978632a13915cbdb9a668
Use DMADirection type for dma_bdrv_io

Currently dma_bdrv_io() takes a 'to_dev' boolean parameter to
determine the direction of DMA it is emulating.  We already have a
DMADirection enum designed specifically to encode DMA directions.
This patch uses it for dma_bdrv_io() as well.  This involves removing
the DMADirection definition from the #ifdef it was inside, but since that
only existed to protect the definition of dma_addr_t from places where
config.h is not included, there wasn't any reason for it to be there in
the first place.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
dma-helpers.c
dma.h
hw/ide/core.c
hw/ide/macio.c