diff options
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index ff30b3c91aad..e0eff35825a6 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -105,3 +105,16 @@ pci_match_one_device(const struct pci_device_id *id, const struct pci_dev *dev) | |||
105 | } | 105 | } |
106 | 106 | ||
107 | struct pci_dev *pci_find_upstream_pcie_bridge(struct pci_dev *pdev); | 107 | struct pci_dev *pci_find_upstream_pcie_bridge(struct pci_dev *pdev); |
108 | |||
109 | /* PCI slot sysfs helper code */ | ||
110 | #define to_pci_slot(s) container_of(s, struct pci_slot, kobj) | ||
111 | |||
112 | extern struct kset *pci_slots_kset; | ||
113 | |||
114 | struct pci_slot_attribute { | ||
115 | struct attribute attr; | ||
116 | ssize_t (*show)(struct pci_slot *, char *); | ||
117 | ssize_t (*store)(struct pci_slot *, const char *, size_t); | ||
118 | }; | ||
119 | #define to_pci_slot_attr(s) container_of(s, struct pci_slot_attribute, attr) | ||
120 | |||