hgsmi_ch_setup.h 853 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: MIT */
  2. /* Copyright (C) 2006-2017 Oracle Corporation */
  3. #ifndef __HGSMI_CH_SETUP_H__
  4. #define __HGSMI_CH_SETUP_H__
  5. /*
  6. * Tell the host the location of hgsmi_host_flags structure, where the host
  7. * can write information about pending buffers, etc, and which can be quickly
  8. * polled by the guest without a need to port IO.
  9. */
  10. #define HGSMI_CC_HOST_FLAGS_LOCATION 0
  11. struct hgsmi_buffer_location {
  12. u32 buf_location;
  13. u32 buf_len;
  14. } __packed;
  15. /* HGSMI setup and configuration data structures. */
  16. #define HGSMIHOSTFLAGS_COMMANDS_PENDING 0x01u
  17. #define HGSMIHOSTFLAGS_IRQ 0x02u
  18. #define HGSMIHOSTFLAGS_VSYNC 0x10u
  19. #define HGSMIHOSTFLAGS_HOTPLUG 0x20u
  20. #define HGSMIHOSTFLAGS_CURSOR_CAPABILITIES 0x40u
  21. struct hgsmi_host_flags {
  22. u32 host_flags;
  23. u32 reserved[3];
  24. } __packed;
  25. #endif