Home > other >  Help: confused, how to tie the external interrupt IRQ10 to drive the interrupt function
Help: confused, how to tie the external interrupt IRQ10 to drive the interrupt function

Time:12-25

Code:
ULONG vector;
KIRQL irql.
KAFFINITY affinity;

The vector=HalGetInterruptVector (ACPIBus,
0,
10,//external hardware interrupt, interrupt number 10.
10,//external hardware interrupt, interrupt number 10.
& Irql,
& Affinity
);
The vector=vector & amp; 0 XFF.

KdPrint ((" HalGetInterruptVector vector - % X irql - % X affinity - X % \ n ", vector, irql, affinity));

Status=IoConnectInterrupt (& amp; PDevExt - & gt; InterruptObject, PKSERVICE_ROUTINE OnInterrupt,
(PVOID) pDevExt, NULL, vector, irql, irql, LevelSensitive, FALSE, affinity, FALSE);


Function: the external interrupt IRQ10 OnInterrupt hook and interrupt function, 10 trigger interrupt into OnInterrupt function processing operations in the port,
Problem: IoConnectInterrupt function is not successful, return an error,
  • Related