62 Irp->IoStatus.Information = 0;
72 sizeof(
Stack->Parameters));
106 TRACE_(VIDEOPRT,
"AgpCommitPhysical - PhysicalContext: 0x%x Pages: %d, Offset: 0x%x\n",
107 PhysicalContext, Pages,
Offset);
119 WARN_(VIDEOPRT,
"Warning: AgpBusInterface->CommitMemory failed (Status = 0x%x)\n",
137 TRACE_(VIDEOPRT,
"AgpFreePhysical - PhysicalContext: 0x%x Pages: %d, Offset: 0x%x\n",
138 PhysicalContext, Pages,
Offset);
148 WARN_(VIDEOPRT,
"Warning: AgpBusInterface->FreeMemory failed (Status = 0x%x)\n",
163 TRACE_(VIDEOPRT,
"AgpReleasePhysical - PhysicalContext: 0x%x\n", PhysicalContext);
174 WARN_(VIDEOPRT,
"Warning: AgpBusInterface->ReleaseMemory failed (Status = 0x%x)\n",
196 TRACE_(VIDEOPRT,
"AgpReservePhysical - Pages: %d, Caching: 0x%x\n", Pages, Caching);
210 WARN_(VIDEOPRT,
"Invalid caching type %d!\n", Caching);
218 if (AgpMapping ==
NULL)
220 WARN_(VIDEOPRT,
"Out of memory! Couldn't allocate AGP mapping structure!\n");
234 WARN_(VIDEOPRT,
"Warning: AgpBusInterface->ReserveMemory failed (Status = 0x%x)\n",
242 *PhysicalContext = (
PVOID)AgpMapping;
259 TRACE_(VIDEOPRT,
"AgpCommitVirtual - VirtualContext: 0x%x Pages: %d, Offset: 0x%x\n",
260 VirtualContext, Pages,
Offset);
291 WARN_(VIDEOPRT,
"Warning: ZwFreeVirtualMemory() failed: Status = 0x%x\n",
Status);
306 WARN_(VIDEOPRT,
"Warning: IntVideoPortMapPhysicalMemory() failed: Status = 0x%x\n",
Status);
313 WARN_(VIDEOPRT,
"Warning: ZwAllocateVirtualMemory() failed: Status = 0x%x\n",
Status);
341 TRACE_(VIDEOPRT,
"AgpFreeVirtual - VirtualContext: 0x%x Pages: %d, Offset: 0x%x\n",
342 VirtualContext, Pages,
Offset);
361 WARN_(VIDEOPRT,
"Warning: ZwUnmapViewOfSection() failed: Status = 0x%x\n",
Status);
373 WARN_(VIDEOPRT,
"Warning: ZwAllocateVirtualMemory() failed: Status = 0x%x\n",
Status);
392 TRACE_(VIDEOPRT,
"AgpReleaseVirtual - VirtualContext: 0x%x\n", VirtualContext);
410 WARN_(VIDEOPRT,
"Warning: ZwFreeVirtualMemory() failed: Status = 0x%x\n",
Status);
430 TRACE_(VIDEOPRT,
"AgpReserveVirtual - ProcessHandle: 0x%x PhysicalContext: 0x%x\n",
439 if (VirtualMapping ==
NULL)
441 WARN_(VIDEOPRT,
"Out of memory! Couldn't allocate AGP virtual mapping structure!\n");
457 MappedAddress =
NULL;
463 WARN_(VIDEOPRT,
"ZwAllocateVirtualMemory() failed: Status = 0x%x\n",
Status);
473 *VirtualContext = (
PVOID)VirtualMapping;
474 return MappedAddress;
486 TRACE_(VIDEOPRT,
"AgpSetRate - Rate: %d\n", Rate);
524 WARN_(VIDEOPRT,
"DeviceExtension->NextDeviceObject is NULL!\n");
540 &GUID_AGP_TARGET_BUS_INTERFACE_STANDARD;
545 WARN_(VIDEOPRT,
"IopInitiatePnpIrp() failed! (Status 0x%x)\n",
Status);
548 INFO_(VIDEOPRT,
"Got AGP driver interface!\n");
OUT ULONGLONG AgpAllocationLimit
return STATUS_NOT_SUPPORTED
PHYSICAL_ADDRESS NTAPI IntAgpReservePhysical(IN PVOID HwDeviceExtension, IN ULONG Pages, IN VIDEO_PORT_CACHE_TYPE Caching, OUT PVOID *PhysicalContext)
PINTERFACE_DEREFERENCE InterfaceDereference
PIRP NTAPI IoBuildSynchronousFsdRequest(IN ULONG MajorFunction, IN PDEVICE_OBJECT DeviceObject, IN PVOID Buffer, IN ULONG Length, IN PLARGE_INTEGER StartingOffset, IN PKEVENT Event, IN PIO_STATUS_BLOCK IoStatusBlock)
OUT PAGP_FREE_PHYSICAL AgpFreePhysical
VOID NTAPI IntAgpFreePhysical(IN PVOID HwDeviceExtension, IN PVOID PhysicalContext, IN ULONG Pages, IN ULONG Offset)
PVOID NTAPI IntAgpCommitVirtual(IN PVOID HwDeviceExtension, IN PVOID VirtualContext, IN ULONG Pages, IN ULONG Offset)
OUT PAGP_FREE_VIRTUAL AgpFreeVirtual
#define AGP_BUS_INTERFACE_V1
OUT PAGP_SET_RATE AgpSetRate
IN PVOID IN PVOID IN USHORT IN USHORT Size
#define VIDEO_PORT_GET_DEVICE_EXTENSION(MiniportExtension)
AGP_BUS_INTERFACE_STANDARD AgpInterface
NTSTATUS NTAPI KeWaitForSingleObject(IN PVOID Object, IN KWAIT_REASON WaitReason, IN KPROCESSOR_MODE WaitMode, IN BOOLEAN Alertable, IN PLARGE_INTEGER Timeout OPTIONAL)
NTSTATUS NTAPI IntVideoPortMapPhysicalMemory(IN HANDLE Process, IN PHYSICAL_ADDRESS PhysicalAddress, IN ULONG SizeInBytes, IN ULONG Protect, IN OUT PVOID *VirtualAddress OPTIONAL)
#define RtlMoveMemory(Destination, Source, Length)
BOOLEAN NTAPI IntAgpSetRate(IN PVOID HwDeviceExtension, IN ULONG Rate)
#define AGP_BUS_INTERFACE_V2
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
struct _VIDEO_PORT_AGP_MAPPING * PVIDEO_PORT_AGP_MAPPING
_In_ PDEVICE_OBJECT DeviceObject
OUT PAGP_RELEASE_PHYSICAL AgpReleasePhysical
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
PHYSICAL_ADDRESS PhysicalAddress
OUT PAGP_COMMIT_VIRTUAL AgpCommitVirtual
NTSTATUS IopInitiatePnpIrp(PDEVICE_OBJECT DeviceObject, PIO_STATUS_BLOCK IoStatusBlock, UCHAR MinorFunction, PIO_STACK_LOCATION Stack OPTIONAL)
_In_ UCHAR _In_ UCHAR MinorFunction
_In_ PVOID _In_ ULONG Event
enum _VIDEO_PORT_CACHE_TYPE VIDEO_PORT_CACHE_TYPE
PINTERFACE_REFERENCE InterfaceReference
struct _INTERFACE * PINTERFACE
PDEVICE_OBJECT NTAPI IoGetAttachedDeviceReference(PDEVICE_OBJECT DeviceObject)
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
#define NT_SUCCESS(StatCode)
#define ObDereferenceObject
OUT PAGP_COMMIT_PHYSICAL AgpCommitPhysical
#define VIDEO_PORT_AGP_INTERFACE_VERSION_2
#define VIDEO_PORT_AGP_INTERFACE_VERSION_1
#define IRP_MN_QUERY_INTERFACE
#define STATUS_UNSUCCESSFUL
#define ExAllocatePoolWithTag(hernya, size, tag)
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS PhysicalAddress
PAGP_BUS_SET_RATE SetRate
PDEVICE_OBJECT NextDeviceObject
BOOLEAN NTAPI IntAgpCommitPhysical(IN PVOID HwDeviceExtension, IN PVOID PhysicalContext, IN ULONG Pages, IN ULONG Offset)
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetNextIrpStackLocation(_In_ PIRP Irp)
PVIDEO_PORT_AGP_MAPPING AgpMapping
OUT PINTERFACE_REFERENCE InterfaceReference
NTSTATUS NTAPI IntAgpGetInterface(IN PVOID HwDeviceExtension, IN OUT PINTERFACE Interface)
_In_ ULONG _In_ ULONG Offset
struct _VIDEO_PORT_AGP_VIRTUAL_MAPPING * PVIDEO_PORT_AGP_VIRTUAL_MAPPING
#define KeInitializeEvent(pEvt, foo, foo2)
OUT PAGP_RELEASE_VIRTUAL AgpReleaseVirtual
IN PVOID IN PVOID IN USHORT IN USHORT IN PINTERFACE Interface
static OUT PIO_STATUS_BLOCK IoStatusBlock
NTSTATUS NTAPI IoCallDriver(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
OUT PAGP_RESERVE_VIRTUAL AgpReserveVirtual
VOID NTAPI IntAgpReleaseVirtual(IN PVOID HwDeviceExtension, IN PVOID VirtualContext)
OUT PINTERFACE_DEREFERENCE InterfaceDereference
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
VOID NTAPI IntAgpFreeVirtual(IN PVOID HwDeviceExtension, IN PVOID VirtualContext, IN ULONG Pages, IN ULONG Offset)
PAGP_BUS_COMMIT_MEMORY CommitMemory
#define RtlZeroMemory(Destination, Length)
OUT PAGP_RESERVE_PHYSICAL AgpReservePhysical
struct _AGP_BUS_INTERFACE_STANDARD AGP_BUS_INTERFACE_STANDARD
PAGP_BUS_RELEASE_MEMORY ReleaseMemory
struct _VIDEO_PORT_AGP_INTERFACE_2 * PVIDEO_PORT_AGP_INTERFACE_2
struct _NAMED_PIPE_CREATE_PARAMETERS * Parameters
_In_ HANDLE ProcessHandle
PVOID NTAPI IntAgpReserveVirtual(IN PVOID HwDeviceExtension, IN HANDLE ProcessHandle, IN PVOID PhysicalContext, OUT PVOID *VirtualContext)
enum _MEMORY_CACHING_TYPE MEMORY_CACHING_TYPE
#define ExFreePoolWithTag(_P, _T)
VOID NTAPI IntAgpReleasePhysical(IN PVOID HwDeviceExtension, IN PVOID PhysicalContext)
_In_ PIO_STACK_LOCATION IrpSp
PAGP_BUS_RESERVE_MEMORY ReserveMemory
PAGP_BUS_FREE_MEMORY FreeMemory
PULONG MinorVersion OPTIONAL