summaryrefslogtreecommitdiffstats
path: root/dma.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-11-14 08:50:45 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2012-11-14 08:50:45 -0600
commit5f580e9411a24b7decc07013edeb8abf8d5ae25c (patch)
treeb5f0120fc2acc4080d09ecd903c647b4e8140bbd /dma.h
parentce5e5b522e8d3b848b6445c34226b69c77c46403 (diff)
parentdd72fdd06268860a24f9f3828efade547ee2e2a9 (diff)
downloadhqemu-5f580e9411a24b7decc07013edeb8abf8d5ae25c.zip
hqemu-5f580e9411a24b7decc07013edeb8abf8d5ae25c.tar.gz
Merge remote-tracking branch 'bonzini/scsi-next' into staging
* bonzini/scsi-next: virtio-scsi: use dma_context_memory dma: Define dma_context_memory and use in sysbus-ohci megasas: Correct target/lun mapping scsi-disk: flush cache after disabling it megasas: do not include block_int.h scsi: remove superfluous call to scsi_device_set_ua virtio-scsi: factor checks for VIRTIO_SCSI_S_DRIVER_OK when reporting events scsi: do not return short responses for emulated commands Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'dma.h')
-rw-r--r--dma.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dma.h b/dma.h
index 91ccdb5..eedf878 100644
--- a/dma.h
+++ b/dma.h
@@ -68,6 +68,11 @@ struct DMAContext {
DMAUnmapFunc *unmap;
};
+/* A global DMA context corresponding to the address_space_memory
+ * AddressSpace, for sysbus devices which do DMA.
+ */
+extern DMAContext dma_context_memory;
+
static inline void dma_barrier(DMAContext *dma, DMADirection dir)
{
/*
OpenPOWER on IntegriCloud