VOID HwVidBankedMemoryCallback(
ULONG ReadBank, | |
ULONG WriteBank, | |
PVOID Context | |
); |
Every video miniport driver must have an HwVidBankedMemoryCallback function if it calls VideoPortMapBankedMemory to map a frame buffer that must be mapped in multiple Banks. HwVidBankedMemoryCallback is called by the Memory Manager whenever a location in the frame buffer referenced by a display driver requires the miniport driver to update the Bank Index Register in order to access that location.
HwVidBankedMemoryCallback updates the Bank Index Register but does not return any status.
The Memory Manager calls this function at IRQL APC_LEVEL. No HwVidBankedMemoryCallback function can be pageable. If calling this function causes a page fault, the system will hang.
This function must execute quickly; therefore, the function must only update the Bank Index Register and return.
VideoPortMapBankedMemory, IOCTL_VIDEO_MAP_VIDEO_MEMORY, IOCTL_VIDEO_UNMAP_MEMORY, IOCTL_VIDEO_SHARE_VIDEO_MEMORY, IOCTL_VIDEO_UNSHARE_VIDEO_MEMORY.