implement VideoPortFreeCommonBuffer,

implement VideoPortPutDmaAdapter use halPutDmaAdapter for this

we already have all code for it, it was simple write a warper for both so they works, both api need be tested hard.

svn path=/trunk/; revision=27062
This commit is contained in:
Magnus Olsen 2007-06-07 21:13:06 +00:00
parent 69be2950f9
commit 48d33901ec
2 changed files with 27 additions and 2 deletions

View file

@ -75,7 +75,7 @@ VideoPortPutDmaAdapter(
IN PVOID HwDeviceExtension,
IN PVP_DMA_ADAPTER VpDmaAdapter)
{
DPRINT("VideoPortPutDmaAdapter: Unimplemented.\n");
HalPutDmaAdapter((PADAPTER_OBJECT)VpDmaAdapter);
}
/*
@ -117,3 +117,28 @@ VideoPortGetDmaAdapter(
DPRINT("Adapter %X\n", Adapter);
return(Adapter);
}
/*
* @implemented
*/
VOID NTAPI
VideoPortFreeCommonBuffer( IN PVOID HwDeviceExtension,
IN ULONG Length,
IN PVOID VirtualAddress,
IN PHYSICAL_ADDRESS LogicalAddress,
IN BOOLEAN CacheEnabled)
{
DEVICE_DESCRIPTION DeviceDescription;
PVP_DMA_ADAPTER VpDmaAdapter;
VpDmaAdapter = VideoPortGetDmaAdapter(
HwDeviceExtension,
(PVP_DEVICE_DESCRIPTION)&DeviceDescription);
HalFreeCommonBuffer(
(PADAPTER_OBJECT)VpDmaAdapter,
Length,
LogicalAddress,
VirtualAddress,
CacheEnabled);
}

View file

@ -27,7 +27,7 @@ VideoPortDisableInterrupt@4
VideoPortEnableInterrupt@4
VideoPortEnumerateChildren@8
;VideoPortFlushRegistry
;VideoPortFreeCommonBuffer
VideoPortFreeCommonBuffer
VideoPortFreeDeviceBase@8
VideoPortFreePool@8
VideoPortGetAccessRanges@32