diff options
| author | Stefan Berger | 2020-01-21 16:29:31 +0100 |
|---|---|---|
| committer | David Gibson | 2020-02-02 04:07:57 +0100 |
| commit | 864674fa29ab61681b8c72c3c41251e985daabed (patch) | |
| tree | 3be6e34d25a453d878d08e1a3c87cd9fdb6b2bb7 /include | |
| parent | tpm: Move tpm_tis_show_buffer to tpm_util.c (diff) | |
| download | qemu-864674fa29ab61681b8c72c3c41251e985daabed.tar.gz qemu-864674fa29ab61681b8c72c3c41251e985daabed.tar.xz qemu-864674fa29ab61681b8c72c3c41251e985daabed.zip | |
spapr: Implement get_dt_compatible() callback
For devices that cannot be statically initialized, implement a
get_dt_compatible() callback that allows us to ask the device for
the 'compatible' value.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20200121152935.649898-3-stefanb@linux.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/ppc/spapr_vio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr_vio.h b/include/hw/ppc/spapr_vio.h index ce6d9b0c66..bed7df60e3 100644 --- a/include/hw/ppc/spapr_vio.h +++ b/include/hw/ppc/spapr_vio.h @@ -58,6 +58,7 @@ typedef struct SpaprVioDeviceClass { void (*realize)(SpaprVioDevice *dev, Error **errp); void (*reset)(SpaprVioDevice *dev); int (*devnode)(SpaprVioDevice *dev, void *fdt, int node_off); + const char *(*get_dt_compatible)(SpaprVioDevice *dev); } SpaprVioDeviceClass; struct SpaprVioDevice { |
