2 * ReactOS VGA miniport video driver
4 * Copyright (C) 2004 Filip Navara, Herve Poussineau
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 /* INCLUDES *******************************************************************/
30 #define UNIMPLEMENTED \
31 VideoPortDebugPrint(Error, "WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
36 static VP_STATUS STDCALL
38 PVOID DeviceExtension
,
41 PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
44 static BOOLEAN STDCALL
46 PVOID DeviceExtension
);
48 static BOOLEAN STDCALL
50 PVOID DeviceExtension
,
51 PVIDEO_REQUEST_PACKET RequestPacket
);
53 /*static BOOLEAN STDCALL
54 VGAInterrupt(PVOID DeviceExtension);*/
56 static BOOLEAN STDCALL
58 PVOID DeviceExtension
,
63 VGATimer(PVOID DeviceExtension);*/
65 /* Mandatory IoControl routines */
68 IN PVOID DeviceExtension
,
69 IN PVIDEO_MEMORY RequestedAddress
,
70 OUT PVIDEO_MEMORY_INFORMATION MapInformation
,
71 OUT PSTATUS_BLOCK StatusBlock
);
75 OUT PVIDEO_MODE_INFORMATION ReturnedModes
,
76 OUT PSTATUS_BLOCK StatusBlock
);
80 OUT PVIDEO_MODE_INFORMATION CurrentMode
,
81 OUT PSTATUS_BLOCK StatusBlock
);
84 VGAQueryNumAvailModes(
85 OUT PVIDEO_NUM_MODES NumberOfModes
,
86 OUT PSTATUS_BLOCK StatusBlock
);
89 VGAResetDevice(OUT PSTATUS_BLOCK StatusBlock
);
93 IN PVIDEO_CLUT ColorLookUpTable
,
94 OUT PSTATUS_BLOCK StatusBlock
);
97 VGASetPaletteRegisters(
98 IN PWORD PaletteRegisters
,
99 OUT PSTATUS_BLOCK StatusBlock
);
103 IN PVIDEO_MODE RequestedMode
,
104 OUT PSTATUS_BLOCK StatusBlock
);
108 IN PVIDEO_SHARE_MEMORY RequestedMemory
,
109 OUT PVIDEO_MEMORY_INFORMATION ReturnedMemory
,
110 OUT PSTATUS_BLOCK StatusBlock
);
114 IN PVOID DeviceExtension
,
115 IN PVIDEO_MEMORY MemoryToUnmap
,
116 OUT PSTATUS_BLOCK StatusBlock
);
119 VGAUnshareVideoMemory(
120 IN PVIDEO_MEMORY MemoryToUnshare
,
121 OUT PSTATUS_BLOCK StatusBlock
);
123 /* Optional IoControl routines */