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 *******************************************************************/
28 #include <ddk/ntddk.h>
29 #include <ddk/miniport.h>
30 #include <ddk/video.h>
31 #include <ddk/ntddvdeo.h>
32 #include <ndk/ntndk.h>
39 PHYSICAL_ADDRESS PhysControlStart
;
41 PVOID VirtControlStart
;
42 PHYSICAL_ADDRESS PhysFrameBufferStart
;
43 } XBOXVMP_DEVICE_EXTENSION
, *PXBOXVMP_DEVICE_EXTENSION
;
47 IN PVOID HwDeviceExtension
,
49 IN PWSTR ArgumentString
,
50 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
54 XboxVmpInitialize(PVOID HwDeviceExtension
);
58 PVOID HwDeviceExtension
,
59 PVIDEO_REQUEST_PACKET RequestPacket
);
63 PVOID DeviceExtension
,
69 PVOID HwDeviceExtension
,
71 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
75 PVOID HwDeviceExtension
,
77 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
80 XboxVmpSetCurrentMode(
81 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
82 PVIDEO_MODE RequestedMode
,
83 PSTATUS_BLOCK StatusBlock
);
87 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
88 PSTATUS_BLOCK StatusBlock
);
91 XboxVmpMapVideoMemory(
92 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
93 PVIDEO_MEMORY RequestedAddress
,
94 PVIDEO_MEMORY_INFORMATION MapInformation
,
95 PSTATUS_BLOCK StatusBlock
);
98 XboxVmpUnmapVideoMemory(
99 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
100 PVIDEO_MEMORY VideoMemory
,
101 PSTATUS_BLOCK StatusBlock
);
104 XboxVmpQueryNumAvailModes(
105 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
106 PVIDEO_NUM_MODES Modes
,
107 PSTATUS_BLOCK StatusBlock
);
110 XboxVmpQueryAvailModes(
111 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
112 PVIDEO_MODE_INFORMATION ReturnedModes
,
113 PSTATUS_BLOCK StatusBlock
);
116 XboxVmpQueryCurrentMode(
117 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
118 PVIDEO_MODE_INFORMATION VideoModeInfo
,
119 PSTATUS_BLOCK StatusBlock
);
122 XboxVmpSetColorRegisters(
123 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
124 PVIDEO_CLUT ColorLookUpTable
,
125 PSTATUS_BLOCK StatusBlock
);
127 #endif /* XBOXVMP_H */