summaryrefslogtreecommitdiff
path: root/drmtest.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-08-02 22:33:34 +0100
committerThomas White <taw@bitwiz.org.uk>2009-08-02 22:33:34 +0100
commit07e99d9fb491d625034fc21e3f2d631acce341bf (patch)
tree02e1fbe11ba5ccb3e17d75cc7d10951adb5c696c /drmtest.h
parentf78d8b45197942fb9e3e17e263160b4b50a862a2 (diff)
Add GEM mmap() and KMS tests
'gdrm-gem-mmap' creates a GEM object, mmap()s it, and tests access. 'gdrm-kms-addfb' creates a GEM object, switches the active framebuffer to use it, and writes random colours to it via memory mapped access.
Diffstat (limited to 'drmtest.h')
-rw-r--r--drmtest.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drmtest.h b/drmtest.h
new file mode 100644
index 0000000..0977fe6
--- /dev/null
+++ b/drmtest.h
@@ -0,0 +1,24 @@
+/*
+ * drmtest.h
+ *
+ * A header file for drmtest.c
+ *
+ * (c) 2009 Thomas White <taw@bitwiz.org.uk>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+extern int drm_open_any(void);
+extern int drm_open_any_master(void);