vmwgfx_reg.h revision 1.3 1 /* $NetBSD: vmwgfx_reg.h,v 1.3 2021/12/18 23:45:45 riastradh Exp $ */
2
3 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
4 /**************************************************************************
5 *
6 * Copyright 2009-2014 VMware, Inc., Palo Alto, CA., USA
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the
10 * "Software"), to deal in the Software without restriction, including
11 * without limitation the rights to use, copy, modify, merge, publish,
12 * distribute, sub license, and/or sell copies of the Software, and to
13 * permit persons to whom the Software is furnished to do so, subject to
14 * the following conditions:
15 *
16 * The above copyright notice and this permission notice (including the
17 * next paragraph) shall be included in all copies or substantial portions
18 * of the Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
23 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
24 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
25 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
26 * USE OR OTHER DEALINGS IN THE SOFTWARE.
27 *
28 **************************************************************************/
29
30 /**
31 * This file contains virtual hardware defines for kernel space.
32 */
33
34 #ifndef _VMWGFX_REG_H_
35 #define _VMWGFX_REG_H_
36
37 #include <linux/types.h>
38
39 #define VMWGFX_INDEX_PORT 0x0
40 #define VMWGFX_VALUE_PORT 0x1
41 #define VMWGFX_IRQSTATUS_PORT 0x8
42
43 struct svga_guest_mem_descriptor {
44 u32 ppn;
45 u32 num_pages;
46 };
47
48 struct svga_fifo_cmd_fence {
49 u32 fence;
50 };
51
52 #define SVGA_SYNC_GENERIC 1
53 #define SVGA_SYNC_FIFOFULL 2
54
55 #include "device_include/svga3d_reg.h"
56
57 #endif
58