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 *******************************************************************/
29 #pragma message ("INVESTIGATE ME")
32 #if 0 //#ifdef _MSC_VER
34 #define PAGE_SIZE 4096
44 /* FIXME: NDK not compatible with miniport drivers */
45 #define SystemBasicInformation 0
46 typedef struct _SYSTEM_BASIC_INFORMATION
49 ULONG TimerResolution
;
51 ULONG NumberOfPhysicalPages
;
52 ULONG LowestPhysicalPageNumber
;
53 ULONG HighestPhysicalPageNumber
;
54 ULONG AllocationGranularity
;
55 ULONG MinimumUserModeAddress
;
56 ULONG MaximumUserModeAddress
;
57 KAFFINITY ActiveProcessorsAffinityMask
;
58 CCHAR NumberOfProcessors
;
59 } SYSTEM_BASIC_INFORMATION
, *PSYSTEM_BASIC_INFORMATION
;
63 ZwQuerySystemInformation(
64 IN ULONG SystemInformationClass
,
65 OUT PVOID SystemInformation
,
67 OUT PULONG ResultLength
72 PHYSICAL_ADDRESS PhysControlStart
;
74 PVOID VirtControlStart
;
75 PHYSICAL_ADDRESS PhysFrameBufferStart
;
76 } XBOXVMP_DEVICE_EXTENSION
, *PXBOXVMP_DEVICE_EXTENSION
;
80 IN PVOID HwDeviceExtension
,
82 IN PWSTR ArgumentString
,
83 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
87 XboxVmpInitialize(PVOID HwDeviceExtension
);
91 PVOID HwDeviceExtension
,
92 PVIDEO_REQUEST_PACKET RequestPacket
);
96 PVOID DeviceExtension
,
101 XboxVmpGetPowerState(
102 PVOID HwDeviceExtension
,
104 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
107 XboxVmpSetPowerState(
108 PVOID HwDeviceExtension
,
110 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
113 XboxVmpSetCurrentMode(
114 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
115 PVIDEO_MODE RequestedMode
,
116 PSTATUS_BLOCK StatusBlock
);
120 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
121 PSTATUS_BLOCK StatusBlock
);
124 XboxVmpMapVideoMemory(
125 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
126 PVIDEO_MEMORY RequestedAddress
,
127 PVIDEO_MEMORY_INFORMATION MapInformation
,
128 PSTATUS_BLOCK StatusBlock
);
131 XboxVmpUnmapVideoMemory(
132 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
133 PVIDEO_MEMORY VideoMemory
,
134 PSTATUS_BLOCK StatusBlock
);
137 XboxVmpQueryNumAvailModes(
138 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
139 PVIDEO_NUM_MODES Modes
,
140 PSTATUS_BLOCK StatusBlock
);
143 XboxVmpQueryAvailModes(
144 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
145 PVIDEO_MODE_INFORMATION ReturnedModes
,
146 PSTATUS_BLOCK StatusBlock
);
149 XboxVmpQueryCurrentMode(
150 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
151 PVIDEO_MODE_INFORMATION VideoModeInfo
,
152 PSTATUS_BLOCK StatusBlock
);
155 XboxVmpSetColorRegisters(
156 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
157 PVIDEO_CLUT ColorLookUpTable
,
158 PSTATUS_BLOCK StatusBlock
);
160 #endif /* XBOXVMP_H */