Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / vboxvideo / hgsmi_channels.h
blob9b83f4ff3fafa49c6a2bd5214aafa62b98142dc9
1 /* SPDX-License-Identifier: MIT */
2 /* Copyright (C) 2006-2017 Oracle Corporation */
4 #ifndef __HGSMI_CHANNELS_H__
5 #define __HGSMI_CHANNELS_H__
7 /*
8 * Each channel has an 8 bit identifier. There are a number of predefined
9 * (hardcoded) channels.
11 * HGSMI_CH_HGSMI channel can be used to map a string channel identifier
12 * to a free 16 bit numerical value. values are allocated in range
13 * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST].
16 /* A reserved channel value */
17 #define HGSMI_CH_RESERVED 0x00
18 /* HGCMI: setup and configuration */
19 #define HGSMI_CH_HGSMI 0x01
20 /* Graphics: VBVA */
21 #define HGSMI_CH_VBVA 0x02
22 /* Graphics: Seamless with a single guest region */
23 #define HGSMI_CH_SEAMLESS 0x03
24 /* Graphics: Seamless with separate host windows */
25 #define HGSMI_CH_SEAMLESS2 0x04
26 /* Graphics: OpenGL HW acceleration */
27 #define HGSMI_CH_OPENGL 0x05
29 /* The first channel index to be used for string mappings (inclusive) */
30 #define HGSMI_CH_STRING_FIRST 0x20
31 /* The last channel index for string mappings (inclusive) */
32 #define HGSMI_CH_STRING_LAST 0xff
34 #endif