2 * ReactOS Xbox miniport video driver
3 * Copyright (C) 2004 Gé van Geldorp
5 * Based on VBE miniport video driver
6 * Copyright (C) 2004 Filip Navara
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 /* INCLUDES *******************************************************************/
31 #define PAGE_SIZE 4096
40 /* FIXME: NDK not compatible with miniport drivers */
41 #define SystemBasicInformation 0
42 typedef struct _SYSTEM_BASIC_INFORMATION
45 ULONG TimerResolution
;
47 ULONG NumberOfPhysicalPages
;
48 ULONG LowestPhysicalPageNumber
;
49 ULONG HighestPhysicalPageNumber
;
50 ULONG AllocationGranularity
;
51 ULONG MinimumUserModeAddress
;
52 ULONG MaximumUserModeAddress
;
53 KAFFINITY ActiveProcessorsAffinityMask
;
54 CCHAR NumberOfProcessors
;
55 } SYSTEM_BASIC_INFORMATION
, *PSYSTEM_BASIC_INFORMATION
;
59 ZwQuerySystemInformation(
60 IN ULONG SystemInformationClass
,
61 OUT PVOID SystemInformation
,
63 OUT PULONG ResultLength
68 PHYSICAL_ADDRESS PhysControlStart
;
70 PVOID VirtControlStart
;
71 PHYSICAL_ADDRESS PhysFrameBufferStart
;
72 } XBOXVMP_DEVICE_EXTENSION
, *PXBOXVMP_DEVICE_EXTENSION
;
76 IN PVOID HwDeviceExtension
,
78 IN PWSTR ArgumentString
,
79 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
83 XboxVmpInitialize(PVOID HwDeviceExtension
);
87 PVOID HwDeviceExtension
,
88 PVIDEO_REQUEST_PACKET RequestPacket
);
92 PVOID DeviceExtension
,
98 PVOID HwDeviceExtension
,
100 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
103 XboxVmpSetPowerState(
104 PVOID HwDeviceExtension
,
106 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
109 XboxVmpSetCurrentMode(
110 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
111 PVIDEO_MODE RequestedMode
,
112 PSTATUS_BLOCK StatusBlock
);
116 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
117 PSTATUS_BLOCK StatusBlock
);
120 XboxVmpMapVideoMemory(
121 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
122 PVIDEO_MEMORY RequestedAddress
,
123 PVIDEO_MEMORY_INFORMATION MapInformation
,
124 PSTATUS_BLOCK StatusBlock
);
127 XboxVmpUnmapVideoMemory(
128 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
129 PVIDEO_MEMORY VideoMemory
,
130 PSTATUS_BLOCK StatusBlock
);
133 XboxVmpQueryNumAvailModes(
134 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
135 PVIDEO_NUM_MODES Modes
,
136 PSTATUS_BLOCK StatusBlock
);
139 XboxVmpQueryAvailModes(
140 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
141 PVIDEO_MODE_INFORMATION ReturnedModes
,
142 PSTATUS_BLOCK StatusBlock
);
145 XboxVmpQueryCurrentMode(
146 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
147 PVIDEO_MODE_INFORMATION VideoModeInfo
,
148 PSTATUS_BLOCK StatusBlock
);
151 XboxVmpSetColorRegisters(
152 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
153 PVIDEO_CLUT ColorLookUpTable
,
154 PSTATUS_BLOCK StatusBlock
);
156 #endif /* XBOXVMP_H */