1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox Host Guest Shared Memory Interface (HGSMI).
|
---|
4 | * Host/Guest shared part.
|
---|
5 | * Channel identifiers.
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Copyright (C) 2006-2008 Sun Microsystems, Inc.
|
---|
10 | *
|
---|
11 | * Sun Microsystems, Inc. confidential
|
---|
12 | * All rights reserved
|
---|
13 | */
|
---|
14 |
|
---|
15 |
|
---|
16 | #ifndef __HGSMIChannels_h__
|
---|
17 | #define __HGSMIChannels_h__
|
---|
18 |
|
---|
19 |
|
---|
20 | /* Each channel has an 8 bit identifier. There are a number of predefined
|
---|
21 | * (hardcoded) channels.
|
---|
22 | *
|
---|
23 | * HGSMI_CH_HGSMI channel can be used to map a string channel identifier
|
---|
24 | * to a free 16 bit numerical value. values are allocated in range
|
---|
25 | * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST].
|
---|
26 | *
|
---|
27 | */
|
---|
28 |
|
---|
29 |
|
---|
30 | /* Predefined channel identifiers. Used internally by VBOX to simplify the channel setup. */
|
---|
31 | #define HGSMI_CH_RESERVED (0x00) /* A reserved channel value. */
|
---|
32 |
|
---|
33 | #define HGSMI_CH_HGSMI (0x01) /* HGCMI: setup and configuration channel. */
|
---|
34 |
|
---|
35 | #define HGSMI_CH_VBVA (0x02) /* Graphics: VBVA. */
|
---|
36 | #define HGSMI_CH_SEAMLESS (0x03) /* Graphics: Seamless with a single guest region. */
|
---|
37 | #define HGSMI_CH_SEAMLESS2 (0x04) /* Graphics: Seamless with separate host windows. */
|
---|
38 | #define HGSMI_CH_OPENGL (0x05) /* Graphics: OpenGL HW acceleration. */
|
---|
39 |
|
---|
40 |
|
---|
41 | /* Dynamically allocated channel identifiers. */
|
---|
42 | #define HGSMI_CH_STRING_FIRST (0x20) /* The first channel index to be used for string mappings (inclusive). */
|
---|
43 | #define HGSMI_CH_STRING_LAST (0xff) /* The last channel index for string mappings (inclusive). */
|
---|
44 |
|
---|
45 |
|
---|
46 | /* Check whether the channel identifier is allocated for a dynamic channel. */
|
---|
47 | #define HGSMI_IS_DYNAMIC_CHANNEL(_channel) (((uint8_t)(_channel) & 0xE0) != 0)
|
---|
48 |
|
---|
49 |
|
---|
50 | #endif /* !__HGSMIChannels_h__*/
|
---|