How To Get an Interrupt in a PCI/AGP Video Miniport Driver (195389)



The information in this article applies to:

  • Microsoft Win32 Device Driver Kit (DDK) for Windows NT 4.0

This article was previously published under Q195389

SUMMARY

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.

MORE INFORMATION

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.

REFERENCES

Windows NT DDK Help; Search on: "HwFindAdapter";

Modification Type:MinorLast Reviewed:10/6/2004
Keywords:kbhowto kbVideoTech KB195389