@@ -449,8 +449,8 @@ static void isa_ipmi_bt_realize(DeviceState *dev, Error **errp)
iib->fwinfo.memspace = IPMI_MEMSPACE_IO;
iib->fwinfo.irq_type = IPMI_LEVEL_IRQ;
iib->fwinfo.interrupt_number = iib->isairq;
- iib->fwinfo.acpi_parent = "\\_SB.PCI0.ISA";
iib->fwinfo.i2c_slave_address = iib->bt.bmc->slave_addr;
+ iib->fwinfo.dev = dev;
ipmi_add_fwinfo(&iib->fwinfo, errp);
}
@@ -413,7 +413,7 @@ static void ipmi_isa_realize(DeviceState *dev, Error **errp)
iik->fwinfo.memspace = IPMI_MEMSPACE_IO;
iik->fwinfo.irq_type = IPMI_LEVEL_IRQ;
iik->fwinfo.interrupt_number = iik->isairq;
- iik->fwinfo.acpi_parent = "\\_SB.PCI0.ISA";
+ iik->fwinfo.dev = dev;
ipmi_add_fwinfo(&iik->fwinfo, errp);
}
@@ -196,7 +196,7 @@ typedef struct IPMIFwInfo {
IPMI_EDGE_IRQ
} irq_type;
- const char *acpi_parent;
+ DeviceState *dev;
} IPMIFwInfo;
void ipmi_add_fwinfo(IPMIFwInfo *info, Error **errp);