[VIDEOPRT]

Add neccessary function stubs for amd64

svn path=/trunk/; revision=53370
This commit is contained in:
Timo Kreuzer 2011-08-22 14:11:14 +00:00
parent ecde07a4c7
commit 7aaf6f25b9
2 changed files with 314 additions and 28 deletions

View file

@ -90,3 +90,261 @@ VideoPortUnlockPages(
UNIMPLEMENTED;
return 0;
}
#ifdef _M_AMD64
UCHAR
NTAPI
VideoPortReadPortUchar(
PUCHAR Port)
{
return READ_PORT_UCHAR(Port);
}
USHORT
NTAPI
VideoPortReadPortUshort(
PUSHORT Port)
{
return READ_PORT_USHORT(Port);
}
ULONG
NTAPI
VideoPortReadPortUlong(
PULONG Port)
{
return READ_PORT_ULONG(Port);
}
VOID
NTAPI
VideoPortReadPortBufferUchar(
PUCHAR Port,
PUCHAR Buffer,
ULONG Count)
{
READ_PORT_BUFFER_UCHAR(Port, Buffer, Count);
}
VOID
NTAPI
VideoPortReadPortBufferUshort(
PUSHORT Port,
PUSHORT Buffer,
ULONG Count)
{
READ_PORT_BUFFER_USHORT(Port, Buffer, Count);
}
VOID
NTAPI
VideoPortReadPortBufferUlong(
PULONG Port,
PULONG Buffer,
ULONG Count)
{
READ_PORT_BUFFER_ULONG(Port, Buffer, Count);
}
UCHAR
NTAPI
VideoPortReadRegisterUchar(
PUCHAR Register)
{
return READ_REGISTER_UCHAR(Register);
}
USHORT
NTAPI
VideoPortReadRegisterUshort(
PUSHORT Register)
{
return READ_REGISTER_USHORT(Register);
}
ULONG
NTAPI
VideoPortReadRegisterUlong(
PULONG Register)
{
return READ_REGISTER_ULONG(Register);
}
VOID
NTAPI
VideoPortReadRegisterBufferUchar(
PUCHAR Register,
PUCHAR Buffer,
ULONG Count)
{
READ_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
}
VOID
NTAPI
VideoPortReadRegisterBufferUshort(
PUSHORT Register,
PUSHORT Buffer,
ULONG Count)
{
READ_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
}
VOID
NTAPI
VideoPortReadRegisterBufferUlong(
PULONG Register,
PULONG Buffer,
ULONG Count)
{
READ_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
}
VOID
NTAPI
VideoPortWritePortUchar(
PUCHAR Port,
UCHAR Value)
{
WRITE_PORT_UCHAR(Port, Value);
}
VOID
NTAPI
VideoPortWritePortUshort(
PUSHORT Port,
USHORT Value)
{
WRITE_PORT_USHORT(Port, Value);
}
VOID
NTAPI
VideoPortWritePortUlong(
PULONG Port,
ULONG Value)
{
WRITE_PORT_ULONG(Port, Value);
}
VOID
NTAPI
VideoPortWritePortBufferUchar(
PUCHAR Port,
PUCHAR Buffer,
ULONG Count)
{
WRITE_PORT_BUFFER_UCHAR(Port, Buffer, Count);
}
VOID
NTAPI
VideoPortWritePortBufferUshort(
PUSHORT Port,
PUSHORT Buffer,
ULONG Count)
{
WRITE_PORT_BUFFER_USHORT(Port, Buffer, Count);
}
VOID
NTAPI
VideoPortWritePortBufferUlong(
PULONG Port,
PULONG Buffer,
ULONG Count)
{
WRITE_PORT_BUFFER_ULONG(Port, Buffer, Count);
}
VOID
NTAPI
VideoPortWriteRegisterUchar(
PUCHAR Register,
UCHAR Value)
{
WRITE_REGISTER_UCHAR(Register, Value);
}
VOID
NTAPI
VideoPortWriteRegisterUshort(
PUSHORT Register,
USHORT Value)
{
WRITE_REGISTER_USHORT(Register, Value);
}
VOID
NTAPI
VideoPortWriteRegisterUlong(
PULONG Register,
ULONG Value)
{
WRITE_REGISTER_ULONG(Register, Value);
}
VOID
NTAPI
VideoPortWriteRegisterBufferUchar(
PUCHAR Register,
PUCHAR Buffer,
ULONG Count)
{
WRITE_REGISTER_BUFFER_UCHAR(Register, Buffer, Count);
}
VOID
NTAPI
VideoPortWriteRegisterBufferUshort(
PUSHORT Register,
PUSHORT Buffer,
ULONG Count)
{
WRITE_REGISTER_BUFFER_USHORT(Register, Buffer, Count);
}
VOID
NTAPI
VideoPortWriteRegisterBufferUlong(
PULONG Register,
PULONG Buffer,
ULONG Count)
{
WRITE_REGISTER_BUFFER_ULONG(Register, Buffer, Count);
}
LONG
FASTCALL
VideoPortInterlockedDecrement(
IN PLONG Addend)
{
return _InterlockedDecrement(Addend);
}
LONG
FASTCALL
VideoPortInterlockedIncrement(
IN PLONG Addend)
{
return _InterlockedIncrement(Addend);
}
LONG
FASTCALL
VideoPortInterlockedExchange(
IN OUT PLONG Target,
IN LONG Value)
{
return InterlockedExchange(Target, Value);
}
VOID
NTAPI
VideoPortQuerySystemTime(
OUT PLARGE_INTEGER CurrentTime)
{
KeQuerySystemTime(CurrentTime);
}
#endif /* _M_AMD64 */

