ReactOS 0.4.16-dev-109-gf4cb10f
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define NDEBUG |
Definition at line 24 of file resource.c.
NTSTATUS NTAPI IntVideoPortFilterResourceRequirements | ( | IN PDEVICE_OBJECT | DeviceObject, |
IN PIO_STACK_LOCATION | IrpStack, | ||
IN PIRP | Irp | ||
) |
Definition at line 77 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 30 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 270 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 219 of file resource.c.
Referenced by IntAgpCommitVirtual(), and IntVideoPortMapMemory().
VOID IntVideoPortReleaseResources | ( | _In_ PVIDEO_PORT_DEVICE_EXTENSION | DeviceExtension | ) |
Definition at line 194 of file resource.c.
Referenced by VideoPortVerifyAccessRanges().
VOID NTAPI IntVideoPortUnmapMemory | ( | IN PVIDEO_PORT_DEVICE_EXTENSION | DeviceExtension, |
IN PVOID | MappedAddress | ||
) |
Definition at line 425 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 1051 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 1024 of file resource.c.
Referenced by BochsInitialize(), InitializeModeTable(), VbeGetVideoMemoryBaseAddress(), VBEInitialize(), and VbeSetColorLookup().
Definition at line 498 of file resource.c.
Referenced by InitializeModeTable().
Definition at line 1039 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 626 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 1175 of file resource.c.
PVOID NTAPI VideoPortGetDeviceBase | ( | IN PVOID | HwDeviceExtension, |
IN PHYSICAL_ADDRESS | IoAddress, | ||
IN ULONG | NumberOfUchars, | ||
IN UCHAR | InIoSpace | ||
) |
Definition at line 477 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 1008 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 1079 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 1103 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 513 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 535 of file resource.c.
Definition at line 1066 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 1210 of file resource.c.
VP_STATUS NTAPI VideoPortSetTrappedEmulatorPorts | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | NumAccessRanges, | ||
IN PVIDEO_ACCESS_RANGE | AccessRange | ||
) |
Definition at line 1160 of file resource.c.
Definition at line 1144 of file resource.c.
VP_STATUS NTAPI VideoPortUnmapMemory | ( | IN PVOID | HwDeviceExtension, |
IN PVOID | VirtualAddress, | ||
IN HANDLE | ProcessHandle | ||
) |
Definition at line 565 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 916 of file resource.c.
Referenced by BochsFindAdapter(), Pc98VidFindAdapter(), VgaAcquireResources(), and VGAFindAdapter().