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 #include <ndk/exfuncs.h>
35 PHYSICAL_ADDRESS PhysControlStart
;
37 PVOID VirtControlStart
;
38 PHYSICAL_ADDRESS PhysFrameBufferStart
;
39 } XBOXVMP_DEVICE_EXTENSION
, *PXBOXVMP_DEVICE_EXTENSION
;
43 IN PVOID HwDeviceExtension
,
45 IN PWSTR ArgumentString
,
46 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
50 XboxVmpInitialize(PVOID HwDeviceExtension
);
54 PVOID HwDeviceExtension
,
55 PVIDEO_REQUEST_PACKET RequestPacket
);
59 PVOID DeviceExtension
,
65 PVOID HwDeviceExtension
,
67 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
71 PVOID HwDeviceExtension
,
73 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
76 XboxVmpSetCurrentMode(
77 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
78 PVIDEO_MODE RequestedMode
,
79 PSTATUS_BLOCK StatusBlock
);
83 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
84 PSTATUS_BLOCK StatusBlock
);
87 XboxVmpMapVideoMemory(
88 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
89 PVIDEO_MEMORY RequestedAddress
,
90 PVIDEO_MEMORY_INFORMATION MapInformation
,
91 PSTATUS_BLOCK StatusBlock
);
94 XboxVmpUnmapVideoMemory(
95 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
96 PVIDEO_MEMORY VideoMemory
,
97 PSTATUS_BLOCK StatusBlock
);
100 XboxVmpQueryNumAvailModes(
101 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
102 PVIDEO_NUM_MODES Modes
,
103 PSTATUS_BLOCK StatusBlock
);
106 XboxVmpQueryAvailModes(
107 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
108 PVIDEO_MODE_INFORMATION ReturnedModes
,
109 PSTATUS_BLOCK StatusBlock
);
112 XboxVmpQueryCurrentMode(
113 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
114 PVIDEO_MODE_INFORMATION VideoModeInfo
,
115 PSTATUS_BLOCK StatusBlock
);
118 XboxVmpSetColorRegisters(
119 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
120 PVIDEO_CLUT ColorLookUpTable
,
121 PSTATUS_BLOCK StatusBlock
);
123 #endif /* XBOXVMP_H */