Path: blob/21.2-virgl/src/gallium/drivers/svga/include/svga_escape.h
4574 views
/**********************************************************1* Copyright 2007-2015 VMware, Inc. All rights reserved.2*3* Permission is hereby granted, free of charge, to any person4* obtaining a copy of this software and associated documentation5* files (the "Software"), to deal in the Software without6* restriction, including without limitation the rights to use, copy,7* modify, merge, publish, distribute, sublicense, and/or sell copies8* of the Software, and to permit persons to whom the Software is9* furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice shall be12* included in all copies or substantial portions of the Software.13*14* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,15* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF16* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND17* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS18* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN19* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN20* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE21* SOFTWARE.22*23**********************************************************/2425/*26* svga_escape.h --27*28* Definitions for our own (vendor-specific) SVGA Escape commands.29*/3031#ifndef _SVGA_ESCAPE_H_32#define _SVGA_ESCAPE_H_333435/*36* Namespace IDs for the escape command37*/3839#define SVGA_ESCAPE_NSID_VMWARE 0x0000000040#define SVGA_ESCAPE_NSID_DEVEL 0xFFFFFFFF414243/*44* Within SVGA_ESCAPE_NSID_VMWARE, we multiplex commands according to45* the first DWORD of escape data (after the nsID and size). As a46* guideline we're using the high word and low word as a major and47* minor command number, respectively.48*49* Major command number allocation:50*51* 0000: Reserved52* 0001: SVGA_ESCAPE_VMWARE_LOG (svga_binary_logger.h)53* 0002: SVGA_ESCAPE_VMWARE_VIDEO (svga_overlay.h)54* 0003: SVGA_ESCAPE_VMWARE_HINT (svga_escape.h)55*/5657#define SVGA_ESCAPE_VMWARE_MAJOR_MASK 0xFFFF0000585960/*61* SVGA Hint commands.62*63* These escapes let the SVGA driver provide optional information to64* he host about the state of the guest or guest applications. The65* host can use these hints to make user interface or performance66* decisions.67*68* Notes:69*70* - SVGA_ESCAPE_VMWARE_HINT_FULLSCREEN is deprecated for guests71* that use the SVGA Screen Object extension. Instead of sending72* this escape, use the SVGA_SCREEN_FULLSCREEN_HINT flag on your73* Screen Object.74*/7576#define SVGA_ESCAPE_VMWARE_HINT 0x0003000077#define SVGA_ESCAPE_VMWARE_HINT_FULLSCREEN 0x00030001 /* Deprecated */7879typedef80struct {81uint32 command;82uint32 fullscreen;83struct {84int32 x, y;85} monitorPosition;86} SVGAEscapeHintFullscreen;8788#endif /* _SVGA_ESCAPE_H_ */899091