18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: MIT */ 28c2ecf20Sopenharmony_ci/* Copyright (C) 2006-2017 Oracle Corporation */ 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __HGSMI_CHANNELS_H__ 58c2ecf20Sopenharmony_ci#define __HGSMI_CHANNELS_H__ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* 88c2ecf20Sopenharmony_ci * Each channel has an 8 bit identifier. There are a number of predefined 98c2ecf20Sopenharmony_ci * (hardcoded) channels. 108c2ecf20Sopenharmony_ci * 118c2ecf20Sopenharmony_ci * HGSMI_CH_HGSMI channel can be used to map a string channel identifier 128c2ecf20Sopenharmony_ci * to a free 16 bit numerical value. values are allocated in range 138c2ecf20Sopenharmony_ci * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST]. 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* A reserved channel value */ 178c2ecf20Sopenharmony_ci#define HGSMI_CH_RESERVED 0x00 188c2ecf20Sopenharmony_ci/* HGCMI: setup and configuration */ 198c2ecf20Sopenharmony_ci#define HGSMI_CH_HGSMI 0x01 208c2ecf20Sopenharmony_ci/* Graphics: VBVA */ 218c2ecf20Sopenharmony_ci#define HGSMI_CH_VBVA 0x02 228c2ecf20Sopenharmony_ci/* Graphics: Seamless with a single guest region */ 238c2ecf20Sopenharmony_ci#define HGSMI_CH_SEAMLESS 0x03 248c2ecf20Sopenharmony_ci/* Graphics: Seamless with separate host windows */ 258c2ecf20Sopenharmony_ci#define HGSMI_CH_SEAMLESS2 0x04 268c2ecf20Sopenharmony_ci/* Graphics: OpenGL HW acceleration */ 278c2ecf20Sopenharmony_ci#define HGSMI_CH_OPENGL 0x05 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* The first channel index to be used for string mappings (inclusive) */ 308c2ecf20Sopenharmony_ci#define HGSMI_CH_STRING_FIRST 0x20 318c2ecf20Sopenharmony_ci/* The last channel index for string mappings (inclusive) */ 328c2ecf20Sopenharmony_ci#define HGSMI_CH_STRING_LAST 0xff 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif 35