VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Miniport/vboxioctl.h@ 8061

Last change on this file since 8061 was 5999, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1/** @file
2 *
3 * VBoxGuest -- VirtualBox Win 2000/XP guest video driver
4 *
5 * Display driver entry points.
6 *
7 * Copyright (C) 2006-2007 innotek GmbH
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef __VBOXIOCTL__H
19#define __VBOXIOCTL__H
20
21#include <VBox/VBoxGuest.h>
22
23#define IOCTL_VIDEO_INTERPRET_DISPLAY_MEMORY \
24 CTL_CODE(FILE_DEVICE_VIDEO, 0x420, METHOD_BUFFERED, FILE_ANY_ACCESS)
25
26#define IOCTL_VIDEO_QUERY_DISPLAY_INFO \
27 CTL_CODE(FILE_DEVICE_VIDEO, 0x421, METHOD_BUFFERED, FILE_ANY_ACCESS)
28
29/** Called by the display driver when it is ready to
30 * switch to VBVA operation mode.
31 * Successful return means that VBVA can be used and
32 * output buffer contains VBVAENABLERESULT data.
33 * An error means that VBVA can not be used
34 * (disabled or not supported by the host).
35 */
36#define IOCTL_VIDEO_VBVA_ENABLE \
37 CTL_CODE(FILE_DEVICE_VIDEO, 0x400, METHOD_BUFFERED, FILE_ANY_ACCESS)
38
39#pragma pack(1)
40/**
41 * Data returned by IOCTL_VIDEO_VBVA_ENABLE.
42 *
43 */
44typedef struct _VBVAENABLERESULT
45{
46 /** Pointer to VBVAMemory part of VMMDev memory region. */
47 VBVAMEMORY *pVbvaMemory;
48
49 /** Called to force the host to process VBVA memory,
50 * when there is no more free space in VBVA memory.
51 * Normally this never happens.
52 *
53 * The other purpose is to perform a synchronous command.
54 * But the goal is to have no such commands at all.
55 */
56 DECLR0CALLBACKMEMBER(void, pfnFlush, (void *pvFlush));
57
58 /** Pointer required by the pfnFlush callback. */
59 void *pvFlush;
60
61} VBVAENABLERESULT;
62
63/**
64 * Data returned by IOCTL_VIDEO_QUERY_DISPLAY_INFO.
65 *
66 */
67typedef struct _QUERYDISPLAYINFORESULT
68{
69 /* Device index (0 for primary) */
70 ULONG iDevice;
71
72 /* Size of the display information area. */
73 uint32_t u32DisplayInfoSize;
74} QUERYDISPLAYINFORESULT;
75#pragma pack()
76
77#endif /* __VBOXIOCTL__H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette