mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
pseries: Consolidate construction of /vdevice device tree node
Construction of the /vdevice node (and its children) is divided between spapr_create_fdt_skel() (at init time), which creates the base node, and spapr_populate_vdevice() (at reset time) which creates the nodes for each individual virtual device. This consolidates both into a single function called from spapr_build_fdt(). Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
fca5f2dc6c
commit
bf5a6696ba
3 changed files with 19 additions and 25 deletions
|
@ -80,7 +80,7 @@ struct VIOsPAPRBus {
|
|||
|
||||
extern VIOsPAPRBus *spapr_vio_bus_init(void);
|
||||
extern VIOsPAPRDevice *spapr_vio_find_by_reg(VIOsPAPRBus *bus, uint32_t reg);
|
||||
extern int spapr_populate_vdevice(VIOsPAPRBus *bus, void *fdt);
|
||||
void spapr_dt_vdevice(VIOsPAPRBus *bus, void *fdt);
|
||||
extern gchar *spapr_vio_stdout_path(VIOsPAPRBus *bus);
|
||||
|
||||
static inline qemu_irq spapr_vio_qirq(VIOsPAPRDevice *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue