make lsass, win32k and vbe/xbox miniports use ndk instead of old headers
[reactos.git] / reactos / drivers / video / miniport / xboxvmp / xboxvmp.h
1 /*
2 * ReactOS Xbox miniport video driver
3 *
4 * Based on VBE miniport video driver
5 * Copyright (C) 2004 Filip Navara
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21
22 #ifndef XBOXVMP_H
23 #define XBOXVMP_H
24
25 /* INCLUDES *******************************************************************/
26
27 #include <ddk/ntddk.h>
28 #include <ddk/miniport.h>
29 #include <ddk/video.h>
30 #include <ddk/ntddvdeo.h>
31 #include <ndk/ntndk.h>
32
33 #define NDEBUG
34 #include <debug.h>
35
36 typedef struct
37 {
38 PHYSICAL_ADDRESS PhysControlStart;
39 ULONG ControlLength;
40 PVOID VirtControlStart;
41 PHYSICAL_ADDRESS PhysFrameBufferStart;
42 } XBOXVMP_DEVICE_EXTENSION, *PXBOXVMP_DEVICE_EXTENSION;
43
44 VP_STATUS STDCALL
45 XboxVmpFindAdapter(
46 IN PVOID HwDeviceExtension,
47 IN PVOID HwContext,
48 IN PWSTR ArgumentString,
49 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo,
50 OUT PUCHAR Again);
51
52 BOOLEAN STDCALL
53 XboxVmpInitialize(PVOID HwDeviceExtension);
54
55 BOOLEAN STDCALL
56 XboxVmpStartIO(
57 PVOID HwDeviceExtension,
58 PVIDEO_REQUEST_PACKET RequestPacket);
59
60 BOOLEAN STDCALL
61 XboxVmpResetHw(
62 PVOID DeviceExtension,
63 ULONG Columns,
64 ULONG Rows);
65
66 VP_STATUS STDCALL
67 XboxVmpGetPowerState(
68 PVOID HwDeviceExtension,
69 ULONG HwId,
70 PVIDEO_POWER_MANAGEMENT VideoPowerControl);
71
72 VP_STATUS STDCALL
73 XboxVmpSetPowerState(
74 PVOID HwDeviceExtension,
75 ULONG HwId,
76 PVIDEO_POWER_MANAGEMENT VideoPowerControl);
77
78 BOOL FASTCALL
79 XboxVmpSetCurrentMode(
80 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
81 PVIDEO_MODE RequestedMode,
82 PSTATUS_BLOCK StatusBlock);
83
84 BOOL FASTCALL
85 XboxVmpResetDevice(
86 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
87 PSTATUS_BLOCK StatusBlock);
88
89 BOOL FASTCALL
90 XboxVmpMapVideoMemory(
91 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
92 PVIDEO_MEMORY RequestedAddress,
93 PVIDEO_MEMORY_INFORMATION MapInformation,
94 PSTATUS_BLOCK StatusBlock);
95
96 BOOL FASTCALL
97 XboxVmpUnmapVideoMemory(
98 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
99 PVIDEO_MEMORY VideoMemory,
100 PSTATUS_BLOCK StatusBlock);
101
102 BOOL FASTCALL
103 XboxVmpQueryNumAvailModes(
104 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
105 PVIDEO_NUM_MODES Modes,
106 PSTATUS_BLOCK StatusBlock);
107
108 BOOL FASTCALL
109 XboxVmpQueryAvailModes(
110 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
111 PVIDEO_MODE_INFORMATION ReturnedModes,
112 PSTATUS_BLOCK StatusBlock);
113
114 BOOL FASTCALL
115 XboxVmpQueryCurrentMode(
116 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
117 PVIDEO_MODE_INFORMATION VideoModeInfo,
118 PSTATUS_BLOCK StatusBlock);
119
120 BOOL FASTCALL
121 XboxVmpSetColorRegisters(
122 PXBOXVMP_DEVICE_EXTENSION DeviceExtension,
123 PVIDEO_CLUT ColorLookUpTable,
124 PSTATUS_BLOCK StatusBlock);
125
126 #endif /* XBOXVMP_H */
127
128 /* EOF */