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