DevVGA.h revision 85e5ab5adbba74b522731762dd05ca88cb529140
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * DevVGA - VBox VGA/VESA device, internal header.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * Copyright (C) 2006-2007 Oracle Corporation
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * available from http://www.virtualbox.org. This file is free software;
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * you can redistribute it and/or modify it under the terms of the GNU
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync * General Public License (GPL) as published by the Free Software
#ifdef VBOX
#ifdef VBOX_WITH_HGSMI
# include "HGSMI/HGSMIHost.h"
#include "DevVGASavedState.h"
#define CONFIG_BOCHS_VBE
#ifdef VBOX
#ifdef VBOX
#ifdef VBOX_WITH_HGSMI
#ifdef CONFIG_BOCHS_VBE
#define VGA_STATE_COMMON_BOCHS_VBE \
#define VGA_STATE_COMMON_BOCHS_VBE
#ifndef VBOX
#define VGA_STATE_COMMON \
unsigned long vram_offset; \
unsigned int vram_size; \
int ar_flip_flop; \
int *pwidth, \
int *pheight); \
int graphic_mode; \
unsigned int (*rgb_to_pixel)(unsigned int r, \
struct VGAState;
typedef void FNGETOFFSETS(struct VGAState *s, uint32_t *pline_offset, uint32_t *pstart_addr, uint32_t *pline_compare);
typedef unsigned int FNRGBTOPIXEL(unsigned int r, unsigned int g, unsigned b);
#define VGA_STATE_COMMON \
#ifdef VBOXVDMA
typedef struct VGAState {
#ifdef VBOX
bool fLFBUpdated;
bool fGCEnabled;
bool fR0Enabled;
bool fHasDirtyBits;
/** Flag indicating that the VGA memory in the 0xa0000-0xbffff region has been remapped to allow direct access. */
bool fRemappedVGA;
bool fRenderVRAM;
#ifdef VBOX_WITH_HGSMI
#ifdef VBOXVDMA
#ifdef VBE_BYTEWISE_IO
# ifdef VBE_NEW_DYN_LIST
#ifdef VBE_NEW_DYN_LIST
#ifdef VBOX_WITH_HGSMI
#ifdef VBOXVDMA
} VGAState;
#ifdef VBOX
#ifdef VBE_NEW_DYN_LIST
* @remark duplicated in vbe.h.
typedef struct VBEHeader
} VBEHeader;
* @remark duplicated in vbe.h. */
* @remark duplicated in vbe.h. */
* @remark duplicated in vbe.h. */
static inline int c6_to_8(int v)
#ifdef VBOX_WITH_HGSMI
# ifdef VBOX_WITH_VIDEOHWACCEL
# ifdef VBOXVDMA
#ifndef VBOX
int poffset, int w,
unsigned int color_xor);
int poffset, int w,
unsigned int color_xor);
int poffset, int w,
unsigned int color_xor);