mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
spapr: convert TCE API to use an opaque type
The TCE table is currently returned as a DMAContext, and non-type-safe APIs are called later passing back the DMAContext. Since we want to move away from DMAContext, use an opaque type instead, and add an accessor to retrieve the DMAContext from it. Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
06d985f5d8
commit
2b7dc949e2
6 changed files with 47 additions and 53 deletions
|
@ -49,7 +49,7 @@ typedef struct sPAPRPHBState {
|
|||
uint32_t dma_liobn;
|
||||
uint64_t dma_window_start;
|
||||
uint64_t dma_window_size;
|
||||
DMAContext *dma;
|
||||
sPAPRTCETable *tcet;
|
||||
|
||||
struct {
|
||||
uint32_t irq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue