|
ReactOS 0.4.16-dev-1946-g52006dd
|
#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 |
| KSPIN_LOCK | HwResetAdaptersLock |
| #define NDEBUG |
Definition at line 29 of file videoprt.c.
Definition at line 50 of file videoprt.c.
| BOOLEAN FASTCALL IntAttachToCSRSS | ( | _Outptr_ PKPROCESS * | CallingProcess, |
| _Out_ PKAPC_STATE | ApcState | ||
| ) |
Attach the current thread to the CSRSS process. The caller must detach from the process by invoking IntDetachFromCSRSS() after operating in its context.
| [out] | CallingProcess | Pointer to a PKPROCESS variable that receives the current process. |
| [out] | ApcState | Pointer to a caller-provided KAPC_STATE structure that will be initialized. |
Definition at line 589 of file videoprt.c.
Referenced by VideoPortGetRomImage().
Detach the current thread from the CSRSS process. This routine is to be invoked after a previous successful IntAttachToCSRSS() call.
| [in] | CallingProcess | The calling process that previously invoked IntAttachToCSRSS(). |
| [in] | ApcState | Pointer to the KAPC_STATE structure that was initialized by a previous IntAttachToCSRSS() call. |
Definition at line 616 of file videoprt.c.
Referenced by VideoPortGetRomImage().
Definition at line 627 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 1333 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 1054 of file videoprt.c.
Referenced by VideoPortGetRegistryParameters().
| RTL_STATIC_LIST_HEAD | ( | HwResetAdaptersList | ) |
Definition at line 1733 of file videoprt.c.
| PVOID NTAPI VideoPortAllocateContiguousMemory | ( | IN PVOID | HwDeviceExtension, |
| IN ULONG | NumberOfBytes, | ||
| IN PHYSICAL_ADDRESS | HighestAcceptableAddress | ||
| ) |
Definition at line 1777 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 1641 of file videoprt.c.
| VP_STATUS NTAPI VideoPortCreateSecondaryDisplay | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVOID * | SecondaryDeviceExtension, | ||
| IN ULONG | Flag | ||
| ) |
Definition at line 1520 of file videoprt.c.
| VOID VideoPortDebugPrint | ( | IN VIDEO_DEBUG_LEVEL | DebugPrintLevel, |
| IN PCHAR | DebugMessage, | ||
| ... | |||
| ) |
Definition at line 1000 of file videoprt.c.
Referenced by IntLoadRegistryParameters().
Definition at line 1497 of file videoprt.c.
Referenced by IntVideoPortDispatchOpen(), and VBEInitialize().
Definition at line 1586 of file videoprt.c.
Definition at line 1039 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 1080 of file videoprt.c.
| PVOID NTAPI VideoPortGetRomImage | ( | IN PVOID | HwDeviceExtension, |
| IN PVOID | Unused1, | ||
| IN ULONG | Unused2, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 1190 of file videoprt.c.
| VP_STATUS NTAPI VideoPortGetVersion | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVPOSVERSIONINFO | VpOsVersionInfo | ||
| ) |
Definition at line 1603 of file videoprt.c.
Definition at line 1162 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 786 of file videoprt.c.
Referenced by DriverEntry().
Definition at line 1791 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 1020 of file videoprt.c.
| LONGLONG NTAPI VideoPortQueryPerformanceCounter | ( | IN PVOID | HwDeviceExtension, |
| OUT PLONGLONG PerformanceFrequency | OPTIONAL | ||
| ) |
Definition at line 1717 of file videoprt.c.
| BOOLEAN NTAPI VideoPortQueueDpc | ( | IN PVOID | HwDeviceExtension, |
| IN PMINIPORT_DPC_ROUTINE | CallbackRoutine, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 1570 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 1702 of file videoprt.c.
Definition at line 1749 of file videoprt.c.
| BOOLEAN NTAPI VideoPortScanRom | ( | IN PVOID | HwDeviceExtension, |
| IN PUCHAR | RomBase, | ||
| IN ULONG | RomLength, | ||
| IN PUCHAR | String | ||
| ) |
Definition at line 1251 of file videoprt.c.
| VP_STATUS NTAPI VideoPortSetRegistryParameters | ( | IN PVOID | HwDeviceExtension, |
| IN PWSTR | ValueName, | ||
| IN PVOID | ValueData, | ||
| IN ULONG | ValueLength | ||
| ) |
Definition at line 1131 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 1284 of file videoprt.c.
Definition at line 1765 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(), IntInitializeInt10(), IntVideoPortDispatchDeviceControl(), IntVideoPortDispatchOpen(), NotifyConsoleProcessForShutdown(), NotifyUserProcessForShutdown(), UserClientConnect(), UserClientShutdown(), 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().
|
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().