diff options
| author | Matthew Dobson <colpatch@us.ibm.com> | 2004-01-28 22:28:51 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2004-01-28 22:28:51 -0800 |
| commit | 68b308e82cafcd64e2a102b410b8db3077aae44d (patch) | |
| tree | 2b62b3d6b0f0880f1e5a098268ca77510c3f861e /include/linux/pci.h | |
| parent | 78d65a24de3cb781dae0f604680d48e1a295a641 (diff) | |
[PATCH] PCI: add pci_bus sysfs class
This is needed to show pci bus topology to userspace properly.
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d6a87a2eb263..33980d0a753c 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -473,10 +473,12 @@ struct pci_bus { char name[48]; - struct device * dev; + struct device *bridge; + struct class_device class_dev; }; -#define pci_bus_b(n) list_entry(n, struct pci_bus, node) +#define pci_bus_b(n) list_entry(n, struct pci_bus, node) +#define to_pci_bus(n) container_of(n, struct pci_bus, class_dev) /* * Error values that may be returned by PCI functions. |
