mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
PPC: dbdma: Move processing to io
Soon we will introduce intermediate processing pauses which will allow the bottom half to restart a DMA request that couldn't be fulfilled yet. For that to work, move the processing variable into the io struct which is what DMA providers work with. While touching it, also change it into a bool Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
4aa3510f6f
commit
03ee3b1e58
2 changed files with 8 additions and 5 deletions
|
@ -37,6 +37,8 @@ struct DBDMA_io {
|
|||
int is_last;
|
||||
int is_dma_out;
|
||||
DBDMA_end dma_end;
|
||||
/* DMA is in progress, don't start another one */
|
||||
bool processing;
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -148,7 +150,6 @@ typedef struct DBDMA_channel {
|
|||
DBDMA_rw rw;
|
||||
DBDMA_flush flush;
|
||||
dbdma_cmd current;
|
||||
int processing;
|
||||
} DBDMA_channel;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue