DevVGA.h revision 6afaacf5e6280ae3d82bf16f06d056beb0441433
1N/A * Copyright (C) 2006-2007 innotek GmbH 1N/A * This file is part of VirtualBox Open Source Edition (OSE), as 1N/A * you can redistribute it and/or modify it under the terms of the GNU 1N/A * General Public License (GPL) as published by the Free Software 1N/A * Foundation, in version 2 as it comes in the "COPYING" file of the 1N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 1N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 1N/A * -------------------------------------------------------------------- 1N/A * This code is based on: 1N/A * QEMU internal VGA defines. 1N/A * Copyright (c) 2003-2004 Fabrice Bellard 1N/A * Permission is hereby granted, free of charge, to any person obtaining a copy 1N/A * of this software and associated documentation files (the "Software"), to deal 1N/A * in the Software without restriction, including without limitation the rights 1N/A * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1N/A * copies of the Software, and to permit persons to whom the Software is 1N/A * furnished to do so, subject to the following conditions: 1N/A * The above copyright notice and this permission notice shall be included in 1N/A * all copies or substantial portions of the Software. 1N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1N/A * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 1N/A/* bochs VBE support */ 1N/A/* The VBOX interface id. Indicates support for VBE_DISPI_INDEX_VBOX_VIDEO. */ 1N/A#
endif /* !CONFIG_BOCHS_VBE */ 1N/A /* display refresh support */ \
1N/A unsigned int g,
unsigned b); \
1N/A /* hardware mouse cursor support */ \
1N/A /* tell for each page if it has been updated since the last time */ \
1N/Atypedef unsigned int FNRGBTOPIXEL(
unsigned int r,
unsigned int g,
unsigned b);
1N/A/* bird: vram_offset have been remove, function pointers declared external, 1N/A some type changes, and some padding have been added. */ 1N/A /* display refresh support */ \
1N/A /* hardware mouse cursor support */ \
1N/A /* tell for each page if it has been updated since the last time */ \
1N/A /** end-of-common-state-marker */ /** The physical address the VRAM was assigned. */ /** Pointer to GC vram mapping. */ /** @todo r=bird: bool not RTUINT (my fault I guess). */ /** LFB was updated flag. */ /** Indicates if the GC extensions are enabled or not. */ /** Indicates if the R0 extensions are enabled or not. */ /** Pointer to vgaGCLFBAccessHandler(). */ /** Flag indicating that there are dirty bits. This is used to optimize the handler resetting. */ /** Bitmap tracking dirty pages. */ /** Pointer to the device instance - HC Ptr. */ /* * Pointer to the device instance - GC Ptr. */ /*GCPTRTYPE(PPDMDEVINS) pDevInsGC;*/ /** The display port base interface. */ /** The display port interface. */ /** Pointer to base interface of the driver. */ /** Pointer to display connector interface of the driver. */ /** Refresh timer handle - HC. */ /** Current refresh timer interval. */ /** Whether to render the guest VRAM to the framebuffer memory. False only for some LFB modes. */ /** VBE Extra Data write address one byte buffer */ /** The VBE BIOS extra data. */ /** The size of the VBE BIOS extra data. */ /** The VBE BIOS current memory address. */ /** Pointer to the VGA state. */ * VBE Bios Extra Data structure. * @remark duplicated in vbe.h. /** Signature (VBEHEADER_MAGIC). */ /** Pointer to the VBE Extra Data. */ /** The value of the VBEHEADER::u16Signature field. * @remark duplicated in vbe.h. */ /** The extra port which is used to read the mode list. * @remark duplicated in vbe.h. */ /** The extra port which is used for debug printf. * @remark duplicated in vbe.h. */ #
endif /* VBE_NEW_DYN_LIST */ return (v <<
2) | (b <<
1) | b;
#
endif /* !VBOX || IN_RING3 */