summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2014-05-27 07:36:37 +0200
committerAlexander Graf2014-06-16 13:24:39 +0200
commit1b8eceee280d3fab11812271f4956f7b69287ef0 (patch)
tree4bbffe4a21da4c76cd5b90b6a0898b206c03c18b /include/hw/ppc
parentspapr_iommu: Introduce page_shift in sPAPRTCETable (diff)
downloadqemu-1b8eceee280d3fab11812271f4956f7b69287ef0.tar.gz
qemu-1b8eceee280d3fab11812271f4956f7b69287ef0.tar.xz
qemu-1b8eceee280d3fab11812271f4956f7b69287ef0.zip
spapr_iommu: Introduce bus_offset in sPAPRTCETable
This adds @bus_offset into sPAPRTCETable to tell where TCE table starts from. It is set to 0 for emulated devices. Dynamic DMA windows will use other offset. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r--include/hw/ppc/spapr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 38e61cfab0..4ffb903f86 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -398,6 +398,7 @@ struct sPAPRTCETable {
DeviceState parent;
uint32_t liobn;
uint32_t nb_table;
+ uint64_t bus_offset;
uint32_t page_shift;
uint64_t *table;
bool bypass;
@@ -410,6 +411,7 @@ void spapr_events_init(sPAPREnvironment *spapr);
void spapr_events_fdt_skel(void *fdt, uint32_t epow_irq);
int spapr_h_cas_compose_response(target_ulong addr, target_ulong size);
sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn,
+ uint64_t bus_offset,
uint32_t page_shift,
uint32_t nb_table);
MemoryRegion *spapr_tce_get_iommu(sPAPRTCETable *tcet);