summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/vesamode.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ddcprobe/vesamode.h')
-rw-r--r--tools/ddcprobe/vesamode.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/ddcprobe/vesamode.h b/tools/ddcprobe/vesamode.h
new file mode 100644
index 000000000..b7eef9283
--- /dev/null
+++ b/tools/ddcprobe/vesamode.h
@@ -0,0 +1,31 @@
+#ifndef vesamode_h
+#define vesamode_h
+#include <sys/types.h>
+#ident "$Id$"
+
+typedef enum { hsync_neg = 0, hsync_pos } hsync_t;
+typedef enum { vsync_neg = 0, vsync_pos } vsync_t;
+
+struct vesa_mode_t {
+ u_int16_t number;
+ u_int16_t x, y;
+ u_int32_t colors;
+ const char *text;
+ const char *modeline;
+};
+
+struct vesa_timing_t {
+ u_int16_t x, y;
+ float refresh;
+ float dotclock;
+ u_int16_t timings[8];
+ hsync_t hsync;
+ vsync_t vsync;
+ float hfreq;
+ float vfreq;
+};
+
+extern struct vesa_mode_t known_vesa_modes[];
+extern struct vesa_timing_t known_vesa_timings[];
+
+#endif /* vesamode_h */