Author: greatlrd
Date: Fri Jun 8 01:13:06 2007
New Revision: 27062
URL:
http://svn.reactos.org/svn/reactos?rev=27062&view=rev
Log:
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.
Modified:
trunk/reactos/drivers/video/videoprt/dma.c
trunk/reactos/drivers/video/videoprt/videoprt.def
Modified: trunk/reactos/drivers/video/videoprt/dma.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/dma…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/dma.c (original)
+++ trunk/reactos/drivers/video/videoprt/dma.c Fri Jun 8 01:13:06 2007
@@ -75,7 +75,7 @@
IN PVOID HwDeviceExtension,
IN PVP_DMA_ADAPTER VpDmaAdapter)
{
- DPRINT("VideoPortPutDmaAdapter: Unimplemented.\n");
+ HalPutDmaAdapter((PADAPTER_OBJECT)VpDmaAdapter);
}
/*
@@ -117,3 +117,28 @@
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);
+}
Modified: trunk/reactos/drivers/video/videoprt/videoprt.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/vid…
==============================================================================
--- trunk/reactos/drivers/video/videoprt/videoprt.def (original)
+++ trunk/reactos/drivers/video/videoprt/videoprt.def Fri Jun 8 01:13:06 2007
@@ -27,7 +27,7 @@
VideoPortEnableInterrupt@4
VideoPortEnumerateChildren@8
;VideoPortFlushRegistry
-;VideoPortFreeCommonBuffer
+VideoPortFreeCommonBuffer
VideoPortFreeDeviceBase@8
VideoPortFreePool@8
VideoPortGetAccessRanges@32