2005-04-18 20:18:06 +00:00
|
|
|
/*
|
|
|
|
* ReactOS VGA miniport video driver
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004 Filip Navara, Herve Poussineau
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2005-04-18 20:18:06 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VGAMP_H
|
|
|
|
#define VGAMP_H
|
|
|
|
|
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
|
2014-02-04 16:46:41 +00:00
|
|
|
#include <ntdef.h>
|
|
|
|
#include <miniport.h>
|
|
|
|
#include <video.h>
|
2005-12-01 19:51:08 +00:00
|
|
|
|
|
|
|
#define UNIMPLEMENTED \
|
|
|
|
VideoPortDebugPrint(Error, "WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
|
2005-04-18 20:18:06 +00:00
|
|
|
|
2011-03-16 21:07:25 +00:00
|
|
|
VOID
|
|
|
|
InitVGAMode(VOID);
|
2005-04-18 20:18:06 +00:00
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
VP_STATUS NTAPI
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAFindAdapter(
|
|
|
|
PVOID DeviceExtension,
|
|
|
|
PVOID Context,
|
|
|
|
PWSTR ArgumentString,
|
|
|
|
PVIDEO_PORT_CONFIG_INFO ConfigInfo,
|
|
|
|
PUCHAR Again);
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
BOOLEAN NTAPI
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAInitialize(
|
|
|
|
PVOID DeviceExtension);
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
BOOLEAN NTAPI
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAStartIO(
|
|
|
|
PVOID DeviceExtension,
|
|
|
|
PVIDEO_REQUEST_PACKET RequestPacket);
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
/*static BOOLEAN NTAPI
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAInterrupt(PVOID DeviceExtension);*/
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
BOOLEAN NTAPI
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAResetHw(
|
|
|
|
PVOID DeviceExtension,
|
|
|
|
ULONG Columns,
|
|
|
|
ULONG Rows);
|
|
|
|
|
2008-11-30 11:16:55 +00:00
|
|
|
/*static VOID NTAPI
|
2005-04-18 20:18:06 +00:00
|
|
|
VGATimer(PVOID DeviceExtension);*/
|
|
|
|
|
|
|
|
/* Mandatory IoControl routines */
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAMapVideoMemory(
|
|
|
|
IN PVOID DeviceExtension,
|
|
|
|
IN PVIDEO_MEMORY RequestedAddress,
|
|
|
|
OUT PVIDEO_MEMORY_INFORMATION MapInformation,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAQueryAvailModes(
|
|
|
|
OUT PVIDEO_MODE_INFORMATION ReturnedModes,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAQueryCurrentMode(
|
|
|
|
OUT PVIDEO_MODE_INFORMATION CurrentMode,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAQueryNumAvailModes(
|
|
|
|
OUT PVIDEO_NUM_MODES NumberOfModes,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
VOID
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAResetDevice(OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGASetColorRegisters(
|
|
|
|
IN PVIDEO_CLUT ColorLookUpTable,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGASetPaletteRegisters(
|
2006-01-07 22:34:25 +00:00
|
|
|
IN PUSHORT PaletteRegisters,
|
2005-04-18 20:18:06 +00:00
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGASetCurrentMode(
|
|
|
|
IN PVIDEO_MODE RequestedMode,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAShareVideoMemory(
|
|
|
|
IN PVIDEO_SHARE_MEMORY RequestedMemory,
|
|
|
|
OUT PVIDEO_MEMORY_INFORMATION ReturnedMemory,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAUnmapVideoMemory(
|
|
|
|
IN PVOID DeviceExtension,
|
|
|
|
IN PVIDEO_MEMORY MemoryToUnmap,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
2006-01-07 22:34:25 +00:00
|
|
|
BOOLEAN
|
2005-04-18 20:18:06 +00:00
|
|
|
VGAUnshareVideoMemory(
|
|
|
|
IN PVIDEO_MEMORY MemoryToUnshare,
|
|
|
|
OUT PSTATUS_BLOCK StatusBlock);
|
|
|
|
|
|
|
|
/* Optional IoControl routines */
|
|
|
|
/* None actually */
|
|
|
|
|
|
|
|
#endif /* VGAMP_H */
|