3 Hardware interaction helper
6 Andrew Greenwood (silverblade@reactos.org)
12 This uses some obsolete calls (eg: HalGetInterruptVector).
13 Might be worth updating this in future to use some of the
14 recommended functions like IoReportDetectedDevice and
15 IoReportResourceForDetection...
22 /* NOTE: Disconnect using IoDisconnectInterrupt */
25 LegacyAttachInterrupt(
26 IN PDEVICE_OBJECT DeviceObject
,
28 IN PKSERVICE_ROUTINE ServiceRoutine
,
29 OUT PKINTERRUPT
* InterruptObject
)
36 DPRINT("Obtaining interrupt vector");
38 Vector
= HalGetInterruptVector(Isa
,
45 DPRINT("Vector %d", Vector
);
46 DPRINT("Connecting IRQ %d", Irq
);
48 Status
= IoConnectInterrupt(InterruptObject
,
60 if ( Status
== STATUS_INVALID_PARAMETER
)
62 Status
= STATUS_DEVICE_CONFIGURATION_ERROR
;