|
ReactOS 0.4.16-dev-2354-g16de117
|
#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 |
| #define NDEBUG |
Definition at line 29 of file videoprt.c.
Definition at line 62 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 736 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 763 of file videoprt.c.
Referenced by VideoPortGetRomImage().
|
static |
Definition at line 53 of file videoprt.c.
Referenced by IntVideoPortCreateAdapterDeviceObject().
Definition at line 774 of file videoprt.c.
Referenced by VideoPortInitialize().
|
static |
Definition at line 71 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 171 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 158 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 373 of file videoprt.c.
Referenced by IntVideoPortEnumBuses().
|
static |
Enumerates all supported buses on the system.
Definition at line 407 of file videoprt.c.
Referenced by IntVideoPortFindAdapter().
Definition at line 1489 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 434 of file videoprt.c.
Referenced by IntVideoPortPnPStartDevice(), and VideoPortInitialize().
Definition at line 135 of file videoprt.c.
|
static |
Definition at line 1210 of file videoprt.c.
Referenced by VideoPortGetRegistryParameters().
| RTL_STATIC_LIST_HEAD | ( | HwResetAdaptersList | ) |
Definition at line 1889 of file videoprt.c.
| PVOID NTAPI VideoPortAllocateContiguousMemory | ( | IN PVOID | HwDeviceExtension, |
| IN ULONG | NumberOfBytes, | ||
| IN PHYSICAL_ADDRESS | HighestAcceptableAddress | ||
| ) |
Definition at line 1933 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 1797 of file videoprt.c.
| VP_STATUS NTAPI VideoPortCreateSecondaryDisplay | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVOID * | SecondaryDeviceExtension, | ||
| IN ULONG | Flag | ||
| ) |
Definition at line 1676 of file videoprt.c.
| VOID __cdecl VideoPortDebugPrint | ( | _In_ VIDEO_DEBUG_LEVEL | DebugPrintLevel, |
| _In_ PSTR | DebugMessage, | ||
| _In_ ... | |||
| ) |
Definition at line 1156 of file videoprt.c.
Referenced by IntLoadRegistryParameters(), VBEGetVideoChildDescriptor(), VBEInitialize(), VBEReadEdid(), VBEReadEdidUsingSCI(), VBESetCurrentMode(), and VGASetCurrentMode().
Definition at line 1653 of file videoprt.c.
Referenced by IntVideoPortDispatchOpen(), and VBEInitialize().
Definition at line 1742 of file videoprt.c.
Definition at line 1195 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 1236 of file videoprt.c.
| PVOID NTAPI VideoPortGetRomImage | ( | IN PVOID | HwDeviceExtension, |
| IN PVOID | Unused1, | ||
| IN ULONG | Unused2, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 1346 of file videoprt.c.
| VP_STATUS NTAPI VideoPortGetVersion | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVPOSVERSIONINFO | VpOsVersionInfo | ||
| ) |
Definition at line 1759 of file videoprt.c.
Definition at line 1318 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 933 of file videoprt.c.
Referenced by DriverEntry().
Definition at line 1947 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 1176 of file videoprt.c.
| LONGLONG NTAPI VideoPortQueryPerformanceCounter | ( | IN PVOID | HwDeviceExtension, |
| OUT PLONGLONG PerformanceFrequency | OPTIONAL | ||
| ) |
Definition at line 1873 of file videoprt.c.
| BOOLEAN NTAPI VideoPortQueueDpc | ( | IN PVOID | HwDeviceExtension, |
| IN PMINIPORT_DPC_ROUTINE | CallbackRoutine, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 1726 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 1858 of file videoprt.c.
Definition at line 1905 of file videoprt.c.
| BOOLEAN NTAPI VideoPortScanRom | ( | IN PVOID | HwDeviceExtension, |
| IN PUCHAR | RomBase, | ||
| IN ULONG | RomLength, | ||
| IN PUCHAR | String | ||
| ) |
Definition at line 1407 of file videoprt.c.
| VP_STATUS NTAPI VideoPortSetRegistryParameters | ( | IN PVOID | HwDeviceExtension, |
| IN PWSTR | ValueName, | ||
| IN PVOID | ValueData, | ||
| IN ULONG | ValueLength | ||
| ) |
Definition at line 1287 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 1440 of file videoprt.c.
Definition at line 1921 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 NumOfVgaRanges = 0 |
Definition at line 48 of file videoprt.c.
Referenced by IntVideoPortFindAdapter(), and VideoPortVerifyAccessRanges().
| PVIDEO_PORT_DEVICE_EXTENSION VgaDeviceExtension = NULL |
Definition at line 46 of file videoprt.c.
Referenced by IntVideoPortFindAdapter(), VbeSetMode(), and VideoPortVerifyAccessRanges().
| PVIDEO_ACCESS_RANGE VgaRanges = NULL |
Definition at line 47 of file videoprt.c.
Referenced by IntVideoPortFindAdapter(), and VideoPortVerifyAccessRanges().
| KMUTEX VgaSyncLock |
Definition at line 45 of file videoprt.c.
Referenced by IntVideoPortFindAdapter(), VideoPortInitialize(), and VideoPortVerifyAccessRanges().
| 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().