summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libldetect.h1
-rw-r--r--pci.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libldetect.h b/libldetect.h
index b588560..2e663bb 100644
--- a/libldetect.h
+++ b/libldetect.h
@@ -12,6 +12,7 @@ struct pciusb_entry {
unsigned short subdevice; /* 0xffff if not probe_type'd or no subid */
unsigned long class_id; /* 0 if not probe_type'd */
+ unsigned short pci_domain; /* pci domain id (16 bits wide in libpci) */
unsigned short pci_bus; /* pci bus id 8 bits wide */
unsigned short pci_device; /* pci device id 5 bits wide */
unsigned short pci_function; /* pci function id 3 bits wide */
diff --git a/pci.c b/pci.c
index d833e34..ffaf16f 100644
--- a/pci.c
+++ b/pci.c
@@ -69,6 +69,7 @@ extern struct pciusb_entries pci_probe(void) {
e->vendor = dev->vendor_id;
e->device = dev->device_id;
+ e->pci_bus = dev->domain;
e->pci_bus = dev->bus;
e->pci_device = dev->dev;
e->pci_function = dev->func;