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 PHYSICAL_ADDRESS PhysControlStart
;
61 PVOID VirtControlStart
;
62 PHYSICAL_ADDRESS PhysFrameBufferStart
;
63 } XBOXVMP_DEVICE_EXTENSION
, *PXBOXVMP_DEVICE_EXTENSION
;
67 IN PVOID HwDeviceExtension
,
69 IN PWSTR ArgumentString
,
70 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
74 XboxVmpInitialize(PVOID HwDeviceExtension
);
78 PVOID HwDeviceExtension
,
79 PVIDEO_REQUEST_PACKET RequestPacket
);
83 PVOID DeviceExtension
,
89 PVOID HwDeviceExtension
,
91 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
95 PVOID HwDeviceExtension
,
97 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
100 XboxVmpSetCurrentMode(
101 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
102 PVIDEO_MODE RequestedMode
,
103 PSTATUS_BLOCK StatusBlock
);
107 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
108 PSTATUS_BLOCK StatusBlock
);
111 XboxVmpMapVideoMemory(
112 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
113 PVIDEO_MEMORY RequestedAddress
,
114 PVIDEO_MEMORY_INFORMATION MapInformation
,
115 PSTATUS_BLOCK StatusBlock
);
118 XboxVmpUnmapVideoMemory(
119 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
120 PVIDEO_MEMORY VideoMemory
,
121 PSTATUS_BLOCK StatusBlock
);
124 XboxVmpQueryNumAvailModes(
125 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
126 PVIDEO_NUM_MODES Modes
,
127 PSTATUS_BLOCK StatusBlock
);
130 XboxVmpQueryAvailModes(
131 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
132 PVIDEO_MODE_INFORMATION ReturnedModes
,
133 PSTATUS_BLOCK StatusBlock
);
136 XboxVmpQueryCurrentMode(
137 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
138 PVIDEO_MODE_INFORMATION VideoModeInfo
,
139 PSTATUS_BLOCK StatusBlock
);
142 XboxVmpSetColorRegisters(
143 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
144 PVIDEO_CLUT ColorLookUpTable
,
145 PSTATUS_BLOCK StatusBlock
);
147 #endif /* XBOXVMP_H */