From 794da6b4b025ae69e7941deb7c654fcc5d03f8b4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 7 Jun 2017 13:44:46 +0200 Subject: careful with gaps in PCI functions (see WYOOS tutorial, Ep.11) --- doc/README.PCI | 5 +++++ src/pci.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/README.PCI b/doc/README.PCI index b73c282..f587ab3 100644 --- a/doc/README.PCI +++ b/doc/README.PCI @@ -13,6 +13,11 @@ 7010 82371SB PIIX3 IDE [Natoma/Triton II] 1af4 1100 Qemu virtual machine +0:1.3: 8086:7113 (class 6:80, rev: 3) +8086 Intel +7113 82371AB/EB/MB PIIX4 ACPI + 1af4 1100 Qemu virtual machine + 0:2.0: 1234:1111 (class 3:0, rev: 2) 1234 Technical Corp 1111 QEMU Standard VGA diff --git a/src/pci.c b/src/pci.c index 3edb78a..af96703 100644 --- a/src/pci.c +++ b/src/pci.c @@ -62,7 +62,7 @@ void pci_controller_scan( pci_controller_t *controller ) // no device if( device_descriptor.device_id == 0xFFFF ) { - break; + continue; } printf( "%X:%X.%d: %X:%X (class %X:%X, rev: %d)\n", -- cgit v1.2.3-54-g00ecf