|
ReactOS 0.4.16-dev-1878-g24e88af
|
#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.
| 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 IntInt10AllocateBuffer(), IntInt10CallBios(), IntInt10FreeBuffer(), IntInt10ReadMemory(), IntInt10WriteMemory(), and 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 IntInt10AllocateBuffer(), IntInt10CallBios(), IntInt10FreeBuffer(), IntInt10ReadMemory(), IntInt10WriteMemory(), and 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 1314 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 1035 of file videoprt.c.
Referenced by VideoPortGetRegistryParameters().
| RTL_STATIC_LIST_HEAD | ( | HwResetAdaptersList | ) |
Definition at line 1714 of file videoprt.c.
| PVOID NTAPI VideoPortAllocateContiguousMemory | ( | IN PVOID | HwDeviceExtension, |
| IN ULONG | NumberOfBytes, | ||
| IN PHYSICAL_ADDRESS | HighestAcceptableAddress | ||
| ) |
Definition at line 1758 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 1622 of file videoprt.c.
| VP_STATUS NTAPI VideoPortCreateSecondaryDisplay | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVOID * | SecondaryDeviceExtension, | ||
| IN ULONG | Flag | ||
| ) |
Definition at line 1501 of file videoprt.c.
| VOID VideoPortDebugPrint | ( | IN VIDEO_DEBUG_LEVEL | DebugPrintLevel, |
| IN PCHAR | DebugMessage, | ||
| ... | |||
| ) |
Definition at line 981 of file videoprt.c.
Referenced by IntLoadRegistryParameters().
Definition at line 1478 of file videoprt.c.
Referenced by IntVideoPortDispatchOpen(), and VBEInitialize().
Definition at line 1567 of file videoprt.c.
Definition at line 1020 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 1061 of file videoprt.c.
| PVOID NTAPI VideoPortGetRomImage | ( | IN PVOID | HwDeviceExtension, |
| IN PVOID | Unused1, | ||
| IN ULONG | Unused2, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 1171 of file videoprt.c.
| VP_STATUS NTAPI VideoPortGetVersion | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVPOSVERSIONINFO | VpOsVersionInfo | ||
| ) |
Definition at line 1584 of file videoprt.c.
Definition at line 1143 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 767 of file videoprt.c.
Referenced by DriverEntry().
Definition at line 1772 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 1001 of file videoprt.c.
| LONGLONG NTAPI VideoPortQueryPerformanceCounter | ( | IN PVOID | HwDeviceExtension, |
| OUT PLONGLONG PerformanceFrequency | OPTIONAL | ||
| ) |
Definition at line 1698 of file videoprt.c.
| BOOLEAN NTAPI VideoPortQueueDpc | ( | IN PVOID | HwDeviceExtension, |
| IN PMINIPORT_DPC_ROUTINE | CallbackRoutine, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 1551 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 1683 of file videoprt.c.
Definition at line 1730 of file videoprt.c.
| BOOLEAN NTAPI VideoPortScanRom | ( | IN PVOID | HwDeviceExtension, |
| IN PUCHAR | RomBase, | ||
| IN ULONG | RomLength, | ||
| IN PUCHAR | String | ||
| ) |
Definition at line 1232 of file videoprt.c.
| VP_STATUS NTAPI VideoPortSetRegistryParameters | ( | IN PVOID | HwDeviceExtension, |
| IN PWSTR | ValueName, | ||
| IN PVOID | ValueData, | ||
| IN ULONG | ValueLength | ||
| ) |
Definition at line 1112 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 1265 of file videoprt.c.
Definition at line 1746 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().