ReactOS 0.4.16-dev-336-gb667d82
|
#include "videoprt.h"
#include <stdio.h>
#include <ndk/exfuncs.h>
#include <ndk/obfuncs.h>
#include <ndk/rtlfuncs.h>
#include <debug.h>
Go to the source code of this file.
Classes | |
struct | QueryRegistryCallbackContext |
Macros | |
#define | NDEBUG |
Typedefs | |
typedef struct QueryRegistryCallbackContext | QUERY_REGISTRY_CALLBACK_CONTEXT |
typedef struct QueryRegistryCallbackContext * | PQUERY_REGISTRY_CALLBACK_CONTEXT |
Variables | |
ULONG | VideoDebugLevel = 0 |
BOOLEAN | VpBaseVideo = FALSE |
BOOLEAN | VpNoVesa = FALSE |
PKPROCESS | CsrProcess = NULL |
static ULONG | VideoPortMaxObjectNumber = -1 |
BOOLEAN | VideoPortUseNewKey = FALSE |
KMUTEX | VideoPortInt10Mutex |
KSPIN_LOCK | HwResetAdaptersLock |
#define NDEBUG |
Definition at line 29 of file videoprt.c.
Definition at line 50 of file videoprt.c.
VOID FASTCALL IntAttachToCSRSS | ( | PKPROCESS * | CallingProcess, |
PKAPC_STATE | ApcState | ||
) |
Definition at line 575 of file videoprt.c.
Referenced by IntInt10AllocateBuffer(), IntInt10CallBios(), IntInt10FreeBuffer(), IntInt10ReadMemory(), IntInt10WriteMemory(), and VideoPortGetRomImage().
VOID FASTCALL IntDetachFromCSRSS | ( | PKPROCESS * | CallingProcess, |
PKAPC_STATE | ApcState | ||
) |
Definition at line 588 of file videoprt.c.
Referenced by IntInt10AllocateBuffer(), IntInt10CallBios(), IntInt10FreeBuffer(), IntInt10ReadMemory(), IntInt10WriteMemory(), and VideoPortGetRomImage().
Definition at line 600 of file videoprt.c.
Referenced by VideoPortInitialize().
|
static |
Definition at line 59 of file videoprt.c.
Referenced by IntVideoPortCreateAdapterDeviceObject().
NTSTATUS NTAPI IntVideoPortCreateAdapterDeviceObject | ( | _In_ PDRIVER_OBJECT | DriverObject, |
_In_ PVIDEO_PORT_DRIVER_EXTENSION | DriverExtension, | ||
_In_opt_ PDEVICE_OBJECT | PhysicalDeviceObject, | ||
_In_ USHORT | AdapterNumber, | ||
_In_ USHORT | DisplayNumber, | ||
_Out_opt_ PDEVICE_OBJECT * | DeviceObject | ||
) |
Definition at line 159 of file videoprt.c.
Referenced by IntVideoPortAddDevice(), VideoPortCreateSecondaryDisplay(), and VideoPortInitialize().
VOID NTAPI IntVideoPortDeferredRoutine | ( | IN PKDPC | Dpc, |
IN PVOID | DeferredContext, | ||
IN PVOID | SystemArgument1, | ||
IN PVOID | SystemArgument2 | ||
) |
Definition at line 146 of file videoprt.c.
Referenced by IntVideoPortCreateAdapterDeviceObject().
|
static |
A PIO_QUERY_DEVICE_ROUTINE callback for IoQueryDeviceDescription() to return success when an enumerated bus has been found.
Definition at line 353 of file videoprt.c.
Referenced by IntVideoPortEnumBuses().
|
static |
Enumerates all supported buses on the system.
Definition at line 387 of file videoprt.c.
Referenced by IntVideoPortFindAdapter().
Definition at line 1284 of file videoprt.c.
Referenced by IntVideoPortQueryBusRelations().
NTSTATUS NTAPI IntVideoPortFindAdapter | ( | IN PDRIVER_OBJECT | DriverObject, |
IN PVIDEO_PORT_DRIVER_EXTENSION | DriverExtension, | ||
IN PDEVICE_OBJECT | DeviceObject | ||
) |
Definition at line 414 of file videoprt.c.
Referenced by IntVideoPortPnPStartDevice(), and VideoPortInitialize().
Definition at line 123 of file videoprt.c.
|
static |
Definition at line 1008 of file videoprt.c.
Referenced by VideoPortGetRegistryParameters().
RTL_STATIC_LIST_HEAD | ( | HwResetAdaptersList | ) |
Definition at line 1684 of file videoprt.c.
PVOID NTAPI VideoPortAllocateContiguousMemory | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | NumberOfBytes, | ||
IN PHYSICAL_ADDRESS | HighestAcceptableAddress | ||
) |
Definition at line 1728 of file videoprt.c.
BOOLEAN NTAPI VideoPortCheckForDeviceExistence | ( | IN PVOID | HwDeviceExtension, |
IN USHORT | VendorId, | ||
IN USHORT | DeviceId, | ||
IN UCHAR | RevisionId, | ||
IN USHORT | SubVendorId, | ||
IN USHORT | SubSystemId, | ||
IN ULONG | Flags | ||
) |
Definition at line 1592 of file videoprt.c.
VP_STATUS NTAPI VideoPortCreateSecondaryDisplay | ( | IN PVOID | HwDeviceExtension, |
IN OUT PVOID * | SecondaryDeviceExtension, | ||
IN ULONG | Flag | ||
) |
Definition at line 1471 of file videoprt.c.
VOID VideoPortDebugPrint | ( | IN VIDEO_DEBUG_LEVEL | DebugPrintLevel, |
IN PCHAR | DebugMessage, | ||
... | |||
) |
Definition at line 954 of file videoprt.c.
Referenced by IntLoadRegistryParameters().
Definition at line 1448 of file videoprt.c.
Referenced by IntVideoPortDispatchOpen(), and VBEInitialize().
Definition at line 1537 of file videoprt.c.
Definition at line 993 of file videoprt.c.
VP_STATUS NTAPI VideoPortGetRegistryParameters | ( | IN PVOID | HwDeviceExtension, |
IN PWSTR | ParameterName, | ||
IN UCHAR | IsParameterFileName, | ||
IN PMINIPORT_GET_REGISTRY_ROUTINE | GetRegistryRoutine, | ||
IN PVOID | HwContext | ||
) |
Definition at line 1034 of file videoprt.c.
PVOID NTAPI VideoPortGetRomImage | ( | IN PVOID | HwDeviceExtension, |
IN PVOID | Unused1, | ||
IN ULONG | Unused2, | ||
IN ULONG | Length | ||
) |
Definition at line 1144 of file videoprt.c.
VP_STATUS NTAPI VideoPortGetVersion | ( | IN PVOID | HwDeviceExtension, |
IN OUT PVPOSVERSIONINFO | VpOsVersionInfo | ||
) |
Definition at line 1554 of file videoprt.c.
Definition at line 1116 of file videoprt.c.
ULONG NTAPI VideoPortInitialize | ( | IN PVOID | Context1, |
IN PVOID | Context2, | ||
IN PVIDEO_HW_INITIALIZATION_DATA | HwInitializationData, | ||
IN PVOID | HwContext | ||
) |
Definition at line 740 of file videoprt.c.
Referenced by DriverEntry().
Definition at line 1742 of file videoprt.c.
Referenced by InitializeModeTable(), VBEFindAdapter(), and VBEInitialize().
VOID NTAPI VideoPortLogError | ( | IN PVOID | HwDeviceExtension, |
IN PVIDEO_REQUEST_PACKET Vrp | OPTIONAL, | ||
IN VP_STATUS | ErrorCode, | ||
IN ULONG | UniqueId | ||
) |
Definition at line 974 of file videoprt.c.
LONGLONG NTAPI VideoPortQueryPerformanceCounter | ( | IN PVOID | HwDeviceExtension, |
OUT PLONGLONG PerformanceFrequency | OPTIONAL | ||
) |
Definition at line 1668 of file videoprt.c.
BOOLEAN NTAPI VideoPortQueueDpc | ( | IN PVOID | HwDeviceExtension, |
IN PMINIPORT_DPC_ROUTINE | CallbackRoutine, | ||
IN PVOID | Context | ||
) |
Definition at line 1521 of file videoprt.c.
VP_STATUS NTAPI VideoPortRegisterBugcheckCallback | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | BugcheckCode, | ||
IN PVIDEO_BUGCHECK_CALLBACK | Callback, | ||
IN ULONG | BugcheckDataSize | ||
) |
Definition at line 1653 of file videoprt.c.
Definition at line 1700 of file videoprt.c.
BOOLEAN NTAPI VideoPortScanRom | ( | IN PVOID | HwDeviceExtension, |
IN PUCHAR | RomBase, | ||
IN ULONG | RomLength, | ||
IN PUCHAR | String | ||
) |
Definition at line 1202 of file videoprt.c.
VP_STATUS NTAPI VideoPortSetRegistryParameters | ( | IN PVOID | HwDeviceExtension, |
IN PWSTR | ValueName, | ||
IN PVOID | ValueData, | ||
IN ULONG | ValueLength | ||
) |
Definition at line 1085 of file videoprt.c.
Referenced by BochsGetControllerInfo(), Pc98VidFindAdapter(), and VmxFindAdapter().
BOOLEAN NTAPI VideoPortSynchronizeExecution | ( | IN PVOID | HwDeviceExtension, |
IN VIDEO_SYNCHRONIZE_PRIORITY | Priority, | ||
IN PMINIPORT_SYNCHRONIZE_ROUTINE | SynchronizeRoutine, | ||
OUT PVOID | Context | ||
) |
Definition at line 1235 of file videoprt.c.
Definition at line 1716 of file videoprt.c.
Definition at line 39 of file videoprt.c.
Referenced by BaseClientConnectRoutine(), BaseClientDisconnectRoutine(), BaseSrvCleanupVDMResources(), ConsoleClientShutdown(), ConSrvConnect(), ConSrvDisconnect(), ConSrvSetProcessFocus(), CSR_API(), CsrAllocateProcess(), CsrAllocateThread(), CsrApiHandleConnectionRequest(), CsrApiRequestThread(), CsrCaptureArguments(), CsrCreateProcess(), CsrCreateRemoteThread(), CsrCreateThread(), CsrDeallocateProcess(), CsrDebugProcess(), CsrDebugProcessStop(), CsrDereferenceProcess(), CsrDestroyProcess(), CsrDestroyThread(), CsrInsertProcess(), CsrLocateThreadInProcess(), CsrLockedDereferenceProcess(), CsrLockedReferenceProcess(), CsrLockProcessByClientId(), CsrProcessRefcountZero(), CsrRemoveProcess(), CsrSbCreateSession(), CsrSetBackgroundPriority(), CsrSetForegroundPriority(), CsrShutdownProcesses(), CsrSrvAttachSharedSection(), CsrThreadRefcountZero(), CsrUnlockProcess(), FindProcessForShutdown(), IntAttachToCSRSS(), IntDetachFromCSRSS(), IntVideoPortDispatchDeviceControl(), IntVideoPortDispatchOpen(), NotifyConsoleProcessForShutdown(), NotifyUserProcessForShutdown(), ProtectLowV86Mem(), UnprotectLowV86Mem(), UserClientConnect(), UserClientShutdown(), VideoPortInt10(), and VideoPortWin32kCallout().
KSPIN_LOCK HwResetAdaptersLock |
Definition at line 43 of file videoprt.c.
Referenced by IntVideoPortFindAdapter(), IntVideoPortResetDisplayParametersEx(), and VideoPortInitialize().
ULONG VideoDebugLevel = 0 |
Definition at line 34 of file videoprt.c.
Referenced by VideoPortDebugPrint().
KMUTEX VideoPortInt10Mutex |
Definition at line 42 of file videoprt.c.
Referenced by IntInt10CallBios(), and VideoPortInitialize().
|
static |
Definition at line 40 of file videoprt.c.
Referenced by IntVideoPortAddDeviceMapLink(), and IntVideoPortCreateAdapterDeviceObject().
Definition at line 41 of file videoprt.c.
Referenced by IntCreateRegistryPath(), IntLoadRegistryParameters(), and IntVideoPortAddDeviceMapLink().
Definition at line 36 of file videoprt.c.
Referenced by IntLoadRegistryParameters(), and VideoPortVerifyAccessRanges().
Definition at line 37 of file videoprt.c.
Referenced by IntLoadRegistryParameters(), and VideoPortIsNoVesa().