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