[Skiboot] [RFC PATCH 21/23] platforms/qemu: Add slot table

Frederic Barrat fbarrat at linux.ibm.com
Thu Aug 1 05:31:08 AEST 2019



Le 03/04/2019 à 11:09, Oliver O'Halloran a écrit :
> 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);
> +

qemu_phb_table is introduced in the next patch.

   Fred

>   	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,
> 



More information about the Skiboot mailing list