Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
0002 /*
0003  * Copyright 2007,2020 VMware, Inc.
0004  *
0005  * Permission is hereby granted, free of charge, to any person
0006  * obtaining a copy of this software and associated documentation
0007  * files (the "Software"), to deal in the Software without
0008  * restriction, including without limitation the rights to use, copy,
0009  * modify, merge, publish, distribute, sublicense, and/or sell copies
0010  * of the Software, and to permit persons to whom the Software is
0011  * furnished to do so, subject to the following conditions:
0012  *
0013  * The above copyright notice and this permission notice shall be
0014  * included in all copies or substantial portions of the Software.
0015  *
0016  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0017  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0018  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0019  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
0020  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
0021  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0022  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0023  * SOFTWARE.
0024  *
0025  */
0026 
0027 /*
0028  * svga_escape.h --
0029  *
0030  *    Definitions for our own (vendor-specific) SVGA Escape commands.
0031  */
0032 
0033 
0034 
0035 #ifndef _SVGA_ESCAPE_H_
0036 #define _SVGA_ESCAPE_H_
0037 
0038 #define SVGA_ESCAPE_NSID_VMWARE 0x00000000
0039 #define SVGA_ESCAPE_NSID_DEVEL 0xFFFFFFFF
0040 
0041 #define SVGA_ESCAPE_VMWARE_MAJOR_MASK 0xFFFF0000
0042 
0043 #define SVGA_ESCAPE_VMWARE_HINT 0x00030000
0044 #define SVGA_ESCAPE_VMWARE_HINT_FULLSCREEN 0x00030001
0045 
0046 #pragma pack(push, 1)
0047 typedef struct {
0048     uint32 command;
0049     uint32 fullscreen;
0050     struct {
0051         int32 x, y;
0052     } monitorPosition;
0053 } SVGAEscapeHintFullscreen;
0054 #pragma pack(pop)
0055 
0056 #endif