diff options
author | Adam Jackson <ajax@redhat.com> | 2009-11-18 14:12:57 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-12-02 15:50:29 -0500 |
commit | b2fbe63bdf3522c5d3df5eda2ca3c3b8770c02c9 (patch) | |
tree | d34d74aab2c6612e3cfe5cff40ea9762a5e2c7d3 /include | |
parent | b2b3c3bfdac23c1c8e33f47b28f22c1d4a78cc71 (diff) |
Add pci_device_get_parent_bridge()
Copied from linuxPci.c in the X server.
Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/pciaccess.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pciaccess.h b/include/pciaccess.h index 067954f..8128656 100644 --- a/include/pciaccess.h +++ b/include/pciaccess.h @@ -131,6 +131,8 @@ struct pci_device *pci_device_next(struct pci_device_iterator *iter); struct pci_device *pci_device_find_by_slot(uint32_t domain, uint32_t bus, uint32_t dev, uint32_t func); +struct pci_device *pci_device_get_parent_bridge(struct pci_device *dev); + void pci_get_strings(const struct pci_id_match *m, const char **device_name, const char **vendor_name, const char **subdevice_name, const char **subvendor_name); |