implement VideoPortAllocateContiguousMemory after msdn documations (need be tested) see msdn http://msdn2.microsoft.com/en-us/library/aa479107.aspx

remove assert on VideoPortReleaseDeviceLock and VideoPortAcquireDeviceLock
it should not be a assernt if any of thuse api  success

svn path=/trunk/; revision=27021
This commit is contained in:
Magnus Olsen 2007-06-05 22:51:44 +00:00
parent ffb658d9bb
commit 1ac461d40d
2 changed files with 17 additions and 3 deletions

View file

@ -1342,7 +1342,7 @@ VideoPortAcquireDeviceLock(
DeviceExtension = VIDEO_PORT_GET_DEVICE_EXTENSION(HwDeviceExtension);
Status = KeWaitForMutexObject(&DeviceExtension->DeviceLock, Executive,
KernelMode, FALSE, NULL);
ASSERT(Status == STATUS_SUCCESS);
// ASSERT(Status == STATUS_SUCCESS);
}
/*
@ -1360,7 +1360,7 @@ VideoPortReleaseDeviceLock(
DPRINT("VideoPortReleaseDeviceLock\n");
DeviceExtension = VIDEO_PORT_GET_DEVICE_EXTENSION(HwDeviceExtension);
Status = KeReleaseMutex(&DeviceExtension->DeviceLock, FALSE);
ASSERT(Status == 0);
//ASSERT(Status == 0);
}
/*
@ -1373,3 +1373,17 @@ VpNotifyEaData(
IN PVOID Data)
{
}
/*
* @implemented
*/
PVOID NTAPI
VideoPortAllocateContiguousMemory(
IN PVOID HwDeviceExtension,
IN ULONG NumberOfBytes,
IN PHYSICAL_ADDRESS HighestAcceptableAddress
)
{
return MmAllocateContiguousMemory(NumberOfBytes, HighestAcceptableAddress);
}

View file

@ -8,7 +8,7 @@ VideoPortAcquireSpinLock@12
VideoPortAcquireSpinLockAtDpcLevel@8
VideoPortAllocateBuffer@12
VideoPortAllocateCommonBuffer@24
;VideoPortAllocateContiguousMemory
VideoPortAllocateContiguousMemory
VideoPortAllocatePool@16
;VideoPortAssociateEventsWithDmaHandle
VideoPortCheckForDeviceExistence@28