aboutsummaryrefslogtreecommitdiff
path: root/include/pci-slot.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2016-10-14 15:26:05 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-17 10:33:56 +1100
commit51931bad325e3feba934eaf95b422deeb24cf4e5 (patch)
tree984642f7ee72a5146c187fbbd24f7432e0a05299 /include/pci-slot.h
parent481ad7330e332770b1dcd2c9f56d0a2caac67755 (diff)
downloadskiboot-51931bad325e3feba934eaf95b422deeb24cf4e5.zip
skiboot-51931bad325e3feba934eaf95b422deeb24cf4e5.tar.gz
skiboot-51931bad325e3feba934eaf95b422deeb24cf4e5.tar.bz2
core/pci: Claim surprise hotplug capability
This claims PCIe surprise hotplug capability through device node's property "ibm,slot-surprise-pluggable". The slot has the capability when surprise hotplug is supported in its slot's capability bits or link state change reporting is supported in PCIe link capability bits. In order for link state events to be properly raised during surprise hotplug, the power supply to the slot should be always on. The slot's power state should be switched accordingly during fundamental reset. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/pci-slot.h')
-rw-r--r--include/pci-slot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci-slot.h b/include/pci-slot.h
index cf22432..694a448 100644
--- a/include/pci-slot.h
+++ b/include/pci-slot.h
@@ -161,6 +161,7 @@ struct pci_slot {
/* Slot information */
uint8_t pluggable;
+ uint8_t surprise_pluggable;
uint8_t power_ctl;
uint8_t power_led_ctl;
uint8_t attn_led_ctl;