powerpc/powernv: Functions to get/set PCI slot state
This exports 4 functions, which base on the corresponding OPAL APIs to get/set PCI slot status. Those functions are going to be used by PowerNV PCI hotplug driver: pnv_pci_get_device_tree() opal_get_device_tree() pnv_pci_get_presence_state() opal_pci_get_presence_state() pnv_pci_get_power_state() opal_pci_get_power_state() pnv_pci_set_power_state() opal_pci_set_power_state() Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
7e19bf32c8
commit
ea0d856cb2
@@ -302,3 +302,7 @@ OPAL_CALL(opal_prd_msg, OPAL_PRD_MSG);
|
||||
OPAL_CALL(opal_leds_get_ind, OPAL_LEDS_GET_INDICATOR);
|
||||
OPAL_CALL(opal_leds_set_ind, OPAL_LEDS_SET_INDICATOR);
|
||||
OPAL_CALL(opal_console_flush, OPAL_CONSOLE_FLUSH);
|
||||
OPAL_CALL(opal_get_device_tree, OPAL_GET_DEVICE_TREE);
|
||||
OPAL_CALL(opal_pci_get_presence_state, OPAL_PCI_GET_PRESENCE_STATE);
|
||||
OPAL_CALL(opal_pci_get_power_state, OPAL_PCI_GET_POWER_STATE);
|
||||
OPAL_CALL(opal_pci_set_power_state, OPAL_PCI_SET_POWER_STATE);
|
||||
|
Reference in New Issue
Block a user