xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/vmwgfx/device_include/svga_types.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: svga_types.h,v 1.3 2021/12/18 23:45:45 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
4 /**********************************************************
5  * Copyright 2015 VMware, Inc.
6  *
7  * Permission is hereby granted, free of charge, to any person
8  * obtaining a copy of this software and associated documentation
9  * files (the "Software"), to deal in the Software without
10  * restriction, including without limitation the rights to use, copy,
11  * modify, merge, publish, distribute, sublicense, and/or sell copies
12  * of the Software, and to permit persons to whom the Software is
13  * furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be
16  * included in all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25  * SOFTWARE.
26  *
27  **********************************************************/
28 #ifndef _VM_BASIC_TYPES_H_
29 #define _VM_BASIC_TYPES_H_
30 #include <linux/kernel.h>
31 
32 typedef u32 uint32;
33 typedef s32 int32;
34 typedef u64 uint64;
35 typedef u16 uint16;
36 typedef s16 int16;
37 typedef u8  uint8;
38 typedef s8  int8;
39 
40 typedef uint64 PA;
41 typedef uint32 PPN;
42 typedef uint64 PPN64;
43 
44 typedef bool Bool;
45 
46 #define MAX_UINT64 U64_MAX
47 #define MAX_UINT32 U32_MAX
48 #define MAX_UINT16 U16_MAX
49 
50 #define CONST64U(x) x##ULL
51 
52 #endif
53