xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/vmwgfx/vmwgfx_reg.h (revision 677ff2f013ca9d21511b6ed6b595f40920aa8b80)
1 /*	$NetBSD: vmwgfx_reg.h,v 1.4 2022/10/25 23:35:43 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 #define VMWGFX_IOSIZE	      0xc
43 
44 struct svga_guest_mem_descriptor {
45 	u32 ppn;
46 	u32 num_pages;
47 };
48 
49 struct svga_fifo_cmd_fence {
50 	u32 fence;
51 };
52 
53 #define SVGA_SYNC_GENERIC         1
54 #define SVGA_SYNC_FIFOFULL        2
55 
56 #include "device_include/svga3d_reg.h"
57 
58 #endif
59