|
ReactOS 0.4.16-dev-2354-g16de117
|

Go to the source code of this file.
Macros | |
| #define | NDEBUG |
Variables | |
| BOOLEAN | VpBaseVideo |
| static UNICODE_STRING | VideoClassName = RTL_CONSTANT_STRING(L"VIDEO") |
| #define NDEBUG |
Definition at line 24 of file resource.c.
|
static |
Definition at line 294 of file resource.c.
Referenced by VideoPortVerifyAccessRanges().
| NTSTATUS NTAPI IntVideoPortFilterResourceRequirements | ( | IN PDEVICE_OBJECT | DeviceObject, |
| IN PIO_STACK_LOCATION | IrpStack, | ||
| IN PIRP | Irp | ||
| ) |
Definition at line 81 of file resource.c.
Referenced by IntVideoPortDispatchFdoPnp().
| NTSTATUS NTAPI IntVideoPortGetLegacyResources | ( | IN PVIDEO_PORT_DRIVER_EXTENSION | DriverExtension, |
| IN PVIDEO_PORT_DEVICE_EXTENSION | DeviceExtension, | ||
| OUT PVIDEO_ACCESS_RANGE * | AccessRanges, | ||
| OUT PULONG | AccessRangeCount | ||
| ) |
Definition at line 34 of file resource.c.
Referenced by IntVideoPortFilterResourceRequirements(), and VideoPortGetAccessRanges().
| PVOID NTAPI IntVideoPortMapMemory | ( | IN PVIDEO_PORT_DEVICE_EXTENSION | DeviceExtension, |
| IN PHYSICAL_ADDRESS | IoAddress, | ||
| IN ULONG | NumberOfUchars, | ||
| IN ULONG | InIoSpace, | ||
| IN HANDLE | ProcessHandle, | ||
| OUT VP_STATUS * | Status | ||
| ) |
Definition at line 327 of file resource.c.
Referenced by VideoPortGetDeviceBase(), and VideoPortMapMemory().
| NTSTATUS NTAPI IntVideoPortMapPhysicalMemory | ( | IN HANDLE | Process, |
| IN PHYSICAL_ADDRESS | PhysicalAddress, | ||
| IN ULONG | SizeInBytes, | ||
| IN ULONG | Protect, | ||
| IN OUT PVOID *VirtualAddress | OPTIONAL | ||
| ) |
Definition at line 244 of file resource.c.
Referenced by IntAgpCommitVirtual(), and IntVideoPortMapMemory().
| VOID IntVideoPortReleaseResources | ( | _In_ PVIDEO_PORT_DEVICE_EXTENSION | DeviceExtension | ) |
Definition at line 198 of file resource.c.
Referenced by IntVideoPortFindAdapter(), and VideoPortVerifyAccessRanges().
| VOID NTAPI IntVideoPortUnmapMemory | ( | IN PVIDEO_PORT_DEVICE_EXTENSION | DeviceExtension, |
| IN PVOID | MappedAddress | ||
| ) |
Definition at line 485 of file resource.c.
Referenced by VideoPortFreeDeviceBase(), and VideoPortUnmapMemory().
| VP_STATUS NTAPI VideoPortAllocateBuffer | ( | IN PVOID | HwDeviceExtension, |
| IN ULONG | Size, | ||
| OUT PVOID * | Buffer | ||
| ) |
Definition at line 1256 of file resource.c.
| PVOID NTAPI VideoPortAllocatePool | ( | IN PVOID | HwDeviceExtension, |
| IN VP_POOL_TYPE | PoolType, | ||
| IN SIZE_T | NumberOfBytes, | ||
| IN ULONG | Tag | ||
| ) |
Definition at line 1229 of file resource.c.
Referenced by BochsInitialize(), InitializeModeTable(), VbeGetVideoMemoryBaseAddress(), VBEInitialize(), and VbeSetColorLookup().
Definition at line 558 of file resource.c.
Referenced by InitializeModeTable().
Definition at line 1244 of file resource.c.
Referenced by BochsFreeResources(), InitializeModeTable(), VbeGetVideoMemoryBaseAddress(), and VbeSetColorLookup().
| VP_STATUS NTAPI VideoPortGetAccessRanges | ( | _In_ PVOID | HwDeviceExtension, |
| _In_opt_ ULONG | NumRequestedResources, | ||
| _In_reads_opt_(NumRequestedResources) PIO_RESOURCE_DESCRIPTOR | RequestedResources, | ||
| _In_ ULONG | NumAccessRanges, | ||
| _Out_writes_(NumAccessRanges) PVIDEO_ACCESS_RANGE | AccessRanges, | ||
| _In_ PVOID | VendorId, | ||
| _In_ PVOID | DeviceId, | ||
| _Out_ PULONG | Slot | ||
| ) |
Retrieves bus-relative (mainly PCI) hardware resources access ranges and, if possible, claims these resources for the caller.
| [in] | HwDeviceExtension | The miniport device extension. |
| [in] | NumRequestedResources | The number of hardware resources in the RequestedResources array. |
| [in] | RequestedResources | An optional array of IO_RESOURCE_DESCRIPTOR elements describing hardware resources the miniport requires. |
| [in] | NumAccessRanges | The number of ranges in the AccessRanges array the miniport expects to retrieve. |
| [out] | AccessRanges | A pointer to an array of hardware resource ranges VideoPortGetAccessRanges fills with bus-relative device memory ACCESS_RANGE's for the adapter. |
| [in] | VendorId | For a PCI device, points to a USHORT-type value that identifies the PCI manufacturer of the adapter. Otherwise, should be NULL. |
| [in] | DeviceId | For a PCI device, points to a USHORT-type value that identifies a particular PCI adapter model, assigned by the manufacturer. Otherwise, should be NULL. |
| [out] | Slot | Points to a ULONG value that receives the logical slot / location of the adapter (bus-dependent). For a PCI adapter, Slot points to a PCI_SLOT_NUMBER structure that locates the adapter on the PCI bus. |
NumAccessRanges.Definition at line 686 of file resource.c.
Referenced by BochsFindAdapter(), and XboxVmpFindAdapter().
| ULONG NTAPI VideoPortGetBusData | ( | IN PVOID | HwDeviceExtension, |
| IN BUS_DATA_TYPE | BusDataType, | ||
| IN ULONG | SlotNumber, | ||
| OUT PVOID | Buffer, | ||
| IN ULONG | Offset, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 1380 of file resource.c.
| PVOID NTAPI VideoPortGetDeviceBase | ( | IN PVOID | HwDeviceExtension, |
| IN PHYSICAL_ADDRESS | IoAddress, | ||
| IN ULONG | NumberOfUchars, | ||
| IN UCHAR | InIoSpace | ||
| ) |
Definition at line 537 of file resource.c.
Referenced by BochsFindAdapter(), InitializeModeTable(), and VgaFindAdapter().
| VP_STATUS NTAPI VideoPortGetDeviceData | ( | IN PVOID | HwDeviceExtension, |
| IN VIDEO_DEVICE_DATA_TYPE | DeviceDataType, | ||
| IN PMINIPORT_QUERY_DEVICE_ROUTINE | CallbackRoutine, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 1213 of file resource.c.
Referenced by VgaFindAdapter().
| PVOID NTAPI VideoPortLockBuffer | ( | IN PVOID | HwDeviceExtension, |
| IN PVOID | BaseAddress, | ||
| IN ULONG | Length, | ||
| IN VP_LOCK_OPERATION | Operation | ||
| ) |
Definition at line 1284 of file resource.c.
Referenced by VideoPortLockPages().
| BOOLEAN NTAPI VideoPortLockPages | ( | IN PVOID | HwDeviceExtension, |
| IN OUT PVIDEO_REQUEST_PACKET | pVrp, | ||
| IN PEVENT | pUEvent, | ||
| IN PEVENT | pDisplayEvent, | ||
| IN DMA_FLAGS | DmaFlags | ||
| ) |
Definition at line 1308 of file resource.c.
| VP_STATUS NTAPI VideoPortMapBankedMemory | ( | IN PVOID | HwDeviceExtension, |
| IN PHYSICAL_ADDRESS | PhysicalAddress, | ||
| IN PULONG | Length, | ||
| IN PULONG | InIoSpace, | ||
| OUT PVOID * | VirtualAddress, | ||
| IN ULONG | BankLength, | ||
| IN UCHAR | ReadWriteBank, | ||
| IN PBANKED_SECTION_ROUTINE | BankRoutine, | ||
| IN PVOID | Context | ||
| ) |
Definition at line 573 of file resource.c.
| VP_STATUS NTAPI VideoPortMapMemory | ( | IN PVOID | HwDeviceExtension, |
| IN PHYSICAL_ADDRESS | PhysicalAddress, | ||
| IN PULONG | Length, | ||
| IN PULONG | InIoSpace, | ||
| OUT PVOID * | VirtualAddress | ||
| ) |
Definition at line 595 of file resource.c.
Definition at line 1271 of file resource.c.
| ULONG NTAPI VideoPortSetBusData | ( | IN PVOID | HwDeviceExtension, |
| IN BUS_DATA_TYPE | BusDataType, | ||
| IN ULONG | SlotNumber, | ||
| IN PVOID | Buffer, | ||
| IN ULONG | Offset, | ||
| IN ULONG | Length | ||
| ) |
Definition at line 1415 of file resource.c.
| VP_STATUS NTAPI VideoPortSetTrappedEmulatorPorts | ( | IN PVOID | HwDeviceExtension, |
| IN ULONG | NumAccessRanges, | ||
| IN PVIDEO_ACCESS_RANGE | AccessRange | ||
| ) |
Definition at line 1365 of file resource.c.
Definition at line 1349 of file resource.c.
| VP_STATUS NTAPI VideoPortUnmapMemory | ( | IN PVOID | HwDeviceExtension, |
| IN PVOID | VirtualAddress, | ||
| IN HANDLE | ProcessHandle | ||
| ) |
Definition at line 625 of file resource.c.
| VP_STATUS NTAPI VideoPortVerifyAccessRanges | ( | _In_ PVOID | HwDeviceExtension, |
| _In_opt_ ULONG | NumAccessRanges, | ||
| _In_reads_opt_(NumAccessRanges) PVIDEO_ACCESS_RANGE | AccessRanges | ||
| ) |
Claims or releases a range of hardware resources and checks for conflicts.
| [in] | HwDeviceExtension | The miniport device extension. |
| [in] | NumAccessRanges | The number of hardware resource ranges in the AccessRanges array. Specify zero to release the hardware resources held by the miniport. |
| [in] | AccessRanges | The array of hardware resource ranges to claim ownership. Specify NULL to release the hardware resources held by the miniport. |
Definition at line 976 of file resource.c.
Referenced by BochsFindAdapter(), IntVideoPortFindAdapter(), Pc98VidFindAdapter(), VgaAcquireResources(), and VGAFindAdapter().
|
static |
Definition at line 29 of file resource.c.
Referenced by IntVideoPortReleaseResources(), and VideoPortVerifyAccessRanges().
|
extern |
Definition at line 36 of file videoprt.c.
Referenced by IntLoadRegistryParameters(), and VideoPortVerifyAccessRanges().