summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_cache.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2013-08-12 04:11:54 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2013-08-12 04:11:54 +0000
commit2b8a8a7fca0fbe3c8edb2d1f989d43cae0cb619d (patch)
treedfabdd5b6654a7c2c460f7320c7d147e12e871d5 /sys/dev/pci/drm/drm_cache.h
parentc56fee9e71c36858614fa30c04b1287fefad6a96 (diff)
Add a port of the TTM and Radeon DRM code from Linux 3.8.13.
Includes kernel modesetting, framebuffer console and support for newer hardware. Firmware needs to be present for acceleration and in some cases modesetting to work. It can be installed via fw_update or manually via pkg_add. With lots of help from kettenis@ some macppc bits from mpi@ and some ttm refcount/queue bits from FreeBSD. Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.
Diffstat (limited to 'sys/dev/pci/drm/drm_cache.h')
-rw-r--r--sys/dev/pci/drm/drm_cache.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_cache.h b/sys/dev/pci/drm/drm_cache.h
new file mode 100644
index 00000000000..375b025c804
--- /dev/null
+++ b/sys/dev/pci/drm/drm_cache.h
@@ -0,0 +1,41 @@
+/* $OpenBSD: drm_cache.h,v 1.1 2013/08/12 04:11:52 jsg Exp $ */
+/**************************************************************************
+ *
+ * Copyright 2009 Red Hat Inc.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+ * USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ *
+ **************************************************************************/
+/*
+ * Authors:
+ * Dave Airlie <airlied@redhat.com>
+ */
+
+#ifndef _DRM_CACHE_H_
+#define _DRM_CACHE_H_
+
+#ifdef notyet
+void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
+#endif
+
+#endif