mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
814 B
52 lines
814 B
/*++
|
|
|
|
Copyright (c) 1991-1995 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Sync.c
|
|
|
|
Abstract:
|
|
|
|
This module contains the DrvSynchronize routine.
|
|
|
|
Environment:
|
|
|
|
User mode.
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "driver.h"
|
|
|
|
VOID
|
|
DrvSynchronize(
|
|
DHPDEV dhpdev,
|
|
RECTL *prcl
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
This routine gets called when GDI needs to synchronize with the
|
|
driver. That's when GDI wants to read or write into the framebuffer.
|
|
This routine waits for the accelerator to be idle before returning.
|
|
|
|
Arguments:
|
|
|
|
dhpdev - Handle of PDEV
|
|
prcl - rectangle where GDI wants to write to. Since the driver
|
|
doesn't keep track of where the accelerator is actually
|
|
writing, this argument is Not Used.
|
|
|
|
Return Value:
|
|
|
|
None.
|
|
|
|
--*/
|
|
|
|
{
|
|
WaitForJaguarIdle();
|
|
}
|