|
ReactOS 0.4.16-dev-2293-g4d8327b
|
#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 61 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 735 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 762 of file videoprt.c.
Referenced by VideoPortGetRomImage().
|
static |
Definition at line 53 of file videoprt.c.
Referenced by IntVideoPortFindAdapter().
Definition at line 773 of file videoprt.c.
Referenced by VideoPortInitialize().
|
static |
Definition at line 70 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 170 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 157 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 371 of file videoprt.c.
Referenced by IntVideoPortEnumBuses().
|
static |
Enumerates all supported buses on the system.
Definition at line 405 of file videoprt.c.
Referenced by IntVideoPortFindAdapter().
Definition at line 1480 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 432 of file videoprt.c.
Referenced by IntVideoPortPnPStartDevice(), and VideoPortInitialize().
Definition at line 134 of file videoprt.c.
|
static |
Definition at line 1201 of file videoprt.c.
Referenced by VideoPortGetRegistryParameters().
| RTL_STATIC_LIST_HEAD | ( | HwResetAdaptersList | ) |
Definition at line 1880 of file videoprt.c.
| PVOID NTAPI VideoPortAllocateContiguousMemory | ( | IN PVOID | HwDeviceExtension, |
| IN ULONG | NumberOfBytes, | ||
| IN PHYSICAL_ADDRESS | HighestAcceptableAddress | ||
| ) |
Definition at line 1924 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 1788 of file videoprt.c.
| VP_STATUS NTAPI VideoPortCreateSecondaryDisplay | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVOID * | SecondaryDeviceExtension, | ||
| IN ULONG | Flag | ||
| ) |
Definition at line 1667 of file videoprt.c.
| VOID VideoPortDebugPrint | ( | IN VIDEO_DEBUG_LEVEL | DebugPrintLevel, |
| IN PCHAR | DebugMessage, | ||
| ... | |||
| ) |
Definition at line 1147 of file videoprt.c.
Referenced by IntLoadRegistryParameters().
Definition at line 1644 of file videoprt.c.
Referenced by IntVideoPortDispatchOpen(), and VBEInitialize().
Definition at line 1733 of file videoprt.c.
Definition at line 1186 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 1227 of file videoprt.c.
| PVOID NTAPI VideoPortGetRomImage | ( | IN PVOID | HwDeviceExtension, |
| IN PVOID | Unused1, | ||
| IN ULONG | Unused2, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 1337 of file videoprt.c.
| VP_STATUS NTAPI VideoPortGetVersion | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVPOSVERSIONINFO | VpOsVersionInfo | ||
| ) |
Definition at line 1750 of file videoprt.c.
Definition at line 1309 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 932 of file videoprt.c.
Referenced by DriverEntry().
Definition at line 1938 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 1167 of file videoprt.c.
| LONGLONG NTAPI VideoPortQueryPerformanceCounter | ( | IN PVOID | HwDeviceExtension, |
| OUT PLONGLONG PerformanceFrequency | OPTIONAL | ||
| ) |
Definition at line 1864 of file videoprt.c.
| BOOLEAN NTAPI VideoPortQueueDpc | ( | IN PVOID | HwDeviceExtension, |
| IN PMINIPORT_DPC_ROUTINE | CallbackRoutine, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 1717 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 1849 of file videoprt.c.
Definition at line 1896 of file videoprt.c.
| BOOLEAN NTAPI VideoPortScanRom | ( | IN PVOID | HwDeviceExtension, |
| IN PUCHAR | RomBase, | ||
| IN ULONG | RomLength, | ||
| IN PUCHAR | String | ||
| ) |
Definition at line 1398 of file videoprt.c.
| VP_STATUS NTAPI VideoPortSetRegistryParameters | ( | IN PVOID | HwDeviceExtension, |
| IN PWSTR | ValueName, | ||
| IN PVOID | ValueData, | ||
| IN ULONG | ValueLength | ||
| ) |
Definition at line 1278 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 1431 of file videoprt.c.
Definition at line 1912 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().