diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-02-26 13:55:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-02-26 13:55:42 +0000 |
commit | 2e3094e9259745d256062e8933ccc28dfb2a6a2e (patch) | |
tree | f8f5b18987cba8112069daf8e3390085d6fdc74c | |
parent | b5a5a519d9011052f83bd5fbbbed5f2ad1ac9210 (diff) | |
download | ldetect-2e3094e9259745d256062e8933ccc28dfb2a6a2e.tar ldetect-2e3094e9259745d256062e8933ccc28dfb2a6a2e.tar.gz ldetect-2e3094e9259745d256062e8933ccc28dfb2a6a2e.tar.bz2 ldetect-2e3094e9259745d256062e8933ccc28dfb2a6a2e.tar.xz ldetect-2e3094e9259745d256062e8933ccc28dfb2a6a2e.zip |
export PCI domain
-rw-r--r-- | libldetect.h | 1 | ||||
-rw-r--r-- | pci.c | 1 |
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 */ @@ -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; |