summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h
diff options
context:
space:
mode:
authorSinclair Yeh <syeh@vmware.com>2015-07-08 21:20:39 -0700
committerThomas Hellstrom <thellstrom@vmware.com>2015-08-12 10:06:26 -0700
commit8ce75f8ab9044fe11caaaf2b2c82471023212f9f (patch)
treeb63596cd0b9ce2d3ccd11c0e6ac4ac1badc28a67 /drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h
parent5101020c78c9f242fe77bd7986bc24f7b800172a (diff)
drm/vmwgfx: Update device includes for DX device functionality
Add DX includes and move all device includes to a separate directory. Co-authored with Thomas Hellstrom, Charmaine Lee and above all, the VMware device team. Signed-off-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Charmaine Lee <charmainel@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h')
-rw-r--r--drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h b/drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h
new file mode 100644
index 000000000000..120eab830eaf
--- /dev/null
+++ b/drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h
@@ -0,0 +1,21 @@
+#ifndef _VM_BASIC_TYPES_H_
+#define _VM_BASIC_TYPES_H_
+#include <linux/kernel.h>
+
+typedef u32 uint32;
+typedef s32 int32;
+typedef u64 uint64;
+typedef u16 uint16;
+typedef s16 int16;
+typedef u8 uint8;
+typedef s8 int8;
+
+typedef uint64 PA;
+typedef uint32 PPN;
+typedef uint64 PPN64;
+
+typedef bool Bool;
+
+#define MAX_UINT32 U32_MAX
+
+#endif