HOWTO: Get an Interrupt in a PCI/AGP Video Miniport DriverID: Q195389
|
This article documents and clarifies the Windows NT DDK Documentation for a video miniport driver to establish a Videoport callable interrupt routine. This article applies to PCI and AGP miniport drivers.
During the operating system's initialization in the miniport's DriverEntry
routine, the function dispatch table entry named HwInterrupt needs to be
initialized to point to the interrupt service routine. VideoportInitailize
needs to be called as before.
Within the HwFindAdapter routine, you can call VideoportGetAccessRanges
with the third and fourth parameters set to NULL. For PCI and AGP buses
this allows VideoPortGetAccessRanges to call HalAssignSlotResources on your
behalf and get the Bus-Relative values for InterruptLevel and
InterruptVector fields in the ConfigInfo Structure.
HalAssignSlotResources will have already been called, but
HalGetInterruptVector will be called after you return from HwFindAdapter if
and only if HwInterrupt points to a function and, either InterruptLevel or
InterruptVector fields contain a value.
Windows NT DDK Help; Search on: "HwFindAdapter";
Keywords : kbDDK kbNTOS400 kbVideo
Version :
Platform :
Issue type : kbhowto
Last Reviewed: March 6, 1999