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