53 *AccessRangeCount = 0;
60 DeviceExtension->SystemIoBusNumber,
61 DeviceExtension->SystemIoSlotNumber,
70 DriverExtension->InitializationData.HwGetLegacyResources(PciConfig.VendorID,
77 *AccessRanges =
DriverExtension->InitializationData.HwLegacyResourceList;
78 *AccessRangeCount =
DriverExtension->InitializationData.HwLegacyResourceCount;
81 INFO_(VIDEOPRT,
"Got %d legacy access ranges\n", *AccessRangeCount);
96 ULONG AccessRangeCount, ListSize,
i;
109 if (!AccessRangeCount)
112 return Irp->IoStatus.Status;
130 ResList->
List[0].
Count += AccessRangeCount;
135 Irp->IoStatus.Information = 0;
155 ResList->
List[0].
Count = AccessRangeCount;
160 for (
i = 0;
i < AccessRangeCount;
i++)
163 CurrentDescriptor->
Option = 0;
165 if (AccessRanges[
i].RangeInIoSpace)
173 CurrentDescriptor->
Flags = 0;
180 CurrentDescriptor->
u.
Port.Alignment = 1;
191 CurrentDescriptor->
u.
Memory.Alignment = 1;
213 DeviceExtension->DriverObject,
215 DeviceExtension->PhysicalDeviceObject,
217 sizeof(EmptyResourceList),
222 DPRINT1(
"VideoPortReleaseResources IoReportResource failed with 0x%08lx ; ConflictDetected: %s\n",
223 Status, ConflictDetected ?
"TRUE" :
"FALSE");
253 WARN_(VIDEOPRT,
"ZwOpenSection() failed! (0x%x)\n",
Status);
259 Status = ZwMapViewOfSection(hMemObj,
272 WARN_(VIDEOPRT,
"ZwMapViewOfSection() failed! (0x%x)\n",
Status);
294 INFO_(VIDEOPRT,
"- IoAddress: %lx\n", IoAddress.u.LowPart);
295 INFO_(VIDEOPRT,
"- NumberOfUchars: %lx\n", NumberOfUchars);
296 INFO_(VIDEOPRT,
"- InIoSpace: %x\n", InIoSpace);
298 InIoSpace &= ~VIDEO_MEMORY_SPACE_DENSE;
301 INFO_(VIDEOPRT,
"VIDEO_MEMORY_SPACE_P6CACHE not supported, turning off\n");
302 InIoSpace &= ~VIDEO_MEMORY_SPACE_P6CACHE;
307 INFO_(VIDEOPRT,
"ProcessHandle is not NULL (0x%x) but InIoSpace does not have "
308 "VIDEO_MEMORY_SPACE_USER_MODE set! Setting "
309 "VIDEO_MEMORY_SPACE_USER_MODE.\n",
315 INFO_(VIDEOPRT,
"ProcessHandle is NULL (0x%x) but InIoSpace does have "
316 "VIDEO_MEMORY_SPACE_USER_MODE set! Setting ProcessHandle "
317 "to NtCurrentProcess()\n",
323 !
IsListEmpty(&DeviceExtension->AddressMappingListHead))
325 Entry = DeviceExtension->AddressMappingListHead.Flink;
326 while (
Entry != &DeviceExtension->AddressMappingListHead)
333 NumberOfUchars <= AddressMapping->NumberOfUchars)
349 DeviceExtension->AdapterInterfaceType,
350 DeviceExtension->SystemIoBusNumber,
375 MappedAddress =
NULL;
383 WARN_(VIDEOPRT,
"IntVideoPortMapPhysicalMemory() failed! (0x%x)\n", NtStatus);
388 INFO_(VIDEOPRT,
"Mapped user address = 0x%08x\n", MappedAddress);
398 if (MappedAddress !=
NULL)
411 if (AddressMapping ==
NULL)
412 return MappedAddress;
421 &DeviceExtension->AddressMappingListHead,
422 &AddressMapping->
List);
425 return MappedAddress;
443 Entry = DeviceExtension->AddressMappingListHead.Flink;
444 while (
Entry != &DeviceExtension->AddressMappingListHead)
476 WARN_(VIDEOPRT,
"Warning: Mapping for address 0x%p not found!\n", MappedAddress);
493 TRACE_(VIDEOPRT,
"VideoPortGetDeviceBase\n");
512 TRACE_(VIDEOPRT,
"VideoPortFreeDeviceBase\n");
534 TRACE_(VIDEOPRT,
"VideoPortMapBankedMemory\n");
555 TRACE_(VIDEOPRT,
"VideoPortMapMemory\n");
580 TRACE_(VIDEOPRT,
"VideoPortFreeDeviceBase\n");
649 ULONG FunctionNumber;
653 UINT AssignedCount = 0;
662 ULONG LegacyAccessRangeCount;
668 TRACE_(VIDEOPRT,
"VideoPortGetAccessRanges(%d, %p, %d, %p)\n",
669 NumRequestedResources, RequestedResources, NumAccessRanges, AccessRanges);
675 if (NumRequestedResources == 0)
698 VendorIdToFind = VendorId !=
NULL ? *(
PUSHORT)VendorId : 0;
699 DeviceIdToFind = DeviceId !=
NULL ? *(
PUSHORT)DeviceId : 0;
701 if (VendorIdToFind == 0 && DeviceIdToFind == 0)
707 INFO_(VIDEOPRT,
"Looking for VendorId 0x%04x DeviceId 0x%04x\n",
708 VendorIdToFind, DeviceIdToFind);
713 PciSlotNumber.
u.
bits.Reserved = 0;
717 for (FunctionNumber = 0; FunctionNumber <
PCI_MAX_FUNCTION; FunctionNumber++)
719 INFO_(VIDEOPRT,
"- Function number: %d\n", FunctionNumber);
720 PciSlotNumber.
u.
bits.FunctionNumber = FunctionNumber;
731 INFO_(VIDEOPRT,
"- Slot 0x%02x (Device %d Function %d) VendorId 0x%04x "
734 PciSlotNumber.
u.
bits.DeviceNumber,
735 PciSlotNumber.
u.
bits.FunctionNumber,
739 if ((VendorIdToFind == 0 ||
Config.VendorID == VendorIdToFind) &&
740 (DeviceIdToFind == 0 ||
Config.DeviceID == DeviceIdToFind))
742 DeviceAndVendorFound =
TRUE;
747 if (DeviceAndVendorFound)
752 WARN_(VIDEOPRT,
"Didn't find device.\n");
767 WARN_(VIDEOPRT,
"HalAssignSlotResources failed with status %x.\n",
Status);
775 &LegacyAccessRanges, &LegacyAccessRangeCount);
779 if (NumAccessRanges < LegacyAccessRangeCount)
781 ERR_(VIDEOPRT,
"Too many legacy access ranges found\n");
786 AssignedCount = LegacyAccessRangeCount;
803 ResReqList->
List[0].
Count = NumRequestedResources;
834 INFO_(VIDEOPRT,
"InterfaceType %u BusNumber List %u Device BusNumber %u Version %u Revision %u\n",
849 AssignedCount >= NumAccessRanges)
851 ERR_(VIDEOPRT,
"Too many access ranges found\n");
856 INFO_(VIDEOPRT,
"Memory range starting at 0x%08x length 0x%08x\n",
858 AccessRanges[AssignedCount].RangeStart =
Descriptor->u.Memory.Start;
859 AccessRanges[AssignedCount].RangeLength =
Descriptor->u.Memory.Length;
860 AccessRanges[AssignedCount].RangeInIoSpace = 0;
861 AccessRanges[AssignedCount].RangeVisible = 0;
862 AccessRanges[AssignedCount].RangeShareable =
864 AccessRanges[AssignedCount].RangePassive = 0;
869 INFO_(VIDEOPRT,
"Port range starting at 0x%04x length %d\n",
871 AccessRanges[AssignedCount].RangeStart =
Descriptor->u.Port.Start;
872 AccessRanges[AssignedCount].RangeLength =
Descriptor->u.Port.Length;
873 AccessRanges[AssignedCount].RangeInIoSpace = 1;
874 AccessRanges[AssignedCount].RangeVisible = 0;
875 AccessRanges[AssignedCount].RangeShareable =
877 AccessRanges[AssignedCount].RangePassive = 0;
933 ULONG ResourceListSize;
939 TRACE_(VIDEOPRT,
"VideoPortVerifyAccessRanges\n");
942 if (NumAccessRanges && !AccessRanges)
947 if (NumAccessRanges == 0)
960 WARN_(VIDEOPRT,
"ExAllocatePool() failed\n");
970 ResourceList->List[0].PartialResourceList.Count = NumAccessRanges;
971 for (
i = 0;
i < NumAccessRanges;
i++, AccessRanges++)
973 PartialDescriptor = &
ResourceList->List[0].PartialResourceList.PartialDescriptors[
i];
974 if (AccessRanges->RangeInIoSpace)
977 PartialDescriptor->
u.
Port.Start = AccessRanges->RangeStart;
978 PartialDescriptor->
u.
Port.Length = AccessRanges->RangeLength;
983 PartialDescriptor->
u.
Memory.Start = AccessRanges->RangeStart;
984 PartialDescriptor->
u.
Memory.Length = AccessRanges->RangeLength;
986 if (AccessRanges->RangeShareable)
990 PartialDescriptor->
Flags = 0;
1034 TRACE_(VIDEOPRT,
"VideoPortGetDeviceData\n");
1050 TRACE_(VIDEOPRT,
"VideoPortAllocatePool\n");
1076 TRACE_(VIDEOPRT,
"VideoPortAllocateBuffer\n");
1090 TRACE_(VIDEOPRT,
"VideoPortReleaseBuffer\n");
1133 pVrp->OutputBuffer =
NULL;
1147 pVrp->OutputBuffer =
Buffer;
1148 pVrp->OutputBufferLength = pVrp->InputBufferLength;
1205 TRACE_(VIDEOPRT,
"VideoPortGetBusData\n");
1209 if (BusDataType !=
Cmos)
1240 TRACE_(VIDEOPRT,
"VideoPortSetBusData\n");
1244 if (BusDataType !=
Cmos)
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG _Out_ PULONG ReturnedLength
_In_ PCHAR _In_ ULONG DeviceNumber
#define ERROR_DEV_NOT_EXIST
#define ERROR_NOT_ENOUGH_MEMORY
#define ERROR_INVALID_FUNCTION
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
NTHALAPI NTSTATUS NTAPI HalAssignSlotResources(PUNICODE_STRING, PUNICODE_STRING, PDRIVER_OBJECT, PDEVICE_OBJECT, INTERFACE_TYPE, ULONG, ULONG, PCM_RESOURCE_LIST *)
NTHALAPI ULONG NTAPI HalGetBusData(BUS_DATA_TYPE, ULONG, ULONG, PVOID, ULONG)
#define RemoveEntryList(Entry)
#define InsertHeadList(ListHead, Entry)
#define ExAllocatePoolWithTag(hernya, size, tag)
#define IsListEmpty(ListHead)
#define ExAllocatePool(type, size)
_Must_inspect_result_ _In_ PFLT_GET_OPERATION_STATUS_CALLBACK CallbackRoutine
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
ULONG NTAPI HalSetBusDataByOffset(IN BUS_DATA_TYPE BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
BOOLEAN NTAPI HalTranslateBusAddress(IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber, IN PHYSICAL_ADDRESS BusAddress, IN OUT PULONG AddressSpace, OUT PPHYSICAL_ADDRESS TranslatedAddress)
ULONG NTAPI HalGetBusDataByOffset(IN BUS_DATA_TYPE BusDataType, IN ULONG BusNumber, IN ULONG SlotNumber, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
struct _CM_RESOURCE_LIST CM_RESOURCE_LIST
#define CmResourceTypeMemory
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR CM_PARTIAL_RESOURCE_DESCRIPTOR
#define CmResourceTypePort
#define CmResourceTypeInterrupt
#define OBJ_KERNEL_HANDLE
#define OBJ_CASE_INSENSITIVE
NTSTATUS NTAPI IoAssignResources(_In_ PUNICODE_STRING RegistryPath, _In_opt_ PUNICODE_STRING DriverClassName, _In_ PDRIVER_OBJECT DriverObject, _In_opt_ PDEVICE_OBJECT DeviceObject, _In_opt_ PIO_RESOURCE_REQUIREMENTS_LIST RequestedResources, _Inout_ PCM_RESOURCE_LIST *AllocatedResources)
VOID NTAPI MmUnmapIoSpace(IN PVOID BaseAddress, IN SIZE_T NumberOfBytes)
PVOID NTAPI MmMapIoSpace(IN PHYSICAL_ADDRESS PhysicalAddress, IN SIZE_T NumberOfBytes, IN MEMORY_CACHING_TYPE CacheType)
VOID NTAPI MmProbeAndLockPages(IN PMDL Mdl, IN KPROCESSOR_MODE AccessMode, IN LOCK_OPERATION Operation)
VOID NTAPI MmUnlockPages(IN PMDL Mdl)
#define ExFreePoolWithTag(_P, _T)
#define InitializeObjectAttributes(p, n, a, r, s)
_Inout_opt_ PDEVICE_OBJECT _Inout_opt_ PDEVICE_OBJECT _Inout_opt_ PDEVICE_OBJECT _Inout_opt_ PCM_RESOURCE_LIST * AllocatedResources
#define CM_RESOURCE_MEMORY_READ_WRITE
#define CM_RESOURCE_PORT_PASSIVE_DECODE
#define CM_RESOURCE_PORT_10_BIT_DECODE
NTSYSAPI NTSTATUS NTAPI ZwOpenSection(_Out_ PHANDLE SectionHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
_In_ HANDLE ProcessHandle
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
#define _In_reads_opt_(s)
#define SECTION_ALL_ACCESS
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI BOOLEAN NTAPI RtlEqualUnicodeString(PUNICODE_STRING String1, PUNICODE_STRING String2, BOOLEAN CaseInSensitive)
#define NtCurrentProcess()
_In_ ULONG _In_ ULONG Offset
_In_ ULONG _In_ ULONG _In_ ULONG Length
PVOID NTAPI IoGetDriverObjectExtension(IN PDRIVER_OBJECT DriverObject, IN PVOID ClientIdentificationAddress)
#define STATUS_CONFLICTING_ADDRESSES
PPCI_DRIVER_EXTENSION DriverExtension
NTSTATUS NTAPI IoReportResourceForDetection(IN PDRIVER_OBJECT DriverObject, IN PCM_RESOURCE_LIST DriverList OPTIONAL, IN ULONG DriverListSize OPTIONAL, IN PDEVICE_OBJECT DeviceObject OPTIONAL, IN PCM_RESOURCE_LIST DeviceList OPTIONAL, IN ULONG DeviceListSize OPTIONAL, OUT PBOOLEAN ConflictDetected)
struct _IO_RESOURCE_DESCRIPTOR * PIO_RESOURCE_DESCRIPTOR
enum _BUS_DATA_TYPE BUS_DATA_TYPE
VOID(NTAPI * PBANKED_SECTION_ROUTINE)(IN ULONG ReadBank, IN ULONG WriteBank, IN PVOID Context)
struct _IO_RESOURCE_DESCRIPTOR IO_RESOURCE_DESCRIPTOR
#define VIDEO_RANGE_10_BIT_DECODE
#define VIDEO_MEMORY_SPACE_USER_MODE
enum _DMA_FLAGS DMA_FLAGS
enum _VP_POOL_TYPE VP_POOL_TYPE
VP_STATUS(NTAPI * PMINIPORT_QUERY_DEVICE_ROUTINE)(IN PVOID HwDeviceExtension, IN PVOID Context, IN VIDEO_DEVICE_DATA_TYPE DeviceDataType, IN PVOID Identifier, IN ULONG IdentifierLength, IN PVOID ConfigurationData, IN ULONG ConfigurationDataLength, IN OUT PVOID ComponentInformation, IN ULONG ComponentInformationLength)
#define VIDEO_MEMORY_SPACE_P6CACHE
enum _VIDEO_DEVICE_DATA_TYPE VIDEO_DEVICE_DATA_TYPE
#define VIDEO_RANGE_PASSIVE_DECODE
enum _VP_LOCK_OPERATION VP_LOCK_OPERATION
PULONG MinorVersion OPTIONAL
base of all file and directory entries
CM_PARTIAL_RESOURCE_LIST PartialResourceList
INTERFACE_TYPE InterfaceType
union _CM_PARTIAL_RESOURCE_DESCRIPTOR::@392 u
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@392::@394 Port
struct _CM_PARTIAL_RESOURCE_DESCRIPTOR::@392::@397 Memory
CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1]
PDEVICE_OBJECT DeviceObject
union _IO_RESOURCE_DESCRIPTOR::@2056 u
struct _IO_RESOURCE_DESCRIPTOR::@2056::@2057 Port
struct _IO_RESOURCE_DESCRIPTOR::@2056::@2058 Memory
IO_RESOURCE_DESCRIPTOR Descriptors[1]
INTERFACE_TYPE InterfaceType
union _PCI_SLOT_NUMBER::@4024 u
struct _PCI_SLOT_NUMBER::@4024::@4025 bits
PHYSICAL_ADDRESS RangeStart
PHYSICAL_ADDRESS IoAddress
PDEVICE_OBJECT PhysicalDeviceObject
PCM_RESOURCE_LIST AllocatedResources
INTERFACE_TYPE AdapterInterfaceType
UNICODE_STRING RegistryPath
PDRIVER_OBJECT DriverObject
#define RTL_CONSTANT_STRING(s)
#define FIELD_OFFSET(t, f)
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define CONTAINING_RECORD(address, type, field)
#define STATUS_NO_SUCH_DEVICE
struct _LARGE_INTEGER::@2304 u
#define VIDEO_PORT_GET_DEVICE_EXTENSION(MiniportExtension)
struct _VIDEO_PORT_DEVICE_EXTENSTION * PVIDEO_PORT_DEVICE_EXTENSION
#define TAG_VIDEO_PORT_BUFFER
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
_Must_inspect_result_ _In_ WDFCMRESLIST List
_In_ WDFIORESREQLIST _In_ ULONG SlotNumber
VOID NTAPI VideoPortFreeDeviceBase(IN PVOID HwDeviceExtension, IN PVOID MappedAddress)
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,...
NTSTATUS NTAPI IntVideoPortMapPhysicalMemory(IN HANDLE Process, IN PHYSICAL_ADDRESS PhysicalAddress, IN ULONG SizeInBytes, IN ULONG Protect, IN OUT PVOID *VirtualAddress OPTIONAL)
VOID NTAPI VideoPortUnlockBuffer(IN PVOID HwDeviceExtension, IN PVOID Mdl)
ULONG NTAPI VideoPortSetBusData(IN PVOID HwDeviceExtension, IN BUS_DATA_TYPE BusDataType, IN ULONG SlotNumber, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
VP_STATUS NTAPI VideoPortMapMemory(IN PVOID HwDeviceExtension, IN PHYSICAL_ADDRESS PhysicalAddress, IN PULONG Length, IN PULONG InIoSpace, OUT PVOID *VirtualAddress)
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)
PVOID NTAPI VideoPortLockBuffer(IN PVOID HwDeviceExtension, IN PVOID BaseAddress, IN ULONG Length, IN VP_LOCK_OPERATION Operation)
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)
VOID NTAPI VideoPortFreePool(IN PVOID HwDeviceExtension, IN PVOID Ptr)
static BOOLEAN IntIsVgaSaveDriver(IN PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension)
VOID NTAPI IntVideoPortUnmapMemory(IN PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension, IN PVOID MappedAddress)
ULONG NTAPI VideoPortGetBusData(IN PVOID HwDeviceExtension, IN BUS_DATA_TYPE BusDataType, IN ULONG SlotNumber, OUT PVOID Buffer, IN ULONG Offset, IN ULONG Length)
VP_STATUS NTAPI VideoPortGetDeviceData(IN PVOID HwDeviceExtension, IN VIDEO_DEVICE_DATA_TYPE DeviceDataType, IN PMINIPORT_QUERY_DEVICE_ROUTINE CallbackRoutine, IN PVOID Context)
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.
PVOID NTAPI VideoPortAllocatePool(IN PVOID HwDeviceExtension, IN VP_POOL_TYPE PoolType, IN SIZE_T NumberOfBytes, IN ULONG Tag)
VP_STATUS NTAPI VideoPortSetTrappedEmulatorPorts(IN PVOID HwDeviceExtension, IN ULONG NumAccessRanges, IN PVIDEO_ACCESS_RANGE AccessRange)
NTSTATUS NTAPI IntVideoPortFilterResourceRequirements(IN PDEVICE_OBJECT DeviceObject, IN PIO_STACK_LOCATION IrpStack, IN PIRP Irp)
VP_STATUS NTAPI VideoPortUnmapMemory(IN PVOID HwDeviceExtension, IN PVOID VirtualAddress, IN HANDLE ProcessHandle)
VP_STATUS NTAPI VideoPortAllocateBuffer(IN PVOID HwDeviceExtension, IN ULONG Size, OUT PVOID *Buffer)
VOID NTAPI VideoPortReleaseBuffer(IN PVOID HwDeviceExtension, IN PVOID Ptr)
VOID IntVideoPortReleaseResources(_In_ PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension)
PVOID NTAPI VideoPortGetDeviceBase(IN PVOID HwDeviceExtension, IN PHYSICAL_ADDRESS IoAddress, IN ULONG NumberOfUchars, IN UCHAR InIoSpace)
BOOLEAN NTAPI VideoPortLockPages(IN PVOID HwDeviceExtension, IN OUT PVIDEO_REQUEST_PACKET pVrp, IN PEVENT pUEvent, IN PEVENT pDisplayEvent, IN DMA_FLAGS DmaFlags)
NTSTATUS NTAPI IntVideoPortGetLegacyResources(IN PVIDEO_PORT_DRIVER_EXTENSION DriverExtension, IN PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension, OUT PVIDEO_ACCESS_RANGE *AccessRanges, OUT PULONG AccessRangeCount)
@ CmResourceShareDeviceExclusive
_In_ ULONG _In_ PHYSICAL_ADDRESS _Inout_ PULONG _Out_ PPHYSICAL_ADDRESS TranslatedAddress
_In_ ULONG _In_ PHYSICAL_ADDRESS _Inout_ PULONG AddressSpace
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS PhysicalAddress
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _Inout_ PLARGE_INTEGER NumberOfBytes
struct _IO_RESOURCE_REQUIREMENTS_LIST IO_RESOURCE_REQUIREMENTS_LIST
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID _In_ ULONG_PTR _In_ SIZE_T _Inout_opt_ PLARGE_INTEGER _Inout_ PSIZE_T _In_ SECTION_INHERIT _In_ ULONG _In_ ULONG Protect