[Skiboot] [RFC PATCH 05/23] core/pci-slot: Add assert_perst() operation
Oliver O'Halloran
oohall at gmail.com
Wed Apr 3 20:09:02 AEDT 2019
Add a seperate slot operation to control a PCI slot's PERST signal. This
is to allow generic code to perform a fundemental reset of the slot
without needing to know any hardware (or platform) specific details
about the slot.
Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
include/pci-slot.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/pci-slot.h b/include/pci-slot.h
index ac1cfbef8f46..cb36d7b6df5a 100644
--- a/include/pci-slot.h
+++ b/include/pci-slot.h
@@ -102,6 +102,7 @@ struct pci_slot_ops {
int64_t (*get_latch_state)(struct pci_slot *slot, uint8_t *val);
int64_t (*set_power_state)(struct pci_slot *slot, uint8_t val);
int64_t (*set_attention_state)(struct pci_slot *slot, uint8_t val);
+ int64_t (*assert_perst)(struct pci_slot *slot, bool val);
/* SM based functions for reset */
void (*prepare_link_change)(struct pci_slot *slot, bool is_up);
--
2.20.1
More information about the Skiboot
mailing list