aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/mac.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2013-06-30 02:54:35 +0200
committerAlexander Graf <agraf@suse.de>2013-07-11 18:51:25 +0200
commitcae323572eddc1a45e2f6ef98c006d98fed23b1e (patch)
treec433a66f0b4b9acd23d3ce3c08d5980795c4eed3 /hw/ppc/mac.h
parent03ee3b1e58266c7e5b155d58f443d94b23d2bd05 (diff)
PPC: dbdma: Wait for DMA until we have data
We should only start processing DMA requests when we have data to process. Hold off working through the DMA shuffling until the IDE core told us that it's ready. This is required because the guest can program the DMA engine or the IDE transfer first. Both are legal. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc/mac.h')
-rw-r--r--hw/ppc/mac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/mac.h b/hw/ppc/mac.h
index 27c4ca39be..1e578dd59d 100644
--- a/hw/ppc/mac.h
+++ b/hw/ppc/mac.h
@@ -133,6 +133,7 @@ typedef struct MACIOIDEState {
BlockDriverAIOCB *aiocb;
IDEDMA dma;
void *dbdma;
+ bool dma_active;
} MACIOIDEState;
void macio_ide_init_drives(MACIOIDEState *ide, DriveInfo **hd_table);