From c3fe42d1b351a631d3668d3b665642bfb67381e2 Mon Sep 17 00:00:00 2001 From: aaron Date: Mon, 22 May 2017 19:12:21 +0000 Subject: [PATCH] git-svn-id: https://spexeah.com:8443/svn/Asuro@197 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c --- src/driver/PCI.pas | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/driver/PCI.pas b/src/driver/PCI.pas index 631f53d7..0ec1afa0 100644 --- a/src/driver/PCI.pas +++ b/src/driver/PCI.pas @@ -241,10 +241,13 @@ implementation procedure init(); var i : uint16; + ii : uint16; begin - //enumerate master pci bus devices - for i:=0 to 31 do begin - check_device(0, i); + //enumerate pci bus + for ii:=0 to 256 do begin + for i:=0 to 31 do begin + check_device(ii, i); + end; end; //TODO while there are unchecked nested busses, check nested busses