[Skiboot] [RFC PATCH 21/23] platforms/qemu: Add slot table
Oliver O'Halloran
oohall at gmail.com
Wed Apr 3 20:09:18 AEDT 2019
Add a slot table to our QEMU platform file to allow testing of the OPAL
PCI hotplug operations.
Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
platforms/qemu/qemu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/platforms/qemu/qemu.c b/platforms/qemu/qemu.c
index 04bf3fb3f0ea..36275ecd50f0 100644
--- a/platforms/qemu/qemu.c
+++ b/platforms/qemu/qemu.c
@@ -37,6 +37,8 @@ static bool qemu_probe(void)
bt_device_present = true;
}
+ slot_table_init(qemu_phb_table);
+
return true;
}
@@ -53,6 +55,7 @@ DECLARE_PLATFORM(qemu) = {
.name = "Qemu",
.probe = qemu_probe,
.init = qemu_init,
+ .pci_get_slot_info = slot_table_get_slot_info,
.external_irq = astbmc_ext_irq_serirq_cpld,
.cec_power_down = astbmc_ipmi_power_down,
.cec_reboot = astbmc_ipmi_reboot,
--
2.20.1
More information about the Skiboot
mailing list