View file

@ -44,9 +44,12 @@
@ stdcall VideoPortGetVgaStatus(ptr ptr)
@ stdcall VideoPortInitialize(ptr ptr ptr ptr)
@ stdcall VideoPortInt10(ptr ptr)
@ fastcall VideoPortInterlockedDecrement(ptr) NTOSKRNL.InterlockedDecrement
@ fastcall VideoPortInterlockedExchange(ptr long) NTOSKRNL.InterlockedExchange
@ fastcall VideoPortInterlockedIncrement(ptr) NTOSKRNL.InterlockedIncrement
@ fastcall -arch=i386,arm VideoPortInterlockedDecrement(ptr) NTOSKRNL.InterlockedDecrement
@ fastcall -arch=amd64 VideoPortInterlockedDecrement(ptr)
@ fastcall -arch=i386,arm VideoPortInterlockedExchange(ptr long) NTOSKRNL.InterlockedExchange
@ fastcall VideoPortInterlockedExchange(ptr long)
@ fastcall -arch=i386,arm VideoPortInterlockedIncrement(ptr) NTOSKRNL.InterlockedIncrement
@ fastcall VideoPortInterlockedIncrement(ptr)
@ stdcall VideoPortIsNoVesa()
@ stdcall VideoPortLockBuffer(ptr ptr long long)
@ stdcall VideoPortLockPages(ptr ptr ptr ptr long)
@ -58,20 +61,33 @@
@ stdcall VideoPortPutDmaAdapter(ptr ptr)
@ stdcall VideoPortQueryPerformanceCounter(ptr ptr)
@ stdcall VideoPortQueryServices(ptr long ptr)
@ stdcall VideoPortQuerySystemTime(ptr) NTOSKRNL.KeQuerySystemTime
@ stdcall -arch=i386,arm VideoPortQuerySystemTime(ptr) NTOSKRNL.KeQuerySystemTime
@ stdcall -arch=amd64 VideoPortQuerySystemTime(ptr)
@ stdcall VideoPortQueueDpc(ptr ptr ptr)
@ stdcall VideoPortReadPortUchar(ptr) HAL.READ_PORT_UCHAR
@ stdcall VideoPortReadPortUshort(ptr) HAL.READ_PORT_USHORT
@ stdcall VideoPortReadPortUlong(ptr) HAL.READ_PORT_ULONG
@ stdcall VideoPortReadPortBufferUchar(ptr ptr long) HAL.READ_PORT_BUFFER_UCHAR
@ stdcall VideoPortReadPortBufferUshort(ptr ptr long) HAL.READ_PORT_BUFFER_USHORT
@ stdcall VideoPortReadPortBufferUlong(ptr ptr long) HAL.READ_PORT_BUFFER_ULONG
@ stdcall VideoPortReadRegisterUchar(ptr) NTOSKRNL.READ_REGISTER_UCHAR
@ stdcall VideoPortReadRegisterUshort(ptr) NTOSKRNL.READ_REGISTER_USHORT
@ stdcall VideoPortReadRegisterUlong(ptr) NTOSKRNL.READ_REGISTER_ULONG
@ stdcall VideoPortReadRegisterBufferUchar(ptr ptr long) NTOSKRNL.READ_REGISTER_BUFFER_UCHAR
@ stdcall VideoPortReadRegisterBufferUshort(ptr ptr long) NTOSKRNL.READ_REGISTER_BUFFER_USHORT
@ stdcall VideoPortReadRegisterBufferUlong(ptr ptr long) NTOSKRNL.READ_REGISTER_BUFFER_ULONG
@ stdcall -arch=i386,arm VideoPortReadPortUchar(ptr) HAL.READ_PORT_UCHAR
@ stdcall -arch=amd64 VideoPortReadPortUchar(ptr)
@ stdcall -arch=i386,arm VideoPortReadPortUshort(ptr) HAL.READ_PORT_USHORT
@ stdcall -arch=amd64 VideoPortReadPortUshort(ptr)
@ stdcall -arch=i386,arm VideoPortReadPortUlong(ptr) HAL.READ_PORT_ULONG
@ stdcall -arch=amd64 VideoPortReadPortUlong(ptr)
@ stdcall -arch=i386,arm VideoPortReadPortBufferUchar(ptr ptr long) HAL.READ_PORT_BUFFER_UCHAR
@ stdcall -arch=amd64 VideoPortReadPortBufferUchar(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortReadPortBufferUshort(ptr ptr long) HAL.READ_PORT_BUFFER_USHORT
@ stdcall -arch=amd64 VideoPortReadPortBufferUshort(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortReadPortBufferUlong(ptr ptr long) HAL.READ_PORT_BUFFER_ULONG
@ stdcall -arch=amd64 VideoPortReadPortBufferUlong(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortReadRegisterUchar(ptr) NTOSKRNL.READ_REGISTER_UCHAR
@ stdcall -arch=amd64 VideoPortReadRegisterUchar(ptr)
@ stdcall -arch=i386,arm VideoPortReadRegisterUshort(ptr) NTOSKRNL.READ_REGISTER_USHORT
@ stdcall -arch=amd64 VideoPortReadRegisterUshort(ptr)
@ stdcall -arch=i386,arm VideoPortReadRegisterUlong(ptr) NTOSKRNL.READ_REGISTER_ULONG
@ stdcall -arch=amd64 VideoPortReadRegisterUlong(ptr)
@ stdcall -arch=i386,arm VideoPortReadRegisterBufferUchar(ptr ptr long) NTOSKRNL.READ_REGISTER_BUFFER_UCHAR
@ stdcall -arch=amd64 VideoPortReadRegisterBufferUchar(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortReadRegisterBufferUshort(ptr ptr long) NTOSKRNL.READ_REGISTER_BUFFER_USHORT
@ stdcall -arch=amd64 VideoPortReadRegisterBufferUshort(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortReadRegisterBufferUlong(ptr ptr long) NTOSKRNL.READ_REGISTER_BUFFER_ULONG
@ stdcall -arch=amd64 VideoPortReadRegisterBufferUlong(ptr ptr long)
@ stdcall VideoPortReadStateEvent(ptr ptr)
@ stdcall VideoPortRegisterBugcheckCallback(ptr long ptr long)
@ stdcall VideoPortReleaseBuffer(ptr ptr)
@ -98,18 +114,30 @@
@ stdcall VideoPortUnmapMemory(ptr ptr ptr)
@ stdcall VideoPortVerifyAccessRanges(ptr long ptr)
@ stdcall VideoPortWaitForSingleObject(ptr ptr ptr)
@ stdcall VideoPortWritePortUchar(ptr long) HAL.WRITE_PORT_UCHAR
@ stdcall VideoPortWritePortUshort(ptr long) HAL.WRITE_PORT_USHORT
@ stdcall VideoPortWritePortUlong(ptr long) HAL.WRITE_PORT_ULONG
@ stdcall VideoPortWritePortBufferUchar(ptr ptr long) HAL.WRITE_PORT_BUFFER_UCHAR
@ stdcall VideoPortWritePortBufferUshort(ptr ptr long) HAL.WRITE_PORT_BUFFER_USHORT
@ stdcall VideoPortWritePortBufferUlong(ptr ptr long) HAL.WRITE_PORT_BUFFER_ULONG
@ stdcall VideoPortWriteRegisterUchar(ptr long) NTOSKRNL.WRITE_REGISTER_UCHAR
@ stdcall VideoPortWriteRegisterUshort(ptr long) NTOSKRNL.WRITE_REGISTER_USHORT
@ stdcall VideoPortWriteRegisterUlong(ptr long) NTOSKRNL.WRITE_REGISTER_ULONG
@ stdcall VideoPortWriteRegisterBufferUchar(ptr ptr long) NTOSKRNL.WRITE_REGISTER_BUFFER_UCHAR
@ stdcall VideoPortWriteRegisterBufferUshort(ptr ptr long) NTOSKRNL.WRITE_REGISTER_BUFFER_USHORT
@ stdcall VideoPortWriteRegisterBufferUlong(ptr ptr long) NTOSKRNL.WRITE_REGISTER_BUFFER_ULONG
@ stdcall -arch=i386,arm VideoPortWritePortUchar(ptr long) HAL.WRITE_PORT_UCHAR
@ stdcall -arch=amd64 VideoPortWritePortUchar(ptr long)
@ stdcall -arch=i386,arm VideoPortWritePortUshort(ptr long) HAL.WRITE_PORT_USHORT
@ stdcall -arch=amd64 VideoPortWritePortUshort(ptr long)
@ stdcall -arch=i386,arm VideoPortWritePortUlong(ptr long) HAL.WRITE_PORT_ULONG
@ stdcall -arch=amd64 VideoPortWritePortUlong(ptr long)
@ stdcall -arch=i386,arm VideoPortWritePortBufferUchar(ptr ptr long) HAL.WRITE_PORT_BUFFER_UCHAR
@ stdcall -arch=amd64 VideoPortWritePortBufferUchar(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortWritePortBufferUshort(ptr ptr long) HAL.WRITE_PORT_BUFFER_USHORT
@ stdcall -arch=amd64 VideoPortWritePortBufferUshort(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortWritePortBufferUlong(ptr ptr long) HAL.WRITE_PORT_BUFFER_ULONG
@ stdcall -arch=amd64 VideoPortWritePortBufferUlong(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortWriteRegisterUchar(ptr long) NTOSKRNL.WRITE_REGISTER_UCHAR
@ stdcall -arch=amd64 VideoPortWriteRegisterUchar(ptr long)
@ stdcall -arch=i386,arm VideoPortWriteRegisterUshort(ptr long) NTOSKRNL.WRITE_REGISTER_USHORT
@ stdcall -arch=amd64 VideoPortWriteRegisterUshort(ptr long)
@ stdcall -arch=i386,arm VideoPortWriteRegisterUlong(ptr long) NTOSKRNL.WRITE_REGISTER_ULONG
@ stdcall -arch=amd64 VideoPortWriteRegisterUlong(ptr long)
@ stdcall -arch=i386,arm VideoPortWriteRegisterBufferUchar(ptr ptr long) NTOSKRNL.WRITE_REGISTER_BUFFER_UCHAR
@ stdcall -arch=amd64 VideoPortWriteRegisterBufferUchar(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortWriteRegisterBufferUshort(ptr ptr long) NTOSKRNL.WRITE_REGISTER_BUFFER_USHORT
@ stdcall -arch=amd64 VideoPortWriteRegisterBufferUshort(ptr ptr long)
@ stdcall -arch=i386,arm VideoPortWriteRegisterBufferUlong(ptr ptr long) NTOSKRNL.WRITE_REGISTER_BUFFER_ULONG
@ stdcall -arch=amd64 VideoPortWriteRegisterBufferUlong(ptr ptr long)
@ stdcall VideoPortZeroMemory(ptr long) NTOSKRNL.RtlZeroMemory
@ stdcall VideoPortZeroDeviceMemory(ptr long) NTOSKRNL.RtlZeroMemory
@ stdcall VpNotifyEaData(ptr ptr)