From f363db54f84558b2ab647386917e5613e7f9e6ac Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 23 Sep 2009 17:16:27 +0000 Subject: (pci_probe) retrieve PCI revision (#42576) --- pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pci.c') diff --git a/pci.c b/pci.c index 9d146fd..a9c6e40 100644 --- a/pci.c +++ b/pci.c @@ -86,6 +86,7 @@ extern struct pciusb_entries pci_probe(void) { /* we divide by 2 because we address the array as a word array since we read a word */ e->subvendor = bufi[PCI_SUBSYSTEM_VENDOR_ID/2]; // == (u16)!(buf[PCI_SUBSYSTEM_VENDOR_ID] | (buf[PCI_SUBSYSTEM_VENDOR_ID+1] << 8)) e->subdevice = bufi[PCI_SUBSYSTEM_ID/2]; + e->pci_revision = buf[PCI_CLASS_REVISION]; if ((e->subvendor == 0 && e->subdevice == 0) || (e->subvendor == e->vendor && e->subdevice == e->device)) { -- cgit v1.2.1