summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-06-07 13:44:46 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-06-07 13:44:46 +0200
commit794da6b4b025ae69e7941deb7c654fcc5d03f8b4 (patch)
tree96881044bc31bdf206f2b60a4dd18ec486d0cf31
parentbf8813b5bf010458504e24e29f684a191d8a9706 (diff)
downloadabaos-794da6b4b025ae69e7941deb7c654fcc5d03f8b4.tar.gz
abaos-794da6b4b025ae69e7941deb7c654fcc5d03f8b4.tar.bz2
careful with gaps in PCI functions (see WYOOS tutorial, Ep.11)
-rw-r--r--doc/README.PCI5
-rw-r--r--src/pci.c2
2 files changed, 6 insertions, 1 deletions
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",