ReactOS 0.4.15-dev-7712-gbbbcd8e
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
28extern "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
41
42typedef BOOLEAN
44 IN PVOID HwDeviceExtension,
45 IN PVOID PhysicalReserveContext,
46 IN ULONG Pages,
48
49typedef PVOID
51 IN PVOID HwDeviceExtension,
52 IN PVOID VirtualReserveContext,
53 IN ULONG Pages,
55
56typedef VOID
58 IN PVOID HwDeviceExtension,
59 IN PVOID PhysicalReserveContext,
60 IN ULONG Pages,
62
63typedef VOID
65 IN PVOID HwDeviceExtension,
66 IN PVOID VirtualReserveContext,
67 IN ULONG Pages,
69
70typedef VOID
72 IN PVOID HwDeviceExtension,
73 IN PVOID PhysicalReserveContext);
74
75typedef VOID
77 IN PVOID HwDeviceExtension,
78 IN PVOID VirtualReserveContext);
79
82 IN PVOID HwDeviceExtension,
83 IN ULONG Pages,
85 OUT PVOID *PhysicalReserveContext);
86
87typedef PVOID
89 IN PVOID HwDeviceExtension,
91 IN PVOID PhysicalReserveContext,
92 OUT PVOID *VirtualReserveContext);
93
94typedef BOOLEAN
96 IN PVOID HwDeviceExtension,
97 IN ULONG AgpRate);
98
110
112NTAPI
114 IN PVOID HwDeviceExtension,
115 IN PVIDEO_PORT_AGP_SERVICES AgpServices);
116
117#ifdef __cplusplus
118}
119#endif
unsigned char BOOLEAN
#define VOID
Definition: acefi.h:82
#define PHYSICAL_ADDRESS
Definition: env_spec_w32.h:53
_In_ HANDLE ProcessHandle
Definition: mmfuncs.h:403
_In_ ULONG _In_ ULONG Offset
Definition: ntddpcm.h:101
#define BOOLEAN
Definition: pedump.c:73
PAGP_RESERVE_PHYSICAL AgpReservePhysical
Definition: videoagp.h:100
PAGP_RESERVE_VIRTUAL AgpReserveVirtual
Definition: videoagp.h:104
PAGP_COMMIT_VIRTUAL AgpCommitVirtual
Definition: videoagp.h:106
PAGP_FREE_PHYSICAL AgpFreePhysical
Definition: videoagp.h:103
ULONGLONG AllocationLimit
Definition: videoagp.h:108
PAGP_RELEASE_PHYSICAL AgpReleasePhysical
Definition: videoagp.h:101
PAGP_RELEASE_VIRTUAL AgpReleaseVirtual
Definition: videoagp.h:105
PAGP_FREE_VIRTUAL AgpFreeVirtual
Definition: videoagp.h:107
PAGP_COMMIT_PHYSICAL AgpCommitPhysical
Definition: videoagp.h:102
#define NTAPI
Definition: typedefs.h:36
void * PVOID
Definition: typedefs.h:50
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
#define OUT
Definition: typedefs.h:40
BOOLEAN(NTAPI * PAGP_COMMIT_PHYSICAL)(IN PVOID HwDeviceExtension, IN PVOID PhysicalReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:43
BOOLEAN(NTAPI * PAGP_SET_RATE)(IN PVOID HwDeviceExtension, IN ULONG AgpRate)
Definition: videoagp.h:95
struct _VIDEO_PORT_AGP_SERVICES * PVIDEO_PORT_AGP_SERVICES
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
VOID(NTAPI * PAGP_FREE_PHYSICAL)(IN PVOID HwDeviceExtension, IN PVOID PhysicalReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:57
BOOLEAN NTAPI VideoPortGetAgpServices(IN PVOID HwDeviceExtension, IN PVIDEO_PORT_AGP_SERVICES AgpServices)
struct _VIDEO_PORT_AGP_SERVICES VIDEO_PORT_AGP_SERVICES
PVOID(NTAPI * PAGP_RESERVE_VIRTUAL)(IN PVOID HwDeviceExtension, IN HANDLE ProcessHandle, IN PVOID PhysicalReserveContext, OUT PVOID *VirtualReserveContext)
Definition: videoagp.h:88
PVOID(NTAPI * PAGP_COMMIT_VIRTUAL)(IN PVOID HwDeviceExtension, IN PVOID VirtualReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:50
VOID(NTAPI * PAGP_RELEASE_PHYSICAL)(IN PVOID HwDeviceExtension, IN PVOID PhysicalReserveContext)
Definition: videoagp.h:71
enum _VIDEO_PORT_CACHE_TYPE VIDEO_PORT_CACHE_TYPE
_VIDEO_PORT_CACHE_TYPE
Definition: videoagp.h:36
@ VpNonCached
Definition: videoagp.h:37
@ VpWriteCombined
Definition: videoagp.h:38
@ VpCached
Definition: videoagp.h:39
VOID(NTAPI * PAGP_FREE_VIRTUAL)(IN PVOID HwDeviceExtension, IN PVOID VirtualReserveContext, IN ULONG Pages, IN ULONG Offset)
Definition: videoagp.h:64
VOID(NTAPI * PAGP_RELEASE_VIRTUAL)(IN PVOID HwDeviceExtension, IN PVOID VirtualReserveContext)
Definition: videoagp.h:76