summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-10-02 12:15:36 -0400
committerAdam Jackson <ajax@redhat.com>2009-10-02 12:15:36 -0400
commite5005269ae02cc26bf85e1ba7ee8a5413295ee71 (patch)
treecebc4d86bd41005b2eeaaadd211e47bed16dc271
parent8cf6e0433740cd3ee4fff3b512ea2dfd818eb9a0 (diff)
Start faking up the API
-rw-r--r--minitru.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/minitru.h b/minitru.h
new file mode 100644
index 0000000..f1cd5b1
--- /dev/null
+++ b/minitru.h
@@ -0,0 +1,69 @@
+/*
+ * Copyright 2009 Red Hat, Inc.
+ *
+ * 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
+ * on 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 AUTHORS 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.
+ */
+
+#ifndef MINITRU_H
+#define MINITRU_H
+
+#include <stdint.h>
+
+struct mt_monitor;
+
+extern struct mt_monitor *mt_create_monitor(void *block);
+extern void mt_destroy_monitor(struct mt_monitor *monitor);
+
+#define MT_FLAG_REDUCED 0x00000001
+#define MT_FLAG_INTERLACED 0x00000002
+
+enum mt_status {
+};
+
+struct mt_mode {
+ uint32_t type;
+ uint32_t status;
+ uint32_t clock;
+ uint32_t hdisplay;
+ uint32_t hsyncstart;
+ uint32_t hsyncend;
+ uint32_t htotal;
+ uint32_t hskew;
+ uint32_t vdisplay;
+ uint32_t vsyncstart;
+ uint32_t vsyncend;
+ uint32_t vtotal;
+ uint32_t vscan;
+ uint32_t flags;
+ void *next;
+};
+
+extern struct mt_mode *mt_monitor_mode_list(struct mt_monitor *monitor);
+extern struct mt_mode *mt_dmt_mode_list(void);
+extern struct mt_mode *mt_cvt_mode(uint32_t width, uint32_t height,
+ float refresh, uint32_t flags);
+extern struct mt_mode *mt_gtf_mode(uint32_t width, uint32_t height,
+ float refresh, uint32_t flags);
+
+extern float mt_mode_hsync(struct mt_mode *mode);
+extern float mt_mode_vsync(struct mt_mode *mode);
+extern uint32_t mt_mode_is_reduced_blanking(struct mt_mode *mode);
+
+
+#endif