mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
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>
This commit is contained in:
parent
7454558c69
commit
f3db82660d
3 changed files with 89 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue