162306a36Sopenharmony_ci/* SPDX-License-Identifier: MIT */ 262306a36Sopenharmony_ci/* Copyright (C) 2006-2017 Oracle Corporation */ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#ifndef __HGSMI_CHANNELS_H__ 562306a36Sopenharmony_ci#define __HGSMI_CHANNELS_H__ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* 862306a36Sopenharmony_ci * Each channel has an 8 bit identifier. There are a number of predefined 962306a36Sopenharmony_ci * (hardcoded) channels. 1062306a36Sopenharmony_ci * 1162306a36Sopenharmony_ci * HGSMI_CH_HGSMI channel can be used to map a string channel identifier 1262306a36Sopenharmony_ci * to a free 16 bit numerical value. values are allocated in range 1362306a36Sopenharmony_ci * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST]. 1462306a36Sopenharmony_ci */ 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci/* A reserved channel value */ 1762306a36Sopenharmony_ci#define HGSMI_CH_RESERVED 0x00 1862306a36Sopenharmony_ci/* HGCMI: setup and configuration */ 1962306a36Sopenharmony_ci#define HGSMI_CH_HGSMI 0x01 2062306a36Sopenharmony_ci/* Graphics: VBVA */ 2162306a36Sopenharmony_ci#define HGSMI_CH_VBVA 0x02 2262306a36Sopenharmony_ci/* Graphics: Seamless with a single guest region */ 2362306a36Sopenharmony_ci#define HGSMI_CH_SEAMLESS 0x03 2462306a36Sopenharmony_ci/* Graphics: Seamless with separate host windows */ 2562306a36Sopenharmony_ci#define HGSMI_CH_SEAMLESS2 0x04 2662306a36Sopenharmony_ci/* Graphics: OpenGL HW acceleration */ 2762306a36Sopenharmony_ci#define HGSMI_CH_OPENGL 0x05 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* The first channel index to be used for string mappings (inclusive) */ 3062306a36Sopenharmony_ci#define HGSMI_CH_STRING_FIRST 0x20 3162306a36Sopenharmony_ci/* The last channel index for string mappings (inclusive) */ 3262306a36Sopenharmony_ci#define HGSMI_CH_STRING_LAST 0xff 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#endif 35