ReactOS  0.4.15-dev-321-g2d9b385
videoagp.h
Go to the documentation of this file.
1 /*
2  * videoagp.h
3  *
4  * Video miniport AGP interface
5  *
6  * This file is part of the w32api package.
7  *
8  * Contributors:
9  * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10  *
11  * THIS SOFTWARE IS NOT COPYRIGHTED
12  *
13  * This source code is offered for use in the public domain. You may
14  * use, modify or distribute it freely.
15  *
16  * This code is distributed in the hope that it will be useful but
17  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18  * DISCLAIMED. This includes but is not limited to warranties of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20  *
21  */
22 
23 #pragma once
24 
25 #define __VIDEOAGP_H__
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #define VIDEO_AGP_RATE_1X 0x00000001
32 #define VIDEO_AGP_RATE_2X 0x00000002
33 #define VIDEO_AGP_RATE_4X 0x00000004
34 #define VIDEO_AGP_RATE_8X 0x00000008
35 
36 typedef enum _VIDEO_PORT_CACHE_TYPE {
41 
42 typedef BOOLEAN
44  IN PVOID HwDeviceExtension,
45  IN PVOID PhysicalReserveContext,
46  IN ULONG Pages,
47  IN ULONG Offset);
48 
49 typedef PVOID
51  IN PVOID HwDeviceExtension,
52  IN PVOID VirtualReserveContext,
53  IN ULONG Pages,
54  IN ULONG Offset);
55 
56 typedef VOID
58  IN PVOID HwDeviceExtension,
59  IN PVOID PhysicalReserveContext,
60  IN ULONG Pages,
61  IN ULONG Offset);
62 
63 typedef VOID
65  IN PVOID HwDeviceExtension,
66  IN PVOID VirtualReserveContext,
67  IN ULONG Pages,
68  IN ULONG Offset);
69 
70 typedef VOID
72  IN PVOID HwDeviceExtension,
73  IN PVOID PhysicalReserveContext);
74 
75 typedef VOID
77  IN PVOID HwDeviceExtension,
78  IN PVOID VirtualReserveContext);
79 
80 typedef PHYSICAL_ADDRESS
82  IN PVOID HwDeviceExtension,
83  IN ULONG Pages,
84  IN VIDEO_PORT_CACHE_TYPE Caching,
85  OUT PVOID *PhysicalReserveContext);
86 
87 typedef PVOID
89  IN PVOID HwDeviceExtension,
91  IN PVOID PhysicalReserveContext,
92  OUT PVOID *VirtualReserveContext);
93 
94 typedef BOOLEAN
96  IN PVOID HwDeviceExtension,
97  IN ULONG AgpRate);
98 
99 typedef struct _VIDEO_PORT_AGP_SERVICES {
110 
111 BOOLEAN
112 NTAPI
114  IN PVOID HwDeviceExtension,
115  IN PVIDEO_PORT_AGP_SERVICES AgpServices);
116 
117 #ifdef __cplusplus
118 }
119 #endif
VOID(NTAPI * PAGP_FREE_PHYSICAL)(IN PVOID HwDeviceExtension, IN PVOID PhysicalReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:57
#define IN
Definition: typedefs.h:39
VOID(NTAPI * PAGP_RELEASE_VIRTUAL)(IN PVOID HwDeviceExtension, IN PVOID VirtualReserveContext)
Definition: videoagp.h:76
PAGP_RESERVE_PHYSICAL AgpReservePhysical
Definition: videoagp.h:100
struct _VIDEO_PORT_AGP_SERVICES * PVIDEO_PORT_AGP_SERVICES
VOID(NTAPI * PAGP_RELEASE_PHYSICAL)(IN PVOID HwDeviceExtension, IN PVOID PhysicalReserveContext)
Definition: videoagp.h:71
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
_In_ ULONG _In_ ULONG Offset
Definition: ntddpcm.h:101
BOOLEAN(NTAPI * PAGP_SET_RATE)(IN PVOID HwDeviceExtension, IN ULONG AgpRate)
Definition: videoagp.h:95
unsigned char BOOLEAN
enum _VIDEO_PORT_CACHE_TYPE VIDEO_PORT_CACHE_TYPE
ULONGLONG AllocationLimit
Definition: videoagp.h:108
void * PVOID
Definition: retypes.h:9
PAGP_RELEASE_PHYSICAL AgpReleasePhysical
Definition: videoagp.h:101
uint64_t ULONGLONG
Definition: typedefs.h:66
PVOID(NTAPI * PAGP_COMMIT_VIRTUAL)(IN PVOID HwDeviceExtension, IN PVOID VirtualReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:50
struct _VIDEO_PORT_AGP_SERVICES VIDEO_PORT_AGP_SERVICES
#define VOID
Definition: acefi.h:82
BOOLEAN(NTAPI * PAGP_COMMIT_PHYSICAL)(IN PVOID HwDeviceExtension, IN PVOID PhysicalReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:43
PAGP_FREE_VIRTUAL AgpFreeVirtual
Definition: videoagp.h:107
PAGP_COMMIT_VIRTUAL AgpCommitVirtual
Definition: videoagp.h:106
PHYSICAL_ADDRESS(NTAPI * PAGP_RESERVE_PHYSICAL)(IN PVOID HwDeviceExtension, IN ULONG Pages, IN VIDEO_PORT_CACHE_TYPE Caching, OUT PVOID *PhysicalReserveContext)
Definition: videoagp.h:81
PAGP_RELEASE_VIRTUAL AgpReleaseVirtual
Definition: videoagp.h:105
PAGP_COMMIT_PHYSICAL AgpCommitPhysical
Definition: videoagp.h:102
#define PHYSICAL_ADDRESS
Definition: env_spec_w32.h:53
#define BOOLEAN
Definition: pedump.c:73
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
PAGP_RESERVE_VIRTUAL AgpReserveVirtual
Definition: videoagp.h:104
_VIDEO_PORT_CACHE_TYPE
Definition: videoagp.h:36
PAGP_FREE_PHYSICAL AgpFreePhysical
Definition: videoagp.h:103
PVOID(NTAPI * PAGP_RESERVE_VIRTUAL)(IN PVOID HwDeviceExtension, IN HANDLE ProcessHandle, IN PVOID PhysicalReserveContext, OUT PVOID *VirtualReserveContext)
Definition: videoagp.h:88
VOID(NTAPI * PAGP_FREE_VIRTUAL)(IN PVOID HwDeviceExtension, IN PVOID VirtualReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:64
_In_ HANDLE ProcessHandle
Definition: mmfuncs.h:403
BOOLEAN NTAPI VideoPortGetAgpServices(IN PVOID HwDeviceExtension, IN PVIDEO_PORT_AGP_SERVICES AgpServices)