git-svn-id: https://spexeah.com:8443/svn/Asuro@288 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
parent
5ab6edf121
commit
633c13c4d2
@ -1,63 +0,0 @@
|
|||||||
{ ************************************************
|
|
||||||
* Asuro
|
|
||||||
* Unit: Driver_Management
|
|
||||||
* Description: Manages Driver Loading
|
|
||||||
************************************************
|
|
||||||
* Author: K Morris
|
|
||||||
* Contributors:
|
|
||||||
************************************************ }
|
|
||||||
unit Driver_Management;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
util, strings;
|
|
||||||
|
|
||||||
type
|
|
||||||
PDevEx = ^TDevEx;
|
|
||||||
TDevEx = record
|
|
||||||
idN : uInt32;
|
|
||||||
ex : PDevEx;
|
|
||||||
end;
|
|
||||||
|
|
||||||
TBusIdentifier = (biUnknown, biPCI, biUSB, bii2c, biPCIe);
|
|
||||||
|
|
||||||
PDeviceIdentifier = ^TDeviceIdentifier;
|
|
||||||
TDeviceIdentifier = record
|
|
||||||
Bus : TBusIdentifier;
|
|
||||||
id0 : uInt32;
|
|
||||||
id1 : uInt32;
|
|
||||||
id2 : uInt32;
|
|
||||||
id3 : uint32;
|
|
||||||
ex : PDevEx;
|
|
||||||
end;
|
|
||||||
|
|
||||||
TDriverLoadCallback = procedure();
|
|
||||||
|
|
||||||
PDriverRegistration = ^TDriverRegistration;
|
|
||||||
TDriverRegistration = record
|
|
||||||
Identifier : TDeviceIdentifier;
|
|
||||||
Driver_Load : TDriverLoadCallback;
|
|
||||||
Loaded : Boolean;
|
|
||||||
Next : PDriverRegistration;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure RegisterDriver(DeviceID : PDeviceIdentifier; Load_Callback : TDriverLoadCallback);
|
|
||||||
procedure RegisterDevice(DeviceID : PDeviceIdentifier);
|
|
||||||
|
|
||||||
var
|
|
||||||
Root : PDriverRegistration = nil;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
procedure RegisterDriver(DeviceID : PDeviceIdentifier; Load_Callback : TDriverLoadCallback);
|
|
||||||
begin
|
|
||||||
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure RegisterDevice(DeviceID : PDeviceIdentifier);
|
|
||||||
begin
|
|
||||||
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
|
@ -26,7 +26,7 @@ uses
|
|||||||
vmemorymanager,
|
vmemorymanager,
|
||||||
pmemorymanager,
|
pmemorymanager,
|
||||||
lmemorymanager,
|
lmemorymanager,
|
||||||
driver_management,
|
drivermanagement,
|
||||||
tss,
|
tss,
|
||||||
scheduler,
|
scheduler,
|
||||||
PCI,
|
PCI,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user