[v10,17/18] powerpc/powernv: Functions to get/set PCI slot state
Michael Ellerman
mpe at ellerman.id.au
Fri Jun 17 20:32:10 AEST 2016
On Fri, 2016-20-05 at 06:41:41 UTC, Gavin Shan wrote:
> diff --git a/arch/powerpc/include/asm/opal-api.h b/arch/powerpc/include/asm/opal-api.h
> index 9bb8ddf..2417c86 100644
> --- a/arch/powerpc/include/asm/opal-api.h
> +++ b/arch/powerpc/include/asm/opal-api.h
> @@ -344,6 +348,18 @@ enum OpalPciResetState {
> OPAL_ASSERT_RESET = 1
> };
>
> +enum OpalPciSlotPresentenceState {
In skiboot this is called "OpalPciSlotPresence".
I've renamed it.
> + OPAL_PCI_SLOT_EMPTY = 0,
> + OPAL_PCI_SLOT_PRESENT = 1
> +};
> +
> +enum OpalPciSlotPowerState {
In skiboot this is called "OpalPciSlotPower".
I've renamed it.
> + OPAL_PCI_SLOT_POWER_OFF = 0,
> + OPAL_PCI_SLOT_POWER_ON = 1,
> + OPAL_PCI_SLOT_OFFLINE = 2,
> + OPAL_PCI_SLOT_ONLINE = 3
> +};
> +
> enum OpalSlotLedType {
> OPAL_SLOT_LED_TYPE_ID = 0, /* IDENTIFY LED */
> OPAL_SLOT_LED_TYPE_FAULT = 1, /* FAULT LED */
> @@ -378,6 +394,7 @@ enum opal_msg_type {
> OPAL_MSG_DPO = 5,
> OPAL_MSG_PRD = 6,
> OPAL_MSG_OCC = 7,
> + OPAL_MSG_PCI_HOTPLUG = 8,
I don't see this in skiboot?
It also doesn't seem to be used, so I've dropped it.
> OPAL_MSG_TYPE_MAX,
> };
>
cheers
More information about the Linuxppc-dev
mailing list