diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2018-04-10 17:29:19 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-11 17:59:57 -0500 |
commit | 778d86bf9e5b9cf61986f6d316707771eed1d409 (patch) | |
tree | 16b18a6d01526d99f20a8dc5c083bb872c99d9c2 /include | |
parent | ee7bb4b391d564bd56060790c3a6abf9082e39e6 (diff) | |
download | skiboot-778d86bf9e5b9cf61986f6d316707771eed1d409.zip skiboot-778d86bf9e5b9cf61986f6d316707771eed1d409.tar.gz skiboot-778d86bf9e5b9cf61986f6d316707771eed1d409.tar.bz2 |
core/pci: Set slot power limit when supported
The PCIe slot capability can be implemented in a root or switch
downstream port to set the maximum power a card is allowed to draw
from the system. This patch adds support for setting the power limit
when the platform has defined one.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/pci-slot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci-slot.h b/include/pci-slot.h index bb66d7c..cd75753 100644 --- a/include/pci-slot.h +++ b/include/pci-slot.h @@ -169,6 +169,7 @@ struct pci_slot { uint8_t card_desc; uint8_t card_mech; uint8_t wired_lanes; + uint8_t power_limit; /* * PCI slot is driven by state machine with polling function. |