aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-06-10 15:03:42 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-06-14 16:00:16 +1000
commitbc66fb67aee6f9e6520120c2476d58f3899c9221 (patch)
tree378f502d261691a66fc19ff96ebf301c22c9c7fc /platforms
parent0bf9c3c44bf1bde1c7bec86d33a6e3ccb6e56c90 (diff)
downloadskiboot-bc66fb67aee6f9e6520120c2476d58f3899c9221.zip
skiboot-bc66fb67aee6f9e6520120c2476d58f3899c9221.tar.gz
skiboot-bc66fb67aee6f9e6520120c2476d58f3899c9221.tar.bz2
core/pci: Support PCI slot
Every PCIE bridge port or PHB is expected to be bound with PCI slot , to which various PCI slot's functionalities are attached (e.g. power, link, reset). This supports PCI slot: * PCI slot is reprsented by "struct pci_slot". * "struct pci_slot_ops" represents the functions supported on the PCI slot. It's initialized by PCI slot core at the beginning and allowed to be overrided by platform partially or completely. * On PCI hot plugging event, the PCI devices behind the slot are enumarated. Device sub-tree is populated and sent to OS by OPAL message. * On PCI hot unplugging event, the PCI devices behind the slot are destroyed. Device sub-tree is removed and the slot is powered off. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/ibm-fsp/lxvpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/platforms/ibm-fsp/lxvpd.c b/platforms/ibm-fsp/lxvpd.c
index 90c9e09..542c49a 100644
--- a/platforms/ibm-fsp/lxvpd.c
+++ b/platforms/ibm-fsp/lxvpd.c
@@ -24,6 +24,7 @@
#include <vpd.h>
#include <pci.h>
#include <pci-cfg.h>
+#include <pci-slot.h>
#include "lxvpd.h"