Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /* Copyright (C) 2006-2017 Oracle Corporation */
0003 
0004 #ifndef __HGSMI_CH_SETUP_H__
0005 #define __HGSMI_CH_SETUP_H__
0006 
0007 /*
0008  * Tell the host the location of hgsmi_host_flags structure, where the host
0009  * can write information about pending buffers, etc, and which can be quickly
0010  * polled by the guest without a need to port IO.
0011  */
0012 #define HGSMI_CC_HOST_FLAGS_LOCATION 0
0013 
0014 struct hgsmi_buffer_location {
0015     u32 buf_location;
0016     u32 buf_len;
0017 } __packed;
0018 
0019 /* HGSMI setup and configuration data structures. */
0020 
0021 #define HGSMIHOSTFLAGS_COMMANDS_PENDING    0x01u
0022 #define HGSMIHOSTFLAGS_IRQ                 0x02u
0023 #define HGSMIHOSTFLAGS_VSYNC               0x10u
0024 #define HGSMIHOSTFLAGS_HOTPLUG             0x20u
0025 #define HGSMIHOSTFLAGS_CURSOR_CAPABILITIES 0x40u
0026 
0027 struct hgsmi_host_flags {
0028     u32 host_flags;
0029     u32 reserved[3];
0030 } __packed;
0031 
0032 #endif