VirtualBox

source: vbox/trunk/include/VBox/Graphics/HGSMIChannels.h@ 74189

Last change on this file since 74189 was 69307, checked in by vboxsync, 7 years ago

include/VBox: scm updates w/ correct MIT text

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: HGSMIChannels.h 69307 2017-10-25 13:46:45Z vboxsync $ */
2/** @file
3 *
4 * VBox Host Guest Shared Memory Interface (HGSMI).
5 * Host/Guest shared part.
6 * Channel identifiers.
7 */
8
9/*
10 * Copyright (C) 2006-2017 Oracle Corporation
11 *
12 * Permission is hereby granted, free of charge, to any person
13 * obtaining a copy of this software and associated documentation
14 * files (the "Software"), to deal in the Software without
15 * restriction, including without limitation the rights to use,
16 * copy, modify, merge, publish, distribute, sublicense, and/or sell
17 * copies of the Software, and to permit persons to whom the
18 * Software is furnished to do so, subject to the following
19 * conditions:
20 *
21 * The above copyright notice and this permission notice shall be
22 * included in all copies or substantial portions of the Software.
23 *
24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
26 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
28 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
29 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
31 * OTHER DEALINGS IN THE SOFTWARE.
32 */
33
34
35#ifndef __HGSMIChannels_h__
36#define __HGSMIChannels_h__
37
38
39/*
40 * Each channel has an 8 bit identifier. There are a number of predefined
41 * (hardcoded) channels.
42 *
43 * HGSMI_CH_HGSMI channel can be used to map a string channel identifier
44 * to a free 16 bit numerical value. values are allocated in range
45 * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST].
46 */
47
48
49/* Predefined channel identifiers. Used internally by VBOX to simplify the channel setup. */
50/* A reserved channel value */
51#define HGSMI_CH_RESERVED 0x00
52/* HGCMI: setup and configuration */
53#define HGSMI_CH_HGSMI 0x01
54/* Graphics: VBVA */
55#define HGSMI_CH_VBVA 0x02
56/* Graphics: Seamless with a single guest region */
57#define HGSMI_CH_SEAMLESS 0x03
58/* Graphics: Seamless with separate host windows */
59#define HGSMI_CH_SEAMLESS2 0x04
60/* Graphics: OpenGL HW acceleration */
61#define HGSMI_CH_OPENGL 0x05
62
63
64/* Dynamically allocated channel identifiers. */
65/* The first channel index to be used for string mappings (inclusive) */
66#define HGSMI_CH_STRING_FIRST 0x20
67/* The last channel index for string mappings (inclusive) */
68#define HGSMI_CH_STRING_LAST 0xff
69
70
71/* Check whether the channel identifier is allocated for a dynamic channel */
72#define HGSMI_IS_DYNAMIC_CHANNEL(_channel) (((uint8_t)(_channel) & 0xE0) != 0)
73
74
75#endif /* !__HGSMIChannels_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