summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/pnv_psi.h
diff options
context:
space:
mode:
authorGreg Kurz2019-12-13 12:59:39 +0100
committerDavid Gibson2019-12-17 00:39:48 +0100
commit41c4ef7009adb3d7c4f252656bb6b18080f7c3a2 (patch)
tree531363e121d83c2cdbc67c7ae2cfea57fefb4e5d /include/hw/ppc/pnv_psi.h
parentppc: Drop useless extern annotation for functions (diff)
downloadqemu-41c4ef7009adb3d7c4f252656bb6b18080f7c3a2.tar.gz
qemu-41c4ef7009adb3d7c4f252656bb6b18080f7c3a2.tar.xz
qemu-41c4ef7009adb3d7c4f252656bb6b18080f7c3a2.zip
ppc/pnv: Introduce PnvPsiClass::compat
The Processor Service Interface (PSI) model has a chip_type class level attribute, which is used to generate the content of the "compatible" DT property according to the CPU type. Since the PSI model already has specialized classes for each supported CPU type, it seems cleaner to achieve this with QOM. Provide the content of the "compatible" property with a new class level attribute. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <157623837974.360005.14706607446188964477.stgit@bahia.lan> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc/pnv_psi.h')
-rw-r--r--include/hw/ppc/pnv_psi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/pnv_psi.h b/include/hw/ppc/pnv_psi.h
index a044aab304..fc068c95e5 100644
--- a/include/hw/ppc/pnv_psi.h
+++ b/include/hw/ppc/pnv_psi.h
@@ -83,6 +83,8 @@ typedef struct PnvPsiClass {
uint32_t xscom_pcba;
uint32_t xscom_size;
uint64_t bar_mask;
+ const char *compat;
+ int compat_size;
void (*irq_set)(PnvPsi *psi, int, bool state);
} PnvPsiClass;