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 24#ifndef __HGSMIChannels_h__ 25#define __HGSMIChannels_h__ 26 27 28/* 29 * Each channel has an 8 bit identifier. There are a number of predefined 30 * (hardcoded) channels. 31 * 32 * HGSMI_CH_HGSMI channel can be used to map a string channel identifier 33 * to a free 16 bit numerical value. values are allocated in range 34 * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST]. 35 */ 36 37 38/* Predefined channel identifiers. Used internally by VBOX to simplify the channel setup. */ 39/* A reserved channel value */ 40#define HGSMI_CH_RESERVED 0x00 41/* HGCMI: setup and configuration */ 42#define HGSMI_CH_HGSMI 0x01 43/* Graphics: VBVA */ 44#define HGSMI_CH_VBVA 0x02 45/* Graphics: Seamless with a single guest region */ 46#define HGSMI_CH_SEAMLESS 0x03 47/* Graphics: Seamless with separate host windows */ 48#define HGSMI_CH_SEAMLESS2 0x04 49/* Graphics: OpenGL HW acceleration */ 50#define HGSMI_CH_OPENGL 0x05 51 52 53/* Dynamically allocated channel identifiers. */ 54/* The first channel index to be used for string mappings (inclusive) */ 55#define HGSMI_CH_STRING_FIRST 0x20 56/* The last channel index for string mappings (inclusive) */ 57#define HGSMI_CH_STRING_LAST 0xff 58 59 60/* Check whether the channel identifier is allocated for a dynamic channel */ 61#define HGSMI_IS_DYNAMIC_CHANNEL(_channel) (((uint8_t)(_channel) & 0xE0) != 0) 62 63 64#endif /* !__HGSMIChannels_h__*/ 65