DevVGA.h revision e60946156fb485f563a11846fd0836396e4bad92
43af8389304c77c3d4db525de8907cb74207c380vboxsync * DevVGA - VBox VGA/VESA device, internal header.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync * Copyright (C) 2006-2007 Oracle Corporation
43af8389304c77c3d4db525de8907cb74207c380vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
43af8389304c77c3d4db525de8907cb74207c380vboxsync * available from http://www.virtualbox.org. This file is free software;
43af8389304c77c3d4db525de8907cb74207c380vboxsync * you can redistribute it and/or modify it under the terms of the GNU
43af8389304c77c3d4db525de8907cb74207c380vboxsync * General Public License (GPL) as published by the Free Software
43af8389304c77c3d4db525de8907cb74207c380vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
43af8389304c77c3d4db525de8907cb74207c380vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
43af8389304c77c3d4db525de8907cb74207c380vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
43af8389304c77c3d4db525de8907cb74207c380vboxsync * --------------------------------------------------------------------
43af8389304c77c3d4db525de8907cb74207c380vboxsync * This code is based on:
43af8389304c77c3d4db525de8907cb74207c380vboxsync * QEMU internal VGA defines.
43af8389304c77c3d4db525de8907cb74207c380vboxsync * Copyright (c) 2003-2004 Fabrice Bellard
43af8389304c77c3d4db525de8907cb74207c380vboxsync * Permission is hereby granted, free of charge, to any person obtaining a copy
43af8389304c77c3d4db525de8907cb74207c380vboxsync * of this software and associated documentation files (the "Software"), to deal
43af8389304c77c3d4db525de8907cb74207c380vboxsync * in the Software without restriction, including without limitation the rights
43af8389304c77c3d4db525de8907cb74207c380vboxsync * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
43af8389304c77c3d4db525de8907cb74207c380vboxsync * copies of the Software, and to permit persons to whom the Software is
43af8389304c77c3d4db525de8907cb74207c380vboxsync * furnished to do so, subject to the following conditions:
43af8389304c77c3d4db525de8907cb74207c380vboxsync * The above copyright notice and this permission notice shall be included in
43af8389304c77c3d4db525de8907cb74207c380vboxsync * all copies or substantial portions of the Software.
1e7030f54deae0a8aa27817ab26c5d6d6c246541vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43af8389304c77c3d4db525de8907cb74207c380vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
43af8389304c77c3d4db525de8907cb74207c380vboxsync * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43af8389304c77c3d4db525de8907cb74207c380vboxsync * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4152e1d3f89dc5e2319a53c242e8e7cfcdf3726evboxsync * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
43af8389304c77c3d4db525de8907cb74207c380vboxsync * THE SOFTWARE.
43af8389304c77c3d4db525de8907cb74207c380vboxsync/** Use VBE bytewise I/O. Only needed for Windows Longhorn/Vista betas and backwards compatibility. */
43af8389304c77c3d4db525de8907cb74207c380vboxsync/** Use VBE new dynamic mode list.
43af8389304c77c3d4db525de8907cb74207c380vboxsync * If this is not defined, no checks are carried out to see if the modes all
43af8389304c77c3d4db525de8907cb74207c380vboxsync * fit into the framebuffer! See the VRAM_SIZE_FIX define. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** The default amount of VRAM. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** The maximum amount of VRAM. Limited by VBOX_MAX_ALLOC_PAGE_COUNT. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** The minimum amount of VRAM. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#endif /* VBOX_WITH_HGSMI */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/* bochs VBE support */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/* Cross reference with <VBox/Hardware/VBoxVideoVBE.h> */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#define VBE_DISPI_INDEX_NB_SAVED 0xb /* Number of saved registers (vbe_regs array) */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#define VBE_DISPI_INDEX_NB 0xc /* Total number of VBE registers */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#endif /* !CONFIG_BOCHS_VBE */
43af8389304c77c3d4db525de8907cb74207c380vboxsynctypedef struct vga_retrace_s {
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned frame_cclks; /* Character clocks per frame. */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned cclk_ns; /* Character clock duration in ns. */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned vb_start; /* Vertical blanking start (scanline). */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned vb_end; /* Vertical blanking end (scanline). */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned vb_end_ns; /* Vertical blanking end time (length) in ns. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned vs_start; /* Vertical sync start (scanline). */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned vs_end; /* Vertical sync end (scanline). */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned vs_start_ns; /* Vertical sync start time in ns. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned vs_end_ns; /* Vertical sync end time in ns. */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned h_total; /* Horizontal total (cclks per scanline). */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned h_total_ns; /* Scanline duration in ns. */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned hb_start; /* Horizontal blanking start (cclk). */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned hb_end; /* Horizontal blanking end (cclk). */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned hb_end_ns; /* Horizontal blanking end time (length) in ns. */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned v_freq_hz; /* Vertical refresh rate to emulate. */
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned long vram_offset; \
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned int vram_size; \
43af8389304c77c3d4db525de8907cb74207c380vboxsync /* display refresh support */ \
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync uint32_t last_width, last_height; /* in chars or pixels */ \
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync uint32_t last_scr_width, last_scr_height; /* in pixels */ \
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned int (*rgb_to_pixel)(unsigned int r, \
43af8389304c77c3d4db525de8907cb74207c380vboxsync unsigned int g, unsigned b); \
43af8389304c77c3d4db525de8907cb74207c380vboxsync /* hardware mouse cursor support */ \
4152e1d3f89dc5e2319a53c242e8e7cfcdf3726evboxsync uint32_t invalidated_y_table[VGA_MAX_HEIGHT / 32]; \
1e7030f54deae0a8aa27817ab26c5d6d6c246541vboxsync void (*cursor_draw_line)(struct VGAState *s, uint8_t *d, int y); \
1e7030f54deae0a8aa27817ab26c5d6d6c246541vboxsync /* tell for each page if it has been updated since the last time */ \
1e7030f54deae0a8aa27817ab26c5d6d6c246541vboxsync uint32_t last_ch_attr[CH_ATTR_SIZE]; /* XXX: make it dynamic */
1e7030f54deae0a8aa27817ab26c5d6d6c246541vboxsync#else /* VBOX */
1e7030f54deae0a8aa27817ab26c5d6d6c246541vboxsynctypedef void FNGETOFFSETS(struct VGAState *s, uint32_t *pline_offset, uint32_t *pstart_addr, uint32_t *pline_compare);
1e7030f54deae0a8aa27817ab26c5d6d6c246541vboxsynctypedef void FNGETRESOLUTION(struct VGAState *s, int *pwidth, int *pheight);
6efcec753717bae68ada4b060466934b111739fdvboxsynctypedef unsigned int FNRGBTOPIXEL(unsigned int r, unsigned int g, unsigned b);
6efcec753717bae68ada4b060466934b111739fdvboxsynctypedef void FNCURSORINVALIDATE(struct VGAState *s);
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsynctypedef void FNCURSORDRAWLINE(struct VGAState *s, uint8_t *d, int y);
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync/* bird: vram_offset have been remove, function pointers declared external,
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync some type changes, and some padding have been added. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /* display refresh support */ \
6efcec753717bae68ada4b060466934b111739fdvboxsync uint32_t last_width, last_height; /* in chars or pixels */ \
6efcec753717bae68ada4b060466934b111739fdvboxsync uint32_t last_scr_width, last_scr_height; /* in pixels */ \
6efcec753717bae68ada4b060466934b111739fdvboxsync /* hardware mouse cursor support */ \
6efcec753717bae68ada4b060466934b111739fdvboxsync uint32_t invalidated_y_table[VGA_MAX_HEIGHT / 32]; \
6efcec753717bae68ada4b060466934b111739fdvboxsync R3PTRTYPE(FNCURSORINVALIDATE *) cursor_invalidate; \
6efcec753717bae68ada4b060466934b111739fdvboxsync /* tell for each page if it has been updated since the last time */ \
6efcec753717bae68ada4b060466934b111739fdvboxsync uint32_t last_ch_attr[CH_ATTR_SIZE]; /* XXX: make it dynamic */
6efcec753717bae68ada4b060466934b111739fdvboxsync#endif /* VBOX */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsynctypedef struct VGAState {
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** end-of-common-state-marker */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** The physical address the VRAM was assigned. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** The R0 vram pointer... */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Pointer to the GC vram mapping. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** LFB was updated flag. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Indicates if the GC extensions are enabled or not. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Indicates if the R0 extensions are enabled or not. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Flag indicating that there are dirty bits. This is used to optimize the handler resetting. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Flag indicating that the VGA memory in the 0xa0000-0xbffff region has been remapped to allow direct access. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Whether to render the guest VRAM to the framebuffer memory. False only for some LFB modes. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync#endif /* VBOX_WITH_HGSMI */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync# if defined(VBOX_WITH_HGSMI) != defined(VBOX_WITH_VDMA)
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Current refresh timer interval. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Refresh timer handle - HC. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Bitmap tracking dirty pages. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync uint32_t au32DirtyBitmap[VGA_VRAM_MAX / PAGE_SIZE / 32];
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Pointer to vgaGCLFBAccessHandler(). */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Pointer to the device instance - RC Ptr. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Pointer to the device instance - R3 Ptr. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Pointer to the device instance - R0 Ptr. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** The critical section. */
0bb0c0c0e3f9e5fdb3e745715dde1af951c04998vboxsync /** LUN\#0: The display port base interface. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** LUN\#0: The display port interface. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync#if defined(VBOX_WITH_HGSMI) && (defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_WITH_CRHGSMI))
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** LUN\#0: VBVA callbacks interface */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync /** Pointer to base interface of the driver. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Pointer to display connector interface of the driver. */
cf9045d402be1e8b7344a439eaefe2ca4c2b53d3vboxsync /** The PCI device. */
0bb0c0c0e3f9e5fdb3e745715dde1af951c04998vboxsync STAMCOUNTER StatMapPage; /**< Counts IOMMMIOMapMMIO2Page calls. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync STAMCOUNTER StatUpdateDisp; /**< Counts vgaPortUpdateDisplay calls. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /* Keep track of ring 0 latched accesses to the VGA MMIO memory. */
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync /** VBE write data/index one byte buffer */
2b114c590cf5a19f8047cd7bde9c7e5ae00aa22bvboxsync /** VBE Extra Data write address one byte buffer */
0bb0c0c0e3f9e5fdb3e745715dde1af951c04998vboxsync /** Retrace emulation state */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The VBE BIOS extra data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The size of the VBE BIOS extra data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The VBE BIOS current memory address. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Current logo data offset. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The size of the BIOS logo data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The BIOS logo data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The name of the logo file. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Bitmap image data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Current logo command. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Bitmap width. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Bitmap height. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Bitmap planes. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Bitmap depth. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Bitmap compression. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Bitmap colors used. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Palette size. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Clear screen flag. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Palette data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The VGA BIOS ROM data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The size of the VGA BIOS ROM. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** The name of the VGA BIOS ROM file. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#endif /* VBOX */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Base port in the assigned PCI I/O space. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /* specifies guest driver caps, i.e. whether it can handle IRQs from the adapter,
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * the way it can handle async HGSMI command completion, etc. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#endif /* VBOX_WITH_HGSMI */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** VGA state. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** Pointer to the VGA state. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * VBE Bios Extra Data structure.
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * @remark duplicated in vbe.h.
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsynctypedef struct VBEHeader
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Signature (VBEHEADER_MAGIC). */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync /** Data size. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** VBE Extra Data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** Pointer to the VBE Extra Data. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** The value of the VBEHEADER::u16Signature field.
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * @remark duplicated in vbe.h. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** The extra port which is used to read the mode list.
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * @remark duplicated in vbe.h. */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/** The extra port which is used for debug printf.
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync * @remark duplicated in vbe.h. */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync#endif /* VBE_NEW_DYN_LIST */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsyncstatic inline int c6_to_8(int v)
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#endif /* !VBOX || IN_RING3 */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync/* @return host-guest flags that were set on reset
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * this allows the caller to make further cleaning when needed,
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync * e.g. reset the IRQ */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vbvaVHWACommandCompleteAsynch(PPDMIDISPLAYVBVACALLBACKS pInterface, PVBOXVHWACMD pCmd);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVBVASaveStatePrep (PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVBVASaveStateDone (PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#define PPDMIDISPLAYVBVACALLBACKS_2_PVGASTATE(_pcb) ( (PVGASTATE)((uint8_t *)(_pcb) - RT_OFFSETOF(VGASTATE, IVBVACallbacks)) )
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVDMACrHgsmiCommandCompleteAsync(PPDMIDISPLAYVBVACALLBACKS pInterface, PVBOXVDMACMD_CHROMIUM_CMD pCmd, int rc);
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsyncint vboxVDMACrHgsmiControlCompleteAsync(PPDMIDISPLAYVBVACALLBACKS pInterface, PVBOXVDMACMD_CHROMIUM_CTL pCmd, int rc);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVBVASaveStateExec (PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVBVALoadStateExec (PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t u32Version);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVBVALoadStateDone (PPDMDEVINS pDevIns, PSSMHANDLE pSSM);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVDMAConstruct(PVGASTATE pVGAState, uint32_t cPipeElements);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncvoid vboxVDMAControl(PVBOXVDMAHOST pVdma, PVBOXVDMA_CTL pCmd, uint32_t cbCmd);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncvoid vboxVDMACommand(PVBOXVDMAHOST pVdma, PVBOXVDMACBUF_DR pCmd, uint32_t cbCmd);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVDMASaveStateExecPrep(struct VBOXVDMAHOST *pVdma, PSSMHANDLE pSSM);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncint vboxVDMASaveStateExecDone(struct VBOXVDMAHOST *pVdma, PSSMHANDLE pSSM);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync# endif /* VBOX_WITH_VDMA */
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync#endif /* VBOX_WITH_HGSMI */
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsyncvoid vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base,
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsyncuint32_t vga_mem_readb(void *opaque, target_phys_addr_t addr);
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsyncvoid vga_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val);
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsyncvoid vga_invalidate_scanlines(VGAState *s, int y1, int y2);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncvoid vga_draw_cursor_line_8(uint8_t *d1, const uint8_t *src1,
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync unsigned int color_xor);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncvoid vga_draw_cursor_line_16(uint8_t *d1, const uint8_t *src1,
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned int color_xor);
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsyncvoid vga_draw_cursor_line_32(uint8_t *d1, const uint8_t *src1,
1a62088b18e24a01c1dc85e13d60468e78bd649dvboxsync unsigned int color_xor);
3a1d76f6489a485dfa7e3784c1fa76b4a53c28afvboxsync#endif /* !VBOX */