« Previous | Next » 

Revision 43cf8ae6

ID43cf8ae69ba8510e45d7bd42dd67bc8ae13c48ec

Added by David Gibson almost 9 years ago

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 <>
Reviewed-by: Stefan Hajnoczi <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Kevin Wolf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences