summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc
diff options
context:
space:
mode:
authorBalamuruhan S2019-09-12 11:30:53 +0200
committerDavid Gibson2019-10-04 02:25:23 +0200
commitf3db82660d22def1ffaa122f3952b560ac386147 (patch)
treeb822bddc41fd425fc7ed9a78248be91ae1090c88 /include/hw/ppc
parenthw/ppc/pnv_xscom: retrieve homer/occ base address from PBA BARs (diff)
downloadqemu-f3db82660d22def1ffaa122f3952b560ac386147.tar.gz
qemu-f3db82660d22def1ffaa122f3952b560ac386147.tar.xz
qemu-f3db82660d22def1ffaa122f3952b560ac386147.zip
hw/ppc/pnv_occ: add sram device model for occ common area
emulate occ common area region with occ sram device model which occ and skiboot uses it to communicate regarding sensors, slw and HWMON in PowerNV emulated host. Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Balamuruhan S <bala24@linux.ibm.com> Message-Id: <20190912093056.4516-3-bala24@linux.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r--include/hw/ppc/pnv_occ.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/ppc/pnv_occ.h b/include/hw/ppc/pnv_occ.h
index ed0709bfc0..66b0989be6 100644
--- a/include/hw/ppc/pnv_occ.h
+++ b/include/hw/ppc/pnv_occ.h
@@ -38,6 +38,7 @@ typedef struct PnvOCC {
PnvPsi *psi;
MemoryRegion xscom_regs;
+ MemoryRegion sram_regs;
} PnvOCC;
#define PNV_OCC_CLASS(klass) \
@@ -49,7 +50,9 @@ typedef struct PnvOCCClass {
DeviceClass parent_class;
int xscom_size;
+ int sram_size;
const MemoryRegionOps *xscom_ops;
+ const MemoryRegionOps *sram_ops;
int psi_irq;
} PnvOCCClass;