git-svn-id: https://spexeah.com:8443/svn/Asuro@313 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
1 parent
5223a3e294
commit
883c983396
9 files changed
+20
-24
No files matched your search
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+15
-20
@@ -326,15 +326,12 @@ begin
|
|||||||
console.writestring(' ');
|
console.writestring(' ');
|
||||||
console.writehexln(device.prog_if);
|
console.writehexln(device.prog_if);
|
||||||
|
|
||||||
drivermanagement.register_device('PCI Device', DevID, @device);
|
|
||||||
|
|
||||||
kfree(void(DevID));
|
|
||||||
|
|
||||||
devices[device_count] := device;
|
devices[device_count] := device;
|
||||||
device_count := device_count + 1;
|
device_count := device_count + 1;
|
||||||
|
|
||||||
|
drivermanagement.register_device('PCI Device', DevID, @device);
|
||||||
|
kfree(void(DevID));
|
||||||
//if device.class_code = 1 then ata.init(device);
|
//if device.class_code = 1 then ata.init(device);
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function getDeviceInfo(class_code : uint8; subclass_code : uint8; prog_if : uint8; var count : uint32) : TDeviceArray;
|
function getDeviceInfo(class_code : uint8; subclass_code : uint8; prog_if : uint8; var count : uint32) : TDeviceArray;
|
||||||
@@ -343,27 +340,25 @@ var
|
|||||||
devices_out : array[0..31] of TPCI_Device;
|
devices_out : array[0..31] of TPCI_Device;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
console.writestring('DEV COUNT: ');
|
|
||||||
console.writeintln(device_count);
|
|
||||||
count := 0;
|
count := 0;
|
||||||
if prog_if <> $FF then begin
|
for i:=0 to device_count do begin
|
||||||
for i:=0 to device_count+1 do begin
|
{writehex(devices[i].class_code);
|
||||||
if (devices[i].class_code = class_code) and (devices[i].subclass_class = subclass_code) and (devices[i].prog_if = prog_if) then begin
|
writestring(' ?= ');
|
||||||
|
writehex(class_code);
|
||||||
|
writestring(' && ');
|
||||||
|
writehex(devices[i].subclass_class);
|
||||||
|
writestring(' ?= ');
|
||||||
|
writehex(subclass_code);
|
||||||
|
writestring(' && ');
|
||||||
|
writehex(devices[i].prog_if);
|
||||||
|
writestring(' ?= ');
|
||||||
|
writehex(prog_if);}
|
||||||
|
if (devices[i].class_code = class_code) and (devices[i].subclass_class = subclass_code) and ((devices[i].prog_if = prog_if) or (prog_if = $FF)) then begin
|
||||||
devices_out[count] := devices[i];
|
devices_out[count] := devices[i];
|
||||||
count := count + 1;
|
count := count + 1;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end else begin
|
|
||||||
for i:=0 to device_count+1 do begin
|
|
||||||
if (devices[i].class_code = class_code) and (devices[i].subclass_class = subclass_code) then begin
|
|
||||||
devices_out[count] := devices[i];
|
|
||||||
count := count + 1;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
getDeviceInfo := devices_out;
|
getDeviceInfo := devices_out;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
+5
-4
@@ -117,12 +117,13 @@ begin
|
|||||||
|
|
||||||
//drivers
|
//drivers
|
||||||
console.writestringln('DRIVERS: INIT BEGIN.');
|
console.writestringln('DRIVERS: INIT BEGIN.');
|
||||||
keyboard.init(keyboard_layout);
|
//keyboard.init(keyboard_layout);
|
||||||
mouse.init();
|
//mouse.init();
|
||||||
AHCI.init();
|
//AHCI.init();
|
||||||
testdriver.init();
|
//testdriver.init();
|
||||||
USB.init();
|
USB.init();
|
||||||
pci.init();
|
pci.init();
|
||||||
|
halt_and_catch_fire;
|
||||||
console.writestringln('DRIVERS: INIT END.');
|
console.writestringln('DRIVERS: INIT END.');
|
||||||
|
|
||||||
console.writestringln('');
|
console.writestringln('');
|
||||||
|
|||||||
Reference in new issue
Block a user