HOWTO: Get an Interrupt in a PCI/AGP Video Miniport Driver

ID: Q195389


The information in this article applies to:


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";


Keywords          : kbDDK kbNTOS400 kbVideo 
Version           : 
Platform          : 
Issue type        : kbhowto 

Last Reviewed: March 6, 1999