Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /* Copyright (C) 2006-2017 Oracle Corporation */
0003 
0004 #ifndef __HGSMI_CHANNELS_H__
0005 #define __HGSMI_CHANNELS_H__
0006 
0007 /*
0008  * Each channel has an 8 bit identifier. There are a number of predefined
0009  * (hardcoded) channels.
0010  *
0011  * HGSMI_CH_HGSMI channel can be used to map a string channel identifier
0012  * to a free 16 bit numerical value. values are allocated in range
0013  * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST].
0014  */
0015 
0016 /* A reserved channel value */
0017 #define HGSMI_CH_RESERVED               0x00
0018 /* HGCMI: setup and configuration */
0019 #define HGSMI_CH_HGSMI                  0x01
0020 /* Graphics: VBVA */
0021 #define HGSMI_CH_VBVA                   0x02
0022 /* Graphics: Seamless with a single guest region */
0023 #define HGSMI_CH_SEAMLESS               0x03
0024 /* Graphics: Seamless with separate host windows */
0025 #define HGSMI_CH_SEAMLESS2              0x04
0026 /* Graphics: OpenGL HW acceleration */
0027 #define HGSMI_CH_OPENGL                 0x05
0028 
0029 /* The first channel index to be used for string mappings (inclusive) */
0030 #define HGSMI_CH_STRING_FIRST               0x20
0031 /* The last channel index for string mappings (inclusive) */
0032 #define HGSMI_CH_STRING_LAST                0xff
0033 
0034 #endif