Commit | Line | Data |
---|---|---|
dd55d44f HG |
1 | /* |
2 | * Copyright (C) 2006-2017 Oracle Corporation | |
3 | * | |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | |
5 | * copy of this software and associated documentation files (the "Software"), | |
6 | * to deal in the Software without restriction, including without limitation | |
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
8 | * and/or sell copies of the Software, and to permit persons to whom the | |
9 | * Software is furnished to do so, subject to the following conditions: | |
10 | * | |
11 | * The above copyright notice and this permission notice shall be included in | |
12 | * all copies or substantial portions of the Software. | |
13 | * | |
14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR | |
18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
20 | * OTHER DEALINGS IN THE SOFTWARE. | |
21 | */ | |
22 | ||
23 | #ifndef __HGSMI_CHANNELS_H__ | |
24 | #define __HGSMI_CHANNELS_H__ | |
25 | ||
26 | /* | |
27 | * Each channel has an 8 bit identifier. There are a number of predefined | |
28 | * (hardcoded) channels. | |
29 | * | |
30 | * HGSMI_CH_HGSMI channel can be used to map a string channel identifier | |
31 | * to a free 16 bit numerical value. values are allocated in range | |
32 | * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST]. | |
33 | */ | |
34 | ||
35 | /* A reserved channel value */ | |
36 | #define HGSMI_CH_RESERVED 0x00 | |
37 | /* HGCMI: setup and configuration */ | |
38 | #define HGSMI_CH_HGSMI 0x01 | |
39 | /* Graphics: VBVA */ | |
40 | #define HGSMI_CH_VBVA 0x02 | |
41 | /* Graphics: Seamless with a single guest region */ | |
42 | #define HGSMI_CH_SEAMLESS 0x03 | |
43 | /* Graphics: Seamless with separate host windows */ | |
44 | #define HGSMI_CH_SEAMLESS2 0x04 | |
45 | /* Graphics: OpenGL HW acceleration */ | |
46 | #define HGSMI_CH_OPENGL 0x05 | |
47 | ||
48 | /* The first channel index to be used for string mappings (inclusive) */ | |
49 | #define HGSMI_CH_STRING_FIRST 0x20 | |
50 | /* The last channel index for string mappings (inclusive) */ | |
51 | #define HGSMI_CH_STRING_LAST 0xff | |
52 | ||
53 | #endif |