129 lines
5.2 KiB
Plaintext
129 lines
5.2 KiB
Plaintext
|
|
||
|
NAME VIDEOPRT.SYS
|
||
|
|
||
|
EXPORTS
|
||
|
VideoPortCompareMemory = NTOSKRNL.RtlCompareMemory
|
||
|
VideoPortDDCMonitorHelper
|
||
|
VideoPortDebugPrint
|
||
|
VideoPortDisableInterrupt
|
||
|
VideoPortEnableInterrupt
|
||
|
VideoPortFreeDeviceBase
|
||
|
VideoPortGetAccessRanges
|
||
|
VideoPortGetBusData
|
||
|
VideoPortGetCurrentIrql = NTOSKRNL.KeGetCurrentIrql
|
||
|
VideoPortGetDeviceBase
|
||
|
VideoPortGetRegistryParameters
|
||
|
VideoPortInitialize
|
||
|
VideoPortInt10
|
||
|
VideoPortLogError
|
||
|
VideoPortMapMemory
|
||
|
VideoPortAllocateBuffer
|
||
|
VideoPortReleaseBuffer
|
||
|
VideoPortMoveMemory = NTOSKRNL.RtlMoveMemory
|
||
|
VideoPortScanRom
|
||
|
VideoPortSetBusData
|
||
|
VideoPortSetTrappedEmulatorPorts
|
||
|
VideoPortSetRegistryParameters
|
||
|
VideoPortStallExecution = NTOSKRNL.KeStallExecutionProcessor
|
||
|
VideoPortStartTimer
|
||
|
VideoPortStopTimer
|
||
|
VideoPortSynchronizeExecution
|
||
|
VideoPortUnmapMemory
|
||
|
VideoPortVerifyAccessRanges
|
||
|
VideoPortZeroMemory = NTOSKRNL.RtlZeroMemory
|
||
|
VideoPortGetAgpServices
|
||
|
VideoPortGetRomImage
|
||
|
VideoPortGetAssociatedDeviceExtension
|
||
|
VideoPortAcquireDeviceLock
|
||
|
VideoPortReleaseDeviceLock
|
||
|
VideoPortGetVgaStatus
|
||
|
VideoPortQueueDpc
|
||
|
VideoPortQueryServices
|
||
|
|
||
|
// For x86 and Alpha, on free builds, just use forwarders
|
||
|
|
||
|
#if ((defined(_X86_) || defined(_ALPHA_)) && (DBG == 0))
|
||
|
|
||
|
#if defined(_X86_)
|
||
|
VideoPortReadRegisterUchar = NTOSKRNL.READ_REGISTER_UCHAR
|
||
|
VideoPortReadRegisterUshort = NTOSKRNL.READ_REGISTER_USHORT
|
||
|
VideoPortReadRegisterUlong = NTOSKRNL.READ_REGISTER_ULONG
|
||
|
VideoPortReadRegisterBufferUchar = NTOSKRNL.READ_REGISTER_BUFFER_UCHAR
|
||
|
VideoPortReadRegisterBufferUshort = NTOSKRNL.READ_REGISTER_BUFFER_USHORT
|
||
|
VideoPortReadRegisterBufferUlong = NTOSKRNL.READ_REGISTER_BUFFER_ULONG
|
||
|
VideoPortWriteRegisterUchar = NTOSKRNL.WRITE_REGISTER_UCHAR
|
||
|
VideoPortWriteRegisterUshort = NTOSKRNL.WRITE_REGISTER_USHORT
|
||
|
VideoPortWriteRegisterUlong = NTOSKRNL.WRITE_REGISTER_ULONG
|
||
|
VideoPortWriteRegisterBufferUchar = NTOSKRNL.WRITE_REGISTER_BUFFER_UCHAR
|
||
|
VideoPortWriteRegisterBufferUshort = NTOSKRNL.WRITE_REGISTER_BUFFER_USHORT
|
||
|
VideoPortWriteRegisterBufferUlong = NTOSKRNL.WRITE_REGISTER_BUFFER_ULONG
|
||
|
#else
|
||
|
VideoPortReadRegisterUchar = NTOSKRNL.READ_REGISTER_UCHAR
|
||
|
VideoPortReadRegisterUshort = NTOSKRNL.READ_REGISTER_USHORT
|
||
|
VideoPortReadRegisterUlong = NTOSKRNL.READ_REGISTER_ULONG
|
||
|
VideoPortReadRegisterBufferUchar = NTOSKRNL.READ_REGISTER_BUFFER_UCHAR
|
||
|
VideoPortReadRegisterBufferUshort = NTOSKRNL.READ_REGISTER_BUFFER_USHORT
|
||
|
VideoPortReadRegisterBufferUlong = NTOSKRNL.READ_REGISTER_BUFFER_ULONG
|
||
|
VideoPortWriteRegisterUchar = NTOSKRNL.WRITE_REGISTER_UCHAR
|
||
|
VideoPortWriteRegisterUshort = NTOSKRNL.WRITE_REGISTER_USHORT
|
||
|
VideoPortWriteRegisterUlong = NTOSKRNL.WRITE_REGISTER_ULONG
|
||
|
VideoPortWriteRegisterBufferUchar = NTOSKRNL.WRITE_REGISTER_BUFFER_UCHAR
|
||
|
VideoPortWriteRegisterBufferUshort = NTOSKRNL.WRITE_REGISTER_BUFFER_USHORT
|
||
|
VideoPortWriteRegisterBufferUlong = NTOSKRNL.WRITE_REGISTER_BUFFER_ULONG
|
||
|
#endif
|
||
|
|
||
|
|
||
|
VideoPortReadPortUchar = NTOSKRNL.READ_PORT_UCHAR
|
||
|
VideoPortReadPortUshort = NTOSKRNL.READ_PORT_USHORT
|
||
|
VideoPortReadPortUlong = NTOSKRNL.READ_PORT_ULONG
|
||
|
VideoPortReadPortBufferUchar = NTOSKRNL.READ_PORT_BUFFER_UCHAR
|
||
|
VideoPortReadPortBufferUshort = NTOSKRNL.READ_PORT_BUFFER_USHORT
|
||
|
VideoPortReadPortBufferUlong = NTOSKRNL.READ_PORT_BUFFER_ULONG
|
||
|
VideoPortWritePortUchar = NTOSKRNL.WRITE_PORT_UCHAR
|
||
|
VideoPortWritePortUshort = NTOSKRNL.WRITE_PORT_USHORT
|
||
|
VideoPortWritePortUlong = NTOSKRNL.WRITE_PORT_ULONG
|
||
|
VideoPortWritePortBufferUchar = NTOSKRNL.WRITE_PORT_BUFFER_UCHAR
|
||
|
VideoPortWritePortBufferUshort = NTOSKRNL.WRITE_PORT_BUFFER_USHORT
|
||
|
VideoPortWritePortBufferUlong = NTOSKRNL.WRITE_PORT_BUFFER_ULONG
|
||
|
|
||
|
#else
|
||
|
|
||
|
VideoPortReadPortUchar
|
||
|
VideoPortReadPortUshort
|
||
|
VideoPortReadPortUlong
|
||
|
VideoPortReadPortBufferUchar
|
||
|
VideoPortReadPortBufferUshort
|
||
|
VideoPortReadPortBufferUlong
|
||
|
VideoPortReadRegisterUchar
|
||
|
VideoPortReadRegisterUshort
|
||
|
VideoPortReadRegisterUlong
|
||
|
VideoPortReadRegisterBufferUchar
|
||
|
VideoPortReadRegisterBufferUshort
|
||
|
VideoPortReadRegisterBufferUlong
|
||
|
VideoPortWritePortUchar
|
||
|
VideoPortWritePortUshort
|
||
|
VideoPortWritePortUlong
|
||
|
VideoPortWritePortBufferUchar
|
||
|
VideoPortWritePortBufferUshort
|
||
|
VideoPortWritePortBufferUlong
|
||
|
VideoPortWriteRegisterUchar
|
||
|
VideoPortWriteRegisterUshort
|
||
|
VideoPortWriteRegisterUlong
|
||
|
VideoPortWriteRegisterBufferUchar
|
||
|
VideoPortWriteRegisterBufferUshort
|
||
|
VideoPortWriteRegisterBufferUlong
|
||
|
|
||
|
#endif // DBG
|
||
|
|
||
|
#if defined(_X86_)
|
||
|
VideoPortInterlockedDecrement = NTOSKRNL.InterlockedDecrement
|
||
|
VideoPortInterlockedExchange = NTOSKRNL.InterlockedExchange
|
||
|
VideoPortInterlockedIncrement = NTOSKRNL.InterlockedIncrement
|
||
|
VideoPortZeroDeviceMemory = NTOSKRNL.RtlZeroMemory
|
||
|
#else
|
||
|
VideoPortInterlockedDecrement
|
||
|
VideoPortInterlockedExchange
|
||
|
VideoPortInterlockedIncrement
|
||
|
VideoPortZeroDeviceMemory
|
||
|
#endif
|