mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
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:
parent
ffb658d9bb
commit
1ac461d40d
2 changed files with 17 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ VideoPortAcquireSpinLock@12
|
|||
VideoPortAcquireSpinLockAtDpcLevel@8
|
||||
VideoPortAllocateBuffer@12
|
||||
VideoPortAllocateCommonBuffer@24
|
||||
;VideoPortAllocateContiguousMemory
|
||||
VideoPortAllocateContiguousMemory
|
||||
VideoPortAllocatePool@16
|
||||
;VideoPortAssociateEventsWithDmaHandle
|
||||
VideoPortCheckForDeviceExistence@28
|
||||
|
|
Loading…
Reference in a new issue