[Skiboot] [PATCH v11 21/23] core/opal: Use PCI slot and new APIs for slot states
Russell Currey
ruscur at russell.cc
Thu Jun 2 14:25:48 AEST 2016
On Fri, 2016-05-20 at 16:32 +1000, Gavin Shan wrote:
> The various reset requests are completed by PHB's callbacks. All
> of them (except reset on IODA table or error injection) are covered
> by PCI slot. opal_pci_poll() faces similar situation.
>
> This reimplements opal_pci_reset() and opal_pci_poll() based on
> the callbacks provided by PCI slot instead of PHB. Also, couple of
> new APIs are introduced based on the callbacks in PCI slot as below:
>
> * opal_pci_get_presence_state(): Check if there is adapter presented
> behind the specified PHB or PCI slot.
> * opal_pci_get_power_state(): Returns power supply state (on or off)
> on the specified PHB or PCI slot.
> * opal_pci_set_power_state(): Sets power supply state (on or off)
> on the specified PHB or PCI slot.
>
> Eventually, the definition of unused PHB's callbacks are removed.
>
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
> ---
Reviewed-by: Russell Currey <ruscur at russell.cc>
More information about the Skiboot
mailing list