git-svn-id: https://spexeah.com:8443/svn/Asuro@470 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
32
src/driver/exp/testdriver.pas
Normal file
32
src/driver/exp/testdriver.pas
Normal file
@ -0,0 +1,32 @@
|
||||
unit testdriver;
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
console, drivermanagement;
|
||||
|
||||
procedure init;
|
||||
|
||||
implementation
|
||||
|
||||
function load(ptr : void) : boolean;
|
||||
begin
|
||||
console.outputln('DUMMY DRIVER', 'LOADED.')
|
||||
end;
|
||||
|
||||
procedure init;
|
||||
var
|
||||
devID : TDeviceIdentifier;
|
||||
|
||||
begin
|
||||
devID.bus:= biPCI; { PCI BUS }
|
||||
devID.id0:= idANY; { ANY DEVICE ID }
|
||||
devID.id1:= $00000006; { CLASS }
|
||||
devID.id2:= $00000000; { SUBCLASS }
|
||||
devID.id3:= $00000000; { PROGIF }
|
||||
devID.id4:= idANY;
|
||||
devID.ex:= nil; { NO EXTENDED INFO }
|
||||
drivermanagement.register_driver('DUMMY DRIVER', @devID, @load);
|
||||
end;
|
||||
|
||||
end.
|
Reference in New Issue
Block a user