git-svn-id: https://spexeah.com:8443/svn/Asuro@222 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
9daebbf49b
commit
6fccbddc62
@ -244,13 +244,12 @@ var
|
|||||||
ii : uint16;
|
ii : uint16;
|
||||||
begin
|
begin
|
||||||
//enumerate pci bus
|
//enumerate pci bus
|
||||||
for ii:=0 to 32 do begin
|
for ii:=0 to 256 do begin
|
||||||
for i:=0 to 256 do begin
|
for i:=0 to 31 do begin
|
||||||
check_device(ii, i);
|
check_device(ii, i);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//TODO while there are unchecked nested busses, check nested busses
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure loadConfig(bus : uint8; slot : uint8; func : uint8; offset : uint8);
|
procedure loadConfig(bus : uint8; slot : uint8; func : uint8; offset : uint8);
|
||||||
@ -277,7 +276,7 @@ begin
|
|||||||
if vendor_id = $FFFF then exit;
|
if vendor_id = $FFFF then exit;
|
||||||
|
|
||||||
isDeviceb := isDevice(bus, device, 0, 8);
|
isDeviceb := isDevice(bus, device, 0, 8);
|
||||||
if isDeviceb >= 0 then begin
|
if isDeviceb = 1 then begin
|
||||||
devices[device_count] := read_device_config(bus, device, 0, 0);
|
devices[device_count] := read_device_config(bus, device, 0, 0);
|
||||||
device_count := device_count + 1;
|
device_count := device_count + 1;
|
||||||
check_device := true;
|
check_device := true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user