VirtualBox

source: vbox/trunk/include/VBox/Graphics/HGSMIChannels.h@ 68926

Last change on this file since 68926 was 68848, checked in by vboxsync, 8 years ago

Additions/linux/drm: lots of formatting changes to match kernel style.
bugref:8524: Additions/linux: play nicely with distribution-installed Additions

This change makes a lot of formatting changes to the Linux Additions drm
driver, with no intended changes to functionality, and much of the
formatting change done using the sed script which installs the driver
sources to the Additions archive. Hans de Goede's clean-up of the driver for
submission to staging is the base for these changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/** @file
2 *
3 * VBox Host Guest Shared Memory Interface (HGSMI).
4 * Host/Guest shared part.
5 * Channel identifiers.
6 */
7
8/*
9 * Copyright (C) 2006-2017 Oracle Corporation
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
25 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 * OTHER DEALINGS IN THE SOFTWARE.
28 */
29
30
31#ifndef __HGSMIChannels_h__
32#define __HGSMIChannels_h__
33
34
35/*
36 * Each channel has an 8 bit identifier. There are a number of predefined
37 * (hardcoded) channels.
38 *
39 * HGSMI_CH_HGSMI channel can be used to map a string channel identifier
40 * to a free 16 bit numerical value. values are allocated in range
41 * [HGSMI_CH_STRING_FIRST;HGSMI_CH_STRING_LAST].
42 */
43
44
45/* Predefined channel identifiers. Used internally by VBOX to simplify the channel setup. */
46/* A reserved channel value */
47#define HGSMI_CH_RESERVED 0x00
48/* HGCMI: setup and configuration */
49#define HGSMI_CH_HGSMI 0x01
50/* Graphics: VBVA */
51#define HGSMI_CH_VBVA 0x02
52/* Graphics: Seamless with a single guest region */
53#define HGSMI_CH_SEAMLESS 0x03
54/* Graphics: Seamless with separate host windows */
55#define HGSMI_CH_SEAMLESS2 0x04
56/* Graphics: OpenGL HW acceleration */
57#define HGSMI_CH_OPENGL 0x05
58
59
60/* Dynamically allocated channel identifiers. */
61/* The first channel index to be used for string mappings (inclusive) */
62#define HGSMI_CH_STRING_FIRST 0x20
63/* The last channel index for string mappings (inclusive) */
64#define HGSMI_CH_STRING_LAST 0xff
65
66
67/* Check whether the channel identifier is allocated for a dynamic channel */
68#define HGSMI_IS_DYNAMIC_CHANNEL(_channel) (((uint8_t)(_channel) & 0xE0) != 0)
69
70
71#endif /* !__HGSMIChannels_h__*/
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette