mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
[VIDEOPRT]
- Fix MSVC warnings svn path=/trunk/; revision=52453
This commit is contained in:
parent
6d9cf47ce2
commit
352fd948b1
6 changed files with 10 additions and 11 deletions
|
@ -29,7 +29,7 @@ NTSTATUS
|
||||||
IopInitiatePnpIrp(
|
IopInitiatePnpIrp(
|
||||||
PDEVICE_OBJECT DeviceObject,
|
PDEVICE_OBJECT DeviceObject,
|
||||||
PIO_STATUS_BLOCK IoStatusBlock,
|
PIO_STATUS_BLOCK IoStatusBlock,
|
||||||
ULONG MinorFunction,
|
UCHAR MinorFunction,
|
||||||
PIO_STACK_LOCATION Stack OPTIONAL)
|
PIO_STACK_LOCATION Stack OPTIONAL)
|
||||||
{
|
{
|
||||||
PDEVICE_OBJECT TopDeviceObject;
|
PDEVICE_OBJECT TopDeviceObject;
|
||||||
|
|
|
@ -203,8 +203,7 @@ VideoPortFreeCommonBuffer(IN PVOID HwDeviceExtension,
|
||||||
ASSERT(VpDmaAdapter->Adapter != NULL);
|
ASSERT(VpDmaAdapter->Adapter != NULL);
|
||||||
ASSERT(VpDmaAdapter->MapRegisters != 0);
|
ASSERT(VpDmaAdapter->MapRegisters != 0);
|
||||||
|
|
||||||
return VideoPortReleaseCommonBuffer(HwDeviceExtension, (PVP_DMA_ADAPTER)VpDmaAdapter, Length, LogicalAddress, VirtualAddress, CacheEnabled);
|
VideoPortReleaseCommonBuffer(HwDeviceExtension, (PVP_DMA_ADAPTER)VpDmaAdapter, Length, LogicalAddress, VirtualAddress, CacheEnabled);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -60,8 +60,8 @@ IntInt10AllocateBuffer(
|
||||||
return ERROR_NOT_ENOUGH_MEMORY;
|
return ERROR_NOT_ENOUGH_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
*Seg = (ULONG)MemoryAddress >> 4;
|
*Seg = (USHORT)((ULONG)MemoryAddress >> 4);
|
||||||
*Off = (ULONG)MemoryAddress & 0xF;
|
*Off = (USHORT)((ULONG)MemoryAddress & 0xF);
|
||||||
|
|
||||||
INFO_(VIDEOPRT, "- Segment: %x\n", (ULONG)MemoryAddress >> 4);
|
INFO_(VIDEOPRT, "- Segment: %x\n", (ULONG)MemoryAddress >> 4);
|
||||||
INFO_(VIDEOPRT, "- Offset: %x\n", (ULONG)MemoryAddress & 0xF);
|
INFO_(VIDEOPRT, "- Offset: %x\n", (ULONG)MemoryAddress & 0xF);
|
||||||
|
@ -182,8 +182,8 @@ IntInt10CallBios(
|
||||||
BiosArguments->Esi = BiosContext.Esi;
|
BiosArguments->Esi = BiosContext.Esi;
|
||||||
BiosArguments->Edi = BiosContext.Edi;
|
BiosArguments->Edi = BiosContext.Edi;
|
||||||
BiosArguments->Ebp = BiosContext.Ebp;
|
BiosArguments->Ebp = BiosContext.Ebp;
|
||||||
BiosArguments->SegDs = BiosContext.SegDs;
|
BiosArguments->SegDs = (USHORT)BiosContext.SegDs;
|
||||||
BiosArguments->SegEs = BiosContext.SegEs;
|
BiosArguments->SegEs = (USHORT)BiosContext.SegEs;
|
||||||
|
|
||||||
/* Detach and return status */
|
/* Detach and return status */
|
||||||
IntDetachFromCSRSS(&CallingProcess, &ApcState);
|
IntDetachFromCSRSS(&CallingProcess, &ApcState);
|
||||||
|
|
|
@ -125,7 +125,7 @@ VideoPortEnableInterrupt(IN PVOID HwDeviceExtension)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Re-enable the interrupt and return */
|
/* Re-enable the interrupt and return */
|
||||||
InterruptValid = HalEnableSystemInterrupt(DeviceExtension->InterruptVector,
|
InterruptValid = HalEnableSystemInterrupt((UCHAR)DeviceExtension->InterruptVector,
|
||||||
0,
|
0,
|
||||||
DeviceExtension->InterruptLevel);
|
DeviceExtension->InterruptLevel);
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ VideoPortDisableInterrupt(IN PVOID HwDeviceExtension)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disable the interrupt and return */
|
/* Disable the interrupt and return */
|
||||||
HalDisableSystemInterrupt(DeviceExtension->InterruptVector,
|
HalDisableSystemInterrupt((UCHAR)DeviceExtension->InterruptVector,
|
||||||
0);
|
0);
|
||||||
return NO_ERROR;
|
return NO_ERROR;
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -79,7 +79,7 @@ IntVideoPortMapMemory(
|
||||||
IN PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension,
|
IN PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension,
|
||||||
IN PHYSICAL_ADDRESS IoAddress,
|
IN PHYSICAL_ADDRESS IoAddress,
|
||||||
IN ULONG NumberOfUchars,
|
IN ULONG NumberOfUchars,
|
||||||
IN UCHAR InIoSpace,
|
IN ULONG InIoSpace,
|
||||||
IN HANDLE ProcessHandle,
|
IN HANDLE ProcessHandle,
|
||||||
OUT VP_STATUS *Status)
|
OUT VP_STATUS *Status)
|
||||||
{
|
{
|
||||||
|
|
|
@ -116,7 +116,7 @@ NTSTATUS
|
||||||
IopInitiatePnpIrp(
|
IopInitiatePnpIrp(
|
||||||
PDEVICE_OBJECT DeviceObject,
|
PDEVICE_OBJECT DeviceObject,
|
||||||
PIO_STATUS_BLOCK IoStatusBlock,
|
PIO_STATUS_BLOCK IoStatusBlock,
|
||||||
ULONG MinorFunction,
|
UCHAR MinorFunction,
|
||||||
PIO_STACK_LOCATION Stack OPTIONAL);
|
PIO_STACK_LOCATION Stack OPTIONAL);
|
||||||
|
|
||||||
NTSTATUS NTAPI
|
NTSTATUS NTAPI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue