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