2 * ReactOS Xbox miniport video driver
4 * Based on VBE miniport video driver
5 * Copyright (C) 2004 Filip Navara
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 /* INCLUDES *******************************************************************/
27 #include <ddk/ntddk.h>
28 #include <ddk/miniport.h>
29 #include <ddk/video.h>
30 #include <ddk/ntddvdeo.h>
31 #include <ndk/ntndk.h>
38 PHYSICAL_ADDRESS PhysControlStart
;
40 PVOID VirtControlStart
;
41 PHYSICAL_ADDRESS PhysFrameBufferStart
;
42 } XBOXVMP_DEVICE_EXTENSION
, *PXBOXVMP_DEVICE_EXTENSION
;
46 IN PVOID HwDeviceExtension
,
48 IN PWSTR ArgumentString
,
49 IN OUT PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
53 XboxVmpInitialize(PVOID HwDeviceExtension
);
57 PVOID HwDeviceExtension
,
58 PVIDEO_REQUEST_PACKET RequestPacket
);
62 PVOID DeviceExtension
,
68 PVOID HwDeviceExtension
,
70 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
74 PVOID HwDeviceExtension
,
76 PVIDEO_POWER_MANAGEMENT VideoPowerControl
);
79 XboxVmpSetCurrentMode(
80 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
81 PVIDEO_MODE RequestedMode
,
82 PSTATUS_BLOCK StatusBlock
);
86 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
87 PSTATUS_BLOCK StatusBlock
);
90 XboxVmpMapVideoMemory(
91 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
92 PVIDEO_MEMORY RequestedAddress
,
93 PVIDEO_MEMORY_INFORMATION MapInformation
,
94 PSTATUS_BLOCK StatusBlock
);
97 XboxVmpUnmapVideoMemory(
98 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
99 PVIDEO_MEMORY VideoMemory
,
100 PSTATUS_BLOCK StatusBlock
);
103 XboxVmpQueryNumAvailModes(
104 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
105 PVIDEO_NUM_MODES Modes
,
106 PSTATUS_BLOCK StatusBlock
);
109 XboxVmpQueryAvailModes(
110 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
111 PVIDEO_MODE_INFORMATION ReturnedModes
,
112 PSTATUS_BLOCK StatusBlock
);
115 XboxVmpQueryCurrentMode(
116 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
117 PVIDEO_MODE_INFORMATION VideoModeInfo
,
118 PSTATUS_BLOCK StatusBlock
);
121 XboxVmpSetColorRegisters(
122 PXBOXVMP_DEVICE_EXTENSION DeviceExtension
,
123 PVIDEO_CLUT ColorLookUpTable
,
124 PSTATUS_BLOCK StatusBlock
);
126 #endif /* XBOXVMP_H */