VBoxVideo.h revision 28856293d6b0f4a7ff2a78291c17597790f55c52
0bbadb0a2f07033a6fc3d3290fc53b0f0772956cBob Halley * VirtualBox Video interface.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * Copyright (C) 2006-2012 Oracle Corporation
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * This file is part of VirtualBox Open Source Edition (OSE), as
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * available from http://www.virtualbox.org. This file is free software;
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * you can redistribute it and/or modify it under the terms of the GNU
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * General Public License (GPL) as published by the Free Software
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * Foundation, in version 2 as it comes in the "COPYING" file of the
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * The contents of this file may alternatively be used under the terms
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * of the Common Development and Distribution License Version 1.0
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * VirtualBox OSE distribution, in which case the provisions of the
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * CDDL are applicable instead of those of the GPL.
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * You may elect to license modified versions of this file under the
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * terms and conditions of either the GPL or the CDDL or both.
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley * The last 4096 bytes of the guest VRAM contains the generic info for all
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley * DualView chunks: sizes and offsets of chunks. This is filled by miniport.
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley * Last 4096 bytes of each chunk contain chunk specific data: framebuffer info,
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * etc. This is used exclusively by the corresponding instance of a display driver.
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * The VRAM layout:
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * Last 4096 bytes - Adapter information area.
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * 4096 bytes aligned miniport heap (value specified in the config rouded up).
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * Slack - what left after dividing the VRAM.
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * 4096 bytes aligned framebuffers:
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * last 4096 bytes of each framebuffer is the display information area.
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * The Virtual Graphics Adapter information in the guest VRAM is stored by the
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * guest video driver using structures prepended by VBOXVIDEOINFOHDR.
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley * When the guest driver writes dword 0 to the VBE_DISPI_INDEX_VBOX_VIDEO
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * the host starts to process the info. The first element at the start of
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * the 4096 bytes region should be normally be a LINK that points to
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * actual information chain. That way the guest driver can have some
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley * fixed layout of the information memory block and just rewrite
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * the link to point to relevant memory chain.
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley * The processing stops at the END element.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * The host can access the memory only when the port IO is processed.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * All data that will be needed later must be copied from these 4096 bytes.
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * But other VRAM can be used by host until the mode is disabled.
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley * The guest driver writes dword 0xffffffff to the VBE_DISPI_INDEX_VBOX_VIDEO
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * to disable the mode.
c92ba071011bbc09e7146729606fd9e89a9be02cBob Halley * VBE_DISPI_INDEX_VBOX_VIDEO is used to read the configuration information
c92ba071011bbc09e7146729606fd9e89a9be02cBob Halley * from the host and issue commands to the host.
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * The guest writes the VBE_DISPI_INDEX_VBOX_VIDEO index register, the the
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley * following operations with the VBE data register can be performed:
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * Operation Result
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * write 16 bit value NOP
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * read 16 bit value count of monitors
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * write 32 bit value sets the vbox command value and the command processed by the host
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * read 32 bit value result of the last vbox command is returned
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley/* The size of the information. */
f47bb8d1f3a2e3edae11942d0d7e62e96caa5720Bob Halley * The minimum HGSMI heap size is PAGE_SIZE (4096 bytes) and is a restriction of the
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley * runtime heapsimple API. Use minimum 2 pages here, because the info area also may
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * contain other data (for example HGSMIHOSTFLAGS structure).
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley/* The value for port IO to let the adapter to interpret the adapter memory. */
225c880310c7ff8ada24bc40ba2a0373a163b9e2Bob Halley#define VBOX_VIDEO_DISABLE_ADAPTER_MEMORY 0xFFFFFFFF
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley/* The value for port IO to let the adapter to interpret the adapter memory. */
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley#define VBOX_VIDEO_INTERPRET_ADAPTER_MEMORY 0x00000000
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley/* The value for port IO to let the adapter to interpret the display memory.
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley * The display number is encoded in low 16 bits.
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley#define VBOX_VIDEO_INTERPRET_DISPLAY_MEMORY_BASE 0x00010000
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley/* The end of the information. */
225c880310c7ff8ada24bc40ba2a0373a163b9e2Bob Halley/* Instructs the host to fetch the next VBOXVIDEOINFOHDR at the given offset of VRAM. */
225c880310c7ff8ada24bc40ba2a0373a163b9e2Bob Halley/* Information about a display memory position. */
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley/* Information about a screen. */
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley/* Information about host notifications for the driver. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley/* Information about non-volatile guest VRAM heap. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley/* VBVA flush. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley/* Query configuration value. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley /* Relative offset in VRAM */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley/* Resides in adapter info memory. Describes a display VRAM chunk. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley /* Index of the framebuffer assigned by guest. */
c09dae9683f7fb55564d117bf7dcfcd74674b68eBob Halley /* Absolute offset in VRAM of the framebuffer to be displayed on the monitor. */
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley /* The size of the memory that can be used for the screen. */
5291519dba9e3b8c6e624b7c6d4b001f1d137c60Bob Halley /* The size of the memory that is used for the Display information.
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley * The information is at u32Offset + u32FramebufferSize
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley/* Resides in display info area, describes the current video mode. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley /* Physical X origin relative to the primary screen. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley /* Physical Y origin relative to the primary screen. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley /* The scan line size in bytes. */
f47bb8d1f3a2e3edae11942d0d7e62e96caa5720Bob Halley /* Width of the screen. */
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley /* Height of the screen. */
f191e3b4e87f7acb6f6b6536fa18b859265eff5fBob Halley /* Color depth. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley /* VBOX_VIDEO_INFO_SCREEN_F_* */
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley/* The guest initializes the structure to 0. The positions of the structure in the
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * display info area must not be changed, host will update the structure. Guest checks
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * the events and modifies the structure as a response to host.
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOX_VIDEO_INFO_HOST_EVENTS_F_NONE 0x00000000
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOX_VIDEO_INFO_HOST_EVENTS_F_VRDP_RESET 0x00000080
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley /* Host events. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley/* Resides in adapter info memory. Describes the non-volatile VRAM heap. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley /* Absolute offset in VRAM of the start of the heap. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley /* The size of the heap. */
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley/* Display information area. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley /* Absolute offset in VRAM of the start of the VBVA QUEUE. 0 to disable VBVA. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley /* The size of the VBVA QUEUE. 0 to disable VBVA. */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley/* the command processing was asynch, set by the host to indicate asynch command completion
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * must not be cleared once set, the command completion is performed by issuing a host->guest completion command
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley * while keeping this flag unchanged */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley/* asynch completion is performed by issuing the event */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOXVHWACMD_FLAG_GH_ASYNCH_EVENT 0x00000001
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley/* issue interrupt on asynch completion */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley/* guest does not do any op on completion of this command, the host may copy the command and indicate that it does not need the command anymore
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley * by setting the VBOXVHWACMD_FLAG_HG_ASYNCH_RETURNED flag */
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley#define VBOXVHWACMD_FLAG_GH_ASYNCH_NOCOMPLETION 0x00000004
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley/* the host has copied the VBOXVHWACMD_FLAG_GH_ASYNCH_NOCOMPLETION command and returned it to the guest */
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley#define VBOXVHWACMD_FLAG_HG_ASYNCH_RETURNED 0x00020000
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley/* this is the host->host cmd, i.e. a configuration command posted by the host to the framebuffer */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley volatile int32_t Flags; /* ored VBOXVHWACMD_FLAG_xxx values */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley uint64_t GuestVBVAReserved1; /* field internally used by the guest VBVA cmd handling, must NOT be modified by clients */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley uint64_t GuestVBVAReserved2; /* field internally used by the guest VBVA cmd handling, must NOT be modified by clients */
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOXVHWACMD_HEADSIZE() (RT_OFFSETOF(VBOXVHWACMD, body))
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOXVHWACMD_SIZE_FROMBODYSIZE(_s) (VBOXVHWACMD_HEADSIZE() + (_s))
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOXVHWACMD_SIZE(_tCmd) (VBOXVHWACMD_SIZE_FROMBODYSIZE(sizeof(_tCmd)))
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halleytypedef unsigned int VBOXVHWACMD_LENGTH;
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOXVHWACMD_BODY(_p, _t) ((_t*)(_p)->body)
4c7d0f3c386a609d596152a6956d1fd5f1d43aa4Bob Halley#define VBOXVHWACMD_HEAD(_pb) ((VBOXVHWACMD*)((uint8_t *)(_pb) - RT_OFFSETOF(VBOXVHWACMD, body)))
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley/*#define VBOXVHWA_SD_REFRESHRATE 0x00040000*/
f47bb8d1f3a2e3edae11942d0d7e62e96caa5720Bob Halley#define VBOXVHWA_CKEYCAPS_DESTBLTCLRSPACE 0x00000002
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_DESTBLTCLRSPACEYUV 0x00000004
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley#define VBOXVHWA_CKEYCAPS_DESTOVERLAYCLRSPACE 0x00000020
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_DESTOVERLAYCLRSPACEYUV 0x00000040
f47bb8d1f3a2e3edae11942d0d7e62e96caa5720Bob Halley#define VBOXVHWA_CKEYCAPS_DESTOVERLAYONEACTIVE 0x00000080
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_DESTOVERLAYYUV 0x00000100
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_SRCBLTCLRSPACE 0x00000400
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_SRCBLTCLRSPACEYUV 0x00000800
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_SRCOVERLAYCLRSPACE 0x00004000
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_SRCOVERLAYCLRSPACEYUV 0x00008000
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_SRCOVERLAYONEACTIVE 0x00010000
38b612afe14bd466894d31bfd1cd663950e69924Bob Halley#define VBOXVHWA_CKEYCAPS_SRCOVERLAYYUV 0x00020000
6052dab738a9ad320742b0f286cb81a711a07663Bob Halley#define VBOXVHWA_CKEYCAPS_NOCOSTOVERLAY 0x00040000
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley#define VBOXVHWA_BLT_EXTENDED_LINEAR_CONTENT 0x00000004
298523461941e171ce97ea8b76892ac01bb7a49fBob Halley#define VBOXVHWA_BLT_EXTENDED_PRESENTATION_STRETCHFACTOR 0x00000010
5f74ac33a07148f2f28b26870c5beccb778b4bd3Bob Halley#define VBOXVHWA_OVERFX_MIRRORLEFTRIGHT 0x00000002
9c018a718ad4f0b77bcd20494b74358315da5162Bob Halley#define VBOXVHWA_CAPS2_CANRENDERWINDOWED 0x00080000
9c018a718ad4f0b77bcd20494b74358315da5162Bob Halley/*#define VBOXVHWA_CAPS2_FLIPINTERVAL 0x00200000*/
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley/*#define VBOXVHWA_CAPS2_FLIPNOVSYNC 0x00400000*/
f47bb8d1f3a2e3edae11942d0d7e62e96caa5720Bob Halley#define VBOXVHWAINFO2_SIZE(_cFourCC) RT_OFFSETOF(VBOXVHWACMD_QUERYINFO2, FourCC[_cFourCC])
} in;
typedef struct VBOXVHWACMD_SURF_BLT
} in;
#ifdef VBOX_WITH_WDDM
typedef struct VBOXVHWACMD_SURF_COLORFILL
} in;
typedef struct VBOXVHWACMD_SURF_FLIP
} in;
typedef struct VBOXVHWACMD_SURF_COLORKEY_SET
} in;
typedef struct VBOXVHWACMD_SURF_OVERLAY_UPDATE
} in;
typedef struct VBOXVHWACMD_SURF_OVERLAY_SETPOSITION
} in;
typedef struct VBOXVHWACMD_HH_CONSTRUCT
void *pVM;
void *pvVRAM;
typedef struct VBOXVHWACMD_HH_SAVESTATE_SAVEPERFORM
typedef struct VBOXVHWACMD_HH_SAVESTATE_LOADPERFORM
#pragma pack()
typedef struct VBVAHOSTFLAGS
typedef struct VBVABUFFER
} VBVABUFFER;
#ifdef VBOX_WITH_VIDEOHWACCEL
#ifdef VBOX_WITH_VDMA
#ifdef VBOX_WITH_VDMA
#ifdef VBOX_WITH_VIDEOHWACCEL
typedef struct VBVAHOSTCMDVHWACMDCOMPLETE
#pragma pack()
typedef struct VBVAHOSTCMDEVENT
typedef struct VBVAHOSTCMD
/* destination ID if >=0 specifies display index, otherwize the command is directed to the miniport */
#define VBVAHOSTCMD_HDR(_pBody) ((VBVAHOSTCMD*)(((uint8_t*)_pBody) - RT_OFFSETOF(VBVAHOSTCMD, body)))
#pragma pack()
#define VBOX_VBVA_CONF32_MONITOR_COUNT 0
typedef struct VBVACONF32
} VBVACONF32;
typedef struct VBVAINFOVIEW
} VBVAINFOVIEW;
typedef struct VBVAINFOHEAP
} VBVAINFOHEAP;
typedef struct VBVAFLUSH
} VBVAFLUSH;
typedef struct VBVACMDVBVASUBMIT
typedef struct VBVACMDVBVAFLUSH
typedef struct VBVAINFOSCREEN
typedef struct VBVAENABLE
} VBVAENABLE;
typedef struct VBVAENABLE_EX
typedef struct VBVAMOUSEPOINTERSHAPE
/* the guest driver can handle asynch guest cmd completion by reading the command offset from io port */
typedef struct VBVACAPS
} VBVACAPS;
typedef struct VBVASCANLINECFG
typedef struct VBVASCANLINEINFO
typedef struct VBVAQUERYMODEHINTS
typedef struct VBVAMODEHINT
} VBVAMODEHINT;
typedef struct VBVAREPORTINPUTMAPPING
typedef struct VBVACURSORPOSITION
#pragma pack()
typedef struct VBOXSHGSMIHEADER
#pragma pack()
* must not be cleared once set, the command completion is performed by issuing a host->guest completion command
#ifdef VBOX_WITH_VDMA
typedef struct VBOXVDMA_CTL
typedef struct VBOXVDMA_RECTL
typedef struct VBOXVDMA_SURF_DESC
typedef struct VBOXVDMACBUF_DR
} Location;
#define VBOXVDMACBUF_DR_FROM_TAIL(_pCmd) ( (VBOXVDMACBUF_DR*)(((uint8_t*)(_pCmd)) - sizeof (VBOXVDMACBUF_DR)) )
typedef struct VBOXVDMACMD
#define VBOXVDMACMD_FROM_BODY(_pCmd) ( (VBOXVDMACMD*)(((uint8_t*)(_pCmd)) - VBOXVDMACMD_HEADER_SIZE()) )
#define VBOXVDMACMD_BODY_FIELD_OFFSET(_ot, _t, _f) ( (_ot)(uintptr_t)( VBOXVDMACMD_BODY(0, uint8_t) + RT_OFFSETOF(_t, _f) ) )
typedef struct VBOXVDMACMD_DMA_PRESENT_BLT
typedef struct VBOXVDMACMD_DMA_PRESENT_SHADOW2PRIMARY
typedef struct VBOXVDMACMD_DMA_BPB_TRANSFER
} Src;
} Dst;
typedef struct VBOXVDMACMD_SYSMEMEL
((PVBOXVDMACMD_SYSMEMEL)(((uint8_t*)(_pEl))+RT_OFFSETOF(VBOXVDMACMD_SYSMEMEL, phBuf[(_pEl)->cPages]))) \
typedef struct VBOXVDMACMD_DMA_BPB_TRANSFER_VRAMSYS
typedef struct VBOXVDMACMD_DMA_BPB_FILL
typedef struct VBOXVDMA_CHILD_STATUS
typedef struct VBOXVDMACMD_CHILD_STATUS_IRQ
# pragma pack()
typedef struct VBOXVDMACMD_CHROMIUM_BUFFER
typedef struct VBOXVDMACMD_CHROMIUM_CMD
typedef struct VBOXVDMACMD_CHROMIUM_CTL
typedef DECLCALLBACK(int) FNCRHGSMICMDCOMPLETION(HCRHGSMICMDCOMPLETION hCompletion, PVBOXVDMACMD_CHROMIUM_CMD pCmd, int rc);
typedef struct CR_MAIN_INTERFACE
typedef struct VBOXVDMACMD_CHROMIUM_CTL_CRHGSMI_SETUP_MAINCB
typedef DECLCALLBACK(int) FNVBOXCRCON_SVR_CRCMD(HVBOXCRCON_SERVER hServer, PVBOXVDMACMD_CHROMIUM_CMD pCmd, uint32_t cbCmd);
typedef DECLCALLBACK(int) FNVBOXCRCON_SVR_CRCTL(HVBOXCRCON_SERVER hServer, PVBOXVDMACMD_CHROMIUM_CTL pCtl, uint32_t cbCmd);
* 1. if there is no 3D data displayed on screen, returns VINF_EOF immediately w/o calling any PFNVBOXCRCON_3DRGN_XXX callbacks
* 2. otherwise calls PFNVBOXCRCON_3DRGN_ONSUBMIT, submits the "regions get" request to the CrOpenGL server to process it asynchronously and returns VINF_SUCCESS
typedef DECLCALLBACK(int) FNVBOXCRCON_SVR_3DRGN_GET(HVBOXCRCON_SERVER hServer, HVBOXCRCON_3DRGN_CLIENT hRgnClient, uint32_t idScreen);
/* called from the PFNVBOXCRCON_SVR_3DRGN_GET callback in case server has 3D data and is going to process the request asynchronously,
typedef DECLCALLBACK(int) FNVBOXCRCON_3DRGN_ONSUBMIT(HVBOXCRCON_3DRGN_CLIENT hRgnClient, uint32_t idScreen, HVBOXCRCON_3DRGN_ASYNCCLIENT *phRgnAsyncClient);
/* called from the "regions get" command processing thread, to indicate that the "regions get" is started.
typedef DECLCALLBACK(int) FNVBOXCRCON_3DRGN_BEGIN(HVBOXCRCON_3DRGN_ASYNCCLIENT hRgnAsyncClient, uint32_t idScreen);
typedef DECLCALLBACK(int) FNVBOXCRCON_3DRGN_REPORT(HVBOXCRCON_3DRGN_ASYNCCLIENT hRgnAsyncClient, uint32_t idScreen, void *pvData, uint32_t cbStride, const RTRECT *pRect);
/* called from the "regions get" command processing thread, to indicate that the "regions get" is completed.
typedef DECLCALLBACK(int) FNVBOXCRCON_3DRGN_END(HVBOXCRCON_3DRGN_ASYNCCLIENT hRgnAsyncClient, uint32_t idScreen);
typedef DECLCALLBACK(int) FNVBOXCRCON_CLT_CRCTL_COMPLETE(HVBOXCRCON_CLIENT hClient, PVBOXVDMACMD_CHROMIUM_CTL pCtl, int rc);
typedef DECLCALLBACK(int) FNVBOXCRCON_CLT_CRCMD_COMPLETE(HVBOXCRCON_CLIENT hClient, PVBOXVDMACMD_CHROMIUM_CMD pCmd, int rc);
typedef struct VBOXCRCON_SERVER_CALLBACKS
typedef struct VBOXCRCON_CLIENT_CALLBACKS
typedef struct VBOXVDMACMD_CHROMIUM_CTL_CRCONNECT
typedef struct VBOXCMDVBVA_HDR
} complexCmdEl;
} u2;
typedef struct VBOXCMDVBVA_CRCMD_BUFFER
typedef struct VBOXCMDVBVA_CRCMD_CMD
typedef struct VBOXCMDVBVA_CRCMD
typedef struct VBOXCMDVBVA_ALLOCINFO
typedef struct VBOXCMDVBVA_ALLOCDESC
typedef struct VBOXCMDVBVA_RECT
typedef struct VBOXCMDVBVA_POINT
int16_t x;
int16_t y;
typedef struct VBOXCMDVBVA_BLT_HDR
typedef struct VBOXCMDVBVA_BLT_PRIMARY
typedef struct VBOXCMDVBVA_BLT_PRIMARY_GENERIC_A8R8G8B8
typedef struct VBOXCMDVBVA_BLT_OFFPRIMSZFMT_OR_ID
typedef struct VBOXCMDVBVA_BLT_SAMEDIM_A8R8G8B8
typedef struct VBOXCMDVBVA_BLT_GENERIC_A8R8G8B8
typedef struct VBOXCMDVBVA_FLIP
typedef struct VBOXCMDVBVA_CLRFILL_HDR
typedef struct VBOXCMDVBVA_CLRFILL_PRIMARY
typedef struct VBOXCMDVBVA_CLRFILL_GENERIC_A8R8G8B8
typedef struct VBOXCMDVBVA_SYSMEMEL
typedef struct VBOXCMDVBVA_PAGING_TRANSFER_DATA
typedef struct VBOXCMDVBVA_PAGING_TRANSFER
typedef struct VBOXCMDVBVA_PAGING_FILL
/* paging transfer can NOT be initiated for allocations having host 3D object (hostID) associated */
typedef struct VBOXCMDVBVA_SYSMEMCMD
typedef struct VBOXCMDVBVA_CTL
typedef struct VBOXCMDVBVA_CTL_ENABLE
#define VBOXCMDVBVA_SCREENMAP_SIZE(_elType) ((VBOX_VIDEO_MAX_SCREENS + sizeof (_elType) - 1) / sizeof (_elType))
#define VBOXCMDVBVA_SCREENMAP_DECL(_elType, _name) _elType _name[VBOXCMDVBVA_SCREENMAP_SIZE(_elType)]
typedef struct VBOXCMDVBVA_RESIZE_ENTRY
typedef struct VBOXCMDVBVA_RESIZE
typedef struct VBOXCMDVBVA_CTL_RESIZE
typedef struct VBOXCMDVBVA_3DCTL
typedef struct VBOXCMDVBVA_3DCTL_CONNECT
typedef struct VBOXCMDVBVA_3DCTL_CMD
typedef struct VBOXCMDVBVA_CTL_3DCTL_CMD
typedef struct VBOXCMDVBVA_CTL_3DCTL_CONNECT
typedef struct VBOXCMDVBVA_CTL_3DCTL
#pragma pack()
#ifdef VBOXVDMA_WITH_VBVA
typedef struct VBOXVDMAVBVACMD
#pragma pack()