hgsmi_channels.h 1.1 KB

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