summaryrefslogtreecommitdiffstats
path: root/include/hw/pci-host/spapr.h
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2015-05-07 07:33:32 +0200
committerAlexander Graf2015-06-03 23:56:50 +0200
commit3e1a01cb554412e8a9c25573126356596dc0c50f (patch)
tree85553b9aa2bd4dee453eac0dd4cc29cb470f49d1 /include/hw/pci-host/spapr.h
parentspapr_vio: Introduce a liobn number generating macros (diff)
downloadqemu-3e1a01cb554412e8a9c25573126356596dc0c50f.tar.gz
qemu-3e1a01cb554412e8a9c25573126356596dc0c50f.tar.xz
qemu-3e1a01cb554412e8a9c25573126356596dc0c50f.zip
spapr_pci: Define default DMA window size as a macro
This gets rid of a magic constant describing the default DMA window size for an emulated PHB. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw/pci-host/spapr.h')
-rw-r--r--include/hw/pci-host/spapr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h
index 895d273fee..d7b521dc12 100644
--- a/include/hw/pci-host/spapr.h
+++ b/include/hw/pci-host/spapr.h
@@ -114,6 +114,8 @@ struct sPAPRPHBVFIOState {
#define SPAPR_PCI_MSI_WINDOW 0x40000000000ULL
+#define SPAPR_PCI_DMA32_SIZE 0x40000000
+
static inline qemu_irq spapr_phb_lsi_qirq(struct sPAPRPHBState *phb, int pin)
{
return xics_get_qirq(spapr->icp, phb->lsi_table[pin].irq);