xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/vboxvideo/hgsmi_channels.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: hgsmi_channels.h,v 1.2 2021/12/18 23:45:44 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 /* Copyright (C) 2006-2017 Oracle Corporation */
5 
6 #ifndef __HGSMI_CHANNELS_H__
7 #define __HGSMI_CHANNELS_H__
8 
9 /*
10  * Each channel has an 8 bit identifier. There are a number of predefined
11  * (hardcoded) channels.
12  *
13  * HGSMI_CH_HGSMI channel can be used to map a string channel identifier
14  * to a free 16 bit numerical value. values are allocated in range
15  * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST].
16  */
17 
18 /* A reserved channel value */
19 #define HGSMI_CH_RESERVED				0x00
20 /* HGCMI: setup and configuration */
21 #define HGSMI_CH_HGSMI					0x01
22 /* Graphics: VBVA */
23 #define HGSMI_CH_VBVA					0x02
24 /* Graphics: Seamless with a single guest region */
25 #define HGSMI_CH_SEAMLESS				0x03
26 /* Graphics: Seamless with separate host windows */
27 #define HGSMI_CH_SEAMLESS2				0x04
28 /* Graphics: OpenGL HW acceleration */
29 #define HGSMI_CH_OPENGL					0x05
30 
31 /* The first channel index to be used for string mappings (inclusive) */
32 #define HGSMI_CH_STRING_FIRST				0x20
33 /* The last channel index for string mappings (inclusive) */
34 #define HGSMI_CH_STRING_LAST				0xff
35 
36 #endif
37