]> Git Repo - qemu.git/commit - include/sysemu/dma.h
Use DMADirection type for dma_bdrv_io
authorDavid Gibson <[email protected]>
Tue, 27 Mar 2012 02:42:23 +0000 (13:42 +1100)
committerKevin Wolf <[email protected]>
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 <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Andreas Färber <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
dma-helpers.c
dma.h
hw/ide/core.c
hw/ide/macio.c
This page took 0.02734 seconds and 4 git commands to generate.