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 along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 /* INCLUDES *******************************************************************/
34 #define UNIMPLEMENTED \
35 VideoPortDebugPrint(Error, "WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
42 PVOID DeviceExtension
,
45 PVIDEO_PORT_CONFIG_INFO ConfigInfo
,
50 PVOID DeviceExtension
);
54 PVOID DeviceExtension
,
55 PVIDEO_REQUEST_PACKET RequestPacket
);
57 /*static BOOLEAN NTAPI
58 VGAInterrupt(PVOID DeviceExtension);*/
62 PVOID DeviceExtension
,
67 VGATimer(PVOID DeviceExtension);*/
69 /* Mandatory IoControl routines */
72 IN PVOID DeviceExtension
,
73 IN PVIDEO_MEMORY RequestedAddress
,
74 OUT PVIDEO_MEMORY_INFORMATION MapInformation
,
75 OUT PSTATUS_BLOCK StatusBlock
);
79 OUT PVIDEO_MODE_INFORMATION ReturnedModes
,
80 OUT PSTATUS_BLOCK StatusBlock
);
84 OUT PVIDEO_MODE_INFORMATION CurrentMode
,
85 OUT PSTATUS_BLOCK StatusBlock
);
88 VGAQueryNumAvailModes(
89 OUT PVIDEO_NUM_MODES NumberOfModes
,
90 OUT PSTATUS_BLOCK StatusBlock
);
93 VGAResetDevice(OUT PSTATUS_BLOCK StatusBlock
);
97 IN PVIDEO_CLUT ColorLookUpTable
,
98 OUT PSTATUS_BLOCK StatusBlock
);
101 VGASetPaletteRegisters(
102 IN PUSHORT PaletteRegisters
,
103 OUT PSTATUS_BLOCK StatusBlock
);
107 IN PVIDEO_MODE RequestedMode
,
108 OUT PSTATUS_BLOCK StatusBlock
);
112 IN PVIDEO_SHARE_MEMORY RequestedMemory
,
113 OUT PVIDEO_MEMORY_INFORMATION ReturnedMemory
,
114 OUT PSTATUS_BLOCK StatusBlock
);
118 IN PVOID DeviceExtension
,
119 IN PVIDEO_MEMORY MemoryToUnmap
,
120 OUT PSTATUS_BLOCK StatusBlock
);
123 VGAUnshareVideoMemory(
124 IN PVIDEO_MEMORY MemoryToUnshare
,
125 OUT PSTATUS_BLOCK StatusBlock
);
127 /* Optional IoControl routines */